msm-pcm-routing-v2.c 951 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
  3. */
  4. #include <linux/init.h>
  5. #include <linux/err.h>
  6. #include <linux/module.h>
  7. #include <linux/moduleparam.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/bitops.h>
  10. #include <linux/mutex.h>
  11. #include <linux/of_device.h>
  12. #include <linux/slab.h>
  13. #include <sound/core.h>
  14. #include <sound/soc.h>
  15. #include <sound/soc-dapm.h>
  16. #include <sound/pcm.h>
  17. #include <sound/initval.h>
  18. #include <sound/control.h>
  19. #include <sound/tlv.h>
  20. #include <sound/asound.h>
  21. #include <sound/pcm_params.h>
  22. #include <sound/hwdep.h>
  23. #include <sound/audio_effects.h>
  24. #include <dsp/msm-dts-srs-tm-config.h>
  25. #include <dsp/q6voice.h>
  26. #include <dsp/q6adm-v2.h>
  27. #include <dsp/q6asm-v2.h>
  28. #include <dsp/q6afe-v2.h>
  29. #include <dsp/q6lsm.h>
  30. #include <dsp/q6core.h>
  31. #include <dsp/q6common.h>
  32. #include <dsp/audio_cal_utils.h>
  33. #include "msm-pcm-routing-v2.h"
  34. #include "msm-pcm-routing-devdep.h"
  35. #include "msm-qti-pp-config.h"
  36. #include "msm-dolby-dap-config.h"
  37. #include "msm-ds2-dap-config.h"
  38. #define DRV_NAME "msm-pcm-routing-v2"
  39. #ifndef CONFIG_DOLBY_DAP
  40. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  41. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  42. #endif
  43. #ifndef CONFIG_DOLBY_DS2
  44. #undef DS2_ADM_COPP_TOPOLOGY_ID
  45. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  46. #endif
  47. static struct mutex routing_lock;
  48. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  49. static int fm_switch_enable;
  50. static int hfp_switch_enable;
  51. static int a2dp_switch_enable;
  52. static int int0_mi2s_switch_enable;
  53. static int int4_mi2s_switch_enable;
  54. static int pri_mi2s_switch_enable;
  55. static int sec_mi2s_switch_enable;
  56. static int tert_mi2s_switch_enable;
  57. static int quat_mi2s_switch_enable;
  58. static int quin_mi2s_switch_enable;
  59. static int fm_pcmrx_switch_enable;
  60. static int usb_switch_enable;
  61. static int lsm_port_index;
  62. static int slim0_rx_aanc_fb_port;
  63. static int msm_route_ec_ref_rx;
  64. static int msm_ec_ref_ch = 4;
  65. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  66. static int msm_ec_ref_sampling_rate = 48000;
  67. static uint32_t voc_session_id = ALL_SESSION_VSID;
  68. static int msm_route_ext_ec_ref;
  69. static bool is_custom_stereo_on;
  70. static bool is_ds2_on;
  71. static bool swap_ch;
  72. static int aanc_level;
  73. static int num_app_cfg_types;
  74. static int msm_ec_ref_port_id;
  75. #define WEIGHT_0_DB 0x4000
  76. /* all the FEs which can support channel mixer */
  77. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  78. /* input BE for each FE */
  79. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  80. enum {
  81. MADNONE,
  82. MADAUDIO,
  83. MADBEACON,
  84. MADULTRASOUND,
  85. MADSWAUDIO,
  86. };
  87. #define ADM_LSM_PORT_INDEX 9
  88. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  89. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  90. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  91. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  92. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  93. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  94. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  95. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  96. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  97. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  98. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  99. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  100. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  101. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  102. #define LSM_FUNCTION_TEXT "LSM Function"
  103. static const char * const lsm_port_text[] = {
  104. "None",
  105. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  106. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  107. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  108. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  109. TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT
  110. };
  111. struct msm_pcm_route_bdai_pp_params {
  112. u16 port_id; /* AFE port ID */
  113. unsigned long pp_params_config;
  114. bool mute_on;
  115. int latency;
  116. };
  117. static struct msm_pcm_route_bdai_pp_params
  118. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  119. {HDMI_RX, 0, 0, 0},
  120. {DISPLAY_PORT_RX, 0, 0, 0},
  121. };
  122. /*
  123. * The be_dai_name_table is passed to HAL so that it can specify the
  124. * BE ID for the BE it wants to enable based on the name. Thus there
  125. * is a matching table and structure in HAL that need to be updated
  126. * if any changes to these are made.
  127. */
  128. struct msm_pcm_route_bdai_name {
  129. unsigned int be_id;
  130. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  131. };
  132. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  133. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  134. int fe_id);
  135. static void msm_routing_load_topology(size_t data_size, void *data);
  136. static void msm_routing_unload_topology(uint32_t topology_id);
  137. static int msm_routing_get_bit_width(unsigned int format)
  138. {
  139. int bit_width;
  140. switch (format) {
  141. case SNDRV_PCM_FORMAT_S32_LE:
  142. bit_width = 32;
  143. break;
  144. case SNDRV_PCM_FORMAT_S24_LE:
  145. case SNDRV_PCM_FORMAT_S24_3LE:
  146. bit_width = 24;
  147. break;
  148. case SNDRV_PCM_FORMAT_S16_LE:
  149. default:
  150. bit_width = 16;
  151. }
  152. return bit_width;
  153. }
  154. static bool msm_is_resample_needed(int input_sr, int output_sr)
  155. {
  156. bool rc = false;
  157. if (input_sr != output_sr)
  158. rc = true;
  159. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  160. (rc ? "oh yes" : "not really"),
  161. input_sr, output_sr);
  162. return rc;
  163. }
  164. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  165. int channels)
  166. {
  167. int rc = 0;
  168. switch (topology) {
  169. case SRS_TRUMEDIA_TOPOLOGY_ID:
  170. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  171. msm_dts_srs_tm_init(port_id, copp_idx);
  172. break;
  173. case DS2_ADM_COPP_TOPOLOGY_ID:
  174. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  175. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  176. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  177. is_custom_stereo_on);
  178. if (rc < 0)
  179. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  180. __func__, topology, port_id,
  181. is_custom_stereo_on, rc);
  182. break;
  183. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  184. if (is_ds2_on) {
  185. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  186. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  187. is_custom_stereo_on);
  188. if (rc < 0)
  189. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  190. __func__, topology, port_id, rc);
  191. } else {
  192. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  193. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  194. is_custom_stereo_on);
  195. if (rc < 0)
  196. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  197. __func__, topology, port_id, rc);
  198. }
  199. break;
  200. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  201. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  202. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  203. if (rc < 0)
  204. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  205. __func__, topology, port_id, copp_idx, rc);
  206. break;
  207. default:
  208. /* custom topology specific feature param handlers */
  209. break;
  210. }
  211. }
  212. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  213. {
  214. switch (topology) {
  215. case SRS_TRUMEDIA_TOPOLOGY_ID:
  216. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  217. msm_dts_srs_tm_deinit(port_id);
  218. break;
  219. case DS2_ADM_COPP_TOPOLOGY_ID:
  220. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  221. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  222. msm_ds2_dap_deinit(port_id);
  223. break;
  224. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  225. if (is_ds2_on) {
  226. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  227. msm_ds2_dap_deinit(port_id);
  228. } else {
  229. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  230. msm_dolby_dap_deinit(port_id);
  231. }
  232. break;
  233. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  234. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  235. msm_qti_pp_asphere_deinit(port_id);
  236. break;
  237. default:
  238. /* custom topology specific feature deinit handlers */
  239. break;
  240. }
  241. }
  242. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  243. int path_type, int perf_mode)
  244. {
  245. int itr = 0, rc = 0;
  246. if ((path_type == ADM_PATH_PLAYBACK) &&
  247. (perf_mode == LEGACY_PCM_MODE) &&
  248. is_custom_stereo_on) {
  249. for (itr = 0; itr < payload.num_copps; itr++) {
  250. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  251. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  252. continue;
  253. }
  254. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  255. payload.port_id[itr],
  256. payload.copp_idx[itr],
  257. payload.session_id,
  258. Q14_GAIN_ZERO_POINT_FIVE,
  259. Q14_GAIN_ZERO_POINT_FIVE,
  260. Q14_GAIN_ZERO_POINT_FIVE,
  261. Q14_GAIN_ZERO_POINT_FIVE);
  262. if (rc < 0)
  263. pr_err("%s: err setting custom stereo\n",
  264. __func__);
  265. }
  266. }
  267. }
  268. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  269. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  270. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  271. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  272. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  273. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  274. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  275. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  276. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  277. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  278. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  279. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  280. LPASS_BE_AFE_PCM_RX},
  281. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  282. LPASS_BE_AFE_PCM_TX},
  283. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  284. LPASS_BE_AUXPCM_RX},
  285. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  286. LPASS_BE_AUXPCM_TX},
  287. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  288. LPASS_BE_VOICE_PLAYBACK_TX},
  289. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  290. LPASS_BE_VOICE2_PLAYBACK_TX},
  291. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  292. LPASS_BE_INCALL_RECORD_RX},
  293. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  294. LPASS_BE_INCALL_RECORD_TX},
  295. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  296. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  297. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  298. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  299. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  300. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  301. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  302. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  303. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  304. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  305. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  306. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  307. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  308. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  309. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  310. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  311. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  312. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  313. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  314. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  315. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  316. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  317. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  318. LPASS_BE_QUAT_MI2S_RX},
  319. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  320. LPASS_BE_QUAT_MI2S_TX},
  321. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  322. LPASS_BE_SEC_MI2S_RX},
  323. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  324. LPASS_BE_SEC_MI2S_TX},
  325. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  326. LPASS_BE_PRI_MI2S_RX},
  327. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  328. LPASS_BE_PRI_MI2S_TX},
  329. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  330. LPASS_BE_TERT_MI2S_RX},
  331. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  332. LPASS_BE_TERT_MI2S_TX},
  333. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  334. LPASS_BE_AUDIO_I2S_RX},
  335. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  336. LPASS_BE_SEC_AUXPCM_RX},
  337. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  338. LPASS_BE_SEC_AUXPCM_TX},
  339. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  340. LPASS_BE_PRI_SPDIF_RX},
  341. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  342. LPASS_BE_SEC_MI2S_RX_SD1},
  343. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  344. LPASS_BE_QUIN_MI2S_RX},
  345. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  346. LPASS_BE_QUIN_MI2S_TX},
  347. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  348. LPASS_BE_SENARY_MI2S_TX},
  349. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  350. LPASS_BE_PRI_TDM_RX_0},
  351. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  352. LPASS_BE_PRI_TDM_TX_0},
  353. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  354. LPASS_BE_PRI_TDM_RX_1},
  355. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  356. LPASS_BE_PRI_TDM_TX_1},
  357. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  358. LPASS_BE_PRI_TDM_RX_2},
  359. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  360. LPASS_BE_PRI_TDM_TX_2},
  361. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  362. LPASS_BE_PRI_TDM_RX_3},
  363. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  364. LPASS_BE_PRI_TDM_TX_3},
  365. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  366. LPASS_BE_PRI_TDM_RX_4},
  367. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  368. LPASS_BE_PRI_TDM_TX_4},
  369. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  370. LPASS_BE_PRI_TDM_RX_5},
  371. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  372. LPASS_BE_PRI_TDM_TX_5},
  373. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  374. LPASS_BE_PRI_TDM_RX_6},
  375. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  376. LPASS_BE_PRI_TDM_TX_6},
  377. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  378. LPASS_BE_PRI_TDM_RX_7},
  379. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  380. LPASS_BE_PRI_TDM_TX_7},
  381. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  382. LPASS_BE_SEC_TDM_RX_0},
  383. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  384. LPASS_BE_SEC_TDM_TX_0},
  385. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  386. LPASS_BE_SEC_TDM_RX_1},
  387. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  388. LPASS_BE_SEC_TDM_TX_1},
  389. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  390. LPASS_BE_SEC_TDM_RX_2},
  391. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  392. LPASS_BE_SEC_TDM_TX_2},
  393. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  394. LPASS_BE_SEC_TDM_RX_3},
  395. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  396. LPASS_BE_SEC_TDM_TX_3},
  397. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  398. LPASS_BE_SEC_TDM_RX_4},
  399. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  400. LPASS_BE_SEC_TDM_TX_4},
  401. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  402. LPASS_BE_SEC_TDM_RX_5},
  403. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  404. LPASS_BE_SEC_TDM_TX_5},
  405. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  406. LPASS_BE_SEC_TDM_RX_6},
  407. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  408. LPASS_BE_SEC_TDM_TX_6},
  409. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  410. LPASS_BE_SEC_TDM_RX_7},
  411. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  412. LPASS_BE_SEC_TDM_TX_7},
  413. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  414. LPASS_BE_TERT_TDM_RX_0},
  415. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  416. LPASS_BE_TERT_TDM_TX_0},
  417. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  418. LPASS_BE_TERT_TDM_RX_1},
  419. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  420. LPASS_BE_TERT_TDM_TX_1},
  421. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  422. LPASS_BE_TERT_TDM_RX_2},
  423. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  424. LPASS_BE_TERT_TDM_TX_2},
  425. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  426. LPASS_BE_TERT_TDM_RX_3},
  427. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  428. LPASS_BE_TERT_TDM_TX_3},
  429. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  430. LPASS_BE_TERT_TDM_RX_4},
  431. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  432. LPASS_BE_TERT_TDM_TX_4},
  433. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  434. LPASS_BE_TERT_TDM_RX_5},
  435. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  436. LPASS_BE_TERT_TDM_TX_5},
  437. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  438. LPASS_BE_TERT_TDM_RX_6},
  439. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  440. LPASS_BE_TERT_TDM_TX_6},
  441. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  442. LPASS_BE_TERT_TDM_RX_7},
  443. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  444. LPASS_BE_TERT_TDM_TX_7},
  445. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  446. LPASS_BE_QUAT_TDM_RX_0},
  447. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  448. LPASS_BE_QUAT_TDM_TX_0},
  449. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  450. LPASS_BE_QUAT_TDM_RX_1},
  451. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  452. LPASS_BE_QUAT_TDM_TX_1},
  453. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  454. LPASS_BE_QUAT_TDM_RX_2},
  455. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  456. LPASS_BE_QUAT_TDM_TX_2},
  457. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  458. LPASS_BE_QUAT_TDM_RX_3},
  459. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  460. LPASS_BE_QUAT_TDM_TX_3},
  461. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  462. LPASS_BE_QUAT_TDM_RX_4},
  463. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  464. LPASS_BE_QUAT_TDM_TX_4},
  465. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  466. LPASS_BE_QUAT_TDM_RX_5},
  467. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  468. LPASS_BE_QUAT_TDM_TX_5},
  469. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  470. LPASS_BE_QUAT_TDM_RX_6},
  471. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  472. LPASS_BE_QUAT_TDM_TX_6},
  473. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  474. LPASS_BE_QUAT_TDM_RX_7},
  475. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  476. LPASS_BE_QUAT_TDM_TX_7},
  477. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  478. LPASS_BE_QUIN_TDM_RX_0},
  479. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  480. LPASS_BE_QUIN_TDM_TX_0},
  481. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  482. LPASS_BE_QUIN_TDM_RX_1},
  483. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  484. LPASS_BE_QUIN_TDM_TX_1},
  485. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  486. LPASS_BE_QUIN_TDM_RX_2},
  487. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  488. LPASS_BE_QUIN_TDM_TX_2},
  489. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  490. LPASS_BE_QUIN_TDM_RX_3},
  491. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  492. LPASS_BE_QUIN_TDM_TX_3},
  493. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  494. LPASS_BE_QUIN_TDM_RX_4},
  495. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  496. LPASS_BE_QUIN_TDM_TX_4},
  497. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  498. LPASS_BE_QUIN_TDM_RX_5},
  499. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  500. LPASS_BE_QUIN_TDM_TX_5},
  501. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  502. LPASS_BE_QUIN_TDM_RX_6},
  503. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  504. LPASS_BE_QUIN_TDM_TX_6},
  505. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  506. LPASS_BE_QUIN_TDM_RX_7},
  507. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  508. LPASS_BE_QUIN_TDM_TX_7},
  509. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  510. LPASS_BE_INT_BT_A2DP_RX},
  511. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  512. LPASS_BE_USB_AUDIO_RX},
  513. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  514. LPASS_BE_USB_AUDIO_TX},
  515. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  516. LPASS_BE_DISPLAY_PORT},
  517. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  518. LPASS_BE_DISPLAY_PORT1},
  519. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  520. LPASS_BE_TERT_AUXPCM_RX},
  521. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  522. LPASS_BE_TERT_AUXPCM_TX},
  523. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  524. LPASS_BE_QUAT_AUXPCM_RX},
  525. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  526. LPASS_BE_QUAT_AUXPCM_TX},
  527. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  528. LPASS_BE_QUIN_AUXPCM_RX},
  529. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  530. LPASS_BE_QUIN_AUXPCM_TX},
  531. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  532. LPASS_BE_INT0_MI2S_RX},
  533. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  534. LPASS_BE_INT0_MI2S_TX},
  535. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  536. LPASS_BE_INT1_MI2S_RX},
  537. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  538. LPASS_BE_INT1_MI2S_TX},
  539. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  540. LPASS_BE_INT2_MI2S_RX},
  541. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  542. LPASS_BE_INT2_MI2S_TX},
  543. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  544. LPASS_BE_INT3_MI2S_RX},
  545. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  546. LPASS_BE_INT3_MI2S_TX},
  547. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  548. LPASS_BE_INT4_MI2S_RX},
  549. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  550. LPASS_BE_INT4_MI2S_TX},
  551. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  552. LPASS_BE_INT5_MI2S_RX},
  553. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  554. LPASS_BE_INT5_MI2S_TX},
  555. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  556. LPASS_BE_INT6_MI2S_RX},
  557. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  558. LPASS_BE_INT6_MI2S_TX},
  559. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  560. LPASS_BE_SEN_AUXPCM_RX},
  561. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  562. LPASS_BE_SEN_AUXPCM_TX},
  563. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  564. LPASS_BE_SENARY_MI2S_RX},
  565. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  566. LPASS_BE_WSA_CDC_DMA_RX_0},
  567. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  568. LPASS_BE_WSA_CDC_DMA_TX_0},
  569. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  570. LPASS_BE_WSA_CDC_DMA_RX_1},
  571. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  572. LPASS_BE_WSA_CDC_DMA_TX_1},
  573. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  574. LPASS_BE_WSA_CDC_DMA_TX_2},
  575. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  576. LPASS_BE_VA_CDC_DMA_TX_0},
  577. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  578. LPASS_BE_VA_CDC_DMA_TX_1},
  579. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  580. LPASS_BE_RX_CDC_DMA_RX_0},
  581. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  582. LPASS_BE_TX_CDC_DMA_TX_0},
  583. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  584. LPASS_BE_RX_CDC_DMA_RX_1},
  585. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  586. LPASS_BE_TX_CDC_DMA_TX_1},
  587. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  588. LPASS_BE_RX_CDC_DMA_RX_2},
  589. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  590. LPASS_BE_TX_CDC_DMA_TX_2},
  591. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  592. LPASS_BE_RX_CDC_DMA_RX_3},
  593. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  594. LPASS_BE_TX_CDC_DMA_TX_3},
  595. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  596. LPASS_BE_RX_CDC_DMA_RX_4},
  597. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  598. LPASS_BE_TX_CDC_DMA_TX_4},
  599. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  600. LPASS_BE_RX_CDC_DMA_RX_5},
  601. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  602. LPASS_BE_TX_CDC_DMA_TX_5},
  603. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  604. LPASS_BE_RX_CDC_DMA_RX_6},
  605. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  606. LPASS_BE_RX_CDC_DMA_RX_7},
  607. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  608. LPASS_BE_PRI_SPDIF_TX},
  609. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  610. LPASS_BE_SEC_SPDIF_RX},
  611. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  612. LPASS_BE_SEC_SPDIF_TX},
  613. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  614. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  615. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  616. };
  617. /* Track ASM playback & capture sessions of DAI
  618. * Track LSM listen sessions
  619. */
  620. static struct msm_pcm_routing_fdai_data
  621. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  622. /* MULTIMEDIA1 */
  623. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  624. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  625. /* MULTIMEDIA2 */
  626. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  627. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  628. /* MULTIMEDIA3 */
  629. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  630. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  631. /* MULTIMEDIA4 */
  632. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  633. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  634. /* MULTIMEDIA5 */
  635. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  636. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  637. /* MULTIMEDIA6 */
  638. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  639. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  640. /* MULTIMEDIA7*/
  641. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  642. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  643. /* MULTIMEDIA8 */
  644. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  645. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  646. /* MULTIMEDIA9 */
  647. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  648. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  649. /* MULTIMEDIA10 */
  650. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  651. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  652. /* MULTIMEDIA11 */
  653. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  654. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  655. /* MULTIMEDIA12 */
  656. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  657. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  658. /* MULTIMEDIA13 */
  659. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  660. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  661. /* MULTIMEDIA14 */
  662. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  663. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  664. /* MULTIMEDIA15 */
  665. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  666. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  667. /* MULTIMEDIA16 */
  668. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  669. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  670. /* MULTIMEDIA17 */
  671. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  672. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  673. /* MULTIMEDIA18 */
  674. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  675. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  676. /* MULTIMEDIA19 */
  677. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  678. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  679. /* MULTIMEDIA20 */
  680. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  681. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  682. /* MULTIMEDIA21 */
  683. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  684. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  685. /* MULTIMEDIA26 */
  686. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  687. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  688. /* MULTIMEDIA27 */
  689. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  690. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  691. /* MULTIMEDIA28 */
  692. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  693. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  694. /* MULTIMEDIA29 */
  695. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  696. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  697. /* VOIP */
  698. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  699. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  700. /* AFE_RX */
  701. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  702. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  703. /* AFE_TX */
  704. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  705. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  706. /* VOICE_STUB */
  707. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  708. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  709. /* DTMF_RX */
  710. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  711. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  712. /* QCHAT */
  713. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  714. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  715. /* VOLTE_STUB */
  716. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  717. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  718. /* LSM1 */
  719. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  720. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  721. /* LSM2 */
  722. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  723. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  724. /* LSM3 */
  725. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  726. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  727. /* LSM4 */
  728. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  729. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  730. /* LSM5 */
  731. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  732. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  733. /* LSM6 */
  734. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  735. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  736. /* LSM7 */
  737. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  738. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  739. /* LSM8 */
  740. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  741. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  742. /* VOICE2_STUB */
  743. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  744. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  745. /* VOICEMMODE1 */
  746. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  747. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  748. /* VOICEMMODE2 */
  749. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  750. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  751. };
  752. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  753. [MSM_BACKEND_DAI_MAX];
  754. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  755. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  756. static struct msm_pcm_stream_app_type_cfg
  757. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  758. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  759. /* The caller of this should acquire routing lock */
  760. void msm_pcm_routing_get_bedai_info(int be_idx,
  761. struct msm_pcm_routing_bdai_data *be_dai)
  762. {
  763. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  764. memcpy(be_dai, &msm_bedais[be_idx],
  765. sizeof(struct msm_pcm_routing_bdai_data));
  766. }
  767. /* The caller of this should acquire routing lock */
  768. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  769. struct msm_pcm_routing_fdai_data *fe_dai)
  770. {
  771. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  772. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  773. sizeof(struct msm_pcm_routing_fdai_data));
  774. }
  775. void msm_pcm_routing_acquire_lock(void)
  776. {
  777. mutex_lock(&routing_lock);
  778. }
  779. void msm_pcm_routing_release_lock(void)
  780. {
  781. mutex_unlock(&routing_lock);
  782. }
  783. static int msm_pcm_routing_get_app_type_idx(int app_type)
  784. {
  785. int idx;
  786. pr_debug("%s: app_type: %d\n", __func__, app_type);
  787. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  788. if (app_type_cfg[idx].app_type == app_type)
  789. return idx;
  790. }
  791. pr_info("%s: App type not available, fallback to default\n", __func__);
  792. return 0;
  793. }
  794. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  795. {
  796. int idx;
  797. pr_debug("%s: app_type: %d\n", __func__, app_type);
  798. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  799. if (lsm_app_type_cfg[idx].app_type == app_type)
  800. return idx;
  801. }
  802. pr_debug("%s: App type not available, fallback to default\n", __func__);
  803. return 0;
  804. }
  805. static int get_port_id(int port_id)
  806. {
  807. return (port_id == AFE_LOOPBACK_TX ? msm_ec_ref_port_id : port_id);
  808. }
  809. static bool is_mm_lsm_fe_id(int fe_id)
  810. {
  811. bool rc = true;
  812. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  813. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  814. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  815. rc = false;
  816. }
  817. return rc;
  818. }
  819. /*
  820. * msm_pcm_routing_send_chmix_cfg:
  821. * send the channel mixer command to mix the input channels
  822. * into output channels.
  823. *
  824. * @fe_id: front end id
  825. * @ip_channel_cnt: input channel count
  826. * @op_channel_cnt: output channel count
  827. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  828. * @session_type: indicates session is of type TX or RX
  829. * @stream_type: indicates either Audio or Listen stream type
  830. */
  831. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  832. int op_channel_cnt, int *ch_wght_coeff,
  833. int session_type, int stream_type)
  834. {
  835. int rc = 0, idx = 0;
  836. int be_index = 0, port_id;
  837. unsigned int session_id = 0;
  838. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  839. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  840. stream_type);
  841. if (!is_mm_lsm_fe_id(fe_id)) {
  842. /* bad ID assigned in machine driver */
  843. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  844. return -EINVAL;
  845. }
  846. if (ch_wght_coeff == NULL) {
  847. pr_err("%s: Null channel weightage coefficients passed\n",
  848. __func__);
  849. return -EINVAL;
  850. }
  851. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  852. port_id = msm_bedais[be_index].port_id;
  853. if (!msm_bedais[be_index].active ||
  854. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  855. continue;
  856. session_id = fe_dai_map[fe_id][session_type].strm_id;
  857. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  858. unsigned long copp =
  859. session_copp_map[fe_id][session_type][be_index];
  860. if (!test_bit(idx, &copp))
  861. continue;
  862. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  863. session_id, ip_channel_cnt,
  864. op_channel_cnt, ch_wght_coeff,
  865. session_type, stream_type);
  866. if (rc < 0)
  867. pr_err("%s: err setting channel mix config\n",
  868. __func__);
  869. }
  870. }
  871. return 0;
  872. }
  873. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  874. int msm_pcm_routing_reg_stream_app_type_cfg(
  875. int fedai_id, int session_type, int be_id,
  876. struct msm_pcm_stream_app_type_cfg *cfg_data)
  877. {
  878. int ret = 0;
  879. if (cfg_data == NULL) {
  880. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  881. ret = -EINVAL;
  882. goto done;
  883. }
  884. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  885. __func__, fedai_id, session_type, be_id,
  886. cfg_data->app_type, cfg_data->acdb_dev_id,
  887. cfg_data->sample_rate);
  888. if (!is_mm_lsm_fe_id(fedai_id)) {
  889. pr_err("%s: Invalid machine driver ID %d\n",
  890. __func__, fedai_id);
  891. ret = -EINVAL;
  892. goto done;
  893. }
  894. if (session_type != SESSION_TYPE_RX &&
  895. session_type != SESSION_TYPE_TX) {
  896. pr_err("%s: Invalid session type %d\n",
  897. __func__, session_type);
  898. ret = -EINVAL;
  899. goto done;
  900. }
  901. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  902. pr_err("%s: Received out of bounds be_id %d\n",
  903. __func__, be_id);
  904. ret = -EINVAL;
  905. goto done;
  906. }
  907. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  908. /*
  909. * Store the BE ID of the configuration information set as the latest so
  910. * the get mixer control knows what to return.
  911. */
  912. last_be_id_configured[fedai_id][session_type] = be_id;
  913. done:
  914. return ret;
  915. }
  916. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  917. /**
  918. * msm_pcm_routing_get_stream_app_type_cfg
  919. *
  920. * Receives fedai_id, session_type, be_id, and populates app_type,
  921. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  922. * -EINVAL and does not alter passed values.
  923. *
  924. * fedai_id - Passed value, front end ID for which app type config is wanted
  925. * session_type - Passed value, session type for which app type config
  926. * is wanted
  927. * be_id - Returned value, back end device id the app type config data is for
  928. * cfg_data - Returned value, configuration data used by app type config
  929. */
  930. int msm_pcm_routing_get_stream_app_type_cfg(
  931. int fedai_id, int session_type, int *bedai_id,
  932. struct msm_pcm_stream_app_type_cfg *cfg_data)
  933. {
  934. int be_id;
  935. int ret = 0;
  936. if (bedai_id == NULL) {
  937. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  938. ret = -EINVAL;
  939. goto done;
  940. } else if (cfg_data == NULL) {
  941. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  942. ret = -EINVAL;
  943. goto done;
  944. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  945. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  946. ret = -EINVAL;
  947. goto done;
  948. } else if (session_type != SESSION_TYPE_RX &&
  949. session_type != SESSION_TYPE_TX) {
  950. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  951. ret = -EINVAL;
  952. goto done;
  953. }
  954. be_id = last_be_id_configured[fedai_id][session_type];
  955. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  956. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  957. ret = -EINVAL;
  958. goto done;
  959. }
  960. *bedai_id = be_id;
  961. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  962. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  963. __func__, fedai_id, session_type, *bedai_id,
  964. cfg_data->app_type, cfg_data->acdb_dev_id,
  965. cfg_data->sample_rate);
  966. done:
  967. return ret;
  968. }
  969. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  970. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  971. int cal_index)
  972. {
  973. struct list_head *ptr, *next;
  974. struct cal_block_data *cal_block = NULL;
  975. pr_debug("%s\n", __func__);
  976. list_for_each_safe(ptr, next,
  977. &cal_data[cal_index]->cal_blocks) {
  978. cal_block = list_entry(ptr,
  979. struct cal_block_data, list);
  980. if (cal_utils_is_cal_stale(cal_block))
  981. continue;
  982. if (((struct audio_cal_info_adm_top *)cal_block
  983. ->cal_info)->path == path) {
  984. return cal_block;
  985. }
  986. }
  987. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  988. return NULL;
  989. }
  990. static struct cal_block_data *msm_routing_find_topology(int path,
  991. int app_type,
  992. int acdb_id,
  993. int cal_index)
  994. {
  995. struct list_head *ptr, *next;
  996. struct cal_block_data *cal_block = NULL;
  997. struct audio_cal_info_adm_top *cal_info;
  998. pr_debug("%s\n", __func__);
  999. list_for_each_safe(ptr, next,
  1000. &cal_data[cal_index]->cal_blocks) {
  1001. cal_block = list_entry(ptr,
  1002. struct cal_block_data, list);
  1003. if (cal_utils_is_cal_stale(cal_block))
  1004. continue;
  1005. cal_info = (struct audio_cal_info_adm_top *)
  1006. cal_block->cal_info;
  1007. if ((cal_info->path == path) &&
  1008. (cal_info->app_type == app_type) &&
  1009. (cal_info->acdb_id == acdb_id)) {
  1010. return cal_block;
  1011. }
  1012. }
  1013. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  1014. __func__, path, app_type, acdb_id);
  1015. return msm_routing_find_topology_by_path(path, cal_index);
  1016. }
  1017. /*
  1018. * Retrieving cal_block will mark cal_block as stale.
  1019. * Hence it cannot be reused or resent unless the flag
  1020. * is reset.
  1021. */
  1022. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1023. int be_id)
  1024. {
  1025. int topology = NULL_COPP_TOPOLOGY;
  1026. struct cal_block_data *cal_block = NULL;
  1027. int app_type = 0, acdb_dev_id = 0;
  1028. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1029. __func__, fedai_id, session_type, be_id);
  1030. if (cal_data == NULL)
  1031. goto done;
  1032. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1033. acdb_dev_id =
  1034. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1035. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1036. cal_block = msm_routing_find_topology(session_type, app_type,
  1037. acdb_dev_id,
  1038. ADM_TOPOLOGY_CAL_TYPE_IDX);
  1039. if (cal_block != NULL) {
  1040. topology = ((struct audio_cal_info_adm_top *)
  1041. cal_block->cal_info)->topology;
  1042. cal_utils_mark_cal_used(cal_block);
  1043. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1044. } else {
  1045. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1046. pr_debug("%s: Check for LSM topology\n", __func__);
  1047. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1048. cal_block = msm_routing_find_topology(session_type, app_type,
  1049. acdb_dev_id,
  1050. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  1051. if (cal_block != NULL) {
  1052. topology = ((struct audio_cal_info_adm_top *)
  1053. cal_block->cal_info)->topology;
  1054. cal_utils_mark_cal_used(cal_block);
  1055. }
  1056. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1057. }
  1058. done:
  1059. pr_debug("%s: Using topology %d\n", __func__, topology);
  1060. return topology;
  1061. }
  1062. static uint8_t is_be_dai_extproc(int be_dai)
  1063. {
  1064. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1065. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1066. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1067. return 1;
  1068. else
  1069. return 0;
  1070. }
  1071. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1072. int path_type, int perf_mode,
  1073. uint32_t passthr_mode)
  1074. {
  1075. int i, port_type, j, num_copps = 0;
  1076. struct route_payload payload;
  1077. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1078. path_type == ADM_PATH_COMPRESSED_RX) ?
  1079. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1080. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1081. if (!is_be_dai_extproc(i) &&
  1082. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1083. (msm_bedais[i].active) &&
  1084. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1085. int port_id = get_port_id(msm_bedais[i].port_id);
  1086. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1087. unsigned long copp =
  1088. session_copp_map[fedai_id][sess_type][i];
  1089. if (test_bit(j, &copp)) {
  1090. payload.port_id[num_copps] = port_id;
  1091. payload.copp_idx[num_copps] = j;
  1092. payload.app_type[num_copps] =
  1093. fe_dai_app_type_cfg
  1094. [fedai_id][sess_type][i]
  1095. .app_type;
  1096. payload.acdb_dev_id[num_copps] =
  1097. fe_dai_app_type_cfg
  1098. [fedai_id][sess_type][i]
  1099. .acdb_dev_id;
  1100. payload.sample_rate[num_copps] =
  1101. fe_dai_app_type_cfg
  1102. [fedai_id][sess_type][i]
  1103. .sample_rate;
  1104. num_copps++;
  1105. }
  1106. }
  1107. }
  1108. }
  1109. if (num_copps) {
  1110. payload.num_copps = num_copps;
  1111. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1112. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1113. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1114. }
  1115. }
  1116. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1117. int stream_type)
  1118. {
  1119. int i, session_type, path_type, port_type;
  1120. u32 mode = 0;
  1121. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1122. /* bad ID assigned in machine driver */
  1123. pr_err("%s: bad MM ID\n", __func__);
  1124. return;
  1125. }
  1126. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1127. session_type = SESSION_TYPE_RX;
  1128. path_type = ADM_PATH_PLAYBACK;
  1129. port_type = MSM_AFE_PORT_TYPE_RX;
  1130. } else {
  1131. session_type = SESSION_TYPE_TX;
  1132. path_type = ADM_PATH_LIVE_REC;
  1133. port_type = MSM_AFE_PORT_TYPE_TX;
  1134. }
  1135. mutex_lock(&routing_lock);
  1136. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1137. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1138. if (!is_be_dai_extproc(i) &&
  1139. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1140. (msm_bedais[i].active) &&
  1141. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1142. mode = afe_get_port_type(msm_bedais[i].port_id);
  1143. adm_connect_afe_port(mode, dspst_id,
  1144. msm_bedais[i].port_id);
  1145. break;
  1146. }
  1147. }
  1148. mutex_unlock(&routing_lock);
  1149. }
  1150. static bool route_check_fe_id_adm_support(int fe_id)
  1151. {
  1152. bool rc = true;
  1153. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1154. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1155. /* fe id is listen while port is set to afe */
  1156. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1157. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1158. __func__, fe_id, lsm_port_index);
  1159. rc = false;
  1160. }
  1161. }
  1162. return rc;
  1163. }
  1164. /*
  1165. * msm_pcm_routing_get_pp_ch_cnt:
  1166. * Read the processed channel count
  1167. *
  1168. * @fe_id: Front end ID
  1169. * @session_type: Inidicates RX or TX session type
  1170. */
  1171. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1172. {
  1173. struct msm_pcm_stream_app_type_cfg cfg_data;
  1174. int be_id = 0, app_type_idx = 0, app_type = 0;
  1175. int ret = -EINVAL;
  1176. memset(&cfg_data, 0, sizeof(cfg_data));
  1177. if (!is_mm_lsm_fe_id(fe_id)) {
  1178. pr_err("%s: bad MM ID\n", __func__);
  1179. return -EINVAL;
  1180. }
  1181. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1182. &be_id, &cfg_data);
  1183. if (ret) {
  1184. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1185. return ret;
  1186. }
  1187. app_type = cfg_data.app_type;
  1188. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1189. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1190. }
  1191. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1192. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1193. int dspst_id, int stream_type,
  1194. uint32_t passthr_mode)
  1195. {
  1196. int i, j, session_type, path_type, port_type, topology;
  1197. int num_copps = 0;
  1198. struct route_payload payload;
  1199. u32 channels, sample_rate;
  1200. u16 bit_width = 16;
  1201. bool is_lsm;
  1202. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1203. __func__, fe_id, perf_mode, dspst_id,
  1204. stream_type, passthr_mode);
  1205. if (!is_mm_lsm_fe_id(fe_id)) {
  1206. /* bad ID assigned in machine driver */
  1207. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1208. return -EINVAL;
  1209. }
  1210. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1211. session_type = SESSION_TYPE_RX;
  1212. if (passthr_mode != LEGACY_PCM)
  1213. path_type = ADM_PATH_COMPRESSED_RX;
  1214. else
  1215. path_type = ADM_PATH_PLAYBACK;
  1216. port_type = MSM_AFE_PORT_TYPE_RX;
  1217. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1218. session_type = SESSION_TYPE_TX;
  1219. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1220. path_type = ADM_PATH_COMPRESSED_TX;
  1221. else
  1222. path_type = ADM_PATH_LIVE_REC;
  1223. port_type = MSM_AFE_PORT_TYPE_TX;
  1224. } else {
  1225. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1226. return -EINVAL;
  1227. }
  1228. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1229. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1230. mutex_lock(&routing_lock);
  1231. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1232. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1233. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1234. if (!route_check_fe_id_adm_support(fe_id)) {
  1235. /* ignore adm open if not supported for fe_id */
  1236. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1237. mutex_unlock(&routing_lock);
  1238. return 0;
  1239. }
  1240. payload.num_copps = 0; /* only RX needs to use payload */
  1241. /* re-enable EQ if active */
  1242. msm_qti_pp_send_eq_values(fe_id);
  1243. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1244. if (!is_be_dai_extproc(i) &&
  1245. (afe_get_port_type(msm_bedais[i].port_id) ==
  1246. port_type) &&
  1247. (msm_bedais[i].active) &&
  1248. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1249. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1250. int port_id = get_port_id(msm_bedais[i].port_id);
  1251. /*
  1252. * check if ADM needs to be configured with different
  1253. * channel mapping than backend
  1254. */
  1255. if (!msm_bedais[i].adm_override_ch)
  1256. channels = msm_bedais[i].channel;
  1257. else
  1258. channels = msm_bedais[i].adm_override_ch;
  1259. bit_width = msm_routing_get_bit_width(
  1260. msm_bedais[i].format);
  1261. app_type =
  1262. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1263. if (app_type && is_lsm) {
  1264. app_type_idx =
  1265. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1266. sample_rate =
  1267. fe_dai_app_type_cfg[fe_id][session_type][i]
  1268. .sample_rate;
  1269. bit_width =
  1270. lsm_app_type_cfg[app_type_idx].bit_width;
  1271. } else if (app_type) {
  1272. app_type_idx =
  1273. msm_pcm_routing_get_app_type_idx(
  1274. app_type);
  1275. sample_rate =
  1276. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1277. bit_width =
  1278. app_type_cfg[app_type_idx].bit_width;
  1279. } else {
  1280. sample_rate = msm_bedais[i].sample_rate;
  1281. }
  1282. acdb_dev_id =
  1283. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1284. topology = msm_routing_get_adm_topology(fe_id,
  1285. session_type,
  1286. i);
  1287. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1288. || (passthr_mode ==
  1289. COMPRESSED_PASSTHROUGH_GEN)
  1290. || (passthr_mode ==
  1291. COMPRESSED_PASSTHROUGH_IEC61937))
  1292. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1293. pr_debug("%s: Before adm open topology %d\n", __func__,
  1294. topology);
  1295. copp_idx =
  1296. adm_open(port_id, path_type, sample_rate,
  1297. channels, topology, perf_mode,
  1298. bit_width, app_type, acdb_dev_id,
  1299. session_type);
  1300. if ((copp_idx < 0) ||
  1301. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1302. pr_err("%s:adm open failed coppid:%d\n",
  1303. __func__, copp_idx);
  1304. mutex_unlock(&routing_lock);
  1305. return -EINVAL;
  1306. }
  1307. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1308. __func__, fe_id, session_type, i);
  1309. set_bit(copp_idx,
  1310. &session_copp_map[fe_id][session_type][i]);
  1311. if (msm_is_resample_needed(
  1312. sample_rate,
  1313. msm_bedais[i].sample_rate))
  1314. adm_copp_mfc_cfg(port_id, copp_idx,
  1315. msm_bedais[i].sample_rate);
  1316. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1317. unsigned long copp =
  1318. session_copp_map[fe_id][session_type][i];
  1319. if (test_bit(j, &copp)) {
  1320. payload.port_id[num_copps] = port_id;
  1321. payload.copp_idx[num_copps] = j;
  1322. payload.app_type[num_copps] =
  1323. fe_dai_app_type_cfg
  1324. [fe_id][session_type][i]
  1325. .app_type;
  1326. payload.acdb_dev_id[num_copps] =
  1327. fe_dai_app_type_cfg
  1328. [fe_id][session_type][i]
  1329. .acdb_dev_id;
  1330. payload.sample_rate[num_copps] =
  1331. fe_dai_app_type_cfg
  1332. [fe_id][session_type][i]
  1333. .sample_rate;
  1334. num_copps++;
  1335. }
  1336. }
  1337. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1338. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1339. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1340. msm_routing_send_device_pp_params(port_id,
  1341. copp_idx, fe_id);
  1342. }
  1343. }
  1344. if (num_copps) {
  1345. payload.num_copps = num_copps;
  1346. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1347. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1348. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1349. }
  1350. mutex_unlock(&routing_lock);
  1351. return 0;
  1352. }
  1353. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1354. {
  1355. u32 session_id;
  1356. switch (val) {
  1357. case MSM_FRONTEND_DAI_QCHAT:
  1358. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1359. break;
  1360. case MSM_FRONTEND_DAI_VOIP:
  1361. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1362. break;
  1363. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1364. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1365. break;
  1366. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1367. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1368. break;
  1369. default:
  1370. session_id = 0;
  1371. }
  1372. pr_debug("%s session_id 0x%x", __func__, session_id);
  1373. return session_id;
  1374. }
  1375. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1376. int dspst_id, int stream_type)
  1377. {
  1378. int copp_idx = 0;
  1379. int sess_type = 0;
  1380. int i = 0, j = 0, be_id;
  1381. int ret = 0;
  1382. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1383. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1384. return 0;
  1385. }
  1386. if (!(channel_mixer[fe_id].enable)) {
  1387. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1388. __func__, fe_id);
  1389. return 0;
  1390. }
  1391. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1392. sess_type = SESSION_TYPE_RX;
  1393. else
  1394. sess_type = SESSION_TYPE_TX;
  1395. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1396. ++i) {
  1397. be_id = channel_input[fe_id][i] - 1;
  1398. channel_mixer[fe_id].input_channels[i] =
  1399. msm_bedais[be_id].channel;
  1400. if ((msm_bedais[be_id].active) &&
  1401. test_bit(fe_id,
  1402. &msm_bedais[be_id].fe_sessions[0])) {
  1403. unsigned long copp =
  1404. session_copp_map[fe_id][sess_type][be_id];
  1405. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1406. if (test_bit(j, &copp)) {
  1407. copp_idx = j;
  1408. break;
  1409. }
  1410. }
  1411. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1412. __func__,
  1413. fe_id, be_id, msm_bedais[be_id].channel,
  1414. copp_idx);
  1415. ret = adm_programable_channel_mixer(
  1416. msm_bedais[be_id].port_id,
  1417. copp_idx, dspst_id, sess_type,
  1418. channel_mixer + fe_id, i);
  1419. }
  1420. }
  1421. return ret;
  1422. }
  1423. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1424. int dspst_id, int stream_type)
  1425. {
  1426. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1427. struct route_payload payload;
  1428. u32 channels, sample_rate;
  1429. uint16_t bits_per_sample = 16;
  1430. uint32_t passthr_mode = LEGACY_PCM;
  1431. int ret = 0;
  1432. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1433. /* bad ID assigned in machine driver */
  1434. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1435. return -EINVAL;
  1436. }
  1437. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1438. session_type = SESSION_TYPE_RX;
  1439. path_type = ADM_PATH_PLAYBACK;
  1440. port_type = MSM_AFE_PORT_TYPE_RX;
  1441. } else {
  1442. session_type = SESSION_TYPE_TX;
  1443. path_type = ADM_PATH_LIVE_REC;
  1444. port_type = MSM_AFE_PORT_TYPE_TX;
  1445. }
  1446. mutex_lock(&routing_lock);
  1447. payload.num_copps = 0; /* only RX needs to use payload */
  1448. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1449. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1450. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1451. /* re-enable EQ if active */
  1452. msm_qti_pp_send_eq_values(fedai_id);
  1453. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1454. if (!is_be_dai_extproc(i) &&
  1455. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1456. (msm_bedais[i].active) &&
  1457. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1458. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1459. int port_id = get_port_id(msm_bedais[i].port_id);
  1460. /*
  1461. * check if ADM needs to be configured with different
  1462. * channel mapping than backend
  1463. */
  1464. if (!msm_bedais[i].adm_override_ch)
  1465. channels = msm_bedais[i].channel;
  1466. else
  1467. channels = msm_bedais[i].adm_override_ch;
  1468. bits_per_sample = msm_routing_get_bit_width(
  1469. msm_bedais[i].format);
  1470. app_type =
  1471. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1472. if (app_type) {
  1473. app_type_idx =
  1474. msm_pcm_routing_get_app_type_idx(app_type);
  1475. sample_rate =
  1476. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1477. .sample_rate;
  1478. bits_per_sample =
  1479. app_type_cfg[app_type_idx].bit_width;
  1480. } else
  1481. sample_rate = msm_bedais[i].sample_rate;
  1482. acdb_dev_id =
  1483. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1484. .acdb_dev_id;
  1485. topology = msm_routing_get_adm_topology(fedai_id,
  1486. session_type,
  1487. i);
  1488. copp_idx = adm_open(port_id, path_type,
  1489. sample_rate, channels, topology,
  1490. perf_mode, bits_per_sample,
  1491. app_type, acdb_dev_id,
  1492. session_type);
  1493. if ((copp_idx < 0) ||
  1494. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1495. pr_err("%s: adm open failed copp_idx:%d\n",
  1496. __func__, copp_idx);
  1497. mutex_unlock(&routing_lock);
  1498. return -EINVAL;
  1499. }
  1500. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1501. __func__, fedai_id, session_type, i);
  1502. set_bit(copp_idx,
  1503. &session_copp_map[fedai_id][session_type][i]);
  1504. if (msm_is_resample_needed(
  1505. sample_rate,
  1506. msm_bedais[i].sample_rate))
  1507. adm_copp_mfc_cfg(port_id, copp_idx,
  1508. msm_bedais[i].sample_rate);
  1509. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1510. unsigned long copp =
  1511. session_copp_map[fedai_id][session_type][i];
  1512. if (test_bit(j, &copp)) {
  1513. payload.port_id[num_copps] = port_id;
  1514. payload.copp_idx[num_copps] = j;
  1515. payload.app_type[num_copps] =
  1516. fe_dai_app_type_cfg
  1517. [fedai_id][session_type]
  1518. [i].app_type;
  1519. payload.acdb_dev_id[num_copps] =
  1520. fe_dai_app_type_cfg
  1521. [fedai_id][session_type]
  1522. [i].acdb_dev_id;
  1523. payload.sample_rate[num_copps] =
  1524. fe_dai_app_type_cfg
  1525. [fedai_id][session_type]
  1526. [i].sample_rate;
  1527. num_copps++;
  1528. }
  1529. }
  1530. if (perf_mode == LEGACY_PCM_MODE)
  1531. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1532. topology, channels);
  1533. }
  1534. }
  1535. if (num_copps) {
  1536. payload.num_copps = num_copps;
  1537. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1538. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1539. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1540. }
  1541. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1542. dspst_id, stream_type);
  1543. mutex_unlock(&routing_lock);
  1544. return ret;
  1545. }
  1546. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1547. int dspst_id, int stream_type,
  1548. struct msm_pcm_routing_evt event_info)
  1549. {
  1550. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1551. stream_type)) {
  1552. pr_err("%s: failed to reg phy stream\n", __func__);
  1553. return -EINVAL;
  1554. }
  1555. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1556. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1557. else
  1558. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1559. return 0;
  1560. }
  1561. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1562. {
  1563. int i, port_type, session_type, path_type, topology, port_id;
  1564. struct msm_pcm_routing_fdai_data *fdai;
  1565. if (!is_mm_lsm_fe_id(fedai_id)) {
  1566. /* bad ID assigned in machine driver */
  1567. pr_err("%s: bad MM ID\n", __func__);
  1568. return;
  1569. }
  1570. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1571. port_type = MSM_AFE_PORT_TYPE_RX;
  1572. session_type = SESSION_TYPE_RX;
  1573. path_type = ADM_PATH_PLAYBACK;
  1574. } else {
  1575. port_type = MSM_AFE_PORT_TYPE_TX;
  1576. session_type = SESSION_TYPE_TX;
  1577. path_type = ADM_PATH_LIVE_REC;
  1578. }
  1579. mutex_lock(&routing_lock);
  1580. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1581. if (!is_be_dai_extproc(i) &&
  1582. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1583. (msm_bedais[i].active) &&
  1584. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1585. int idx;
  1586. unsigned long copp =
  1587. session_copp_map[fedai_id][session_type][i];
  1588. fdai = &fe_dai_map[fedai_id][session_type];
  1589. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1590. if (test_bit(idx, &copp))
  1591. break;
  1592. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1593. pr_debug("%s: copp idx is invalid, exiting\n",
  1594. __func__);
  1595. continue;
  1596. }
  1597. port_id = get_port_id(msm_bedais[i].port_id);
  1598. topology = adm_get_topology_for_port_copp_idx(
  1599. port_id, idx);
  1600. msm_routing_unload_topology(topology);
  1601. adm_close(port_id, fdai->perf_mode, idx);
  1602. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1603. __func__, copp, fedai_id, session_type, i);
  1604. clear_bit(idx,
  1605. &session_copp_map[fedai_id][session_type][i]);
  1606. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1607. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1608. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1609. (fdai->passthr_mode == LEGACY_PCM))
  1610. msm_pcm_routing_deinit_pp(port_id, topology);
  1611. }
  1612. }
  1613. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1614. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1615. mutex_unlock(&routing_lock);
  1616. }
  1617. /* Check if FE/BE route is set */
  1618. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1619. {
  1620. bool rc = false;
  1621. if (!is_mm_lsm_fe_id(fe_id)) {
  1622. /* recheck FE ID in the mixer control defined in this file */
  1623. pr_err("%s: bad MM ID\n", __func__);
  1624. return rc;
  1625. }
  1626. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1627. rc = true;
  1628. return rc;
  1629. }
  1630. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1631. {
  1632. int session_type, path_type, topology;
  1633. u32 channels, sample_rate;
  1634. uint16_t bits_per_sample = 16;
  1635. struct msm_pcm_routing_fdai_data *fdai;
  1636. uint32_t passthr_mode;
  1637. bool is_lsm;
  1638. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1639. if (!is_mm_lsm_fe_id(val)) {
  1640. /* recheck FE ID in the mixer control defined in this file */
  1641. pr_err("%s: bad MM ID\n", __func__);
  1642. return;
  1643. }
  1644. if (!route_check_fe_id_adm_support(val)) {
  1645. /* ignore adm open if not supported for fe_id */
  1646. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1647. return;
  1648. }
  1649. session_type =
  1650. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1651. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1652. fdai = &fe_dai_map[val][session_type];
  1653. passthr_mode = fdai->passthr_mode;
  1654. if (session_type == SESSION_TYPE_RX) {
  1655. if (passthr_mode != LEGACY_PCM)
  1656. path_type = ADM_PATH_COMPRESSED_RX;
  1657. else
  1658. path_type = ADM_PATH_PLAYBACK;
  1659. } else {
  1660. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1661. path_type = ADM_PATH_COMPRESSED_TX;
  1662. else
  1663. path_type = ADM_PATH_LIVE_REC;
  1664. }
  1665. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1666. (val <= MSM_FRONTEND_DAI_LSM8);
  1667. mutex_lock(&routing_lock);
  1668. if (set) {
  1669. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1670. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1671. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1672. voc_start_playback(set, msm_bedais[reg].port_id);
  1673. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1674. if (msm_bedais[reg].active && fdai->strm_id !=
  1675. INVALID_SESSION) {
  1676. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1677. int port_id = get_port_id(msm_bedais[reg].port_id);
  1678. /*
  1679. * check if ADM needs to be configured with different
  1680. * channel mapping than backend
  1681. */
  1682. if (!msm_bedais[reg].adm_override_ch)
  1683. channels = msm_bedais[reg].channel;
  1684. else
  1685. channels = msm_bedais[reg].adm_override_ch;
  1686. if (session_type == SESSION_TYPE_TX &&
  1687. fdai->be_srate &&
  1688. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1689. pr_debug("%s: flush strm %d diff BE rates\n",
  1690. __func__, fdai->strm_id);
  1691. if (fdai->event_info.event_func)
  1692. fdai->event_info.event_func(
  1693. MSM_PCM_RT_EVT_BUF_RECFG,
  1694. fdai->event_info.priv_data);
  1695. fdai->be_srate = 0; /* might not need it */
  1696. }
  1697. bits_per_sample = msm_routing_get_bit_width(
  1698. msm_bedais[reg].format);
  1699. app_type =
  1700. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1701. if (app_type && is_lsm) {
  1702. app_type_idx =
  1703. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1704. sample_rate =
  1705. fe_dai_app_type_cfg[val][session_type][reg]
  1706. .sample_rate;
  1707. bits_per_sample =
  1708. lsm_app_type_cfg[app_type_idx].bit_width;
  1709. } else if (app_type) {
  1710. app_type_idx =
  1711. msm_pcm_routing_get_app_type_idx(app_type);
  1712. sample_rate =
  1713. fe_dai_app_type_cfg[val][session_type][reg]
  1714. .sample_rate;
  1715. bits_per_sample =
  1716. app_type_cfg[app_type_idx].bit_width;
  1717. } else
  1718. sample_rate = msm_bedais[reg].sample_rate;
  1719. topology = msm_routing_get_adm_topology(val,
  1720. session_type,
  1721. reg);
  1722. acdb_dev_id =
  1723. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1724. copp_idx = adm_open(port_id, path_type,
  1725. sample_rate, channels, topology,
  1726. fdai->perf_mode, bits_per_sample,
  1727. app_type, acdb_dev_id,
  1728. session_type);
  1729. if ((copp_idx < 0) ||
  1730. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1731. pr_err("%s: adm open failed\n", __func__);
  1732. mutex_unlock(&routing_lock);
  1733. return;
  1734. }
  1735. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1736. __func__, val, session_type, reg);
  1737. set_bit(copp_idx,
  1738. &session_copp_map[val][session_type][reg]);
  1739. if (msm_is_resample_needed(
  1740. sample_rate,
  1741. msm_bedais[reg].sample_rate))
  1742. adm_copp_mfc_cfg(port_id, copp_idx,
  1743. msm_bedais[reg].sample_rate);
  1744. if (session_type == SESSION_TYPE_RX &&
  1745. fdai->event_info.event_func)
  1746. fdai->event_info.event_func(
  1747. MSM_PCM_RT_EVT_DEVSWITCH,
  1748. fdai->event_info.priv_data);
  1749. msm_pcm_routing_build_matrix(val, session_type,
  1750. path_type,
  1751. fdai->perf_mode,
  1752. passthr_mode);
  1753. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1754. (passthr_mode == LEGACY_PCM))
  1755. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1756. topology, channels);
  1757. }
  1758. } else {
  1759. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1760. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1761. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1762. voc_start_playback(set, msm_bedais[reg].port_id);
  1763. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1764. if (msm_bedais[reg].active && fdai->strm_id !=
  1765. INVALID_SESSION) {
  1766. int idx;
  1767. int port_id;
  1768. unsigned long copp =
  1769. session_copp_map[val][session_type][reg];
  1770. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1771. if (test_bit(idx, &copp))
  1772. break;
  1773. if (idx >= MAX_COPPS_PER_PORT) {
  1774. pr_debug("%s: copp idx is invalid, exiting\n",
  1775. __func__);
  1776. mutex_unlock(&routing_lock);
  1777. return;
  1778. }
  1779. port_id = get_port_id(msm_bedais[reg].port_id);
  1780. topology = adm_get_topology_for_port_copp_idx(port_id,
  1781. idx);
  1782. msm_routing_unload_topology(topology);
  1783. adm_close(port_id, fdai->perf_mode, idx);
  1784. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1785. __func__, copp, val, session_type, reg,
  1786. topology);
  1787. clear_bit(idx,
  1788. &session_copp_map[val][session_type][reg]);
  1789. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1790. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1791. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1792. (passthr_mode == LEGACY_PCM))
  1793. msm_pcm_routing_deinit_pp(port_id, topology);
  1794. msm_pcm_routing_build_matrix(val, session_type,
  1795. path_type,
  1796. fdai->perf_mode,
  1797. passthr_mode);
  1798. }
  1799. }
  1800. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1801. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1802. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1803. mutex_unlock(&routing_lock);
  1804. }
  1805. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1806. struct snd_ctl_elem_value *ucontrol)
  1807. {
  1808. struct soc_mixer_control *mc =
  1809. (struct soc_mixer_control *)kcontrol->private_value;
  1810. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1811. ucontrol->value.integer.value[0] = 1;
  1812. else
  1813. ucontrol->value.integer.value[0] = 0;
  1814. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1815. ucontrol->value.integer.value[0]);
  1816. return 0;
  1817. }
  1818. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1819. struct snd_ctl_elem_value *ucontrol)
  1820. {
  1821. struct snd_soc_dapm_widget *widget =
  1822. snd_soc_dapm_kcontrol_widget(kcontrol);
  1823. struct soc_mixer_control *mc =
  1824. (struct soc_mixer_control *)kcontrol->private_value;
  1825. struct snd_soc_dapm_update *update = NULL;
  1826. if (ucontrol->value.integer.value[0] &&
  1827. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  1828. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1829. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1830. update);
  1831. } else if (!ucontrol->value.integer.value[0] &&
  1832. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  1833. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1834. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1835. update);
  1836. }
  1837. return 1;
  1838. }
  1839. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1840. struct snd_ctl_elem_value *ucontrol)
  1841. {
  1842. struct soc_mixer_control *mc =
  1843. (struct soc_mixer_control *)kcontrol->private_value;
  1844. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1845. ucontrol->value.integer.value[0] = 1;
  1846. else
  1847. ucontrol->value.integer.value[0] = 0;
  1848. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1849. ucontrol->value.integer.value[0]);
  1850. return 0;
  1851. }
  1852. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1853. struct snd_ctl_elem_value *ucontrol)
  1854. {
  1855. struct snd_soc_dapm_widget *widget =
  1856. snd_soc_dapm_kcontrol_widget(kcontrol);
  1857. struct soc_mixer_control *mc =
  1858. (struct soc_mixer_control *)kcontrol->private_value;
  1859. struct snd_soc_dapm_update *update = NULL;
  1860. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1861. ucontrol->value.integer.value[0]);
  1862. if (ucontrol->value.integer.value[0]) {
  1863. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  1864. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1865. snd_soc_dapm_mixer_update_power(widget->dapm,
  1866. kcontrol, 1, update);
  1867. } else if (!ucontrol->value.integer.value[0]) {
  1868. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  1869. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1870. snd_soc_dapm_mixer_update_power(widget->dapm,
  1871. kcontrol, 0, update);
  1872. }
  1873. return 1;
  1874. }
  1875. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1876. {
  1877. u32 session_id = 0;
  1878. u16 path_type;
  1879. struct media_format_info voc_be_media_format;
  1880. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1881. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1882. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1883. __func__, val, session_id);
  1884. mutex_lock(&routing_lock);
  1885. if (set)
  1886. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1887. else
  1888. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1889. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1890. afe_get_port_type(msm_bedais[reg].port_id) ==
  1891. MSM_AFE_PORT_TYPE_RX) {
  1892. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1893. __func__, set, msm_bedais[reg].port_id);
  1894. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1895. }
  1896. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1897. MSM_AFE_PORT_TYPE_RX)
  1898. path_type = RX_PATH;
  1899. else
  1900. path_type = TX_PATH;
  1901. if (set) {
  1902. if (msm_bedais[reg].active) {
  1903. voc_set_route_flag(session_id, path_type, 1);
  1904. memset(&voc_be_media_format, 0,
  1905. sizeof(struct media_format_info));
  1906. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1907. voc_be_media_format.num_channels =
  1908. msm_bedais[reg].channel;
  1909. voc_be_media_format.sample_rate =
  1910. msm_bedais[reg].sample_rate;
  1911. voc_be_media_format.bits_per_sample =
  1912. msm_bedais[reg].format;
  1913. /* Defaulting this to 1 for voice call usecases */
  1914. voc_be_media_format.channel_mapping[0] = 1;
  1915. voc_set_device_config(session_id, path_type,
  1916. &voc_be_media_format);
  1917. if (voc_get_route_flag(session_id, TX_PATH) &&
  1918. voc_get_route_flag(session_id, RX_PATH))
  1919. voc_enable_device(session_id);
  1920. } else {
  1921. pr_debug("%s BE is not active\n", __func__);
  1922. }
  1923. } else {
  1924. voc_set_route_flag(session_id, path_type, 0);
  1925. voc_disable_device(session_id);
  1926. }
  1927. mutex_unlock(&routing_lock);
  1928. }
  1929. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1930. struct snd_ctl_elem_value *ucontrol)
  1931. {
  1932. struct soc_mixer_control *mc =
  1933. (struct soc_mixer_control *)kcontrol->private_value;
  1934. mutex_lock(&routing_lock);
  1935. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1936. ucontrol->value.integer.value[0] = 1;
  1937. else
  1938. ucontrol->value.integer.value[0] = 0;
  1939. mutex_unlock(&routing_lock);
  1940. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1941. ucontrol->value.integer.value[0]);
  1942. return 0;
  1943. }
  1944. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1945. struct snd_ctl_elem_value *ucontrol)
  1946. {
  1947. struct snd_soc_dapm_widget *widget =
  1948. snd_soc_dapm_kcontrol_widget(kcontrol);
  1949. struct soc_mixer_control *mc =
  1950. (struct soc_mixer_control *)kcontrol->private_value;
  1951. struct snd_soc_dapm_update *update = NULL;
  1952. if (ucontrol->value.integer.value[0]) {
  1953. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  1954. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1955. update);
  1956. } else {
  1957. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  1958. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1959. update);
  1960. }
  1961. return 1;
  1962. }
  1963. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1964. struct snd_ctl_elem_value *ucontrol)
  1965. {
  1966. struct soc_mixer_control *mc =
  1967. (struct soc_mixer_control *)kcontrol->private_value;
  1968. mutex_lock(&routing_lock);
  1969. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1970. ucontrol->value.integer.value[0] = 1;
  1971. else
  1972. ucontrol->value.integer.value[0] = 0;
  1973. mutex_unlock(&routing_lock);
  1974. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1975. ucontrol->value.integer.value[0]);
  1976. return 0;
  1977. }
  1978. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1979. struct snd_ctl_elem_value *ucontrol)
  1980. {
  1981. struct snd_soc_dapm_widget *widget =
  1982. snd_soc_dapm_kcontrol_widget(kcontrol);
  1983. struct soc_mixer_control *mc =
  1984. (struct soc_mixer_control *)kcontrol->private_value;
  1985. struct snd_soc_dapm_update *update = NULL;
  1986. if (ucontrol->value.integer.value[0]) {
  1987. mutex_lock(&routing_lock);
  1988. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1989. mutex_unlock(&routing_lock);
  1990. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1991. update);
  1992. } else {
  1993. mutex_lock(&routing_lock);
  1994. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1995. mutex_unlock(&routing_lock);
  1996. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1997. update);
  1998. }
  1999. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2000. ucontrol->value.integer.value[0]);
  2001. return 1;
  2002. }
  2003. /*
  2004. * Return the mapping between port ID and backend ID to enable the AFE callback
  2005. * to determine the acdb_dev_id from the port id
  2006. */
  2007. int msm_pcm_get_be_id_from_port_id(int port_id)
  2008. {
  2009. int i;
  2010. int be_id = -EINVAL;
  2011. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2012. if (msm_bedais[i].port_id == port_id) {
  2013. be_id = i;
  2014. break;
  2015. }
  2016. }
  2017. return be_id;
  2018. }
  2019. /*
  2020. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2021. * correct AFE calibration information by comparing the header information.
  2022. */
  2023. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2024. {
  2025. int acdb_id = -EINVAL;
  2026. int i = 0;
  2027. int session;
  2028. int port_type = afe_get_port_type(port_id);
  2029. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2030. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2031. __func__, port_id, be_id, port_type);
  2032. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2033. session = SESSION_TYPE_TX;
  2034. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2035. session = SESSION_TYPE_RX;
  2036. } else {
  2037. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2038. acdb_id = -EINVAL;
  2039. goto exit;
  2040. }
  2041. if (be_id < 0) {
  2042. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2043. goto exit;
  2044. }
  2045. mutex_lock(&routing_lock);
  2046. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2047. MSM_FRONTEND_DAI_MAX);
  2048. if (i < MSM_FRONTEND_DAI_MAX)
  2049. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2050. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2051. __func__, i, session, be_id, acdb_id);
  2052. mutex_unlock(&routing_lock);
  2053. exit:
  2054. return acdb_id;
  2055. }
  2056. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2057. struct snd_ctl_elem_value *ucontrol)
  2058. {
  2059. ucontrol->value.integer.value[0] = fm_switch_enable;
  2060. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2061. ucontrol->value.integer.value[0]);
  2062. return 0;
  2063. }
  2064. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2065. struct snd_ctl_elem_value *ucontrol)
  2066. {
  2067. struct snd_soc_dapm_widget *widget =
  2068. snd_soc_dapm_kcontrol_widget(kcontrol);
  2069. struct snd_soc_dapm_update *update = NULL;
  2070. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2071. ucontrol->value.integer.value[0]);
  2072. if (ucontrol->value.integer.value[0])
  2073. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2074. update);
  2075. else
  2076. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2077. update);
  2078. fm_switch_enable = ucontrol->value.integer.value[0];
  2079. return 1;
  2080. }
  2081. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2082. struct snd_ctl_elem_value *ucontrol)
  2083. {
  2084. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2085. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2086. ucontrol->value.integer.value[0]);
  2087. return 0;
  2088. }
  2089. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2090. struct snd_ctl_elem_value *ucontrol)
  2091. {
  2092. struct snd_soc_dapm_widget *widget =
  2093. snd_soc_dapm_kcontrol_widget(kcontrol);
  2094. struct snd_soc_dapm_update *update = NULL;
  2095. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2096. ucontrol->value.integer.value[0]);
  2097. if (ucontrol->value.integer.value[0])
  2098. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2099. 1, update);
  2100. else
  2101. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2102. 0, update);
  2103. hfp_switch_enable = ucontrol->value.integer.value[0];
  2104. return 1;
  2105. }
  2106. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2107. struct snd_ctl_elem_value *ucontrol)
  2108. {
  2109. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2110. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2111. ucontrol->value.integer.value[0]);
  2112. return 0;
  2113. }
  2114. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2115. struct snd_ctl_elem_value *ucontrol)
  2116. {
  2117. struct snd_soc_dapm_widget *widget =
  2118. snd_soc_dapm_kcontrol_widget(kcontrol);
  2119. struct snd_soc_dapm_update *update = NULL;
  2120. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2121. ucontrol->value.integer.value[0]);
  2122. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2123. if (a2dp_switch_enable)
  2124. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2125. 1, update);
  2126. else
  2127. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2128. 0, update);
  2129. return 1;
  2130. }
  2131. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2132. struct snd_ctl_elem_value *ucontrol)
  2133. {
  2134. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2135. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2136. ucontrol->value.integer.value[0]);
  2137. return 0;
  2138. }
  2139. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2140. struct snd_ctl_elem_value *ucontrol)
  2141. {
  2142. struct snd_soc_dapm_widget *widget =
  2143. snd_soc_dapm_kcontrol_widget(kcontrol);
  2144. struct snd_soc_dapm_update *update = NULL;
  2145. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2146. ucontrol->value.integer.value[0]);
  2147. if (ucontrol->value.integer.value[0])
  2148. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2149. update);
  2150. else
  2151. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2152. update);
  2153. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2154. return 1;
  2155. }
  2156. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2157. struct snd_ctl_elem_value *ucontrol)
  2158. {
  2159. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2160. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2161. ucontrol->value.integer.value[0]);
  2162. return 0;
  2163. }
  2164. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2165. struct snd_ctl_elem_value *ucontrol)
  2166. {
  2167. struct snd_soc_dapm_widget *widget =
  2168. snd_soc_dapm_kcontrol_widget(kcontrol);
  2169. struct snd_soc_dapm_update *update = NULL;
  2170. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2171. ucontrol->value.integer.value[0]);
  2172. if (ucontrol->value.integer.value[0])
  2173. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2174. update);
  2175. else
  2176. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2177. update);
  2178. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2179. return 1;
  2180. }
  2181. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2182. struct snd_ctl_elem_value *ucontrol)
  2183. {
  2184. ucontrol->value.integer.value[0] = usb_switch_enable;
  2185. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2186. ucontrol->value.integer.value[0]);
  2187. return 0;
  2188. }
  2189. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2190. struct snd_ctl_elem_value *ucontrol)
  2191. {
  2192. struct snd_soc_dapm_widget *widget =
  2193. snd_soc_dapm_kcontrol_widget(kcontrol);
  2194. struct snd_soc_dapm_update *update = NULL;
  2195. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2196. ucontrol->value.integer.value[0]);
  2197. if (ucontrol->value.integer.value[0])
  2198. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2199. 1, update);
  2200. else
  2201. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2202. 0, update);
  2203. usb_switch_enable = ucontrol->value.integer.value[0];
  2204. return 1;
  2205. }
  2206. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2207. struct snd_ctl_elem_value *ucontrol)
  2208. {
  2209. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2210. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2211. ucontrol->value.integer.value[0]);
  2212. return 0;
  2213. }
  2214. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2215. struct snd_ctl_elem_value *ucontrol)
  2216. {
  2217. struct snd_soc_dapm_widget *widget =
  2218. snd_soc_dapm_kcontrol_widget(kcontrol);
  2219. struct snd_soc_dapm_update *update = NULL;
  2220. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2221. ucontrol->value.integer.value[0]);
  2222. if (ucontrol->value.integer.value[0])
  2223. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2224. update);
  2225. else
  2226. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2227. update);
  2228. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2229. return 1;
  2230. }
  2231. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2232. struct snd_ctl_elem_value *ucontrol)
  2233. {
  2234. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2235. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2236. ucontrol->value.integer.value[0]);
  2237. return 0;
  2238. }
  2239. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2240. struct snd_ctl_elem_value *ucontrol)
  2241. {
  2242. struct snd_soc_dapm_widget *widget =
  2243. snd_soc_dapm_kcontrol_widget(kcontrol);
  2244. struct snd_soc_dapm_update *update = NULL;
  2245. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2246. ucontrol->value.integer.value[0]);
  2247. if (ucontrol->value.integer.value[0])
  2248. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2249. update);
  2250. else
  2251. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2252. update);
  2253. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2254. return 1;
  2255. }
  2256. static int msm_routing_get_tert_mi2s_switch_mixer(
  2257. struct snd_kcontrol *kcontrol,
  2258. struct snd_ctl_elem_value *ucontrol)
  2259. {
  2260. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2261. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2262. ucontrol->value.integer.value[0]);
  2263. return 0;
  2264. }
  2265. static int msm_routing_put_tert_mi2s_switch_mixer(
  2266. struct snd_kcontrol *kcontrol,
  2267. struct snd_ctl_elem_value *ucontrol)
  2268. {
  2269. struct snd_soc_dapm_widget *widget =
  2270. snd_soc_dapm_kcontrol_widget(kcontrol);
  2271. struct snd_soc_dapm_update *update = NULL;
  2272. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2273. ucontrol->value.integer.value[0]);
  2274. if (ucontrol->value.integer.value[0])
  2275. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2276. update);
  2277. else
  2278. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2279. update);
  2280. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2281. return 1;
  2282. }
  2283. static int msm_routing_get_quat_mi2s_switch_mixer(
  2284. struct snd_kcontrol *kcontrol,
  2285. struct snd_ctl_elem_value *ucontrol)
  2286. {
  2287. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2288. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2289. ucontrol->value.integer.value[0]);
  2290. return 0;
  2291. }
  2292. static int msm_routing_put_quat_mi2s_switch_mixer(
  2293. struct snd_kcontrol *kcontrol,
  2294. struct snd_ctl_elem_value *ucontrol)
  2295. {
  2296. struct snd_soc_dapm_widget *widget =
  2297. snd_soc_dapm_kcontrol_widget(kcontrol);
  2298. struct snd_soc_dapm_update *update = NULL;
  2299. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2300. ucontrol->value.integer.value[0]);
  2301. if (ucontrol->value.integer.value[0])
  2302. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2303. update);
  2304. else
  2305. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2306. update);
  2307. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2308. return 1;
  2309. }
  2310. static int msm_routing_get_quin_mi2s_switch_mixer(
  2311. struct snd_kcontrol *kcontrol,
  2312. struct snd_ctl_elem_value *ucontrol)
  2313. {
  2314. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2315. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2316. ucontrol->value.integer.value[0]);
  2317. return 0;
  2318. }
  2319. static int msm_routing_put_quin_mi2s_switch_mixer(
  2320. struct snd_kcontrol *kcontrol,
  2321. struct snd_ctl_elem_value *ucontrol)
  2322. {
  2323. struct snd_soc_dapm_widget *widget =
  2324. snd_soc_dapm_kcontrol_widget(kcontrol);
  2325. struct snd_soc_dapm_update *update = NULL;
  2326. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2327. ucontrol->value.integer.value[0]);
  2328. if (ucontrol->value.integer.value[0])
  2329. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2330. update);
  2331. else
  2332. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2333. update);
  2334. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2335. return 1;
  2336. }
  2337. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2338. struct snd_ctl_elem_value *ucontrol)
  2339. {
  2340. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2341. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2342. ucontrol->value.integer.value[0]);
  2343. return 0;
  2344. }
  2345. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2346. struct snd_ctl_elem_value *ucontrol)
  2347. {
  2348. struct snd_soc_dapm_widget *widget =
  2349. snd_soc_dapm_kcontrol_widget(kcontrol);
  2350. struct snd_soc_dapm_update *update = NULL;
  2351. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2352. ucontrol->value.integer.value[0]);
  2353. if (ucontrol->value.integer.value[0])
  2354. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2355. update);
  2356. else
  2357. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2358. update);
  2359. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2360. return 1;
  2361. }
  2362. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2363. struct snd_ctl_elem_value *ucontrol)
  2364. {
  2365. ucontrol->value.integer.value[0] = lsm_port_index;
  2366. return 0;
  2367. }
  2368. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2369. struct snd_ctl_elem_value *ucontrol)
  2370. {
  2371. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2372. int mux = ucontrol->value.enumerated.item[0];
  2373. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2374. if (mux >= e->items) {
  2375. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2376. return -EINVAL;
  2377. }
  2378. pr_debug("%s: LSM enable %ld\n", __func__,
  2379. ucontrol->value.integer.value[0]);
  2380. switch (ucontrol->value.integer.value[0]) {
  2381. case 1:
  2382. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2383. break;
  2384. case 2:
  2385. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2386. break;
  2387. case 3:
  2388. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2389. break;
  2390. case 4:
  2391. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2392. break;
  2393. case 5:
  2394. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2395. break;
  2396. case 6:
  2397. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2398. break;
  2399. case 7:
  2400. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2401. break;
  2402. case 8:
  2403. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2404. break;
  2405. case 9:
  2406. lsm_port = ADM_LSM_PORT_ID;
  2407. break;
  2408. case 10:
  2409. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2410. break;
  2411. case 11:
  2412. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2413. break;
  2414. case 12:
  2415. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2416. break;
  2417. case 13:
  2418. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2419. break;
  2420. case 14:
  2421. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2422. break;
  2423. default:
  2424. pr_err("Default lsm port");
  2425. break;
  2426. }
  2427. set_lsm_port(lsm_port);
  2428. lsm_port_index = ucontrol->value.integer.value[0];
  2429. return 0;
  2430. }
  2431. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2432. struct snd_ctl_elem_value *ucontrol)
  2433. {
  2434. int i;
  2435. u16 port_id;
  2436. enum afe_mad_type mad_type;
  2437. pr_debug("%s: enter\n", __func__);
  2438. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2439. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2440. strlen(lsm_port_text[i])))
  2441. break;
  2442. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2443. pr_warn("%s: Invalid id name %s\n", __func__,
  2444. kcontrol->id.name);
  2445. return -EINVAL;
  2446. }
  2447. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2448. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2449. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2450. strlen(lsm_port_text[7])))
  2451. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2452. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2453. strlen(lsm_port_text[8])))
  2454. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2455. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2456. strlen(lsm_port_text[10])))
  2457. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2458. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2459. strlen(lsm_port_text[13])))
  2460. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2461. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2462. strlen(lsm_port_text[14])))
  2463. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2464. mad_type = afe_port_get_mad_type(port_id);
  2465. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2466. mad_type);
  2467. switch (mad_type) {
  2468. case MAD_HW_NONE:
  2469. ucontrol->value.integer.value[0] = MADNONE;
  2470. break;
  2471. case MAD_HW_AUDIO:
  2472. ucontrol->value.integer.value[0] = MADAUDIO;
  2473. break;
  2474. case MAD_HW_BEACON:
  2475. ucontrol->value.integer.value[0] = MADBEACON;
  2476. break;
  2477. case MAD_HW_ULTRASOUND:
  2478. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2479. break;
  2480. case MAD_SW_AUDIO:
  2481. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2482. break;
  2483. default:
  2484. pr_warn("%s: Unknown\n", __func__);
  2485. return -EINVAL;
  2486. }
  2487. return 0;
  2488. }
  2489. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2490. struct snd_ctl_elem_value *ucontrol)
  2491. {
  2492. int i;
  2493. u16 port_id;
  2494. enum afe_mad_type mad_type;
  2495. pr_debug("%s: enter\n", __func__);
  2496. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2497. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2498. strlen(lsm_port_text[i])))
  2499. break;
  2500. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2501. pr_warn("%s: Invalid id name %s\n", __func__,
  2502. kcontrol->id.name);
  2503. return -EINVAL;
  2504. }
  2505. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2506. switch (ucontrol->value.integer.value[0]) {
  2507. case MADNONE:
  2508. mad_type = MAD_HW_NONE;
  2509. break;
  2510. case MADAUDIO:
  2511. mad_type = MAD_HW_AUDIO;
  2512. break;
  2513. case MADBEACON:
  2514. mad_type = MAD_HW_BEACON;
  2515. break;
  2516. case MADULTRASOUND:
  2517. mad_type = MAD_HW_ULTRASOUND;
  2518. break;
  2519. case MADSWAUDIO:
  2520. mad_type = MAD_SW_AUDIO;
  2521. break;
  2522. default:
  2523. pr_warn("%s: Unknown\n", __func__);
  2524. return -EINVAL;
  2525. }
  2526. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2527. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2528. strlen(lsm_port_text[7])))
  2529. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2530. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2531. strlen(lsm_port_text[8])))
  2532. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2533. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2534. strlen(lsm_port_text[10])))
  2535. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2536. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2537. strlen(lsm_port_text[13])))
  2538. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2539. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2540. strlen(lsm_port_text[14])))
  2541. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2542. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2543. mad_type);
  2544. return afe_port_set_mad_type(port_id, mad_type);
  2545. }
  2546. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2547. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2548. adm_override_chs_text);
  2549. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2550. {
  2551. int backend_id;
  2552. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2553. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2554. } else {
  2555. pr_err("%s: unsupported backend id: %s",
  2556. __func__, kcontrol->id.name);
  2557. return -EINVAL;
  2558. }
  2559. return backend_id;
  2560. }
  2561. static int msm_routing_adm_channel_config_get(
  2562. struct snd_kcontrol *kcontrol,
  2563. struct snd_ctl_elem_value *ucontrol)
  2564. {
  2565. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2566. if (backend_id >= 0) {
  2567. mutex_lock(&routing_lock);
  2568. ucontrol->value.integer.value[0] =
  2569. msm_bedais[backend_id].adm_override_ch;
  2570. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2571. ucontrol->value.integer.value[0], backend_id);
  2572. mutex_unlock(&routing_lock);
  2573. }
  2574. return 0;
  2575. }
  2576. static int msm_routing_adm_channel_config_put(
  2577. struct snd_kcontrol *kcontrol,
  2578. struct snd_ctl_elem_value *ucontrol)
  2579. {
  2580. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2581. if (backend_id >= 0) {
  2582. mutex_lock(&routing_lock);
  2583. msm_bedais[backend_id].adm_override_ch =
  2584. ucontrol->value.integer.value[0];
  2585. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2586. __func__, backend_id,
  2587. msm_bedais[backend_id].adm_override_ch);
  2588. mutex_unlock(&routing_lock);
  2589. }
  2590. return 0;
  2591. }
  2592. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2593. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2594. msm_routing_adm_channel_config_get,
  2595. msm_routing_adm_channel_config_put),
  2596. };
  2597. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2598. struct snd_ctl_elem_value *ucontrol)
  2599. {
  2600. mutex_lock(&routing_lock);
  2601. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2602. mutex_unlock(&routing_lock);
  2603. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2604. ucontrol->value.integer.value[0]);
  2605. return 0;
  2606. };
  2607. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2608. struct snd_ctl_elem_value *ucontrol)
  2609. {
  2610. struct aanc_data aanc_info;
  2611. mutex_lock(&routing_lock);
  2612. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2613. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2614. ucontrol->value.integer.value[0]);
  2615. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2616. if (ucontrol->value.integer.value[0] == 0) {
  2617. aanc_info.aanc_active = false;
  2618. aanc_info.aanc_tx_port = 0;
  2619. aanc_info.aanc_rx_port = 0;
  2620. } else {
  2621. aanc_info.aanc_active = true;
  2622. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2623. aanc_info.aanc_tx_port =
  2624. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2625. }
  2626. afe_set_aanc_info(&aanc_info);
  2627. mutex_unlock(&routing_lock);
  2628. return 0;
  2629. };
  2630. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2631. struct snd_ctl_elem_value *ucontrol)
  2632. {
  2633. int idx = 0, shift = 0;
  2634. struct soc_mixer_control *mc =
  2635. (struct soc_mixer_control *)kcontrol->private_value;
  2636. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2637. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2638. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2639. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2640. return -EINVAL;
  2641. }
  2642. if (test_bit(shift,
  2643. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2644. ucontrol->value.integer.value[0] = 1;
  2645. else
  2646. ucontrol->value.integer.value[0] = 0;
  2647. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2648. ucontrol->value.integer.value[0]);
  2649. return 0;
  2650. }
  2651. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2652. struct snd_ctl_elem_value *ucontrol)
  2653. {
  2654. int idx = 0, shift = 0;
  2655. struct soc_mixer_control *mc =
  2656. (struct soc_mixer_control *)kcontrol->private_value;
  2657. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2658. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2659. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2660. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2661. return -EINVAL;
  2662. }
  2663. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2664. __func__, mc->shift, mc->rshift,
  2665. ucontrol->value.integer.value[0], idx, shift);
  2666. if (ucontrol->value.integer.value[0]) {
  2667. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2668. msm_bedais[mc->rshift].port_id);
  2669. set_bit(shift,
  2670. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2671. } else {
  2672. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2673. msm_bedais[mc->rshift].port_id);
  2674. clear_bit(shift,
  2675. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2676. }
  2677. return 1;
  2678. }
  2679. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2680. struct snd_ctl_elem_value *ucontrol)
  2681. {
  2682. u16 fe_id = 0;
  2683. fe_id = ((struct soc_mixer_control *)
  2684. kcontrol->private_value)->shift;
  2685. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2686. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2687. return -EINVAL;
  2688. }
  2689. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2690. return 0;
  2691. }
  2692. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2693. struct snd_ctl_elem_value *ucontrol)
  2694. {
  2695. u16 fe_id = 0;
  2696. fe_id = ((struct soc_mixer_control *)
  2697. kcontrol->private_value)->shift;
  2698. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2699. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2700. return -EINVAL;
  2701. }
  2702. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2703. return 1;
  2704. }
  2705. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2706. struct snd_ctl_elem_value *ucontrol)
  2707. {
  2708. u16 fe_id = 0;
  2709. fe_id = ((struct soc_multi_mixer_control *)
  2710. kcontrol->private_value)->shift;
  2711. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2712. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2713. return -EINVAL;
  2714. }
  2715. ucontrol->value.integer.value[0] =
  2716. channel_mixer[fe_id].output_channel;
  2717. return 0;
  2718. }
  2719. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2720. struct snd_ctl_elem_value *ucontrol)
  2721. {
  2722. u16 fe_id = 0;
  2723. fe_id = ((struct soc_multi_mixer_control *)
  2724. kcontrol->private_value)->shift;
  2725. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2726. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2727. return -EINVAL;
  2728. }
  2729. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2730. fe_id,
  2731. (unsigned int)(ucontrol->value.integer.value[0]));
  2732. channel_mixer[fe_id].output_channel =
  2733. (unsigned int)(ucontrol->value.integer.value[0]);
  2734. return 1;
  2735. }
  2736. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2737. /* If new backend is added, need update this array */
  2738. static const char *const be_name[] = {
  2739. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2740. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2741. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2742. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2743. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2744. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2745. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2746. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2747. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2748. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2749. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2750. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2751. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  2752. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2753. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2754. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2755. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2756. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2757. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2758. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2759. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2760. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2761. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2762. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2763. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2764. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2765. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2766. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2767. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2768. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2769. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2770. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2771. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2772. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2773. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX", "DISPLAY_PORT_RX1",
  2774. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2775. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2776. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2777. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2778. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2779. "INT6_MI2S_RX", "INT6_MI2S_TX", "WSA_CDC_DMA_RX_0",
  2780. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1", "WSA_CDC_DMA_TX_1",
  2781. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1",
  2782. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  2783. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  2784. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  2785. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  2786. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  2787. };
  2788. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2789. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2790. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2791. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2792. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2793. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2794. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2795. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2796. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2797. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2798. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2799. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2800. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2801. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2802. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2803. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2804. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2805. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2806. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2807. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2808. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2809. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2810. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2811. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2812. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2813. unsigned int channels,
  2814. unsigned int items, const char *const names[])
  2815. {
  2816. if (uinfo->value.enumerated.item >= items)
  2817. uinfo->value.enumerated.item = items - 1;
  2818. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2819. sizeof(uinfo->value.enumerated.name),
  2820. "ALSA: too long item name '%s'\n",
  2821. names[uinfo->value.enumerated.item]);
  2822. strlcpy(uinfo->value.enumerated.name,
  2823. names[uinfo->value.enumerated.item],
  2824. sizeof(uinfo->value.enumerated.name));
  2825. return 0;
  2826. }
  2827. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2828. struct snd_ctl_elem_info *uinfo)
  2829. {
  2830. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2831. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2832. uinfo->count = 1;
  2833. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2834. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2835. return 0;
  2836. }
  2837. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2838. struct snd_ctl_elem_value *ucontrol)
  2839. {
  2840. u16 fe_id = 0;
  2841. fe_id = ((struct soc_enum *)
  2842. kcontrol->private_value)->shift_l;
  2843. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2844. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2845. return -EINVAL;
  2846. }
  2847. pr_debug("%s: FE %d %s\n", __func__,
  2848. fe_id,
  2849. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2850. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2851. return 0;
  2852. }
  2853. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2854. struct snd_ctl_elem_value *ucontrol)
  2855. {
  2856. u16 fe_id = 0;
  2857. fe_id = ((struct soc_enum *)
  2858. kcontrol->private_value)->shift_l;
  2859. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2860. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2861. return -EINVAL;
  2862. }
  2863. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2864. pr_debug("%s: %s FE %d\n", __func__,
  2865. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2866. fe_id);
  2867. return 0;
  2868. }
  2869. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2870. struct snd_ctl_elem_info *uinfo)
  2871. {
  2872. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2873. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2874. uinfo->count = 1;
  2875. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2876. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2877. return 0;
  2878. }
  2879. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2880. struct snd_ctl_elem_value *ucontrol)
  2881. {
  2882. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2883. u16 fe_id = 0, in_ch = 0;
  2884. fe_id = e->shift_l;
  2885. in_ch = e->shift_r;
  2886. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2887. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2888. return -EINVAL;
  2889. }
  2890. if (in_ch >= ADM_MAX_CHANNELS) {
  2891. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2892. return -EINVAL;
  2893. }
  2894. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2895. return 1;
  2896. }
  2897. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2898. struct snd_ctl_elem_value *ucontrol)
  2899. {
  2900. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2901. u16 fe_id = 0, in_ch = 0;
  2902. fe_id = e->shift_l;
  2903. in_ch = e->shift_r;
  2904. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2905. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2906. return -EINVAL;
  2907. }
  2908. if (in_ch >= ADM_MAX_CHANNELS) {
  2909. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2910. return -EINVAL;
  2911. }
  2912. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2913. return 1;
  2914. }
  2915. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2916. struct snd_ctl_elem_info *uinfo)
  2917. {
  2918. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2919. uinfo->count = ADM_MAX_CHANNELS;
  2920. uinfo->value.integer.min = 0;
  2921. uinfo->value.integer.max = WEIGHT_0_DB;
  2922. return 0;
  2923. }
  2924. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2925. struct snd_ctl_elem_value *ucontrol)
  2926. {
  2927. u16 fe_id = 0, out_ch = 0;
  2928. int i, weight;
  2929. fe_id = ((struct soc_multi_mixer_control *)
  2930. kcontrol->private_value)->shift;
  2931. out_ch = ((struct soc_multi_mixer_control *)
  2932. kcontrol->private_value)->rshift;
  2933. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2934. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2935. return -EINVAL;
  2936. }
  2937. if (out_ch >= ADM_MAX_CHANNELS) {
  2938. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2939. return -EINVAL;
  2940. }
  2941. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2942. __func__, fe_id,
  2943. ucontrol->value.integer.value[0],
  2944. ucontrol->value.integer.value[1],
  2945. ucontrol->value.integer.value[2],
  2946. ucontrol->value.integer.value[3],
  2947. ucontrol->value.integer.value[4],
  2948. ucontrol->value.integer.value[5],
  2949. ucontrol->value.integer.value[6],
  2950. ucontrol->value.integer.value[7]);
  2951. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2952. weight = ucontrol->value.integer.value[i];
  2953. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2954. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2955. __func__, fe_id, out_ch, i,
  2956. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2957. }
  2958. return 0;
  2959. }
  2960. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2961. struct snd_ctl_elem_value *ucontrol)
  2962. {
  2963. u16 fe_id = 0, out_ch = 0;
  2964. int i;
  2965. fe_id = ((struct soc_multi_mixer_control *)
  2966. kcontrol->private_value)->shift;
  2967. out_ch = ((struct soc_multi_mixer_control *)
  2968. kcontrol->private_value)->rshift;
  2969. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2970. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2971. return -EINVAL;
  2972. }
  2973. if (out_ch >= ADM_MAX_CHANNELS) {
  2974. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2975. return -EINVAL;
  2976. }
  2977. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2978. ucontrol->value.integer.value[i] =
  2979. channel_mixer[fe_id].channel_weight[out_ch][i];
  2980. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2981. __func__, fe_id,
  2982. ucontrol->value.integer.value[0],
  2983. ucontrol->value.integer.value[1],
  2984. ucontrol->value.integer.value[2],
  2985. ucontrol->value.integer.value[3],
  2986. ucontrol->value.integer.value[4],
  2987. ucontrol->value.integer.value[5],
  2988. ucontrol->value.integer.value[6],
  2989. ucontrol->value.integer.value[7]);
  2990. return 0;
  2991. }
  2992. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2993. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2994. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2995. msm_pcm_get_channel_rule_index,
  2996. msm_pcm_put_channel_rule_index),
  2997. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2998. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2999. msm_pcm_get_channel_rule_index,
  3000. msm_pcm_put_channel_rule_index),
  3001. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3002. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3003. msm_pcm_get_channel_rule_index,
  3004. msm_pcm_put_channel_rule_index),
  3005. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3006. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3007. msm_pcm_get_channel_rule_index,
  3008. msm_pcm_put_channel_rule_index),
  3009. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3010. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3011. msm_pcm_get_channel_rule_index,
  3012. msm_pcm_put_channel_rule_index),
  3013. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3014. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3015. msm_pcm_get_channel_rule_index,
  3016. msm_pcm_put_channel_rule_index),
  3017. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3018. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3019. msm_pcm_get_out_chs,
  3020. msm_pcm_put_out_chs),
  3021. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3022. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3023. msm_pcm_get_out_chs,
  3024. msm_pcm_put_out_chs),
  3025. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3026. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3027. msm_pcm_get_out_chs,
  3028. msm_pcm_put_out_chs),
  3029. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3030. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3031. msm_pcm_get_out_chs,
  3032. msm_pcm_put_out_chs),
  3033. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3034. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3035. msm_pcm_get_out_chs,
  3036. msm_pcm_put_out_chs),
  3037. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3038. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3039. msm_pcm_get_out_chs,
  3040. msm_pcm_put_out_chs),
  3041. {
  3042. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3043. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3044. .name = "MultiMedia1 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)&(mm1_channel_mux)
  3049. },
  3050. {
  3051. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3052. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3053. .name = "MultiMedia2 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)&(mm2_channel_mux)
  3058. },
  3059. {
  3060. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3061. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3062. .name = "MultiMedia3 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)&(mm3_channel_mux)
  3067. },
  3068. {
  3069. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3070. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3071. .name = "MultiMedia4 Channel Mixer",
  3072. .info = msm_pcm_channel_mixer_info,
  3073. .get = msm_pcm_channel_mixer_get,
  3074. .put = msm_pcm_channel_mixer_put,
  3075. .private_value = (unsigned long)&(mm4_channel_mux)
  3076. },
  3077. {
  3078. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3079. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3080. .name = "MultiMedia1 Output Channel1",
  3081. .info = msm_pcm_channel_weight_info,
  3082. .get = msm_pcm_channel_weight_get,
  3083. .put = msm_pcm_channel_weight_put,
  3084. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3085. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3086. },
  3087. {
  3088. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3089. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3090. .name = "MultiMedia1 Output Channel2",
  3091. .info = msm_pcm_channel_weight_info,
  3092. .get = msm_pcm_channel_weight_get,
  3093. .put = msm_pcm_channel_weight_put,
  3094. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3095. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3096. },
  3097. {
  3098. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3099. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3100. .name = "MultiMedia1 Output Channel3",
  3101. .info = msm_pcm_channel_weight_info,
  3102. .get = msm_pcm_channel_weight_get,
  3103. .put = msm_pcm_channel_weight_put,
  3104. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3105. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3106. },
  3107. {
  3108. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3109. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3110. .name = "MultiMedia1 Output Channel4",
  3111. .info = msm_pcm_channel_weight_info,
  3112. .get = msm_pcm_channel_weight_get,
  3113. .put = msm_pcm_channel_weight_put,
  3114. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3115. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3116. },
  3117. {
  3118. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3119. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3120. .name = "MultiMedia1 Output Channel5",
  3121. .info = msm_pcm_channel_weight_info,
  3122. .get = msm_pcm_channel_weight_get,
  3123. .put = msm_pcm_channel_weight_put,
  3124. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3125. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3126. },
  3127. {
  3128. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3129. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3130. .name = "MultiMedia1 Output Channel6",
  3131. .info = msm_pcm_channel_weight_info,
  3132. .get = msm_pcm_channel_weight_get,
  3133. .put = msm_pcm_channel_weight_put,
  3134. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3135. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3136. },
  3137. {
  3138. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3139. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3140. .name = "MultiMedia1 Output Channel7",
  3141. .info = msm_pcm_channel_weight_info,
  3142. .get = msm_pcm_channel_weight_get,
  3143. .put = msm_pcm_channel_weight_put,
  3144. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3145. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3146. },
  3147. {
  3148. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3149. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3150. .name = "MultiMedia1 Output Channel8",
  3151. .info = msm_pcm_channel_weight_info,
  3152. .get = msm_pcm_channel_weight_get,
  3153. .put = msm_pcm_channel_weight_put,
  3154. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3155. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3156. },
  3157. {
  3158. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3159. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3160. .name = "MultiMedia2 Output Channel1",
  3161. .info = msm_pcm_channel_weight_info,
  3162. .get = msm_pcm_channel_weight_get,
  3163. .put = msm_pcm_channel_weight_put,
  3164. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3165. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3166. },
  3167. {
  3168. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3169. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3170. .name = "MultiMedia2 Output Channel2",
  3171. .info = msm_pcm_channel_weight_info,
  3172. .get = msm_pcm_channel_weight_get,
  3173. .put = msm_pcm_channel_weight_put,
  3174. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3175. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3176. },
  3177. {
  3178. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3179. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3180. .name = "MultiMedia2 Output Channel3",
  3181. .info = msm_pcm_channel_weight_info,
  3182. .get = msm_pcm_channel_weight_get,
  3183. .put = msm_pcm_channel_weight_put,
  3184. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3185. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3186. },
  3187. {
  3188. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3189. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3190. .name = "MultiMedia3 Output Channel1",
  3191. .info = msm_pcm_channel_weight_info,
  3192. .get = msm_pcm_channel_weight_get,
  3193. .put = msm_pcm_channel_weight_put,
  3194. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3195. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3196. },
  3197. {
  3198. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3199. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3200. .name = "MultiMedia3 Output Channel2",
  3201. .info = msm_pcm_channel_weight_info,
  3202. .get = msm_pcm_channel_weight_get,
  3203. .put = msm_pcm_channel_weight_put,
  3204. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3205. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3206. },
  3207. {
  3208. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3209. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3210. .name = "MultiMedia1 Channel1",
  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_ch1_enum)
  3215. },
  3216. {
  3217. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3218. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3219. .name = "MultiMedia1 Channel2",
  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_ch2_enum)
  3224. },
  3225. {
  3226. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3227. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3228. .name = "MultiMedia1 Channel3",
  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_ch3_enum)
  3233. },
  3234. {
  3235. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3236. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3237. .name = "MultiMedia1 Channel4",
  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_ch4_enum)
  3242. },
  3243. {
  3244. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3245. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3246. .name = "MultiMedia1 Channel5",
  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_ch5_enum)
  3251. },
  3252. {
  3253. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3254. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3255. .name = "MultiMedia1 Channel6",
  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_ch6_enum)
  3260. },
  3261. {
  3262. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3263. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3264. .name = "MultiMedia1 Channel7",
  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_ch7_enum)
  3269. },
  3270. {
  3271. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3272. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3273. .name = "MultiMedia1 Channel8",
  3274. .info = msm_pcm_channel_input_be_info,
  3275. .get = msm_pcm_channel_input_be_get,
  3276. .put = msm_pcm_channel_input_be_put,
  3277. .private_value = (unsigned long)&(mm1_ch8_enum)
  3278. },
  3279. };
  3280. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3281. struct snd_ctl_elem_value *ucontrol)
  3282. {
  3283. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3284. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3285. ucontrol->value.integer.value[0]);
  3286. return 0;
  3287. }
  3288. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3289. struct snd_ctl_elem_value *ucontrol)
  3290. {
  3291. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3292. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3293. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3294. return 0;
  3295. }
  3296. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3297. "Four", "Five", "Six", "Seven", "Eight"};
  3298. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3299. struct snd_ctl_elem_value *ucontrol)
  3300. {
  3301. switch (msm_ec_ref_bit_format) {
  3302. case SNDRV_PCM_FORMAT_S24_LE:
  3303. ucontrol->value.integer.value[0] = 2;
  3304. break;
  3305. case SNDRV_PCM_FORMAT_S16_LE:
  3306. ucontrol->value.integer.value[0] = 1;
  3307. break;
  3308. default:
  3309. ucontrol->value.integer.value[0] = 0;
  3310. break;
  3311. }
  3312. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3313. __func__, ucontrol->value.integer.value[0]);
  3314. return 0;
  3315. }
  3316. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3317. struct snd_ctl_elem_value *ucontrol)
  3318. {
  3319. u16 bit_width = 0;
  3320. switch (ucontrol->value.integer.value[0]) {
  3321. case 2:
  3322. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3323. break;
  3324. case 1:
  3325. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3326. break;
  3327. default:
  3328. msm_ec_ref_bit_format = 0;
  3329. break;
  3330. }
  3331. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3332. bit_width = 16;
  3333. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3334. bit_width = 24;
  3335. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3336. __func__, msm_ec_ref_bit_format);
  3337. adm_ec_ref_rx_bit_width(bit_width);
  3338. return 0;
  3339. }
  3340. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3341. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3342. struct snd_ctl_elem_value *ucontrol)
  3343. {
  3344. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3345. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3346. __func__, ucontrol->value.integer.value[0]);
  3347. return 0;
  3348. }
  3349. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3350. struct snd_ctl_elem_value *ucontrol)
  3351. {
  3352. switch (ucontrol->value.integer.value[0]) {
  3353. case 0:
  3354. msm_ec_ref_sampling_rate = 0;
  3355. break;
  3356. case 1:
  3357. msm_ec_ref_sampling_rate = 8000;
  3358. break;
  3359. case 2:
  3360. msm_ec_ref_sampling_rate = 16000;
  3361. break;
  3362. case 3:
  3363. msm_ec_ref_sampling_rate = 32000;
  3364. break;
  3365. case 4:
  3366. msm_ec_ref_sampling_rate = 44100;
  3367. break;
  3368. case 5:
  3369. msm_ec_ref_sampling_rate = 48000;
  3370. break;
  3371. case 6:
  3372. msm_ec_ref_sampling_rate = 96000;
  3373. break;
  3374. case 7:
  3375. msm_ec_ref_sampling_rate = 192000;
  3376. break;
  3377. case 8:
  3378. msm_ec_ref_sampling_rate = 384000;
  3379. break;
  3380. default:
  3381. msm_ec_ref_sampling_rate = 48000;
  3382. break;
  3383. }
  3384. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3385. __func__, msm_ec_ref_sampling_rate);
  3386. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3387. return 0;
  3388. }
  3389. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3390. "32000", "44100", "48000", "96000", "192000", "384000"};
  3391. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3392. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3393. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3394. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3395. };
  3396. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3397. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3398. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3399. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3400. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3401. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3402. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3403. };
  3404. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3405. struct snd_ctl_elem_value *ucontrol)
  3406. {
  3407. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3408. mutex_lock(&routing_lock);
  3409. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3410. mutex_unlock(&routing_lock);
  3411. return 0;
  3412. }
  3413. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3414. struct snd_ctl_elem_value *ucontrol)
  3415. {
  3416. int ec_ref_port_id;
  3417. struct snd_soc_dapm_widget *widget =
  3418. snd_soc_dapm_kcontrol_widget(kcontrol);
  3419. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3420. struct snd_soc_dapm_update *update = NULL;
  3421. mutex_lock(&routing_lock);
  3422. switch (ucontrol->value.integer.value[0]) {
  3423. case 0:
  3424. msm_route_ec_ref_rx = 0;
  3425. ec_ref_port_id = AFE_PORT_INVALID;
  3426. break;
  3427. case 1:
  3428. msm_route_ec_ref_rx = 1;
  3429. ec_ref_port_id = SLIMBUS_0_RX;
  3430. break;
  3431. case 2:
  3432. msm_route_ec_ref_rx = 2;
  3433. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3434. break;
  3435. case 3:
  3436. msm_route_ec_ref_rx = 3;
  3437. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3438. break;
  3439. case 4:
  3440. msm_route_ec_ref_rx = 4;
  3441. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3442. break;
  3443. case 5:
  3444. msm_route_ec_ref_rx = 5;
  3445. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3446. break;
  3447. case 6:
  3448. msm_route_ec_ref_rx = 6;
  3449. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3450. break;
  3451. case 7:
  3452. msm_route_ec_ref_rx = 7;
  3453. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3454. break;
  3455. case 9:
  3456. msm_route_ec_ref_rx = 9;
  3457. ec_ref_port_id = SLIMBUS_5_RX;
  3458. break;
  3459. case 10:
  3460. msm_route_ec_ref_rx = 10;
  3461. ec_ref_port_id = SLIMBUS_1_TX;
  3462. break;
  3463. case 11:
  3464. msm_route_ec_ref_rx = 11;
  3465. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3466. break;
  3467. case 12:
  3468. msm_route_ec_ref_rx = 12;
  3469. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3470. break;
  3471. case 13:
  3472. msm_route_ec_ref_rx = 13;
  3473. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3474. break;
  3475. case 14:
  3476. msm_route_ec_ref_rx = 14;
  3477. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3478. break;
  3479. case 15:
  3480. msm_route_ec_ref_rx = 15;
  3481. ec_ref_port_id = SLIMBUS_6_RX;
  3482. break;
  3483. case 16:
  3484. msm_route_ec_ref_rx = 16;
  3485. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3486. break;
  3487. case 17:
  3488. msm_route_ec_ref_rx = 17;
  3489. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3490. break;
  3491. case 18:
  3492. msm_route_ec_ref_rx = 18;
  3493. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3494. break;
  3495. case 19:
  3496. msm_route_ec_ref_rx = 19;
  3497. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3498. break;
  3499. case 20:
  3500. msm_route_ec_ref_rx = 20;
  3501. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3502. break;
  3503. case 21:
  3504. msm_route_ec_ref_rx = 21;
  3505. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3506. break;
  3507. case 22:
  3508. msm_route_ec_ref_rx = 22;
  3509. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3510. break;
  3511. case 23:
  3512. msm_route_ec_ref_rx = 23;
  3513. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3514. break;
  3515. case 24:
  3516. msm_route_ec_ref_rx = 24;
  3517. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3518. break;
  3519. case 25:
  3520. msm_route_ec_ref_rx = 25;
  3521. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3522. break;
  3523. case 26:
  3524. msm_route_ec_ref_rx = 26;
  3525. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3526. break;
  3527. case 27:
  3528. msm_route_ec_ref_rx = 27;
  3529. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3530. break;
  3531. case 28:
  3532. msm_route_ec_ref_rx = 28;
  3533. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3534. break;
  3535. case 29:
  3536. msm_route_ec_ref_rx = 29;
  3537. ec_ref_port_id = SLIMBUS_7_RX;
  3538. break;
  3539. case 30:
  3540. msm_route_ec_ref_rx = 30;
  3541. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  3542. break;
  3543. case 31:
  3544. msm_route_ec_ref_rx = 31;
  3545. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  3546. break;
  3547. case 32:
  3548. msm_route_ec_ref_rx = 32;
  3549. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  3550. break;
  3551. case 33:
  3552. msm_route_ec_ref_rx = 33;
  3553. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  3554. break;
  3555. case 34:
  3556. msm_route_ec_ref_rx = 34;
  3557. ec_ref_port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  3558. break;
  3559. case 35:
  3560. msm_route_ec_ref_rx = 35;
  3561. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  3562. break;
  3563. case 36:
  3564. msm_route_ec_ref_rx = 36;
  3565. ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3566. break;
  3567. default:
  3568. msm_route_ec_ref_rx = 0; /* NONE */
  3569. pr_err("%s EC ref rx %ld not valid\n",
  3570. __func__, ucontrol->value.integer.value[0]);
  3571. ec_ref_port_id = AFE_PORT_INVALID;
  3572. break;
  3573. }
  3574. msm_ec_ref_port_id = ec_ref_port_id;
  3575. adm_ec_ref_rx_id(ec_ref_port_id);
  3576. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3577. __func__, msm_route_ec_ref_rx);
  3578. mutex_unlock(&routing_lock);
  3579. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3580. msm_route_ec_ref_rx, e, update);
  3581. return 0;
  3582. }
  3583. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3584. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3585. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3586. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3587. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3588. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3589. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3590. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3591. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  3592. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  3593. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  3594. };
  3595. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3596. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3597. };
  3598. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3599. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3600. msm_route_ec_ref_rx_enum[0],
  3601. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3602. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3603. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3604. msm_route_ec_ref_rx_enum[0],
  3605. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3606. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3607. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3608. msm_route_ec_ref_rx_enum[0],
  3609. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3610. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3611. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3612. msm_route_ec_ref_rx_enum[0],
  3613. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3614. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3615. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3616. msm_route_ec_ref_rx_enum[0],
  3617. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3618. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3619. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3620. msm_route_ec_ref_rx_enum[0],
  3621. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3622. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3623. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3624. msm_route_ec_ref_rx_enum[0],
  3625. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3626. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3627. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3628. msm_route_ec_ref_rx_enum[0],
  3629. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3630. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3631. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3632. msm_route_ec_ref_rx_enum[0],
  3633. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3634. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3635. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3636. msm_route_ec_ref_rx_enum[0],
  3637. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3638. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3639. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3640. msm_route_ec_ref_rx_enum[0],
  3641. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3642. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3643. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3644. msm_route_ec_ref_rx_enum[0],
  3645. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3646. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3647. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3648. msm_route_ec_ref_rx_enum[0],
  3649. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3650. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3651. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3652. msm_route_ec_ref_rx_enum[0],
  3653. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3654. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3655. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3656. msm_route_ec_ref_rx_enum[0],
  3657. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3658. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3659. struct snd_ctl_elem_value *ucontrol)
  3660. {
  3661. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3662. mutex_lock(&routing_lock);
  3663. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3664. mutex_unlock(&routing_lock);
  3665. return 0;
  3666. }
  3667. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3668. struct snd_ctl_elem_value *ucontrol)
  3669. {
  3670. struct snd_soc_dapm_widget *widget =
  3671. snd_soc_dapm_kcontrol_widget(kcontrol);
  3672. int mux = ucontrol->value.enumerated.item[0];
  3673. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3674. int ret = 1;
  3675. bool state = true;
  3676. uint16_t ext_ec_ref_port_id;
  3677. struct snd_soc_dapm_update *update = NULL;
  3678. if (mux >= e->items) {
  3679. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3680. return -EINVAL;
  3681. }
  3682. mutex_lock(&routing_lock);
  3683. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3684. switch (msm_route_ext_ec_ref) {
  3685. case EXT_EC_REF_PRI_MI2S_TX:
  3686. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3687. break;
  3688. case EXT_EC_REF_SEC_MI2S_TX:
  3689. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3690. break;
  3691. case EXT_EC_REF_TERT_MI2S_TX:
  3692. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3693. break;
  3694. case EXT_EC_REF_QUAT_MI2S_TX:
  3695. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3696. break;
  3697. case EXT_EC_REF_QUIN_MI2S_TX:
  3698. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3699. break;
  3700. case EXT_EC_REF_SLIM_1_TX:
  3701. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3702. break;
  3703. case EXT_EC_REF_SEC_TDM_TX:
  3704. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3705. break;
  3706. case EXT_EC_REF_NONE:
  3707. default:
  3708. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3709. state = false;
  3710. break;
  3711. }
  3712. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3713. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3714. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3715. mutex_unlock(&routing_lock);
  3716. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3717. update);
  3718. } else {
  3719. ret = -EINVAL;
  3720. mutex_unlock(&routing_lock);
  3721. }
  3722. return ret;
  3723. }
  3724. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3725. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3726. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3727. "SLIM_1_TX", "SEC_TDM_TX"};
  3728. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3729. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3730. };
  3731. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3732. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3733. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3734. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3735. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3736. MSM_BACKEND_DAI_PRI_I2S_RX,
  3737. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3738. msm_routing_put_audio_mixer),
  3739. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3740. MSM_BACKEND_DAI_PRI_I2S_RX,
  3741. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3742. msm_routing_put_audio_mixer),
  3743. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3744. MSM_BACKEND_DAI_PRI_I2S_RX,
  3745. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3746. msm_routing_put_audio_mixer),
  3747. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3748. MSM_BACKEND_DAI_PRI_I2S_RX,
  3749. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3750. msm_routing_put_audio_mixer),
  3751. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3752. MSM_BACKEND_DAI_PRI_I2S_RX,
  3753. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3754. msm_routing_put_audio_mixer),
  3755. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3756. MSM_BACKEND_DAI_PRI_I2S_RX,
  3757. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3758. msm_routing_put_audio_mixer),
  3759. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3760. MSM_BACKEND_DAI_PRI_I2S_RX,
  3761. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3762. msm_routing_put_audio_mixer),
  3763. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3764. MSM_BACKEND_DAI_PRI_I2S_RX,
  3765. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3766. msm_routing_put_audio_mixer),
  3767. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3768. MSM_BACKEND_DAI_PRI_I2S_RX,
  3769. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3770. msm_routing_put_audio_mixer),
  3771. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3772. MSM_BACKEND_DAI_PRI_I2S_RX,
  3773. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3774. msm_routing_put_audio_mixer),
  3775. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3776. MSM_BACKEND_DAI_PRI_I2S_RX,
  3777. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3778. msm_routing_put_audio_mixer),
  3779. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3780. MSM_BACKEND_DAI_PRI_I2S_RX,
  3781. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3782. msm_routing_put_audio_mixer),
  3783. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3784. MSM_BACKEND_DAI_PRI_I2S_RX,
  3785. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3786. msm_routing_put_audio_mixer),
  3787. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3788. MSM_BACKEND_DAI_PRI_I2S_RX,
  3789. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3790. msm_routing_put_audio_mixer),
  3791. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3792. MSM_BACKEND_DAI_PRI_I2S_RX,
  3793. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3794. msm_routing_put_audio_mixer),
  3795. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3796. MSM_BACKEND_DAI_PRI_I2S_RX,
  3797. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3798. msm_routing_put_audio_mixer),
  3799. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3800. MSM_BACKEND_DAI_PRI_I2S_RX,
  3801. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3802. msm_routing_put_audio_mixer),
  3803. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3804. MSM_BACKEND_DAI_PRI_I2S_RX,
  3805. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3806. msm_routing_put_audio_mixer),
  3807. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3808. MSM_BACKEND_DAI_PRI_I2S_RX,
  3809. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3810. msm_routing_put_audio_mixer),
  3811. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3812. MSM_BACKEND_DAI_PRI_I2S_RX,
  3813. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3814. msm_routing_put_audio_mixer),
  3815. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3816. MSM_BACKEND_DAI_PRI_I2S_RX,
  3817. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3818. msm_routing_put_audio_mixer),
  3819. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3820. MSM_BACKEND_DAI_PRI_I2S_RX,
  3821. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3822. msm_routing_put_audio_mixer),
  3823. };
  3824. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3825. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3826. MSM_BACKEND_DAI_SEC_I2S_RX,
  3827. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3828. msm_routing_put_audio_mixer),
  3829. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3830. MSM_BACKEND_DAI_SEC_I2S_RX,
  3831. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3832. msm_routing_put_audio_mixer),
  3833. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3834. MSM_BACKEND_DAI_SEC_I2S_RX,
  3835. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3836. msm_routing_put_audio_mixer),
  3837. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3838. MSM_BACKEND_DAI_SEC_I2S_RX,
  3839. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3840. msm_routing_put_audio_mixer),
  3841. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3842. MSM_BACKEND_DAI_SEC_I2S_RX,
  3843. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3844. msm_routing_put_audio_mixer),
  3845. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3846. MSM_BACKEND_DAI_SEC_I2S_RX,
  3847. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3848. msm_routing_put_audio_mixer),
  3849. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3850. MSM_BACKEND_DAI_SEC_I2S_RX,
  3851. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3852. msm_routing_put_audio_mixer),
  3853. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3854. MSM_BACKEND_DAI_SEC_I2S_RX,
  3855. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3856. msm_routing_put_audio_mixer),
  3857. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3858. MSM_BACKEND_DAI_SEC_I2S_RX,
  3859. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3860. msm_routing_put_audio_mixer),
  3861. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3862. MSM_BACKEND_DAI_SEC_I2S_RX,
  3863. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3864. msm_routing_put_audio_mixer),
  3865. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3866. MSM_BACKEND_DAI_SEC_I2S_RX,
  3867. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3868. msm_routing_put_audio_mixer),
  3869. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3870. MSM_BACKEND_DAI_SEC_I2S_RX,
  3871. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3872. msm_routing_put_audio_mixer),
  3873. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3874. MSM_BACKEND_DAI_SEC_I2S_RX,
  3875. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3876. msm_routing_put_audio_mixer),
  3877. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3878. MSM_BACKEND_DAI_SEC_I2S_RX,
  3879. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3880. msm_routing_put_audio_mixer),
  3881. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3882. MSM_BACKEND_DAI_SEC_I2S_RX,
  3883. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3884. msm_routing_put_audio_mixer),
  3885. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3886. MSM_BACKEND_DAI_SEC_I2S_RX,
  3887. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3888. msm_routing_put_audio_mixer),
  3889. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3890. MSM_BACKEND_DAI_SEC_I2S_RX,
  3891. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3892. msm_routing_put_audio_mixer),
  3893. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3894. MSM_BACKEND_DAI_SEC_I2S_RX,
  3895. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3896. msm_routing_put_audio_mixer),
  3897. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3898. MSM_BACKEND_DAI_SEC_I2S_RX,
  3899. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3900. msm_routing_put_audio_mixer),
  3901. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3902. MSM_BACKEND_DAI_SEC_I2S_RX,
  3903. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3904. msm_routing_put_audio_mixer),
  3905. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3906. MSM_BACKEND_DAI_SEC_I2S_RX,
  3907. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3908. msm_routing_put_audio_mixer),
  3909. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3910. MSM_BACKEND_DAI_SEC_I2S_RX,
  3911. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3912. msm_routing_put_audio_mixer),
  3913. };
  3914. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  3915. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3916. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3917. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3918. msm_routing_put_audio_mixer),
  3919. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3920. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3921. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3922. msm_routing_put_audio_mixer),
  3923. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3924. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3925. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3926. msm_routing_put_audio_mixer),
  3927. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3928. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3929. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3930. msm_routing_put_audio_mixer),
  3931. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3932. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3933. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3934. msm_routing_put_audio_mixer),
  3935. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3936. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3937. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3938. msm_routing_put_audio_mixer),
  3939. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3940. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3941. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3942. msm_routing_put_audio_mixer),
  3943. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3944. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3945. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3946. msm_routing_put_audio_mixer),
  3947. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3948. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3949. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3950. msm_routing_put_audio_mixer),
  3951. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3952. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3953. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3954. msm_routing_put_audio_mixer),
  3955. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3956. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3957. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3958. msm_routing_put_audio_mixer),
  3959. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3960. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3961. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3962. msm_routing_put_audio_mixer),
  3963. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3964. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3965. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3966. msm_routing_put_audio_mixer),
  3967. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3968. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3969. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3970. msm_routing_put_audio_mixer),
  3971. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3972. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3973. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3974. msm_routing_put_audio_mixer),
  3975. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3976. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3977. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3978. msm_routing_put_audio_mixer),
  3979. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3980. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3981. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3982. msm_routing_put_audio_mixer),
  3983. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3984. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3985. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3986. msm_routing_put_audio_mixer),
  3987. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3988. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3989. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3990. msm_routing_put_audio_mixer),
  3991. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3992. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3993. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3994. msm_routing_put_audio_mixer),
  3995. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3996. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3997. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3998. msm_routing_put_audio_mixer),
  3999. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4000. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4001. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4002. msm_routing_put_audio_mixer),
  4003. };
  4004. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  4005. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4006. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4007. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4008. msm_routing_put_audio_mixer),
  4009. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4010. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4011. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4012. msm_routing_put_audio_mixer),
  4013. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4014. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4015. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4016. msm_routing_put_audio_mixer),
  4017. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4018. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4019. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4020. msm_routing_put_audio_mixer),
  4021. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4022. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4023. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4024. msm_routing_put_audio_mixer),
  4025. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4026. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4027. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4028. msm_routing_put_audio_mixer),
  4029. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4030. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4031. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4032. msm_routing_put_audio_mixer),
  4033. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4034. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4035. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4036. msm_routing_put_audio_mixer),
  4037. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4038. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4039. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4040. msm_routing_put_audio_mixer),
  4041. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4042. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4043. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4044. msm_routing_put_audio_mixer),
  4045. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4046. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4047. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4048. msm_routing_put_audio_mixer),
  4049. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4050. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4051. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4052. msm_routing_put_audio_mixer),
  4053. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4054. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4055. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4056. msm_routing_put_audio_mixer),
  4057. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4058. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4059. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4060. msm_routing_put_audio_mixer),
  4061. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4062. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4063. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4064. msm_routing_put_audio_mixer),
  4065. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4066. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4067. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4068. msm_routing_put_audio_mixer),
  4069. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4070. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4071. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4072. msm_routing_put_audio_mixer),
  4073. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4074. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4075. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4076. msm_routing_put_audio_mixer),
  4077. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4078. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4079. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4080. msm_routing_put_audio_mixer),
  4081. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4082. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4083. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4084. msm_routing_put_audio_mixer),
  4085. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4086. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4087. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4088. msm_routing_put_audio_mixer),
  4089. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4090. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4091. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4092. msm_routing_put_audio_mixer),
  4093. };
  4094. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  4095. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4096. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4097. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4098. msm_routing_put_audio_mixer),
  4099. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4100. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4101. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4102. msm_routing_put_audio_mixer),
  4103. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4104. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4105. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4106. msm_routing_put_audio_mixer),
  4107. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4108. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4109. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4110. msm_routing_put_audio_mixer),
  4111. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4112. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4113. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4114. msm_routing_put_audio_mixer),
  4115. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4116. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4117. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4118. msm_routing_put_audio_mixer),
  4119. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4120. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4121. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4122. msm_routing_put_audio_mixer),
  4123. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4124. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4125. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4126. msm_routing_put_audio_mixer),
  4127. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4128. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4129. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4130. msm_routing_put_audio_mixer),
  4131. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4132. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4133. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4134. msm_routing_put_audio_mixer),
  4135. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4136. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4137. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4138. msm_routing_put_audio_mixer),
  4139. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4140. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4141. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4142. msm_routing_put_audio_mixer),
  4143. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4144. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4145. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4146. msm_routing_put_audio_mixer),
  4147. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4148. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4149. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4150. msm_routing_put_audio_mixer),
  4151. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4152. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4153. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4154. msm_routing_put_audio_mixer),
  4155. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4156. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4157. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4158. msm_routing_put_audio_mixer),
  4159. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4160. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4161. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4162. msm_routing_put_audio_mixer),
  4163. };
  4164. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  4165. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4166. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4167. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4168. msm_routing_put_audio_mixer),
  4169. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4170. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4171. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4172. msm_routing_put_audio_mixer),
  4173. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4174. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4175. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4176. msm_routing_put_audio_mixer),
  4177. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4178. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4179. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4180. msm_routing_put_audio_mixer),
  4181. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4182. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4183. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4184. msm_routing_put_audio_mixer),
  4185. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4186. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4187. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4188. msm_routing_put_audio_mixer),
  4189. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4190. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4191. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4192. msm_routing_put_audio_mixer),
  4193. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4194. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4195. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4196. msm_routing_put_audio_mixer),
  4197. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4198. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4199. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4200. msm_routing_put_audio_mixer),
  4201. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4202. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4203. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4204. msm_routing_put_audio_mixer),
  4205. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4206. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4207. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4208. msm_routing_put_audio_mixer),
  4209. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4210. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4211. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4212. msm_routing_put_audio_mixer),
  4213. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4214. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4215. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4216. msm_routing_put_audio_mixer),
  4217. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4218. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4219. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4220. msm_routing_put_audio_mixer),
  4221. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4222. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4223. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4224. msm_routing_put_audio_mixer),
  4225. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4226. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4227. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4228. msm_routing_put_audio_mixer),
  4229. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4230. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4231. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4232. msm_routing_put_audio_mixer),
  4233. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4234. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4235. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4236. msm_routing_put_audio_mixer),
  4237. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4238. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4239. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4240. msm_routing_put_audio_mixer),
  4241. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4242. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4243. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4244. msm_routing_put_audio_mixer),
  4245. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4246. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4247. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4248. msm_routing_put_audio_mixer),
  4249. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4250. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4251. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4252. msm_routing_put_audio_mixer),
  4253. };
  4254. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4255. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4256. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4257. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4258. msm_routing_put_audio_mixer),
  4259. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4260. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4261. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4262. msm_routing_put_audio_mixer),
  4263. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4264. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4265. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4266. msm_routing_put_audio_mixer),
  4267. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4268. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4269. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4270. msm_routing_put_audio_mixer),
  4271. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4272. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4273. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4274. msm_routing_put_audio_mixer),
  4275. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4276. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4277. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4278. msm_routing_put_audio_mixer),
  4279. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4280. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4281. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4282. msm_routing_put_audio_mixer),
  4283. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4284. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4285. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4286. msm_routing_put_audio_mixer),
  4287. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4288. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4289. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4290. msm_routing_put_audio_mixer),
  4291. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4292. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4293. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4294. msm_routing_put_audio_mixer),
  4295. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4296. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4297. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4298. msm_routing_put_audio_mixer),
  4299. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4300. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4301. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4302. msm_routing_put_audio_mixer),
  4303. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4304. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4305. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4306. msm_routing_put_audio_mixer),
  4307. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4308. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4309. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4310. msm_routing_put_audio_mixer),
  4311. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4312. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4313. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4314. msm_routing_put_audio_mixer),
  4315. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4316. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4317. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4318. msm_routing_put_audio_mixer),
  4319. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4320. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4321. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4322. msm_routing_put_audio_mixer),
  4323. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4324. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4325. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4326. msm_routing_put_audio_mixer),
  4327. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4328. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4329. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4330. msm_routing_put_audio_mixer),
  4331. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4332. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4333. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4334. msm_routing_put_audio_mixer),
  4335. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4336. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4337. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4338. msm_routing_put_audio_mixer),
  4339. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4340. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4341. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4342. msm_routing_put_audio_mixer),
  4343. };
  4344. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4345. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4346. MSM_BACKEND_DAI_MI2S_RX,
  4347. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4348. msm_routing_put_audio_mixer),
  4349. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4350. MSM_BACKEND_DAI_MI2S_RX,
  4351. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4352. msm_routing_put_audio_mixer),
  4353. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4354. MSM_BACKEND_DAI_MI2S_RX,
  4355. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4356. msm_routing_put_audio_mixer),
  4357. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4358. MSM_BACKEND_DAI_MI2S_RX,
  4359. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4360. msm_routing_put_audio_mixer),
  4361. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4362. MSM_BACKEND_DAI_MI2S_RX,
  4363. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4364. msm_routing_put_audio_mixer),
  4365. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4366. MSM_BACKEND_DAI_MI2S_RX,
  4367. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4368. msm_routing_put_audio_mixer),
  4369. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4370. MSM_BACKEND_DAI_MI2S_RX,
  4371. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4372. msm_routing_put_audio_mixer),
  4373. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4374. MSM_BACKEND_DAI_MI2S_RX,
  4375. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4376. msm_routing_put_audio_mixer),
  4377. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4378. MSM_BACKEND_DAI_MI2S_RX,
  4379. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4380. msm_routing_put_audio_mixer),
  4381. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4382. MSM_BACKEND_DAI_MI2S_RX,
  4383. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4384. msm_routing_put_audio_mixer),
  4385. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4386. MSM_BACKEND_DAI_MI2S_RX,
  4387. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4388. msm_routing_put_audio_mixer),
  4389. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4390. MSM_BACKEND_DAI_MI2S_RX,
  4391. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4392. msm_routing_put_audio_mixer),
  4393. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4394. MSM_BACKEND_DAI_MI2S_RX,
  4395. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4396. msm_routing_put_audio_mixer),
  4397. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4398. MSM_BACKEND_DAI_MI2S_RX,
  4399. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4400. msm_routing_put_audio_mixer),
  4401. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4402. MSM_BACKEND_DAI_MI2S_RX,
  4403. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4404. msm_routing_put_audio_mixer),
  4405. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4406. MSM_BACKEND_DAI_MI2S_RX,
  4407. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4408. msm_routing_put_audio_mixer),
  4409. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4410. MSM_BACKEND_DAI_MI2S_RX,
  4411. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4412. msm_routing_put_audio_mixer),
  4413. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4414. MSM_BACKEND_DAI_MI2S_RX,
  4415. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4416. msm_routing_put_audio_mixer),
  4417. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4418. MSM_BACKEND_DAI_MI2S_RX,
  4419. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4420. msm_routing_put_audio_mixer),
  4421. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4422. MSM_BACKEND_DAI_MI2S_RX,
  4423. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4424. msm_routing_put_audio_mixer),
  4425. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4426. MSM_BACKEND_DAI_MI2S_RX,
  4427. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4428. msm_routing_put_audio_mixer),
  4429. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4430. MSM_BACKEND_DAI_MI2S_RX,
  4431. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4432. msm_routing_put_audio_mixer),
  4433. };
  4434. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4435. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4436. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4437. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4438. msm_routing_put_audio_mixer),
  4439. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4440. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4441. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4442. msm_routing_put_audio_mixer),
  4443. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4444. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4445. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4446. msm_routing_put_audio_mixer),
  4447. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4448. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4449. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4450. msm_routing_put_audio_mixer),
  4451. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4452. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4453. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4454. msm_routing_put_audio_mixer),
  4455. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4456. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4457. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4458. msm_routing_put_audio_mixer),
  4459. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4460. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4461. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4462. msm_routing_put_audio_mixer),
  4463. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4464. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4465. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4466. msm_routing_put_audio_mixer),
  4467. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4468. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4469. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4470. msm_routing_put_audio_mixer),
  4471. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4472. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4473. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4474. msm_routing_put_audio_mixer),
  4475. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4476. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4477. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4478. msm_routing_put_audio_mixer),
  4479. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4480. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4481. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4482. msm_routing_put_audio_mixer),
  4483. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4484. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4485. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4486. msm_routing_put_audio_mixer),
  4487. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4488. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4489. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4490. msm_routing_put_audio_mixer),
  4491. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4492. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4493. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4494. msm_routing_put_audio_mixer),
  4495. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4496. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4497. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4498. msm_routing_put_audio_mixer),
  4499. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4500. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4501. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4502. msm_routing_put_audio_mixer),
  4503. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4504. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4505. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4506. msm_routing_put_audio_mixer),
  4507. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4508. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4509. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4510. msm_routing_put_audio_mixer),
  4511. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4512. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4513. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4514. msm_routing_put_audio_mixer),
  4515. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4516. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4517. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4518. msm_routing_put_audio_mixer),
  4519. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4520. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4521. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4522. msm_routing_put_audio_mixer),
  4523. };
  4524. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4525. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4526. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4527. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4528. msm_routing_put_audio_mixer),
  4529. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4530. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4531. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4532. msm_routing_put_audio_mixer),
  4533. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4534. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4535. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4536. msm_routing_put_audio_mixer),
  4537. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4538. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4539. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4540. msm_routing_put_audio_mixer),
  4541. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4542. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4543. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4544. msm_routing_put_audio_mixer),
  4545. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4546. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4547. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4548. msm_routing_put_audio_mixer),
  4549. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4550. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4551. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4552. msm_routing_put_audio_mixer),
  4553. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4554. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4555. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4556. msm_routing_put_audio_mixer),
  4557. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4558. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4559. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4560. msm_routing_put_audio_mixer),
  4561. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4562. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4563. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4564. msm_routing_put_audio_mixer),
  4565. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4566. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4567. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4568. msm_routing_put_audio_mixer),
  4569. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4570. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4571. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4572. msm_routing_put_audio_mixer),
  4573. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4574. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4575. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4576. msm_routing_put_audio_mixer),
  4577. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4578. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4579. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4580. msm_routing_put_audio_mixer),
  4581. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4582. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4583. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4584. msm_routing_put_audio_mixer),
  4585. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4586. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4587. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4588. msm_routing_put_audio_mixer),
  4589. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4590. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4591. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4592. msm_routing_put_audio_mixer),
  4593. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4594. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4595. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4596. msm_routing_put_audio_mixer),
  4597. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4598. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4599. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4600. msm_routing_put_audio_mixer),
  4601. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4602. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4603. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4604. msm_routing_put_audio_mixer),
  4605. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4606. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4607. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4608. msm_routing_put_audio_mixer),
  4609. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4610. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4611. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4612. msm_routing_put_audio_mixer),
  4613. };
  4614. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4615. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4616. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4617. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4618. msm_routing_put_audio_mixer),
  4619. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4620. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4621. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4622. msm_routing_put_audio_mixer),
  4623. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4624. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4625. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4626. msm_routing_put_audio_mixer),
  4627. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4628. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4629. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4630. msm_routing_put_audio_mixer),
  4631. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4632. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4633. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4634. msm_routing_put_audio_mixer),
  4635. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4636. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4637. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4638. msm_routing_put_audio_mixer),
  4639. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4640. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4641. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4642. msm_routing_put_audio_mixer),
  4643. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4644. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4645. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4646. msm_routing_put_audio_mixer),
  4647. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4648. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4649. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4650. msm_routing_put_audio_mixer),
  4651. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4652. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4653. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4654. msm_routing_put_audio_mixer),
  4655. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4656. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4657. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4658. msm_routing_put_audio_mixer),
  4659. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4660. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4661. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4662. msm_routing_put_audio_mixer),
  4663. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4664. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4665. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4666. msm_routing_put_audio_mixer),
  4667. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4668. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4669. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4670. msm_routing_put_audio_mixer),
  4671. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4672. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4673. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4674. msm_routing_put_audio_mixer),
  4675. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4676. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4677. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4678. msm_routing_put_audio_mixer),
  4679. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4680. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4681. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4682. msm_routing_put_audio_mixer),
  4683. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4684. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4685. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4686. msm_routing_put_audio_mixer),
  4687. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4688. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4689. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4690. msm_routing_put_audio_mixer),
  4691. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4692. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4693. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4694. msm_routing_put_audio_mixer),
  4695. };
  4696. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4697. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4698. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4699. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4700. msm_routing_put_audio_mixer),
  4701. };
  4702. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4703. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4704. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4705. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4706. msm_routing_put_audio_mixer),
  4707. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4708. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4709. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4710. msm_routing_put_audio_mixer),
  4711. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4712. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4713. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4714. msm_routing_put_audio_mixer),
  4715. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4716. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4717. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4718. msm_routing_put_audio_mixer),
  4719. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4720. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4721. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4722. msm_routing_put_audio_mixer),
  4723. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4724. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4725. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4726. msm_routing_put_audio_mixer),
  4727. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4728. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4729. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4730. msm_routing_put_audio_mixer),
  4731. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4732. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4733. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4734. msm_routing_put_audio_mixer),
  4735. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4736. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4737. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4738. msm_routing_put_audio_mixer),
  4739. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4740. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4741. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4742. msm_routing_put_audio_mixer),
  4743. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4744. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4745. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4746. msm_routing_put_audio_mixer),
  4747. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4748. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4749. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4750. msm_routing_put_audio_mixer),
  4751. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4752. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4753. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4754. msm_routing_put_audio_mixer),
  4755. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4756. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4757. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4758. msm_routing_put_audio_mixer),
  4759. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4760. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4761. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4762. msm_routing_put_audio_mixer),
  4763. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4764. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4765. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4766. msm_routing_put_audio_mixer),
  4767. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4768. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4769. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4770. msm_routing_put_audio_mixer),
  4771. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4772. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4773. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4774. msm_routing_put_audio_mixer),
  4775. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4776. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4777. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4778. msm_routing_put_audio_mixer),
  4779. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4780. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4781. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4782. msm_routing_put_audio_mixer),
  4783. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4784. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4785. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4786. msm_routing_put_audio_mixer),
  4787. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4788. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4789. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4790. msm_routing_put_audio_mixer),
  4791. };
  4792. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4793. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4794. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4795. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4796. msm_routing_put_audio_mixer),
  4797. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4798. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4799. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4800. msm_routing_put_audio_mixer),
  4801. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4802. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4803. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4804. msm_routing_put_audio_mixer),
  4805. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4806. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4807. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4808. msm_routing_put_audio_mixer),
  4809. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4810. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4811. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4812. msm_routing_put_audio_mixer),
  4813. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4814. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4815. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4816. msm_routing_put_audio_mixer),
  4817. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4818. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4819. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4820. msm_routing_put_audio_mixer),
  4821. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4822. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4823. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4824. msm_routing_put_audio_mixer),
  4825. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4826. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4827. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4828. msm_routing_put_audio_mixer),
  4829. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4830. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4831. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4832. msm_routing_put_audio_mixer),
  4833. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4834. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4835. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4836. msm_routing_put_audio_mixer),
  4837. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4838. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4839. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4840. msm_routing_put_audio_mixer),
  4841. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4842. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4843. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4844. msm_routing_put_audio_mixer),
  4845. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4846. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4847. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4848. msm_routing_put_audio_mixer),
  4849. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4850. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4851. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4852. msm_routing_put_audio_mixer),
  4853. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4854. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4855. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4856. msm_routing_put_audio_mixer),
  4857. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4858. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4859. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4860. msm_routing_put_audio_mixer),
  4861. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4862. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4863. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4864. msm_routing_put_audio_mixer),
  4865. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4866. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4867. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4868. msm_routing_put_audio_mixer),
  4869. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4870. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4871. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4872. msm_routing_put_audio_mixer),
  4873. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4874. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4875. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4876. msm_routing_put_audio_mixer),
  4877. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4878. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4879. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4880. msm_routing_put_audio_mixer),
  4881. };
  4882. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4883. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4884. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4885. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4886. msm_routing_put_audio_mixer),
  4887. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4888. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4889. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4890. msm_routing_put_audio_mixer),
  4891. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4892. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4893. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4894. msm_routing_put_audio_mixer),
  4895. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4896. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4897. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4898. msm_routing_put_audio_mixer),
  4899. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4900. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4901. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4902. msm_routing_put_audio_mixer),
  4903. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4904. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4905. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4906. msm_routing_put_audio_mixer),
  4907. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4908. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4909. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4910. msm_routing_put_audio_mixer),
  4911. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4912. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4913. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4914. msm_routing_put_audio_mixer),
  4915. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4916. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4917. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4918. msm_routing_put_audio_mixer),
  4919. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4920. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4921. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4922. msm_routing_put_audio_mixer),
  4923. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4924. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4925. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4926. msm_routing_put_audio_mixer),
  4927. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4928. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4929. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4930. msm_routing_put_audio_mixer),
  4931. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4932. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4933. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4934. msm_routing_put_audio_mixer),
  4935. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4936. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4937. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4938. msm_routing_put_audio_mixer),
  4939. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4940. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4941. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4942. msm_routing_put_audio_mixer),
  4943. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4944. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4945. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4946. msm_routing_put_audio_mixer),
  4947. };
  4948. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4949. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4950. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4951. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4952. msm_routing_put_audio_mixer),
  4953. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4954. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4955. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4956. msm_routing_put_audio_mixer),
  4957. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4958. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4959. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4960. msm_routing_put_audio_mixer),
  4961. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4962. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4963. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4964. msm_routing_put_audio_mixer),
  4965. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4966. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4967. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4968. msm_routing_put_audio_mixer),
  4969. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4970. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4971. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4972. msm_routing_put_audio_mixer),
  4973. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4974. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4975. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4976. msm_routing_put_audio_mixer),
  4977. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4978. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4979. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4980. msm_routing_put_audio_mixer),
  4981. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4982. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4983. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4984. msm_routing_put_audio_mixer),
  4985. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4986. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4987. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4988. msm_routing_put_audio_mixer),
  4989. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4990. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4991. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4992. msm_routing_put_audio_mixer),
  4993. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4994. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4995. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4996. msm_routing_put_audio_mixer),
  4997. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4998. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4999. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5000. msm_routing_put_audio_mixer),
  5001. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5002. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5003. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5004. msm_routing_put_audio_mixer),
  5005. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5006. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5007. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5008. msm_routing_put_audio_mixer),
  5009. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5010. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5011. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5012. msm_routing_put_audio_mixer),
  5013. };
  5014. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  5015. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5016. MSM_BACKEND_DAI_HDMI_RX,
  5017. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5018. msm_routing_put_audio_mixer),
  5019. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5020. MSM_BACKEND_DAI_HDMI_RX,
  5021. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5022. msm_routing_put_audio_mixer),
  5023. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5024. MSM_BACKEND_DAI_HDMI_RX,
  5025. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5026. msm_routing_put_audio_mixer),
  5027. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5028. MSM_BACKEND_DAI_HDMI_RX,
  5029. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5030. msm_routing_put_audio_mixer),
  5031. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5032. MSM_BACKEND_DAI_HDMI_RX,
  5033. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5034. msm_routing_put_audio_mixer),
  5035. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5036. MSM_BACKEND_DAI_HDMI_RX,
  5037. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5038. msm_routing_put_audio_mixer),
  5039. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5040. MSM_BACKEND_DAI_HDMI_RX,
  5041. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5042. msm_routing_put_audio_mixer),
  5043. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5044. MSM_BACKEND_DAI_HDMI_RX,
  5045. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5046. msm_routing_put_audio_mixer),
  5047. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5048. MSM_BACKEND_DAI_HDMI_RX,
  5049. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5050. msm_routing_put_audio_mixer),
  5051. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5052. MSM_BACKEND_DAI_HDMI_RX,
  5053. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5054. msm_routing_put_audio_mixer),
  5055. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5056. MSM_BACKEND_DAI_HDMI_RX,
  5057. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5058. msm_routing_put_audio_mixer),
  5059. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5060. MSM_BACKEND_DAI_HDMI_RX,
  5061. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5062. msm_routing_put_audio_mixer),
  5063. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5064. MSM_BACKEND_DAI_HDMI_RX,
  5065. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5066. msm_routing_put_audio_mixer),
  5067. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5068. MSM_BACKEND_DAI_HDMI_RX,
  5069. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5070. msm_routing_put_audio_mixer),
  5071. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5072. MSM_BACKEND_DAI_HDMI_RX,
  5073. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5074. msm_routing_put_audio_mixer),
  5075. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5076. MSM_BACKEND_DAI_HDMI_RX,
  5077. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5078. msm_routing_put_audio_mixer),
  5079. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5080. MSM_BACKEND_DAI_HDMI_RX,
  5081. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5082. msm_routing_put_audio_mixer),
  5083. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5084. MSM_BACKEND_DAI_HDMI_RX,
  5085. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5086. msm_routing_put_audio_mixer),
  5087. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5088. MSM_BACKEND_DAI_HDMI_RX,
  5089. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5090. msm_routing_put_audio_mixer),
  5091. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5092. MSM_BACKEND_DAI_HDMI_RX,
  5093. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5094. msm_routing_put_audio_mixer),
  5095. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5096. MSM_BACKEND_DAI_HDMI_RX,
  5097. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5098. msm_routing_put_audio_mixer),
  5099. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5100. MSM_BACKEND_DAI_HDMI_RX,
  5101. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5102. msm_routing_put_audio_mixer),
  5103. };
  5104. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  5105. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5106. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5107. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5108. msm_routing_put_audio_mixer),
  5109. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5110. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5111. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5112. msm_routing_put_audio_mixer),
  5113. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5114. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5115. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5116. msm_routing_put_audio_mixer),
  5117. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5118. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5119. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5120. msm_routing_put_audio_mixer),
  5121. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5122. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5123. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5124. msm_routing_put_audio_mixer),
  5125. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5126. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5127. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5128. msm_routing_put_audio_mixer),
  5129. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5130. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5131. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5132. msm_routing_put_audio_mixer),
  5133. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5134. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5135. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5136. msm_routing_put_audio_mixer),
  5137. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5138. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5139. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5140. msm_routing_put_audio_mixer),
  5141. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5142. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5143. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5144. msm_routing_put_audio_mixer),
  5145. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5146. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5147. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5148. msm_routing_put_audio_mixer),
  5149. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5150. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5151. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5152. msm_routing_put_audio_mixer),
  5153. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5154. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5155. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5156. msm_routing_put_audio_mixer),
  5157. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5158. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5159. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5160. msm_routing_put_audio_mixer),
  5161. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5162. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5163. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5164. msm_routing_put_audio_mixer),
  5165. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5166. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5167. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5168. msm_routing_put_audio_mixer),
  5169. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5170. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5171. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5172. msm_routing_put_audio_mixer),
  5173. };
  5174. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  5175. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5176. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5177. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5178. msm_routing_put_audio_mixer),
  5179. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5180. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5181. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5182. msm_routing_put_audio_mixer),
  5183. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5184. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5185. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5186. msm_routing_put_audio_mixer),
  5187. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5188. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5189. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5190. msm_routing_put_audio_mixer),
  5191. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5192. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5193. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5194. msm_routing_put_audio_mixer),
  5195. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5196. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5197. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5198. msm_routing_put_audio_mixer),
  5199. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5200. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5201. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5202. msm_routing_put_audio_mixer),
  5203. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5204. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5205. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5206. msm_routing_put_audio_mixer),
  5207. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5208. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5209. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5210. msm_routing_put_audio_mixer),
  5211. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5212. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5213. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5214. msm_routing_put_audio_mixer),
  5215. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5216. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5217. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5218. msm_routing_put_audio_mixer),
  5219. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5220. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5221. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5222. msm_routing_put_audio_mixer),
  5223. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5224. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5225. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5226. msm_routing_put_audio_mixer),
  5227. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5228. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5229. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5230. msm_routing_put_audio_mixer),
  5231. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5232. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5233. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5234. msm_routing_put_audio_mixer),
  5235. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5236. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5237. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5238. msm_routing_put_audio_mixer),
  5239. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5240. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5241. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5242. msm_routing_put_audio_mixer),
  5243. };
  5244. /* incall music delivery mixer */
  5245. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  5246. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5247. MSM_BACKEND_DAI_VOICE_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_VOICE_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_VOICE_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_VOICE_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 incall_music2_delivery_mixer_controls[] = {
  5264. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5265. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  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_VOICE2_PLAYBACK_TX,
  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_VOICE2_PLAYBACK_TX,
  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_VOICE2_PLAYBACK_TX,
  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_4_rx_mixer_controls[] = {
  5282. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5283. MSM_BACKEND_DAI_SLIMBUS_4_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_4_RX,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5289. msm_routing_put_audio_mixer),
  5290. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5291. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5292. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5293. msm_routing_put_audio_mixer),
  5294. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5295. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5296. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5297. msm_routing_put_audio_mixer),
  5298. };
  5299. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5300. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5301. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5302. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5303. msm_routing_put_audio_mixer),
  5304. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5305. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5306. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5307. msm_routing_put_audio_mixer),
  5308. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5309. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5310. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5311. msm_routing_put_audio_mixer),
  5312. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5313. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5314. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5315. msm_routing_put_audio_mixer),
  5316. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5317. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5318. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5319. msm_routing_put_audio_mixer),
  5320. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5321. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5322. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5323. msm_routing_put_audio_mixer),
  5324. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5325. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5326. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5327. msm_routing_put_audio_mixer),
  5328. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5329. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5330. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5331. msm_routing_put_audio_mixer),
  5332. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5333. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5334. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5335. msm_routing_put_audio_mixer),
  5336. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5337. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5338. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5339. msm_routing_put_audio_mixer),
  5340. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5341. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5342. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5343. msm_routing_put_audio_mixer),
  5344. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5345. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5346. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5347. msm_routing_put_audio_mixer),
  5348. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5349. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5350. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5351. msm_routing_put_audio_mixer),
  5352. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5353. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5354. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5355. msm_routing_put_audio_mixer),
  5356. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5357. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5358. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5359. msm_routing_put_audio_mixer),
  5360. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5361. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5365. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5366. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5367. msm_routing_put_audio_mixer),
  5368. };
  5369. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5370. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5371. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5372. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5373. msm_routing_put_audio_mixer),
  5374. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5375. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5376. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5377. msm_routing_put_audio_mixer),
  5378. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5379. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5380. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5381. msm_routing_put_audio_mixer),
  5382. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5383. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5384. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5385. msm_routing_put_audio_mixer),
  5386. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5387. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5388. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5389. msm_routing_put_audio_mixer),
  5390. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5391. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5392. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5393. msm_routing_put_audio_mixer),
  5394. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5395. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5396. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5397. msm_routing_put_audio_mixer),
  5398. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5399. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5400. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5401. msm_routing_put_audio_mixer),
  5402. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5403. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5404. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5405. msm_routing_put_audio_mixer),
  5406. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5407. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5408. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5409. msm_routing_put_audio_mixer),
  5410. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5411. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5412. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5413. msm_routing_put_audio_mixer),
  5414. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5415. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5416. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5417. msm_routing_put_audio_mixer),
  5418. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5419. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5420. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5421. msm_routing_put_audio_mixer),
  5422. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5423. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5424. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5425. msm_routing_put_audio_mixer),
  5426. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5427. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5428. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5429. msm_routing_put_audio_mixer),
  5430. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5431. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5432. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5433. msm_routing_put_audio_mixer),
  5434. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5435. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5436. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5437. msm_routing_put_audio_mixer),
  5438. };
  5439. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5440. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5441. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5442. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5443. msm_routing_put_audio_mixer),
  5444. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5445. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5446. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5447. msm_routing_put_audio_mixer),
  5448. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5449. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5453. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5454. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5455. msm_routing_put_audio_mixer),
  5456. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5457. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5458. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5459. msm_routing_put_audio_mixer),
  5460. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5461. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5462. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5463. msm_routing_put_audio_mixer),
  5464. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5465. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5466. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5467. msm_routing_put_audio_mixer),
  5468. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5469. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5470. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5471. msm_routing_put_audio_mixer),
  5472. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5473. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5474. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5475. msm_routing_put_audio_mixer),
  5476. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5477. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5478. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5479. msm_routing_put_audio_mixer),
  5480. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5481. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5482. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5483. msm_routing_put_audio_mixer),
  5484. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5485. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5486. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5487. msm_routing_put_audio_mixer),
  5488. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5489. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5490. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5491. msm_routing_put_audio_mixer),
  5492. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5493. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5494. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5495. msm_routing_put_audio_mixer),
  5496. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5497. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5498. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5499. msm_routing_put_audio_mixer),
  5500. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5501. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5502. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5503. msm_routing_put_audio_mixer),
  5504. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5505. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5506. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5507. msm_routing_put_audio_mixer),
  5508. };
  5509. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  5510. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5511. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5515. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5516. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5517. msm_routing_put_audio_mixer),
  5518. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5519. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5520. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5521. msm_routing_put_audio_mixer),
  5522. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5523. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5524. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5525. msm_routing_put_audio_mixer),
  5526. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5527. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5531. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5535. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5536. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5537. msm_routing_put_audio_mixer),
  5538. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5539. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5540. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5541. msm_routing_put_audio_mixer),
  5542. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5543. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5547. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5548. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5549. msm_routing_put_audio_mixer),
  5550. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5551. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5552. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5553. msm_routing_put_audio_mixer),
  5554. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5555. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5556. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5557. msm_routing_put_audio_mixer),
  5558. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5559. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5560. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5561. msm_routing_put_audio_mixer),
  5562. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5563. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5564. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5565. msm_routing_put_audio_mixer),
  5566. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5567. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5568. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5569. msm_routing_put_audio_mixer),
  5570. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5571. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5572. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5573. msm_routing_put_audio_mixer),
  5574. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5575. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5576. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5577. msm_routing_put_audio_mixer),
  5578. };
  5579. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  5580. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5581. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5585. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5601. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5602. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5603. msm_routing_put_audio_mixer),
  5604. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5605. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5609. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5613. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5614. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5615. msm_routing_put_audio_mixer),
  5616. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5617. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5621. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5625. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5629. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5630. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5631. msm_routing_put_audio_mixer),
  5632. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5633. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5634. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5635. msm_routing_put_audio_mixer),
  5636. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5637. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5638. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5639. msm_routing_put_audio_mixer),
  5640. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5641. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5642. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5643. msm_routing_put_audio_mixer),
  5644. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5645. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5646. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5647. msm_routing_put_audio_mixer),
  5648. };
  5649. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  5650. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5651. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5655. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5659. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5663. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5671. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5675. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5679. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5680. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5681. msm_routing_put_audio_mixer),
  5682. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5683. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5687. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5691. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5692. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5693. msm_routing_put_audio_mixer),
  5694. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5695. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5696. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5697. msm_routing_put_audio_mixer),
  5698. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5699. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5703. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5707. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5708. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5709. msm_routing_put_audio_mixer),
  5710. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5711. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5712. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5713. msm_routing_put_audio_mixer),
  5714. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5715. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5716. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5717. msm_routing_put_audio_mixer),
  5718. };
  5719. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  5720. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5721. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5722. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5723. msm_routing_put_audio_mixer),
  5724. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5725. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5729. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5730. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5731. msm_routing_put_audio_mixer),
  5732. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5733. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5749. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5765. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5769. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5773. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5774. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5775. msm_routing_put_audio_mixer),
  5776. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5777. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5781. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5785. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5786. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5787. msm_routing_put_audio_mixer),
  5788. };
  5789. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  5790. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5791. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5792. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5793. msm_routing_put_audio_mixer),
  5794. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5795. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5796. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5797. msm_routing_put_audio_mixer),
  5798. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5799. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5800. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5801. msm_routing_put_audio_mixer),
  5802. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5803. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5804. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5805. msm_routing_put_audio_mixer),
  5806. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5807. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5808. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5809. msm_routing_put_audio_mixer),
  5810. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5811. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5815. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5816. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5817. msm_routing_put_audio_mixer),
  5818. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5819. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5820. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5821. msm_routing_put_audio_mixer),
  5822. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5823. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5824. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5825. msm_routing_put_audio_mixer),
  5826. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5827. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5828. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5829. msm_routing_put_audio_mixer),
  5830. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5831. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5835. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5836. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5837. msm_routing_put_audio_mixer),
  5838. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5839. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5840. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5841. msm_routing_put_audio_mixer),
  5842. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5843. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5847. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5851. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5855. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. };
  5859. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  5860. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5861. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5862. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5863. msm_routing_put_audio_mixer),
  5864. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5865. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5866. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5867. msm_routing_put_audio_mixer),
  5868. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5869. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5870. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5871. msm_routing_put_audio_mixer),
  5872. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5873. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5874. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5875. msm_routing_put_audio_mixer),
  5876. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5877. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5878. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5879. msm_routing_put_audio_mixer),
  5880. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5881. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5882. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5883. msm_routing_put_audio_mixer),
  5884. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5885. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5886. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5887. msm_routing_put_audio_mixer),
  5888. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5889. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5890. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5891. msm_routing_put_audio_mixer),
  5892. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5893. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5894. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5895. msm_routing_put_audio_mixer),
  5896. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5897. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5898. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5899. msm_routing_put_audio_mixer),
  5900. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5901. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5902. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5903. msm_routing_put_audio_mixer),
  5904. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5905. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5906. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5907. msm_routing_put_audio_mixer),
  5908. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5909. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5910. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5911. msm_routing_put_audio_mixer),
  5912. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5913. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5914. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5915. msm_routing_put_audio_mixer),
  5916. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5917. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5918. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5919. msm_routing_put_audio_mixer),
  5920. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5921. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5922. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5923. msm_routing_put_audio_mixer),
  5924. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5925. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5926. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5927. msm_routing_put_audio_mixer),
  5928. };
  5929. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  5930. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5931. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5932. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5933. msm_routing_put_audio_mixer),
  5934. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5935. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5936. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5937. msm_routing_put_audio_mixer),
  5938. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5939. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5940. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5941. msm_routing_put_audio_mixer),
  5942. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5943. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5944. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5945. msm_routing_put_audio_mixer),
  5946. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5947. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5948. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5949. msm_routing_put_audio_mixer),
  5950. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5951. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5952. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5953. msm_routing_put_audio_mixer),
  5954. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5955. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5956. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5957. msm_routing_put_audio_mixer),
  5958. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5959. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5960. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5961. msm_routing_put_audio_mixer),
  5962. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5963. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5964. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5965. msm_routing_put_audio_mixer),
  5966. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5967. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5968. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5969. msm_routing_put_audio_mixer),
  5970. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5971. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5972. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5973. msm_routing_put_audio_mixer),
  5974. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5975. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5976. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5977. msm_routing_put_audio_mixer),
  5978. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5979. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5980. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5981. msm_routing_put_audio_mixer),
  5982. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5983. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5984. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5985. msm_routing_put_audio_mixer),
  5986. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5987. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5988. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5989. msm_routing_put_audio_mixer),
  5990. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5991. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5992. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5993. msm_routing_put_audio_mixer),
  5994. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5995. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5996. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5997. msm_routing_put_audio_mixer),
  5998. };
  5999. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  6000. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6001. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6002. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6003. msm_routing_put_audio_mixer),
  6004. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6005. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6006. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6007. msm_routing_put_audio_mixer),
  6008. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6009. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6010. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6011. msm_routing_put_audio_mixer),
  6012. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6013. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6014. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6015. msm_routing_put_audio_mixer),
  6016. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6017. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6018. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6019. msm_routing_put_audio_mixer),
  6020. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6021. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6022. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6023. msm_routing_put_audio_mixer),
  6024. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6025. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6026. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6027. msm_routing_put_audio_mixer),
  6028. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6029. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6030. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6031. msm_routing_put_audio_mixer),
  6032. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6033. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6034. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6035. msm_routing_put_audio_mixer),
  6036. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6037. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6038. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6039. msm_routing_put_audio_mixer),
  6040. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6041. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6042. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6043. msm_routing_put_audio_mixer),
  6044. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6045. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6046. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6047. msm_routing_put_audio_mixer),
  6048. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6049. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6050. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6051. msm_routing_put_audio_mixer),
  6052. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6053. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6054. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6055. msm_routing_put_audio_mixer),
  6056. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6057. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6058. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6059. msm_routing_put_audio_mixer),
  6060. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6061. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6062. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6063. msm_routing_put_audio_mixer),
  6064. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6065. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6066. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6067. msm_routing_put_audio_mixer),
  6068. };
  6069. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  6070. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6071. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6072. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6073. msm_routing_put_audio_mixer),
  6074. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6075. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6076. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6077. msm_routing_put_audio_mixer),
  6078. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6079. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6080. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6081. msm_routing_put_audio_mixer),
  6082. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6083. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6084. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6085. msm_routing_put_audio_mixer),
  6086. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6087. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6088. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6089. msm_routing_put_audio_mixer),
  6090. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6091. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6092. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6093. msm_routing_put_audio_mixer),
  6094. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6095. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6096. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6097. msm_routing_put_audio_mixer),
  6098. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6099. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6100. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6101. msm_routing_put_audio_mixer),
  6102. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6103. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6104. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6105. msm_routing_put_audio_mixer),
  6106. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6107. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6108. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6109. msm_routing_put_audio_mixer),
  6110. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6111. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6112. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6113. msm_routing_put_audio_mixer),
  6114. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6115. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6116. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6117. msm_routing_put_audio_mixer),
  6118. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6119. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6120. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6121. msm_routing_put_audio_mixer),
  6122. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6123. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6124. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6125. msm_routing_put_audio_mixer),
  6126. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6127. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6128. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6129. msm_routing_put_audio_mixer),
  6130. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6131. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6132. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6133. msm_routing_put_audio_mixer),
  6134. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6135. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6136. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6137. msm_routing_put_audio_mixer),
  6138. };
  6139. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  6140. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6141. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6142. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6143. msm_routing_put_audio_mixer),
  6144. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6145. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6149. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6153. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6154. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6155. msm_routing_put_audio_mixer),
  6156. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6157. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6158. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6159. msm_routing_put_audio_mixer),
  6160. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6161. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6162. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6163. msm_routing_put_audio_mixer),
  6164. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6165. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6166. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6167. msm_routing_put_audio_mixer),
  6168. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6169. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6170. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6171. msm_routing_put_audio_mixer),
  6172. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6173. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6174. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6175. msm_routing_put_audio_mixer),
  6176. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6177. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6178. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6179. msm_routing_put_audio_mixer),
  6180. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6181. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6182. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6183. msm_routing_put_audio_mixer),
  6184. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6185. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6186. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6187. msm_routing_put_audio_mixer),
  6188. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6189. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6190. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6191. msm_routing_put_audio_mixer),
  6192. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6193. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6194. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6195. msm_routing_put_audio_mixer),
  6196. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6197. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6198. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6199. msm_routing_put_audio_mixer),
  6200. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6201. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6202. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6203. msm_routing_put_audio_mixer),
  6204. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6205. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6206. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6207. msm_routing_put_audio_mixer),
  6208. };
  6209. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  6210. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6211. MSM_BACKEND_DAI_USB_RX,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6215. MSM_BACKEND_DAI_USB_RX,
  6216. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6217. msm_routing_put_audio_mixer),
  6218. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6219. MSM_BACKEND_DAI_USB_RX,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6223. MSM_BACKEND_DAI_USB_RX,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6227. MSM_BACKEND_DAI_USB_RX,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6231. MSM_BACKEND_DAI_USB_RX,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6235. MSM_BACKEND_DAI_USB_RX,
  6236. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6237. msm_routing_put_audio_mixer),
  6238. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6239. MSM_BACKEND_DAI_USB_RX,
  6240. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6241. msm_routing_put_audio_mixer),
  6242. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6243. MSM_BACKEND_DAI_USB_RX,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6247. MSM_BACKEND_DAI_USB_RX,
  6248. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6249. msm_routing_put_audio_mixer),
  6250. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6251. MSM_BACKEND_DAI_USB_RX,
  6252. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6253. msm_routing_put_audio_mixer),
  6254. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6255. MSM_BACKEND_DAI_USB_RX,
  6256. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6257. msm_routing_put_audio_mixer),
  6258. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6259. MSM_BACKEND_DAI_USB_RX,
  6260. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6261. msm_routing_put_audio_mixer),
  6262. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6263. MSM_BACKEND_DAI_USB_RX,
  6264. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6265. msm_routing_put_audio_mixer),
  6266. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6267. MSM_BACKEND_DAI_USB_RX,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6271. MSM_BACKEND_DAI_USB_RX,
  6272. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6273. msm_routing_put_audio_mixer),
  6274. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6275. MSM_BACKEND_DAI_USB_RX,
  6276. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6277. msm_routing_put_audio_mixer),
  6278. };
  6279. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  6280. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6281. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6282. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6283. msm_routing_put_audio_mixer),
  6284. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6285. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6286. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6287. msm_routing_put_audio_mixer),
  6288. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6289. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6293. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6297. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6298. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6299. msm_routing_put_audio_mixer),
  6300. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6301. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6302. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6303. msm_routing_put_audio_mixer),
  6304. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6305. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6309. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6310. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6311. msm_routing_put_audio_mixer),
  6312. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6313. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6314. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6315. msm_routing_put_audio_mixer),
  6316. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6317. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6321. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6322. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6323. msm_routing_put_audio_mixer),
  6324. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6325. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6329. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6345. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6349. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6357. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6358. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6359. msm_routing_put_audio_mixer),
  6360. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6361. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6362. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6363. msm_routing_put_audio_mixer),
  6364. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6365. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. };
  6369. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  6370. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6371. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6372. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6373. msm_routing_put_audio_mixer),
  6374. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6375. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6376. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6377. msm_routing_put_audio_mixer),
  6378. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6379. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6380. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6381. msm_routing_put_audio_mixer),
  6382. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6383. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6384. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6385. msm_routing_put_audio_mixer),
  6386. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6387. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6388. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6389. msm_routing_put_audio_mixer),
  6390. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6391. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6392. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6393. msm_routing_put_audio_mixer),
  6394. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6395. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6396. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6397. msm_routing_put_audio_mixer),
  6398. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6399. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6400. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6401. msm_routing_put_audio_mixer),
  6402. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6403. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6404. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6405. msm_routing_put_audio_mixer),
  6406. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6407. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6408. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6409. msm_routing_put_audio_mixer),
  6410. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6411. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6412. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6413. msm_routing_put_audio_mixer),
  6414. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6415. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6416. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6417. msm_routing_put_audio_mixer),
  6418. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6419. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6420. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6421. msm_routing_put_audio_mixer),
  6422. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6423. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6424. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6425. msm_routing_put_audio_mixer),
  6426. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6427. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6428. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6429. msm_routing_put_audio_mixer),
  6430. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6431. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6432. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6433. msm_routing_put_audio_mixer),
  6434. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6435. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6436. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6437. msm_routing_put_audio_mixer),
  6438. };
  6439. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  6440. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6441. MSM_BACKEND_DAI_INT_FM_RX,
  6442. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6443. msm_routing_put_audio_mixer),
  6444. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6445. MSM_BACKEND_DAI_INT_FM_RX,
  6446. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6447. msm_routing_put_audio_mixer),
  6448. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6449. MSM_BACKEND_DAI_INT_FM_RX,
  6450. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6451. msm_routing_put_audio_mixer),
  6452. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6453. MSM_BACKEND_DAI_INT_FM_RX,
  6454. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6455. msm_routing_put_audio_mixer),
  6456. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6457. MSM_BACKEND_DAI_INT_FM_RX,
  6458. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6459. msm_routing_put_audio_mixer),
  6460. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6461. MSM_BACKEND_DAI_INT_FM_RX,
  6462. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6463. msm_routing_put_audio_mixer),
  6464. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6465. MSM_BACKEND_DAI_INT_FM_RX,
  6466. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6467. msm_routing_put_audio_mixer),
  6468. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6469. MSM_BACKEND_DAI_INT_FM_RX,
  6470. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6471. msm_routing_put_audio_mixer),
  6472. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6473. MSM_BACKEND_DAI_INT_FM_RX,
  6474. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6475. msm_routing_put_audio_mixer),
  6476. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6477. MSM_BACKEND_DAI_INT_FM_RX,
  6478. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6479. msm_routing_put_audio_mixer),
  6480. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6481. MSM_BACKEND_DAI_INT_FM_RX,
  6482. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6483. msm_routing_put_audio_mixer),
  6484. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6485. MSM_BACKEND_DAI_INT_FM_RX,
  6486. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6487. msm_routing_put_audio_mixer),
  6488. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6489. MSM_BACKEND_DAI_INT_FM_RX,
  6490. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6491. msm_routing_put_audio_mixer),
  6492. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6493. MSM_BACKEND_DAI_INT_FM_RX,
  6494. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6495. msm_routing_put_audio_mixer),
  6496. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6497. MSM_BACKEND_DAI_INT_FM_RX,
  6498. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6499. msm_routing_put_audio_mixer),
  6500. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6501. MSM_BACKEND_DAI_INT_FM_RX,
  6502. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6503. msm_routing_put_audio_mixer),
  6504. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6505. MSM_BACKEND_DAI_INT_FM_RX,
  6506. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6507. msm_routing_put_audio_mixer),
  6508. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6509. MSM_BACKEND_DAI_INT_FM_RX,
  6510. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6511. msm_routing_put_audio_mixer),
  6512. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6513. MSM_BACKEND_DAI_INT_FM_RX,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6517. MSM_BACKEND_DAI_INT_FM_RX,
  6518. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6519. msm_routing_put_audio_mixer),
  6520. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6521. MSM_BACKEND_DAI_INT_FM_RX,
  6522. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6523. msm_routing_put_audio_mixer),
  6524. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6525. MSM_BACKEND_DAI_INT_FM_RX,
  6526. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6527. msm_routing_put_audio_mixer),
  6528. };
  6529. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  6530. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6531. MSM_BACKEND_DAI_AFE_PCM_RX,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6535. MSM_BACKEND_DAI_AFE_PCM_RX,
  6536. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6537. msm_routing_put_audio_mixer),
  6538. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6539. MSM_BACKEND_DAI_AFE_PCM_RX,
  6540. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6541. msm_routing_put_audio_mixer),
  6542. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6543. MSM_BACKEND_DAI_AFE_PCM_RX,
  6544. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6545. msm_routing_put_audio_mixer),
  6546. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6547. MSM_BACKEND_DAI_AFE_PCM_RX,
  6548. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6549. msm_routing_put_audio_mixer),
  6550. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6551. MSM_BACKEND_DAI_AFE_PCM_RX,
  6552. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6553. msm_routing_put_audio_mixer),
  6554. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6555. MSM_BACKEND_DAI_AFE_PCM_RX,
  6556. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6557. msm_routing_put_audio_mixer),
  6558. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6559. MSM_BACKEND_DAI_AFE_PCM_RX,
  6560. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6561. msm_routing_put_audio_mixer),
  6562. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6563. MSM_BACKEND_DAI_AFE_PCM_RX,
  6564. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6565. msm_routing_put_audio_mixer),
  6566. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6567. MSM_BACKEND_DAI_AFE_PCM_RX,
  6568. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6569. msm_routing_put_audio_mixer),
  6570. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6571. MSM_BACKEND_DAI_AFE_PCM_RX,
  6572. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6573. msm_routing_put_audio_mixer),
  6574. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6575. MSM_BACKEND_DAI_AFE_PCM_RX,
  6576. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6577. msm_routing_put_audio_mixer),
  6578. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6579. MSM_BACKEND_DAI_AFE_PCM_RX,
  6580. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6583. MSM_BACKEND_DAI_AFE_PCM_RX,
  6584. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6585. msm_routing_put_audio_mixer),
  6586. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6587. MSM_BACKEND_DAI_AFE_PCM_RX,
  6588. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6589. msm_routing_put_audio_mixer),
  6590. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6591. MSM_BACKEND_DAI_AFE_PCM_RX,
  6592. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6593. msm_routing_put_audio_mixer),
  6594. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6595. MSM_BACKEND_DAI_AFE_PCM_RX,
  6596. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6597. msm_routing_put_audio_mixer),
  6598. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6599. MSM_BACKEND_DAI_AFE_PCM_RX,
  6600. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6601. msm_routing_put_audio_mixer),
  6602. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6603. MSM_BACKEND_DAI_AFE_PCM_RX,
  6604. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6605. msm_routing_put_audio_mixer),
  6606. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6607. MSM_BACKEND_DAI_AFE_PCM_RX,
  6608. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6609. msm_routing_put_audio_mixer),
  6610. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6611. MSM_BACKEND_DAI_AFE_PCM_RX,
  6612. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6613. msm_routing_put_audio_mixer),
  6614. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6615. MSM_BACKEND_DAI_AFE_PCM_RX,
  6616. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6617. msm_routing_put_audio_mixer),
  6618. };
  6619. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  6620. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6621. MSM_BACKEND_DAI_AUXPCM_RX,
  6622. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6623. msm_routing_put_audio_mixer),
  6624. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6625. MSM_BACKEND_DAI_AUXPCM_RX,
  6626. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6627. msm_routing_put_audio_mixer),
  6628. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6629. MSM_BACKEND_DAI_AUXPCM_RX,
  6630. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6631. msm_routing_put_audio_mixer),
  6632. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6633. MSM_BACKEND_DAI_AUXPCM_RX,
  6634. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6635. msm_routing_put_audio_mixer),
  6636. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6637. MSM_BACKEND_DAI_AUXPCM_RX,
  6638. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6639. msm_routing_put_audio_mixer),
  6640. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6641. MSM_BACKEND_DAI_AUXPCM_RX,
  6642. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6643. msm_routing_put_audio_mixer),
  6644. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6645. MSM_BACKEND_DAI_AUXPCM_RX,
  6646. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6647. msm_routing_put_audio_mixer),
  6648. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6649. MSM_BACKEND_DAI_AUXPCM_RX,
  6650. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6651. msm_routing_put_audio_mixer),
  6652. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6653. MSM_BACKEND_DAI_AUXPCM_RX,
  6654. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6655. msm_routing_put_audio_mixer),
  6656. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6657. MSM_BACKEND_DAI_AUXPCM_RX,
  6658. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6659. msm_routing_put_audio_mixer),
  6660. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6661. MSM_BACKEND_DAI_AUXPCM_RX,
  6662. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6663. msm_routing_put_audio_mixer),
  6664. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6665. MSM_BACKEND_DAI_AUXPCM_RX,
  6666. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6667. msm_routing_put_audio_mixer),
  6668. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6669. MSM_BACKEND_DAI_AUXPCM_RX,
  6670. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6671. msm_routing_put_audio_mixer),
  6672. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6673. MSM_BACKEND_DAI_AUXPCM_RX,
  6674. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6675. msm_routing_put_audio_mixer),
  6676. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6677. MSM_BACKEND_DAI_AUXPCM_RX,
  6678. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6679. msm_routing_put_audio_mixer),
  6680. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6681. MSM_BACKEND_DAI_AUXPCM_RX,
  6682. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6683. msm_routing_put_audio_mixer),
  6684. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6685. MSM_BACKEND_DAI_AUXPCM_RX,
  6686. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6687. msm_routing_put_audio_mixer),
  6688. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6689. MSM_BACKEND_DAI_AUXPCM_RX,
  6690. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6691. msm_routing_put_audio_mixer),
  6692. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6693. MSM_BACKEND_DAI_AUXPCM_RX,
  6694. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6695. msm_routing_put_audio_mixer),
  6696. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6697. MSM_BACKEND_DAI_AUXPCM_RX,
  6698. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6699. msm_routing_put_audio_mixer),
  6700. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6701. MSM_BACKEND_DAI_AUXPCM_RX,
  6702. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6703. msm_routing_put_audio_mixer),
  6704. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6705. MSM_BACKEND_DAI_AUXPCM_RX,
  6706. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6707. msm_routing_put_audio_mixer),
  6708. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6709. MSM_BACKEND_DAI_AUXPCM_RX,
  6710. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6711. msm_routing_put_audio_mixer),
  6712. };
  6713. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  6714. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6715. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6716. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6717. msm_routing_put_audio_mixer),
  6718. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6719. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6720. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6721. msm_routing_put_audio_mixer),
  6722. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6723. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6724. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6725. msm_routing_put_audio_mixer),
  6726. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6727. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6728. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6729. msm_routing_put_audio_mixer),
  6730. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6731. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6732. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6733. msm_routing_put_audio_mixer),
  6734. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6735. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6736. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6737. msm_routing_put_audio_mixer),
  6738. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6739. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6740. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6741. msm_routing_put_audio_mixer),
  6742. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6743. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6744. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6745. msm_routing_put_audio_mixer),
  6746. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6747. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6748. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6749. msm_routing_put_audio_mixer),
  6750. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6751. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6752. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6753. msm_routing_put_audio_mixer),
  6754. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6755. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6756. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6757. msm_routing_put_audio_mixer),
  6758. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6759. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6760. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6761. msm_routing_put_audio_mixer),
  6762. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6763. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6764. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6765. msm_routing_put_audio_mixer),
  6766. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6767. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6768. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6769. msm_routing_put_audio_mixer),
  6770. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6771. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6772. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6773. msm_routing_put_audio_mixer),
  6774. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6775. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6776. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6777. msm_routing_put_audio_mixer),
  6778. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6779. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6780. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6781. msm_routing_put_audio_mixer),
  6782. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6783. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6784. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6785. msm_routing_put_audio_mixer),
  6786. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6787. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6788. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6789. msm_routing_put_audio_mixer),
  6790. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6791. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6792. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6793. msm_routing_put_audio_mixer),
  6794. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6795. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6796. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6799. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6800. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6801. msm_routing_put_audio_mixer),
  6802. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6803. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6804. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6805. msm_routing_put_audio_mixer),
  6806. };
  6807. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  6808. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6809. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6810. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6811. msm_routing_put_audio_mixer),
  6812. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6813. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6814. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6815. msm_routing_put_audio_mixer),
  6816. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6817. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6818. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6819. msm_routing_put_audio_mixer),
  6820. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6821. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6822. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6823. msm_routing_put_audio_mixer),
  6824. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6825. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6826. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6827. msm_routing_put_audio_mixer),
  6828. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6829. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6830. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6831. msm_routing_put_audio_mixer),
  6832. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6833. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6834. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6835. msm_routing_put_audio_mixer),
  6836. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6837. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6838. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6839. msm_routing_put_audio_mixer),
  6840. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6841. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6842. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6843. msm_routing_put_audio_mixer),
  6844. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6845. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6846. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6847. msm_routing_put_audio_mixer),
  6848. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6849. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6850. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6851. msm_routing_put_audio_mixer),
  6852. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6853. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6854. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6855. msm_routing_put_audio_mixer),
  6856. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6857. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6858. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6859. msm_routing_put_audio_mixer),
  6860. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6861. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6862. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6863. msm_routing_put_audio_mixer),
  6864. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6865. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6866. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6867. msm_routing_put_audio_mixer),
  6868. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6869. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6870. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6871. msm_routing_put_audio_mixer),
  6872. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6873. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6874. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6875. msm_routing_put_audio_mixer),
  6876. };
  6877. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  6878. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6879. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6880. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6881. msm_routing_put_audio_mixer),
  6882. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6883. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6884. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6885. msm_routing_put_audio_mixer),
  6886. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6887. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6888. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6889. msm_routing_put_audio_mixer),
  6890. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6891. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6892. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6893. msm_routing_put_audio_mixer),
  6894. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6895. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6896. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6897. msm_routing_put_audio_mixer),
  6898. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6899. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6900. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6901. msm_routing_put_audio_mixer),
  6902. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6903. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6904. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6905. msm_routing_put_audio_mixer),
  6906. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6907. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6908. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6909. msm_routing_put_audio_mixer),
  6910. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6911. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6912. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6913. msm_routing_put_audio_mixer),
  6914. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6915. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6916. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6917. msm_routing_put_audio_mixer),
  6918. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6919. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6920. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6921. msm_routing_put_audio_mixer),
  6922. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6923. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6924. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6925. msm_routing_put_audio_mixer),
  6926. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6927. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6928. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6929. msm_routing_put_audio_mixer),
  6930. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6931. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6932. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6933. msm_routing_put_audio_mixer),
  6934. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6935. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6936. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6937. msm_routing_put_audio_mixer),
  6938. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6939. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6940. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6941. msm_routing_put_audio_mixer),
  6942. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6943. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6944. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6945. msm_routing_put_audio_mixer),
  6946. };
  6947. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  6948. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6949. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6950. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6951. msm_routing_put_audio_mixer),
  6952. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6953. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6954. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6955. msm_routing_put_audio_mixer),
  6956. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6957. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6958. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6959. msm_routing_put_audio_mixer),
  6960. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6961. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6962. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6963. msm_routing_put_audio_mixer),
  6964. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6965. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6966. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6967. msm_routing_put_audio_mixer),
  6968. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6969. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6970. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6971. msm_routing_put_audio_mixer),
  6972. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6973. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6974. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6975. msm_routing_put_audio_mixer),
  6976. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6977. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6978. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6979. msm_routing_put_audio_mixer),
  6980. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6981. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6982. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6983. msm_routing_put_audio_mixer),
  6984. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6985. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6986. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6987. msm_routing_put_audio_mixer),
  6988. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6989. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6990. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6991. msm_routing_put_audio_mixer),
  6992. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6993. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6994. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6995. msm_routing_put_audio_mixer),
  6996. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6997. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6998. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6999. msm_routing_put_audio_mixer),
  7000. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7001. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7002. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7003. msm_routing_put_audio_mixer),
  7004. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7005. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7006. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7007. msm_routing_put_audio_mixer),
  7008. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7009. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7010. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7011. msm_routing_put_audio_mixer),
  7012. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7013. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7014. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7015. msm_routing_put_audio_mixer),
  7016. };
  7017. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  7018. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7019. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7020. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7021. msm_routing_put_audio_mixer),
  7022. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7023. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7024. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7025. msm_routing_put_audio_mixer),
  7026. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7027. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7028. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7029. msm_routing_put_audio_mixer),
  7030. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7031. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7032. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7033. msm_routing_put_audio_mixer),
  7034. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7035. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7036. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7037. msm_routing_put_audio_mixer),
  7038. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7039. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7040. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7041. msm_routing_put_audio_mixer),
  7042. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7043. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7044. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7045. msm_routing_put_audio_mixer),
  7046. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7047. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7048. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7049. msm_routing_put_audio_mixer),
  7050. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7051. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7052. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7053. msm_routing_put_audio_mixer),
  7054. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7055. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7056. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7057. msm_routing_put_audio_mixer),
  7058. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7059. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7060. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7061. msm_routing_put_audio_mixer),
  7062. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7063. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7064. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7065. msm_routing_put_audio_mixer),
  7066. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7067. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7068. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7069. msm_routing_put_audio_mixer),
  7070. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7071. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7072. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7073. msm_routing_put_audio_mixer),
  7074. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7075. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7076. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7077. msm_routing_put_audio_mixer),
  7078. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7079. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7080. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7081. msm_routing_put_audio_mixer),
  7082. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7083. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7084. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7085. msm_routing_put_audio_mixer),
  7086. };
  7087. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  7088. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7089. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7090. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7091. msm_routing_put_audio_mixer),
  7092. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7093. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7094. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7095. msm_routing_put_audio_mixer),
  7096. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7097. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7098. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7099. msm_routing_put_audio_mixer),
  7100. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7101. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7102. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7103. msm_routing_put_audio_mixer),
  7104. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7105. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7106. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7107. msm_routing_put_audio_mixer),
  7108. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7109. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7110. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7111. msm_routing_put_audio_mixer),
  7112. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7113. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7114. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7115. msm_routing_put_audio_mixer),
  7116. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7117. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7118. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7119. msm_routing_put_audio_mixer),
  7120. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7121. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7122. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7123. msm_routing_put_audio_mixer),
  7124. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7125. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7126. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7127. msm_routing_put_audio_mixer),
  7128. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7129. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7130. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7131. msm_routing_put_audio_mixer),
  7132. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7133. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7134. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7135. msm_routing_put_audio_mixer),
  7136. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7137. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7138. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7139. msm_routing_put_audio_mixer),
  7140. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7141. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7142. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7143. msm_routing_put_audio_mixer),
  7144. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7145. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7146. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7147. msm_routing_put_audio_mixer),
  7148. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7149. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7150. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7151. msm_routing_put_audio_mixer),
  7152. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7153. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7154. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7155. msm_routing_put_audio_mixer),
  7156. };
  7157. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  7158. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7159. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7160. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7161. msm_routing_put_audio_mixer),
  7162. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7163. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7164. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7165. msm_routing_put_audio_mixer),
  7166. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7167. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7168. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7169. msm_routing_put_audio_mixer),
  7170. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7171. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7172. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7173. msm_routing_put_audio_mixer),
  7174. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7175. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7176. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7177. msm_routing_put_audio_mixer),
  7178. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7179. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7180. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7181. msm_routing_put_audio_mixer),
  7182. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7183. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7184. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7185. msm_routing_put_audio_mixer),
  7186. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7187. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7188. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7189. msm_routing_put_audio_mixer),
  7190. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7191. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7192. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7193. msm_routing_put_audio_mixer),
  7194. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7195. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7196. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7197. msm_routing_put_audio_mixer),
  7198. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7199. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7200. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7201. msm_routing_put_audio_mixer),
  7202. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7203. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7204. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7205. msm_routing_put_audio_mixer),
  7206. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7207. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7208. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7209. msm_routing_put_audio_mixer),
  7210. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7211. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7212. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7213. msm_routing_put_audio_mixer),
  7214. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7215. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7216. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7217. msm_routing_put_audio_mixer),
  7218. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7219. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7220. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7221. msm_routing_put_audio_mixer),
  7222. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7223. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7224. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7225. msm_routing_put_audio_mixer),
  7226. };
  7227. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  7228. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7229. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7230. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7231. msm_routing_put_audio_mixer),
  7232. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7233. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7234. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7235. msm_routing_put_audio_mixer),
  7236. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7237. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7238. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7239. msm_routing_put_audio_mixer),
  7240. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7241. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7242. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7243. msm_routing_put_audio_mixer),
  7244. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7245. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7246. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7247. msm_routing_put_audio_mixer),
  7248. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7249. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7250. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7251. msm_routing_put_audio_mixer),
  7252. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7253. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7254. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7255. msm_routing_put_audio_mixer),
  7256. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7257. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7258. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7259. msm_routing_put_audio_mixer),
  7260. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7261. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7262. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7263. msm_routing_put_audio_mixer),
  7264. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7265. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7266. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7267. msm_routing_put_audio_mixer),
  7268. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7269. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7270. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7271. msm_routing_put_audio_mixer),
  7272. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7273. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7274. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7275. msm_routing_put_audio_mixer),
  7276. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7277. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7278. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7279. msm_routing_put_audio_mixer),
  7280. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7281. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7282. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7283. msm_routing_put_audio_mixer),
  7284. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7285. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7286. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7287. msm_routing_put_audio_mixer),
  7288. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7289. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7290. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7291. msm_routing_put_audio_mixer),
  7292. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7293. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7294. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7295. msm_routing_put_audio_mixer),
  7296. };
  7297. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  7298. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7299. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7300. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7301. msm_routing_put_audio_mixer),
  7302. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7303. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7304. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7305. msm_routing_put_audio_mixer),
  7306. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7307. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7308. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7309. msm_routing_put_audio_mixer),
  7310. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7311. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7312. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7313. msm_routing_put_audio_mixer),
  7314. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7315. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7316. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7317. msm_routing_put_audio_mixer),
  7318. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7319. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7320. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7321. msm_routing_put_audio_mixer),
  7322. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7323. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7324. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7325. msm_routing_put_audio_mixer),
  7326. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7327. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7328. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7329. msm_routing_put_audio_mixer),
  7330. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7331. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7332. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7333. msm_routing_put_audio_mixer),
  7334. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7335. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7336. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7337. msm_routing_put_audio_mixer),
  7338. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7339. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7340. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7341. msm_routing_put_audio_mixer),
  7342. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7343. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7344. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7345. msm_routing_put_audio_mixer),
  7346. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7347. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7348. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7349. msm_routing_put_audio_mixer),
  7350. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7351. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7352. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7353. msm_routing_put_audio_mixer),
  7354. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7355. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7356. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7357. msm_routing_put_audio_mixer),
  7358. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7359. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7360. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7361. msm_routing_put_audio_mixer),
  7362. };
  7363. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  7364. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7365. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7366. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7367. msm_routing_put_audio_mixer),
  7368. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7369. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7370. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7371. msm_routing_put_audio_mixer),
  7372. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7373. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7374. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7375. msm_routing_put_audio_mixer),
  7376. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7377. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7378. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7379. msm_routing_put_audio_mixer),
  7380. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7381. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7382. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7383. msm_routing_put_audio_mixer),
  7384. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7385. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7386. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7387. msm_routing_put_audio_mixer),
  7388. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7389. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7390. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7391. msm_routing_put_audio_mixer),
  7392. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7393. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7394. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7395. msm_routing_put_audio_mixer),
  7396. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7397. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7398. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7399. msm_routing_put_audio_mixer),
  7400. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7401. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7402. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7403. msm_routing_put_audio_mixer),
  7404. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7405. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7406. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7407. msm_routing_put_audio_mixer),
  7408. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7409. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7410. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7411. msm_routing_put_audio_mixer),
  7412. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7413. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7414. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7415. msm_routing_put_audio_mixer),
  7416. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7417. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7418. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7419. msm_routing_put_audio_mixer),
  7420. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7421. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7422. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7423. msm_routing_put_audio_mixer),
  7424. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7425. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7426. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7427. msm_routing_put_audio_mixer),
  7428. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7429. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7430. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7431. msm_routing_put_audio_mixer),
  7432. };
  7433. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  7434. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7435. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7436. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7437. msm_routing_put_audio_mixer),
  7438. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7439. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7440. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7441. msm_routing_put_audio_mixer),
  7442. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7443. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7444. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7445. msm_routing_put_audio_mixer),
  7446. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7447. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7448. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7449. msm_routing_put_audio_mixer),
  7450. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7451. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7452. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7453. msm_routing_put_audio_mixer),
  7454. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7455. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7456. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7457. msm_routing_put_audio_mixer),
  7458. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7459. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7460. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7461. msm_routing_put_audio_mixer),
  7462. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7463. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7464. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7465. msm_routing_put_audio_mixer),
  7466. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7467. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7468. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7469. msm_routing_put_audio_mixer),
  7470. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7471. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7472. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7473. msm_routing_put_audio_mixer),
  7474. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7475. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7476. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7477. msm_routing_put_audio_mixer),
  7478. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7479. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7480. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7481. msm_routing_put_audio_mixer),
  7482. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7483. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7484. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7485. msm_routing_put_audio_mixer),
  7486. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7487. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7488. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7489. msm_routing_put_audio_mixer),
  7490. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7491. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7492. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7493. msm_routing_put_audio_mixer),
  7494. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7495. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7496. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7497. msm_routing_put_audio_mixer),
  7498. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7499. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7500. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7501. msm_routing_put_audio_mixer),
  7502. };
  7503. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  7504. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7505. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7506. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7507. msm_routing_put_audio_mixer),
  7508. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7509. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7510. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7511. msm_routing_put_audio_mixer),
  7512. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7513. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7514. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7515. msm_routing_put_audio_mixer),
  7516. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7517. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7518. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7519. msm_routing_put_audio_mixer),
  7520. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7521. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7522. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7523. msm_routing_put_audio_mixer),
  7524. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7525. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7526. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7527. msm_routing_put_audio_mixer),
  7528. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7529. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7530. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7531. msm_routing_put_audio_mixer),
  7532. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7533. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7534. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7535. msm_routing_put_audio_mixer),
  7536. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7537. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7538. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7539. msm_routing_put_audio_mixer),
  7540. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7541. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7542. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7543. msm_routing_put_audio_mixer),
  7544. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7545. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7546. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7547. msm_routing_put_audio_mixer),
  7548. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7549. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7550. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7551. msm_routing_put_audio_mixer),
  7552. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7553. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7554. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7555. msm_routing_put_audio_mixer),
  7556. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7557. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7558. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7559. msm_routing_put_audio_mixer),
  7560. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7561. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7562. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7563. msm_routing_put_audio_mixer),
  7564. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7565. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7566. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7567. msm_routing_put_audio_mixer),
  7568. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7569. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7570. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7571. msm_routing_put_audio_mixer),
  7572. };
  7573. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  7574. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7575. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7576. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7577. msm_routing_put_audio_mixer),
  7578. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7579. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7580. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7581. msm_routing_put_audio_mixer),
  7582. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7583. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7584. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7585. msm_routing_put_audio_mixer),
  7586. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7587. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7588. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7589. msm_routing_put_audio_mixer),
  7590. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7591. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7592. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7593. msm_routing_put_audio_mixer),
  7594. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7595. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7596. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7597. msm_routing_put_audio_mixer),
  7598. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7599. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7600. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7601. msm_routing_put_audio_mixer),
  7602. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7603. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7604. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7605. msm_routing_put_audio_mixer),
  7606. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7607. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7608. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7609. msm_routing_put_audio_mixer),
  7610. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7611. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7612. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7613. msm_routing_put_audio_mixer),
  7614. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7615. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7616. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7617. msm_routing_put_audio_mixer),
  7618. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7619. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7620. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7621. msm_routing_put_audio_mixer),
  7622. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7623. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7624. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7625. msm_routing_put_audio_mixer),
  7626. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7627. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7628. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7629. msm_routing_put_audio_mixer),
  7630. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7631. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7632. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7633. msm_routing_put_audio_mixer),
  7634. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7635. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7636. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7637. msm_routing_put_audio_mixer),
  7638. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7639. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7640. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7641. msm_routing_put_audio_mixer),
  7642. };
  7643. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  7644. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7645. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7646. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7647. msm_routing_put_audio_mixer),
  7648. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7649. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7650. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7651. msm_routing_put_audio_mixer),
  7652. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7653. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7654. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7655. msm_routing_put_audio_mixer),
  7656. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7657. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7658. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7659. msm_routing_put_audio_mixer),
  7660. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7661. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7662. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7663. msm_routing_put_audio_mixer),
  7664. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7665. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7666. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7667. msm_routing_put_audio_mixer),
  7668. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7669. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7670. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7671. msm_routing_put_audio_mixer),
  7672. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7673. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7674. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7675. msm_routing_put_audio_mixer),
  7676. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7677. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7678. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7679. msm_routing_put_audio_mixer),
  7680. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7681. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7682. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7683. msm_routing_put_audio_mixer),
  7684. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7685. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7686. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7687. msm_routing_put_audio_mixer),
  7688. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7689. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7690. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7691. msm_routing_put_audio_mixer),
  7692. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7693. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7694. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7695. msm_routing_put_audio_mixer),
  7696. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7697. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7698. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7699. msm_routing_put_audio_mixer),
  7700. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7701. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7702. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7703. msm_routing_put_audio_mixer),
  7704. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7705. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7706. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7707. msm_routing_put_audio_mixer),
  7708. };
  7709. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  7710. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7711. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7712. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7713. msm_routing_put_audio_mixer),
  7714. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7715. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7716. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7717. msm_routing_put_audio_mixer),
  7718. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7719. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7720. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7721. msm_routing_put_audio_mixer),
  7722. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7723. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7724. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7725. msm_routing_put_audio_mixer),
  7726. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7727. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7728. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7729. msm_routing_put_audio_mixer),
  7730. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7731. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7732. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7733. msm_routing_put_audio_mixer),
  7734. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7735. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7736. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7737. msm_routing_put_audio_mixer),
  7738. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7739. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7740. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7741. msm_routing_put_audio_mixer),
  7742. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7743. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7744. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7745. msm_routing_put_audio_mixer),
  7746. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7747. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7748. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7749. msm_routing_put_audio_mixer),
  7750. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7751. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7752. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7753. msm_routing_put_audio_mixer),
  7754. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7755. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7756. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7757. msm_routing_put_audio_mixer),
  7758. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7759. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7760. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7761. msm_routing_put_audio_mixer),
  7762. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7763. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7764. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7765. msm_routing_put_audio_mixer),
  7766. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7767. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7768. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7769. msm_routing_put_audio_mixer),
  7770. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7771. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7772. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7773. msm_routing_put_audio_mixer),
  7774. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7775. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7776. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7777. msm_routing_put_audio_mixer),
  7778. };
  7779. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  7780. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7781. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7782. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7783. msm_routing_put_audio_mixer),
  7784. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7785. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7786. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7787. msm_routing_put_audio_mixer),
  7788. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7789. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7790. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7791. msm_routing_put_audio_mixer),
  7792. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7793. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7794. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7795. msm_routing_put_audio_mixer),
  7796. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7797. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7798. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7799. msm_routing_put_audio_mixer),
  7800. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7801. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7802. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7803. msm_routing_put_audio_mixer),
  7804. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7805. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7806. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7807. msm_routing_put_audio_mixer),
  7808. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7809. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7810. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7811. msm_routing_put_audio_mixer),
  7812. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7813. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7814. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7815. msm_routing_put_audio_mixer),
  7816. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7817. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7818. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7819. msm_routing_put_audio_mixer),
  7820. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7821. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7822. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7823. msm_routing_put_audio_mixer),
  7824. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7825. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7826. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7827. msm_routing_put_audio_mixer),
  7828. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7829. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7830. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7831. msm_routing_put_audio_mixer),
  7832. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7833. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7834. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7835. msm_routing_put_audio_mixer),
  7836. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7837. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7838. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7839. msm_routing_put_audio_mixer),
  7840. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7841. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7842. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7843. msm_routing_put_audio_mixer),
  7844. };
  7845. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  7846. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7847. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7848. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7849. msm_routing_put_audio_mixer),
  7850. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7851. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7852. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7853. msm_routing_put_audio_mixer),
  7854. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7855. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7856. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7857. msm_routing_put_audio_mixer),
  7858. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7859. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7860. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7861. msm_routing_put_audio_mixer),
  7862. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7863. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7864. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7865. msm_routing_put_audio_mixer),
  7866. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7867. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7868. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7869. msm_routing_put_audio_mixer),
  7870. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7871. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7872. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7873. msm_routing_put_audio_mixer),
  7874. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7875. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7876. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7877. msm_routing_put_audio_mixer),
  7878. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7879. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7880. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7881. msm_routing_put_audio_mixer),
  7882. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7883. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7884. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7885. msm_routing_put_audio_mixer),
  7886. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7887. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7888. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7889. msm_routing_put_audio_mixer),
  7890. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7891. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7892. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7893. msm_routing_put_audio_mixer),
  7894. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7895. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7896. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7897. msm_routing_put_audio_mixer),
  7898. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7899. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7900. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7901. msm_routing_put_audio_mixer),
  7902. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7903. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7904. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7905. msm_routing_put_audio_mixer),
  7906. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7907. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7908. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7909. msm_routing_put_audio_mixer),
  7910. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7911. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7912. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7913. msm_routing_put_audio_mixer),
  7914. };
  7915. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  7916. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7917. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7918. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7919. msm_routing_put_audio_mixer),
  7920. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7921. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7922. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7923. msm_routing_put_audio_mixer),
  7924. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7925. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7926. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7927. msm_routing_put_audio_mixer),
  7928. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7929. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7930. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7931. msm_routing_put_audio_mixer),
  7932. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7933. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7934. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7935. msm_routing_put_audio_mixer),
  7936. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7937. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7938. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7939. msm_routing_put_audio_mixer),
  7940. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7941. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7942. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7943. msm_routing_put_audio_mixer),
  7944. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7945. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7946. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7947. msm_routing_put_audio_mixer),
  7948. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7949. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7950. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7951. msm_routing_put_audio_mixer),
  7952. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7953. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7954. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7955. msm_routing_put_audio_mixer),
  7956. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7957. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7958. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7959. msm_routing_put_audio_mixer),
  7960. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7961. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7962. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7963. msm_routing_put_audio_mixer),
  7964. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7965. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7966. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7967. msm_routing_put_audio_mixer),
  7968. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7969. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7970. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7971. msm_routing_put_audio_mixer),
  7972. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7973. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7974. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7975. msm_routing_put_audio_mixer),
  7976. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7977. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7978. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7979. msm_routing_put_audio_mixer),
  7980. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7981. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7982. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7983. msm_routing_put_audio_mixer),
  7984. };
  7985. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  7986. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7987. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7988. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7989. msm_routing_put_audio_mixer),
  7990. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7991. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7992. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7993. msm_routing_put_audio_mixer),
  7994. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7995. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7996. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7997. msm_routing_put_audio_mixer),
  7998. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7999. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8000. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8001. msm_routing_put_audio_mixer),
  8002. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8003. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8004. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8005. msm_routing_put_audio_mixer),
  8006. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8007. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8008. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8009. msm_routing_put_audio_mixer),
  8010. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8011. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8012. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8013. msm_routing_put_audio_mixer),
  8014. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8015. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8016. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8017. msm_routing_put_audio_mixer),
  8018. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8019. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8020. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8021. msm_routing_put_audio_mixer),
  8022. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8023. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8024. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8025. msm_routing_put_audio_mixer),
  8026. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8027. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8028. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8029. msm_routing_put_audio_mixer),
  8030. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8031. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8032. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8033. msm_routing_put_audio_mixer),
  8034. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8035. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8036. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8037. msm_routing_put_audio_mixer),
  8038. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8039. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8040. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8041. msm_routing_put_audio_mixer),
  8042. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8043. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8044. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8045. msm_routing_put_audio_mixer),
  8046. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8047. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8048. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8049. msm_routing_put_audio_mixer),
  8050. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8051. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8052. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8053. msm_routing_put_audio_mixer),
  8054. };
  8055. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  8056. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8057. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8058. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8059. msm_routing_put_audio_mixer),
  8060. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8061. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8062. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8063. msm_routing_put_audio_mixer),
  8064. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8065. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8066. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8067. msm_routing_put_audio_mixer),
  8068. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8069. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8070. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8071. msm_routing_put_audio_mixer),
  8072. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8073. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8074. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8075. msm_routing_put_audio_mixer),
  8076. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8077. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8078. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8079. msm_routing_put_audio_mixer),
  8080. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8081. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8082. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8083. msm_routing_put_audio_mixer),
  8084. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8085. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8086. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8087. msm_routing_put_audio_mixer),
  8088. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8089. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8090. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8091. msm_routing_put_audio_mixer),
  8092. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8093. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8094. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8095. msm_routing_put_audio_mixer),
  8096. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8097. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8098. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8099. msm_routing_put_audio_mixer),
  8100. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8101. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8102. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8103. msm_routing_put_audio_mixer),
  8104. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8105. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8106. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8107. msm_routing_put_audio_mixer),
  8108. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8109. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8110. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8111. msm_routing_put_audio_mixer),
  8112. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8113. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8114. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8115. msm_routing_put_audio_mixer),
  8116. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8117. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8118. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8119. msm_routing_put_audio_mixer),
  8120. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8121. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8122. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8123. msm_routing_put_audio_mixer),
  8124. };
  8125. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  8126. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8127. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8128. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8129. msm_routing_put_audio_mixer),
  8130. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8131. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8132. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8133. msm_routing_put_audio_mixer),
  8134. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8135. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8136. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8137. msm_routing_put_audio_mixer),
  8138. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8139. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8140. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8141. msm_routing_put_audio_mixer),
  8142. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8143. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8144. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8145. msm_routing_put_audio_mixer),
  8146. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8147. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8148. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8149. msm_routing_put_audio_mixer),
  8150. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8151. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8152. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8153. msm_routing_put_audio_mixer),
  8154. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8155. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8156. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8157. msm_routing_put_audio_mixer),
  8158. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8159. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8160. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8161. msm_routing_put_audio_mixer),
  8162. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8163. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8164. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8165. msm_routing_put_audio_mixer),
  8166. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8167. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8168. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8169. msm_routing_put_audio_mixer),
  8170. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8171. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8172. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8173. msm_routing_put_audio_mixer),
  8174. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8175. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8176. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8177. msm_routing_put_audio_mixer),
  8178. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8179. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8180. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8181. msm_routing_put_audio_mixer),
  8182. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8183. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8184. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8185. msm_routing_put_audio_mixer),
  8186. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8187. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8188. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8189. msm_routing_put_audio_mixer),
  8190. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8191. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8192. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8193. msm_routing_put_audio_mixer),
  8194. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8195. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8196. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8197. msm_routing_put_audio_mixer),
  8198. };
  8199. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  8200. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8201. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8202. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8203. msm_routing_put_audio_mixer),
  8204. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8205. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8206. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8207. msm_routing_put_audio_mixer),
  8208. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8209. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8210. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8211. msm_routing_put_audio_mixer),
  8212. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8213. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8214. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8215. msm_routing_put_audio_mixer),
  8216. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8217. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8218. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8219. msm_routing_put_audio_mixer),
  8220. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8221. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8222. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8223. msm_routing_put_audio_mixer),
  8224. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8225. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8226. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8227. msm_routing_put_audio_mixer),
  8228. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8229. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8230. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8231. msm_routing_put_audio_mixer),
  8232. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8233. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8234. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8235. msm_routing_put_audio_mixer),
  8236. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8237. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8238. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8239. msm_routing_put_audio_mixer),
  8240. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8241. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8242. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8243. msm_routing_put_audio_mixer),
  8244. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8245. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8246. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8247. msm_routing_put_audio_mixer),
  8248. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8249. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8250. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8251. msm_routing_put_audio_mixer),
  8252. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8253. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8254. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8255. msm_routing_put_audio_mixer),
  8256. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8257. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8258. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8259. msm_routing_put_audio_mixer),
  8260. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8261. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8262. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8263. msm_routing_put_audio_mixer),
  8264. };
  8265. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  8266. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8267. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8268. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8269. msm_routing_put_audio_mixer),
  8270. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8271. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8272. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8273. msm_routing_put_audio_mixer),
  8274. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8275. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8276. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8277. msm_routing_put_audio_mixer),
  8278. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8279. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8280. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8281. msm_routing_put_audio_mixer),
  8282. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8283. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8284. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8285. msm_routing_put_audio_mixer),
  8286. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8287. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8288. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8289. msm_routing_put_audio_mixer),
  8290. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8291. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8292. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8293. msm_routing_put_audio_mixer),
  8294. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8295. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8296. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8297. msm_routing_put_audio_mixer),
  8298. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8299. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8300. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8301. msm_routing_put_audio_mixer),
  8302. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8303. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8304. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8305. msm_routing_put_audio_mixer),
  8306. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8307. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8308. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8309. msm_routing_put_audio_mixer),
  8310. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8311. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8312. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8313. msm_routing_put_audio_mixer),
  8314. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8315. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8316. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8317. msm_routing_put_audio_mixer),
  8318. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8319. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8320. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8321. msm_routing_put_audio_mixer),
  8322. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8323. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8324. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8325. msm_routing_put_audio_mixer),
  8326. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8327. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8328. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8329. msm_routing_put_audio_mixer),
  8330. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8331. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8332. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8333. msm_routing_put_audio_mixer),
  8334. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8335. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8336. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8337. msm_routing_put_audio_mixer),
  8338. };
  8339. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  8340. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8341. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8342. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8343. msm_routing_put_audio_mixer),
  8344. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8345. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8346. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8347. msm_routing_put_audio_mixer),
  8348. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8349. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8350. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8351. msm_routing_put_audio_mixer),
  8352. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8353. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8354. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8355. msm_routing_put_audio_mixer),
  8356. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8357. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8358. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8359. msm_routing_put_audio_mixer),
  8360. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8361. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8362. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8363. msm_routing_put_audio_mixer),
  8364. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8365. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8366. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8367. msm_routing_put_audio_mixer),
  8368. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8369. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8370. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8371. msm_routing_put_audio_mixer),
  8372. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8373. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8374. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8375. msm_routing_put_audio_mixer),
  8376. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8377. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8378. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8379. msm_routing_put_audio_mixer),
  8380. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8381. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8382. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8383. msm_routing_put_audio_mixer),
  8384. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8385. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8386. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8387. msm_routing_put_audio_mixer),
  8388. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8389. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8390. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8391. msm_routing_put_audio_mixer),
  8392. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8393. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8394. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8395. msm_routing_put_audio_mixer),
  8396. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8397. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8398. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8399. msm_routing_put_audio_mixer),
  8400. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8401. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8402. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8403. msm_routing_put_audio_mixer),
  8404. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8405. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8406. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8407. msm_routing_put_audio_mixer),
  8408. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8409. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8410. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8411. msm_routing_put_audio_mixer),
  8412. };
  8413. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  8414. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8415. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8416. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8417. msm_routing_put_audio_mixer),
  8418. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8419. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8420. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8421. msm_routing_put_audio_mixer),
  8422. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8423. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8424. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8425. msm_routing_put_audio_mixer),
  8426. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8427. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8428. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8429. msm_routing_put_audio_mixer),
  8430. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8431. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8432. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8433. msm_routing_put_audio_mixer),
  8434. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8435. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8436. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8437. msm_routing_put_audio_mixer),
  8438. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8439. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8440. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8441. msm_routing_put_audio_mixer),
  8442. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8443. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8444. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8445. msm_routing_put_audio_mixer),
  8446. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8447. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8448. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8449. msm_routing_put_audio_mixer),
  8450. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8451. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8452. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8453. msm_routing_put_audio_mixer),
  8454. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8455. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8456. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8457. msm_routing_put_audio_mixer),
  8458. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8459. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8460. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8461. msm_routing_put_audio_mixer),
  8462. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8463. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8464. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8465. msm_routing_put_audio_mixer),
  8466. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8467. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8468. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8469. msm_routing_put_audio_mixer),
  8470. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8471. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8472. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8473. msm_routing_put_audio_mixer),
  8474. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8475. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8476. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8477. msm_routing_put_audio_mixer),
  8478. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8479. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8480. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8481. msm_routing_put_audio_mixer),
  8482. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8483. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8484. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8485. msm_routing_put_audio_mixer),
  8486. };
  8487. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  8488. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8489. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8490. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8491. msm_routing_put_audio_mixer),
  8492. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8493. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8494. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8495. msm_routing_put_audio_mixer),
  8496. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8497. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8498. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8499. msm_routing_put_audio_mixer),
  8500. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8501. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8502. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8503. msm_routing_put_audio_mixer),
  8504. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8505. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8506. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8507. msm_routing_put_audio_mixer),
  8508. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8509. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8510. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8511. msm_routing_put_audio_mixer),
  8512. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8513. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8514. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8515. msm_routing_put_audio_mixer),
  8516. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8517. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8518. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8519. msm_routing_put_audio_mixer),
  8520. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8521. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8522. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8523. msm_routing_put_audio_mixer),
  8524. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8525. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8526. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8527. msm_routing_put_audio_mixer),
  8528. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8529. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8530. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8531. msm_routing_put_audio_mixer),
  8532. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8533. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8534. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8535. msm_routing_put_audio_mixer),
  8536. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8537. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8538. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8539. msm_routing_put_audio_mixer),
  8540. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8541. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8542. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8543. msm_routing_put_audio_mixer),
  8544. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8545. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8546. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8547. msm_routing_put_audio_mixer),
  8548. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8549. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8550. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8551. msm_routing_put_audio_mixer),
  8552. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8553. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8554. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8555. msm_routing_put_audio_mixer),
  8556. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8557. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8558. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8559. msm_routing_put_audio_mixer),
  8560. };
  8561. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  8562. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8563. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8564. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8565. msm_routing_put_audio_mixer),
  8566. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8567. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8568. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8569. msm_routing_put_audio_mixer),
  8570. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8571. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8572. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8573. msm_routing_put_audio_mixer),
  8574. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8575. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8576. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8577. msm_routing_put_audio_mixer),
  8578. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8579. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8580. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8581. msm_routing_put_audio_mixer),
  8582. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8583. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8584. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8585. msm_routing_put_audio_mixer),
  8586. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8587. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8588. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8589. msm_routing_put_audio_mixer),
  8590. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8591. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8592. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8593. msm_routing_put_audio_mixer),
  8594. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8595. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8596. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8597. msm_routing_put_audio_mixer),
  8598. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8599. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8600. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8601. msm_routing_put_audio_mixer),
  8602. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8603. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8604. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8605. msm_routing_put_audio_mixer),
  8606. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8607. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8608. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8609. msm_routing_put_audio_mixer),
  8610. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8611. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8612. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8613. msm_routing_put_audio_mixer),
  8614. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8615. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8616. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8617. msm_routing_put_audio_mixer),
  8618. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8619. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8620. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8621. msm_routing_put_audio_mixer),
  8622. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8623. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8624. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8625. msm_routing_put_audio_mixer),
  8626. };
  8627. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  8628. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8629. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8630. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8631. msm_routing_put_audio_mixer),
  8632. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8633. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8634. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8635. msm_routing_put_audio_mixer),
  8636. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8637. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8638. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8639. msm_routing_put_audio_mixer),
  8640. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8641. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8642. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8643. msm_routing_put_audio_mixer),
  8644. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8645. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8646. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8647. msm_routing_put_audio_mixer),
  8648. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8649. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8650. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8651. msm_routing_put_audio_mixer),
  8652. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8653. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8654. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8655. msm_routing_put_audio_mixer),
  8656. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8657. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8658. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8659. msm_routing_put_audio_mixer),
  8660. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8661. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8662. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8663. msm_routing_put_audio_mixer),
  8664. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8665. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8666. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8667. msm_routing_put_audio_mixer),
  8668. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8669. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8670. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8671. msm_routing_put_audio_mixer),
  8672. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8673. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8674. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8675. msm_routing_put_audio_mixer),
  8676. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8677. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8678. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8679. msm_routing_put_audio_mixer),
  8680. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8681. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8682. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8683. msm_routing_put_audio_mixer),
  8684. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8685. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8686. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8687. msm_routing_put_audio_mixer),
  8688. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8689. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8690. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8691. msm_routing_put_audio_mixer),
  8692. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8693. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8694. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8695. msm_routing_put_audio_mixer),
  8696. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8697. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8698. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8699. msm_routing_put_audio_mixer),
  8700. };
  8701. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  8702. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8703. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8704. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8705. msm_routing_put_audio_mixer),
  8706. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8707. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8708. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8709. msm_routing_put_audio_mixer),
  8710. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8711. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8712. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8713. msm_routing_put_audio_mixer),
  8714. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8715. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8716. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8717. msm_routing_put_audio_mixer),
  8718. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8719. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8720. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8721. msm_routing_put_audio_mixer),
  8722. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8723. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8724. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8725. msm_routing_put_audio_mixer),
  8726. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8727. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8728. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8729. msm_routing_put_audio_mixer),
  8730. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8731. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8732. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8733. msm_routing_put_audio_mixer),
  8734. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8735. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8736. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8737. msm_routing_put_audio_mixer),
  8738. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8739. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8740. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8741. msm_routing_put_audio_mixer),
  8742. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8743. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8744. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8745. msm_routing_put_audio_mixer),
  8746. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8747. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8748. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8749. msm_routing_put_audio_mixer),
  8750. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8751. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8752. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8753. msm_routing_put_audio_mixer),
  8754. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8755. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8756. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8757. msm_routing_put_audio_mixer),
  8758. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8759. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8760. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8761. msm_routing_put_audio_mixer),
  8762. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8763. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8764. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8765. msm_routing_put_audio_mixer),
  8766. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8767. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8768. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8769. msm_routing_put_audio_mixer),
  8770. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8771. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8772. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8773. msm_routing_put_audio_mixer),
  8774. };
  8775. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  8776. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8777. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8778. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8779. msm_routing_put_audio_mixer),
  8780. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8781. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8782. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8783. msm_routing_put_audio_mixer),
  8784. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8785. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8786. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8787. msm_routing_put_audio_mixer),
  8788. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8789. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8790. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8791. msm_routing_put_audio_mixer),
  8792. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8793. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8794. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8795. msm_routing_put_audio_mixer),
  8796. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8797. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8798. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8799. msm_routing_put_audio_mixer),
  8800. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8801. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8802. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8803. msm_routing_put_audio_mixer),
  8804. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8805. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8806. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8807. msm_routing_put_audio_mixer),
  8808. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8809. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8810. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8811. msm_routing_put_audio_mixer),
  8812. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8813. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8814. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8815. msm_routing_put_audio_mixer),
  8816. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8817. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8818. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8819. msm_routing_put_audio_mixer),
  8820. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8821. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8822. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8823. msm_routing_put_audio_mixer),
  8824. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8825. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8826. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8827. msm_routing_put_audio_mixer),
  8828. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8829. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8830. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8831. msm_routing_put_audio_mixer),
  8832. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8833. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8834. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8835. msm_routing_put_audio_mixer),
  8836. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8837. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8838. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8839. msm_routing_put_audio_mixer),
  8840. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8841. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8842. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8843. msm_routing_put_audio_mixer),
  8844. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8845. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8846. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8847. msm_routing_put_audio_mixer),
  8848. };
  8849. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  8850. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  8851. MSM_BACKEND_DAI_PRI_I2S_TX,
  8852. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8853. msm_routing_put_audio_mixer),
  8854. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8855. MSM_BACKEND_DAI_MI2S_TX,
  8856. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8857. msm_routing_put_audio_mixer),
  8858. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8859. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8860. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8861. msm_routing_put_audio_mixer),
  8862. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8863. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8864. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8865. msm_routing_put_audio_mixer),
  8866. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8867. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8868. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8869. msm_routing_put_audio_mixer),
  8870. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8871. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8872. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8873. msm_routing_put_audio_mixer),
  8874. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8875. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8876. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8877. msm_routing_put_audio_mixer),
  8878. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8879. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8880. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8881. msm_routing_put_audio_mixer),
  8882. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8883. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8884. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8885. msm_routing_put_audio_mixer),
  8886. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8887. MSM_BACKEND_DAI_AUXPCM_TX,
  8888. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8889. msm_routing_put_audio_mixer),
  8890. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  8891. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8892. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8893. msm_routing_put_audio_mixer),
  8894. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8895. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8896. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8897. msm_routing_put_audio_mixer),
  8898. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8899. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8900. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8901. msm_routing_put_audio_mixer),
  8902. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  8903. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8904. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8905. msm_routing_put_audio_mixer),
  8906. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8907. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8908. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8909. msm_routing_put_audio_mixer),
  8910. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8911. MSM_BACKEND_DAI_INT_FM_TX,
  8912. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8913. msm_routing_put_audio_mixer),
  8914. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8915. MSM_BACKEND_DAI_AFE_PCM_TX,
  8916. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8917. msm_routing_put_audio_mixer),
  8918. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8919. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8920. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8921. msm_routing_put_audio_mixer),
  8922. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8923. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8924. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8925. msm_routing_put_audio_mixer),
  8926. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  8927. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  8928. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8929. msm_routing_put_audio_mixer),
  8930. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8931. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8932. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8933. msm_routing_put_audio_mixer),
  8934. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8935. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8936. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8937. msm_routing_put_audio_mixer),
  8938. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8939. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8940. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8941. msm_routing_put_audio_mixer),
  8942. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8943. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8944. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8945. msm_routing_put_audio_mixer),
  8946. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8947. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8948. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8949. msm_routing_put_audio_mixer),
  8950. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8951. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8952. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8953. msm_routing_put_audio_mixer),
  8954. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8955. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8956. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8957. msm_routing_put_audio_mixer),
  8958. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8959. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8960. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8961. msm_routing_put_audio_mixer),
  8962. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8963. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8964. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8965. msm_routing_put_audio_mixer),
  8966. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8967. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8968. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8969. msm_routing_put_audio_mixer),
  8970. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8971. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8972. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8973. msm_routing_put_audio_mixer),
  8974. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8975. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8976. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8977. msm_routing_put_audio_mixer),
  8978. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8979. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8980. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8981. msm_routing_put_audio_mixer),
  8982. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8983. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8984. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8985. msm_routing_put_audio_mixer),
  8986. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8987. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8988. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8989. msm_routing_put_audio_mixer),
  8990. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8991. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8992. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8993. msm_routing_put_audio_mixer),
  8994. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8995. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8996. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8997. msm_routing_put_audio_mixer),
  8998. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8999. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9000. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9001. msm_routing_put_audio_mixer),
  9002. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9003. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9004. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9005. msm_routing_put_audio_mixer),
  9006. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9007. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9008. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9009. msm_routing_put_audio_mixer),
  9010. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9011. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9012. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9013. msm_routing_put_audio_mixer),
  9014. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9015. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9016. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9017. msm_routing_put_audio_mixer),
  9018. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9019. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9020. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9021. msm_routing_put_audio_mixer),
  9022. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9023. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9024. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9025. msm_routing_put_audio_mixer),
  9026. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9027. MSM_BACKEND_DAI_USB_TX,
  9028. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9029. msm_routing_put_audio_mixer),
  9030. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9031. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9032. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9033. msm_routing_put_audio_mixer),
  9034. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9035. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9036. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9037. msm_routing_put_audio_mixer),
  9038. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9039. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9040. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9041. msm_routing_put_audio_mixer),
  9042. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9043. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9044. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9045. msm_routing_put_audio_mixer),
  9046. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9047. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9048. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9049. msm_routing_put_audio_mixer),
  9050. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9051. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9052. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9053. msm_routing_put_audio_mixer),
  9054. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9055. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9056. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9057. msm_routing_put_audio_mixer),
  9058. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9059. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9060. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9061. msm_routing_put_audio_mixer),
  9062. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9063. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9064. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9065. msm_routing_put_audio_mixer),
  9066. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9067. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9068. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9069. msm_routing_put_audio_mixer),
  9070. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9071. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9072. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9073. msm_routing_put_audio_mixer),
  9074. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9075. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9076. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9077. msm_routing_put_audio_mixer),
  9078. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9079. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9080. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9081. msm_routing_put_audio_mixer),
  9082. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9083. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9084. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9085. msm_routing_put_audio_mixer),
  9086. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  9087. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  9088. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9089. msm_routing_put_audio_mixer),
  9090. };
  9091. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  9092. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9093. MSM_BACKEND_DAI_INT_FM_TX,
  9094. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9095. msm_routing_put_audio_mixer),
  9096. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9097. MSM_BACKEND_DAI_MI2S_TX,
  9098. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9099. msm_routing_put_audio_mixer),
  9100. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9101. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9102. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9103. msm_routing_put_audio_mixer),
  9104. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9105. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9106. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9107. msm_routing_put_audio_mixer),
  9108. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9109. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9110. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9111. msm_routing_put_audio_mixer),
  9112. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9113. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9114. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9115. msm_routing_put_audio_mixer),
  9116. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9117. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9118. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9119. msm_routing_put_audio_mixer),
  9120. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9121. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9122. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9123. msm_routing_put_audio_mixer),
  9124. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9125. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9126. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9127. msm_routing_put_audio_mixer),
  9128. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9129. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9130. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9131. msm_routing_put_audio_mixer),
  9132. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  9133. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9134. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9135. msm_routing_put_audio_mixer),
  9136. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9137. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9138. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9139. msm_routing_put_audio_mixer),
  9140. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9141. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9142. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9143. msm_routing_put_audio_mixer),
  9144. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9145. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9146. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9147. msm_routing_put_audio_mixer),
  9148. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9149. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9150. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9151. msm_routing_put_audio_mixer),
  9152. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9153. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9154. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9155. msm_routing_put_audio_mixer),
  9156. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9157. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9158. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9159. msm_routing_put_audio_mixer),
  9160. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9161. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9162. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9163. msm_routing_put_audio_mixer),
  9164. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9165. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9166. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9167. msm_routing_put_audio_mixer),
  9168. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9169. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9170. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9171. msm_routing_put_audio_mixer),
  9172. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9173. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9174. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9175. msm_routing_put_audio_mixer),
  9176. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9177. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9178. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9179. msm_routing_put_audio_mixer),
  9180. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9181. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9182. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9183. msm_routing_put_audio_mixer),
  9184. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9185. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9186. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9187. msm_routing_put_audio_mixer),
  9188. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9189. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9190. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9191. msm_routing_put_audio_mixer),
  9192. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9193. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9194. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9195. msm_routing_put_audio_mixer),
  9196. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9197. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9198. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9199. msm_routing_put_audio_mixer),
  9200. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9201. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9202. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9203. msm_routing_put_audio_mixer),
  9204. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9205. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9206. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9207. msm_routing_put_audio_mixer),
  9208. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9209. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9210. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9211. msm_routing_put_audio_mixer),
  9212. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9213. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9214. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9215. msm_routing_put_audio_mixer),
  9216. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9217. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9218. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9219. msm_routing_put_audio_mixer),
  9220. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9221. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9222. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9223. msm_routing_put_audio_mixer),
  9224. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9225. MSM_BACKEND_DAI_USB_TX,
  9226. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9227. msm_routing_put_audio_mixer),
  9228. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9229. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9230. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9231. msm_routing_put_audio_mixer),
  9232. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9233. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9234. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9235. msm_routing_put_audio_mixer),
  9236. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9237. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9238. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9239. msm_routing_put_audio_mixer),
  9240. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9241. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9242. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9243. msm_routing_put_audio_mixer),
  9244. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9245. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9246. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9247. msm_routing_put_audio_mixer),
  9248. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9249. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9250. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9251. msm_routing_put_audio_mixer),
  9252. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9253. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9254. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9255. msm_routing_put_audio_mixer),
  9256. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9257. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9258. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9259. msm_routing_put_audio_mixer),
  9260. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9261. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9262. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9263. msm_routing_put_audio_mixer),
  9264. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9265. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9266. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9267. msm_routing_put_audio_mixer),
  9268. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9269. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9270. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9271. msm_routing_put_audio_mixer),
  9272. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9273. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9274. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9275. msm_routing_put_audio_mixer),
  9276. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9277. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9278. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9279. msm_routing_put_audio_mixer),
  9280. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9281. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9282. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9283. msm_routing_put_audio_mixer),
  9284. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  9285. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  9286. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9287. msm_routing_put_audio_mixer),
  9288. };
  9289. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  9290. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9291. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9292. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9293. msm_routing_put_audio_mixer),
  9294. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9295. MSM_BACKEND_DAI_INT_FM_TX,
  9296. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9297. msm_routing_put_audio_mixer),
  9298. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9299. MSM_BACKEND_DAI_MI2S_TX,
  9300. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9301. msm_routing_put_audio_mixer),
  9302. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9303. MSM_BACKEND_DAI_AFE_PCM_TX,
  9304. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9305. msm_routing_put_audio_mixer),
  9306. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9307. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9308. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9309. msm_routing_put_audio_mixer),
  9310. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9311. MSM_BACKEND_DAI_AUXPCM_TX,
  9312. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9313. msm_routing_put_audio_mixer),
  9314. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9315. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9316. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9317. msm_routing_put_audio_mixer),
  9318. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9319. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9320. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9321. msm_routing_put_audio_mixer),
  9322. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9323. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9324. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9325. msm_routing_put_audio_mixer),
  9326. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9327. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9328. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9329. msm_routing_put_audio_mixer),
  9330. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9331. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9332. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9333. msm_routing_put_audio_mixer),
  9334. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9335. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9336. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9337. msm_routing_put_audio_mixer),
  9338. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9339. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9340. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9341. msm_routing_put_audio_mixer),
  9342. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9343. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9344. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9345. msm_routing_put_audio_mixer),
  9346. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9347. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9348. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9349. msm_routing_put_audio_mixer),
  9350. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9351. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9352. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9353. msm_routing_put_audio_mixer),
  9354. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9355. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9356. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9357. msm_routing_put_audio_mixer),
  9358. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9359. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9360. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9361. msm_routing_put_audio_mixer),
  9362. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9363. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9364. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9365. msm_routing_put_audio_mixer),
  9366. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9367. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9368. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9369. msm_routing_put_audio_mixer),
  9370. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9371. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9372. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9373. msm_routing_put_audio_mixer),
  9374. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9375. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9376. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9377. msm_routing_put_audio_mixer),
  9378. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9379. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9380. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9381. msm_routing_put_audio_mixer),
  9382. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9383. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9384. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9385. msm_routing_put_audio_mixer),
  9386. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9387. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9388. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9389. msm_routing_put_audio_mixer),
  9390. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9391. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9392. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9393. msm_routing_put_audio_mixer),
  9394. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9395. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9396. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9397. msm_routing_put_audio_mixer),
  9398. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9399. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9400. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9401. msm_routing_put_audio_mixer),
  9402. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9403. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9404. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9405. msm_routing_put_audio_mixer),
  9406. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9407. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9408. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9409. msm_routing_put_audio_mixer),
  9410. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9411. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9412. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9413. msm_routing_put_audio_mixer),
  9414. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9415. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9416. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9417. msm_routing_put_audio_mixer),
  9418. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9419. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9420. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9421. msm_routing_put_audio_mixer),
  9422. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9423. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9424. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9425. msm_routing_put_audio_mixer),
  9426. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9427. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9428. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9429. msm_routing_put_audio_mixer),
  9430. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9431. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9432. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9433. msm_routing_put_audio_mixer),
  9434. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9435. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9436. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9437. msm_routing_put_audio_mixer),
  9438. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9439. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9440. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9441. msm_routing_put_audio_mixer),
  9442. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9443. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9444. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9445. msm_routing_put_audio_mixer),
  9446. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9447. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9448. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9449. msm_routing_put_audio_mixer),
  9450. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9451. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9452. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9453. msm_routing_put_audio_mixer),
  9454. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9455. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9456. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9457. msm_routing_put_audio_mixer),
  9458. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9459. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9460. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9461. msm_routing_put_audio_mixer),
  9462. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9463. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9464. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9465. msm_routing_put_audio_mixer),
  9466. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9467. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9468. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9469. msm_routing_put_audio_mixer),
  9470. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9471. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9472. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9473. msm_routing_put_audio_mixer),
  9474. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9475. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9476. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9477. msm_routing_put_audio_mixer),
  9478. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  9479. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  9480. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9481. msm_routing_put_audio_mixer),
  9482. };
  9483. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  9484. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9485. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9486. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9487. msm_routing_put_audio_mixer),
  9488. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9489. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9490. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9491. msm_routing_put_audio_mixer),
  9492. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9493. MSM_BACKEND_DAI_INT_FM_TX,
  9494. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9495. msm_routing_put_audio_mixer),
  9496. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9497. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9498. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9499. msm_routing_put_audio_mixer),
  9500. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9501. MSM_BACKEND_DAI_AFE_PCM_TX,
  9502. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9503. msm_routing_put_audio_mixer),
  9504. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9505. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9506. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9507. msm_routing_put_audio_mixer),
  9508. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9509. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9510. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9511. msm_routing_put_audio_mixer),
  9512. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9513. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9514. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9515. msm_routing_put_audio_mixer),
  9516. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9517. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9518. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9519. msm_routing_put_audio_mixer),
  9520. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9521. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9522. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9523. msm_routing_put_audio_mixer),
  9524. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9525. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9526. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9527. msm_routing_put_audio_mixer),
  9528. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9529. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9530. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9531. msm_routing_put_audio_mixer),
  9532. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9533. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9534. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9535. msm_routing_put_audio_mixer),
  9536. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9537. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9538. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9539. msm_routing_put_audio_mixer),
  9540. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9541. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9542. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9543. msm_routing_put_audio_mixer),
  9544. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9545. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9546. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9547. msm_routing_put_audio_mixer),
  9548. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9549. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9550. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9551. msm_routing_put_audio_mixer),
  9552. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9553. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9554. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9555. msm_routing_put_audio_mixer),
  9556. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9557. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9558. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9559. msm_routing_put_audio_mixer),
  9560. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9561. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9562. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9563. msm_routing_put_audio_mixer),
  9564. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9565. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9566. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9567. msm_routing_put_audio_mixer),
  9568. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9569. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9570. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9571. msm_routing_put_audio_mixer),
  9572. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9573. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9574. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9575. msm_routing_put_audio_mixer),
  9576. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9577. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9578. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9579. msm_routing_put_audio_mixer),
  9580. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9581. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9582. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9583. msm_routing_put_audio_mixer),
  9584. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9585. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9586. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9587. msm_routing_put_audio_mixer),
  9588. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9589. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9590. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9591. msm_routing_put_audio_mixer),
  9592. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9593. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9594. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9595. msm_routing_put_audio_mixer),
  9596. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9597. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9598. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9599. msm_routing_put_audio_mixer),
  9600. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9601. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9602. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9603. msm_routing_put_audio_mixer),
  9604. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9605. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9606. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9607. msm_routing_put_audio_mixer),
  9608. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9609. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9610. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9611. msm_routing_put_audio_mixer),
  9612. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9613. MSM_BACKEND_DAI_USB_TX,
  9614. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9615. msm_routing_put_audio_mixer),
  9616. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9617. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9618. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9619. msm_routing_put_audio_mixer),
  9620. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9621. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9622. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9623. msm_routing_put_audio_mixer),
  9624. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9625. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9626. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9627. msm_routing_put_audio_mixer),
  9628. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9629. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9630. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9631. msm_routing_put_audio_mixer),
  9632. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9633. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9634. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9635. msm_routing_put_audio_mixer),
  9636. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9637. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9638. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9639. msm_routing_put_audio_mixer),
  9640. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9641. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9642. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9643. msm_routing_put_audio_mixer),
  9644. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9645. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9646. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9647. msm_routing_put_audio_mixer),
  9648. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9649. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9650. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9651. msm_routing_put_audio_mixer),
  9652. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9653. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9654. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9655. msm_routing_put_audio_mixer),
  9656. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9657. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9658. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9659. msm_routing_put_audio_mixer),
  9660. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9661. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9662. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9663. msm_routing_put_audio_mixer),
  9664. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9665. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9666. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9667. msm_routing_put_audio_mixer),
  9668. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  9669. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  9670. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9671. msm_routing_put_audio_mixer),
  9672. };
  9673. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  9674. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9675. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9676. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9677. msm_routing_put_audio_mixer),
  9678. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9679. MSM_BACKEND_DAI_INT_FM_TX,
  9680. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9681. msm_routing_put_audio_mixer),
  9682. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9683. MSM_BACKEND_DAI_MI2S_TX,
  9684. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9685. msm_routing_put_audio_mixer),
  9686. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9687. MSM_BACKEND_DAI_AFE_PCM_TX,
  9688. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9689. msm_routing_put_audio_mixer),
  9690. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9691. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9692. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9693. msm_routing_put_audio_mixer),
  9694. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9695. MSM_BACKEND_DAI_AUXPCM_TX,
  9696. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9697. msm_routing_put_audio_mixer),
  9698. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9699. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9700. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9701. msm_routing_put_audio_mixer),
  9702. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9703. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9704. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9705. msm_routing_put_audio_mixer),
  9706. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9707. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9708. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9709. msm_routing_put_audio_mixer),
  9710. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9711. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9712. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9713. msm_routing_put_audio_mixer),
  9714. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9715. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9716. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9717. msm_routing_put_audio_mixer),
  9718. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9719. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9720. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9721. msm_routing_put_audio_mixer),
  9722. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9723. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9724. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9725. msm_routing_put_audio_mixer),
  9726. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9727. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9728. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9729. msm_routing_put_audio_mixer),
  9730. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9731. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9732. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9733. msm_routing_put_audio_mixer),
  9734. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9735. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9736. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9737. msm_routing_put_audio_mixer),
  9738. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9739. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9740. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9741. msm_routing_put_audio_mixer),
  9742. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9743. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9744. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9745. msm_routing_put_audio_mixer),
  9746. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9747. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9748. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9749. msm_routing_put_audio_mixer),
  9750. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9751. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9752. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9753. msm_routing_put_audio_mixer),
  9754. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9755. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9756. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9757. msm_routing_put_audio_mixer),
  9758. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9759. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9760. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9761. msm_routing_put_audio_mixer),
  9762. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9763. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9764. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9765. msm_routing_put_audio_mixer),
  9766. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9767. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9768. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9769. msm_routing_put_audio_mixer),
  9770. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9771. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9772. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9773. msm_routing_put_audio_mixer),
  9774. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9775. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9776. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9777. msm_routing_put_audio_mixer),
  9778. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9779. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9780. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9781. msm_routing_put_audio_mixer),
  9782. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9783. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9784. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9785. msm_routing_put_audio_mixer),
  9786. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9787. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9788. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9789. msm_routing_put_audio_mixer),
  9790. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9791. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9792. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9793. msm_routing_put_audio_mixer),
  9794. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9795. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9796. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9797. msm_routing_put_audio_mixer),
  9798. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9799. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9800. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9801. msm_routing_put_audio_mixer),
  9802. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9803. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9804. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9805. msm_routing_put_audio_mixer),
  9806. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9807. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9808. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9809. msm_routing_put_audio_mixer),
  9810. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9811. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9812. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9813. msm_routing_put_audio_mixer),
  9814. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9815. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9816. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9817. msm_routing_put_audio_mixer),
  9818. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9819. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9820. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9821. msm_routing_put_audio_mixer),
  9822. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9823. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9824. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9825. msm_routing_put_audio_mixer),
  9826. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9827. MSM_BACKEND_DAI_USB_TX,
  9828. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9829. msm_routing_put_audio_mixer),
  9830. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9831. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9832. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9833. msm_routing_put_audio_mixer),
  9834. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9835. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9836. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9837. msm_routing_put_audio_mixer),
  9838. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9839. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9840. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9841. msm_routing_put_audio_mixer),
  9842. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9843. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9844. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9845. msm_routing_put_audio_mixer),
  9846. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9847. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9848. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9849. msm_routing_put_audio_mixer),
  9850. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9851. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9852. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9853. msm_routing_put_audio_mixer),
  9854. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9855. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9856. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9857. msm_routing_put_audio_mixer),
  9858. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9859. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9860. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9861. msm_routing_put_audio_mixer),
  9862. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9863. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9864. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9865. msm_routing_put_audio_mixer),
  9866. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9867. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9868. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9869. msm_routing_put_audio_mixer),
  9870. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9871. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9872. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9873. msm_routing_put_audio_mixer),
  9874. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9875. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9876. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9877. msm_routing_put_audio_mixer),
  9878. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9879. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9880. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9881. msm_routing_put_audio_mixer),
  9882. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9883. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9884. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9885. msm_routing_put_audio_mixer),
  9886. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  9887. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  9888. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9889. msm_routing_put_audio_mixer),
  9890. };
  9891. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  9892. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9893. MSM_BACKEND_DAI_INT_FM_TX,
  9894. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9895. msm_routing_put_audio_mixer),
  9896. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9897. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9898. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9899. msm_routing_put_audio_mixer),
  9900. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9901. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9902. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9903. msm_routing_put_audio_mixer),
  9904. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9905. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9906. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9907. msm_routing_put_audio_mixer),
  9908. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9909. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9910. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9911. msm_routing_put_audio_mixer),
  9912. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9913. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9914. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9915. msm_routing_put_audio_mixer),
  9916. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9917. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9918. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9919. msm_routing_put_audio_mixer),
  9920. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9921. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9922. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9923. msm_routing_put_audio_mixer),
  9924. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9925. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9926. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9927. msm_routing_put_audio_mixer),
  9928. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9929. MSM_BACKEND_DAI_AUXPCM_TX,
  9930. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9931. msm_routing_put_audio_mixer),
  9932. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  9933. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9934. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9935. msm_routing_put_audio_mixer),
  9936. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9937. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9938. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9939. msm_routing_put_audio_mixer),
  9940. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9941. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9942. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9943. msm_routing_put_audio_mixer),
  9944. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9945. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9946. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9947. msm_routing_put_audio_mixer),
  9948. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9949. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9950. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9951. msm_routing_put_audio_mixer),
  9952. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9953. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9954. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9955. msm_routing_put_audio_mixer),
  9956. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9957. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9958. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9959. msm_routing_put_audio_mixer),
  9960. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9961. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9962. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9963. msm_routing_put_audio_mixer),
  9964. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9965. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9966. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9967. msm_routing_put_audio_mixer),
  9968. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9969. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9970. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9971. msm_routing_put_audio_mixer),
  9972. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9973. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9974. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9975. msm_routing_put_audio_mixer),
  9976. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9977. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9978. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9979. msm_routing_put_audio_mixer),
  9980. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9981. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9982. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9983. msm_routing_put_audio_mixer),
  9984. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9985. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9986. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9987. msm_routing_put_audio_mixer),
  9988. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9989. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9990. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9991. msm_routing_put_audio_mixer),
  9992. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9993. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9994. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9995. msm_routing_put_audio_mixer),
  9996. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9997. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9998. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9999. msm_routing_put_audio_mixer),
  10000. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10001. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10002. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10003. msm_routing_put_audio_mixer),
  10004. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10005. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10006. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10007. msm_routing_put_audio_mixer),
  10008. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10009. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10010. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10011. msm_routing_put_audio_mixer),
  10012. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10013. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10014. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10015. msm_routing_put_audio_mixer),
  10016. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10017. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10018. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10019. msm_routing_put_audio_mixer),
  10020. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10021. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10022. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10023. msm_routing_put_audio_mixer),
  10024. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10025. MSM_BACKEND_DAI_USB_TX,
  10026. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10027. msm_routing_put_audio_mixer),
  10028. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10029. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10030. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10031. msm_routing_put_audio_mixer),
  10032. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10033. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10034. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10035. msm_routing_put_audio_mixer),
  10036. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10037. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10038. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10039. msm_routing_put_audio_mixer),
  10040. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10041. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10042. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10043. msm_routing_put_audio_mixer),
  10044. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10045. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10046. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10047. msm_routing_put_audio_mixer),
  10048. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10049. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10050. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10051. msm_routing_put_audio_mixer),
  10052. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10053. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10054. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10055. msm_routing_put_audio_mixer),
  10056. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10057. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10058. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10059. msm_routing_put_audio_mixer),
  10060. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10061. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10062. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10063. msm_routing_put_audio_mixer),
  10064. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10065. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10066. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10067. msm_routing_put_audio_mixer),
  10068. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10069. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10070. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10071. msm_routing_put_audio_mixer),
  10072. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10073. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10074. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10075. msm_routing_put_audio_mixer),
  10076. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10077. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10078. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10079. msm_routing_put_audio_mixer),
  10080. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10081. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10082. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10083. msm_routing_put_audio_mixer),
  10084. };
  10085. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  10086. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10087. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10088. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10089. msm_routing_put_audio_mixer),
  10090. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10091. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10092. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10093. msm_routing_put_audio_mixer),
  10094. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10095. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10096. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10097. msm_routing_put_audio_mixer),
  10098. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10099. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10100. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10101. msm_routing_put_audio_mixer),
  10102. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10103. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10104. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10105. msm_routing_put_audio_mixer),
  10106. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10107. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10108. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10109. msm_routing_put_audio_mixer),
  10110. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10111. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10112. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10113. msm_routing_put_audio_mixer),
  10114. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10115. MSM_BACKEND_DAI_INT_FM_TX,
  10116. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10117. msm_routing_put_audio_mixer),
  10118. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10119. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10120. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10121. msm_routing_put_audio_mixer),
  10122. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10123. MSM_BACKEND_DAI_AFE_PCM_TX,
  10124. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10125. msm_routing_put_audio_mixer),
  10126. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10127. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10128. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10129. msm_routing_put_audio_mixer),
  10130. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10131. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10132. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10133. msm_routing_put_audio_mixer),
  10134. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10135. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10136. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10137. msm_routing_put_audio_mixer),
  10138. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10139. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10140. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10141. msm_routing_put_audio_mixer),
  10142. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10143. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10144. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10145. msm_routing_put_audio_mixer),
  10146. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10147. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10148. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10149. msm_routing_put_audio_mixer),
  10150. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10151. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10152. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10153. msm_routing_put_audio_mixer),
  10154. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10155. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10156. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10157. msm_routing_put_audio_mixer),
  10158. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10159. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10160. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10161. msm_routing_put_audio_mixer),
  10162. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10163. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10164. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10165. msm_routing_put_audio_mixer),
  10166. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10167. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10168. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10169. msm_routing_put_audio_mixer),
  10170. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10171. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10172. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10173. msm_routing_put_audio_mixer),
  10174. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10175. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10176. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10177. msm_routing_put_audio_mixer),
  10178. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10179. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10180. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10181. msm_routing_put_audio_mixer),
  10182. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10183. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10184. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10185. msm_routing_put_audio_mixer),
  10186. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10187. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10188. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10189. msm_routing_put_audio_mixer),
  10190. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10191. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10192. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10193. msm_routing_put_audio_mixer),
  10194. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10195. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10196. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10197. msm_routing_put_audio_mixer),
  10198. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10199. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10200. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10201. msm_routing_put_audio_mixer),
  10202. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10203. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10204. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10205. msm_routing_put_audio_mixer),
  10206. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10207. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10208. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10209. msm_routing_put_audio_mixer),
  10210. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10211. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10212. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10213. msm_routing_put_audio_mixer),
  10214. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10215. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10216. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10217. msm_routing_put_audio_mixer),
  10218. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10219. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10220. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10221. msm_routing_put_audio_mixer),
  10222. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10223. MSM_BACKEND_DAI_USB_TX,
  10224. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10225. msm_routing_put_audio_mixer),
  10226. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10227. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10228. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10229. msm_routing_put_audio_mixer),
  10230. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10231. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10232. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10233. msm_routing_put_audio_mixer),
  10234. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10235. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10236. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10237. msm_routing_put_audio_mixer),
  10238. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10239. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10240. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10241. msm_routing_put_audio_mixer),
  10242. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10243. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10244. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10245. msm_routing_put_audio_mixer),
  10246. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10247. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10248. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10249. msm_routing_put_audio_mixer),
  10250. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10251. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10252. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10253. msm_routing_put_audio_mixer),
  10254. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10255. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10256. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10257. msm_routing_put_audio_mixer),
  10258. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10259. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10260. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10261. msm_routing_put_audio_mixer),
  10262. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10263. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10264. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10265. msm_routing_put_audio_mixer),
  10266. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10267. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10268. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10269. msm_routing_put_audio_mixer),
  10270. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10271. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10272. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10273. msm_routing_put_audio_mixer),
  10274. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10275. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10276. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10277. msm_routing_put_audio_mixer),
  10278. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10279. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10280. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10281. msm_routing_put_audio_mixer),
  10282. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10283. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10284. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10285. msm_routing_put_audio_mixer),
  10286. };
  10287. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  10288. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10289. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10290. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10291. msm_routing_put_audio_mixer),
  10292. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10293. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10294. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10295. msm_routing_put_audio_mixer),
  10296. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10297. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10298. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10299. msm_routing_put_audio_mixer),
  10300. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10301. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10302. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10303. msm_routing_put_audio_mixer),
  10304. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10305. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10306. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10307. msm_routing_put_audio_mixer),
  10308. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10309. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10310. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10311. msm_routing_put_audio_mixer),
  10312. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10313. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10314. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10315. msm_routing_put_audio_mixer),
  10316. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10317. MSM_BACKEND_DAI_INT_FM_TX,
  10318. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10319. msm_routing_put_audio_mixer),
  10320. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10321. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10322. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10323. msm_routing_put_audio_mixer),
  10324. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10325. MSM_BACKEND_DAI_AFE_PCM_TX,
  10326. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10327. msm_routing_put_audio_mixer),
  10328. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10329. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10330. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10331. msm_routing_put_audio_mixer),
  10332. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10333. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10334. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10335. msm_routing_put_audio_mixer),
  10336. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10337. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10338. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10339. msm_routing_put_audio_mixer),
  10340. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10341. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10342. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10343. msm_routing_put_audio_mixer),
  10344. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10345. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10346. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10347. msm_routing_put_audio_mixer),
  10348. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10349. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10350. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10351. msm_routing_put_audio_mixer),
  10352. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10353. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10354. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10355. msm_routing_put_audio_mixer),
  10356. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10357. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10358. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10359. msm_routing_put_audio_mixer),
  10360. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10361. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10362. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10363. msm_routing_put_audio_mixer),
  10364. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10365. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10366. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10367. msm_routing_put_audio_mixer),
  10368. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10369. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10370. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10371. msm_routing_put_audio_mixer),
  10372. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10373. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10374. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10375. msm_routing_put_audio_mixer),
  10376. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10377. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10378. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10379. msm_routing_put_audio_mixer),
  10380. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10381. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10382. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10383. msm_routing_put_audio_mixer),
  10384. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10385. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10386. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10387. msm_routing_put_audio_mixer),
  10388. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10389. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10390. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10391. msm_routing_put_audio_mixer),
  10392. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10393. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10394. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10395. msm_routing_put_audio_mixer),
  10396. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10397. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10398. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10399. msm_routing_put_audio_mixer),
  10400. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10401. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10402. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10403. msm_routing_put_audio_mixer),
  10404. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10405. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10406. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10407. msm_routing_put_audio_mixer),
  10408. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10409. MSM_BACKEND_DAI_USB_TX,
  10410. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10411. msm_routing_put_audio_mixer),
  10412. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10413. MSM_BACKEND_DAI_MI2S_TX,
  10414. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10415. msm_routing_put_audio_mixer),
  10416. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10417. MSM_BACKEND_DAI_AUXPCM_TX,
  10418. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10419. msm_routing_put_audio_mixer),
  10420. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10421. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10422. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10423. msm_routing_put_audio_mixer),
  10424. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10425. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10426. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10427. msm_routing_put_audio_mixer),
  10428. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10429. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10430. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10431. msm_routing_put_audio_mixer),
  10432. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10433. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10434. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10435. msm_routing_put_audio_mixer),
  10436. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10437. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10438. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10439. msm_routing_put_audio_mixer),
  10440. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10441. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10442. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10443. msm_routing_put_audio_mixer),
  10444. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10445. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10446. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10447. msm_routing_put_audio_mixer),
  10448. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10449. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10450. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10451. msm_routing_get_audio_mixer,
  10452. msm_routing_put_audio_mixer),
  10453. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10454. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10455. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10456. msm_routing_get_audio_mixer,
  10457. msm_routing_put_audio_mixer),
  10458. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10459. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10460. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10461. msm_routing_get_audio_mixer,
  10462. msm_routing_put_audio_mixer),
  10463. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10464. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10465. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10466. msm_routing_get_audio_mixer,
  10467. msm_routing_put_audio_mixer),
  10468. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10469. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10470. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10471. msm_routing_get_audio_mixer,
  10472. msm_routing_put_audio_mixer),
  10473. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10474. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10475. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10476. msm_routing_get_audio_mixer,
  10477. msm_routing_put_audio_mixer),
  10478. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10479. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10480. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10481. msm_routing_put_audio_mixer),
  10482. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10483. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10484. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10485. msm_routing_put_audio_mixer),
  10486. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10487. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10488. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10489. msm_routing_put_audio_mixer),
  10490. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10491. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10492. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10493. msm_routing_put_audio_mixer),
  10494. };
  10495. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  10496. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10497. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10498. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10499. msm_routing_put_audio_mixer),
  10500. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10501. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10502. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10503. msm_routing_put_audio_mixer),
  10504. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10505. MSM_BACKEND_DAI_INT_FM_TX,
  10506. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10507. msm_routing_put_audio_mixer),
  10508. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10509. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10510. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10511. msm_routing_put_audio_mixer),
  10512. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10513. MSM_BACKEND_DAI_AFE_PCM_TX,
  10514. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10515. msm_routing_put_audio_mixer),
  10516. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10517. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10518. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10519. msm_routing_put_audio_mixer),
  10520. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10521. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10522. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10523. msm_routing_put_audio_mixer),
  10524. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10525. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10526. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10527. msm_routing_put_audio_mixer),
  10528. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10529. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10530. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10531. msm_routing_put_audio_mixer),
  10532. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10533. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10534. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10535. msm_routing_put_audio_mixer),
  10536. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10537. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10538. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10539. msm_routing_put_audio_mixer),
  10540. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10541. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10542. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10543. msm_routing_put_audio_mixer),
  10544. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10545. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10546. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10547. msm_routing_put_audio_mixer),
  10548. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10549. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10550. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10551. msm_routing_put_audio_mixer),
  10552. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10553. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10554. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10555. msm_routing_put_audio_mixer),
  10556. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10557. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10558. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10559. msm_routing_put_audio_mixer),
  10560. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10561. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10562. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10563. msm_routing_put_audio_mixer),
  10564. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10565. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10566. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10567. msm_routing_put_audio_mixer),
  10568. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10569. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10570. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10571. msm_routing_put_audio_mixer),
  10572. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10573. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10574. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10575. msm_routing_put_audio_mixer),
  10576. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10577. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10578. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10579. msm_routing_put_audio_mixer),
  10580. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10581. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10582. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10583. msm_routing_put_audio_mixer),
  10584. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10585. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10586. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10587. msm_routing_put_audio_mixer),
  10588. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10589. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10590. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10591. msm_routing_put_audio_mixer),
  10592. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10593. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10594. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10595. msm_routing_put_audio_mixer),
  10596. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10597. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10598. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10599. msm_routing_put_audio_mixer),
  10600. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10601. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10602. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10603. msm_routing_put_audio_mixer),
  10604. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10605. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10606. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10607. msm_routing_put_audio_mixer),
  10608. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10609. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10610. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10611. msm_routing_put_audio_mixer),
  10612. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10613. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10614. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10615. msm_routing_put_audio_mixer),
  10616. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10617. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10618. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10619. msm_routing_put_audio_mixer),
  10620. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10621. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10622. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10623. msm_routing_put_audio_mixer),
  10624. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10625. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10626. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10627. msm_routing_put_audio_mixer),
  10628. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10629. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10630. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10631. msm_routing_put_audio_mixer),
  10632. };
  10633. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  10634. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10635. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10636. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10637. msm_routing_put_audio_mixer),
  10638. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10639. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10640. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10641. msm_routing_put_audio_mixer),
  10642. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10643. MSM_BACKEND_DAI_INT_FM_TX,
  10644. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10645. msm_routing_put_audio_mixer),
  10646. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10647. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10648. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10649. msm_routing_put_audio_mixer),
  10650. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10651. MSM_BACKEND_DAI_AFE_PCM_TX,
  10652. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10653. msm_routing_put_audio_mixer),
  10654. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10655. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10656. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10657. msm_routing_put_audio_mixer),
  10658. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10659. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10660. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10661. msm_routing_put_audio_mixer),
  10662. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10663. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10664. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10665. msm_routing_put_audio_mixer),
  10666. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10667. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10668. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10669. msm_routing_put_audio_mixer),
  10670. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10671. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10672. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10673. msm_routing_put_audio_mixer),
  10674. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10675. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10676. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10677. msm_routing_put_audio_mixer),
  10678. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10679. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10680. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10681. msm_routing_put_audio_mixer),
  10682. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10683. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10684. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10685. msm_routing_put_audio_mixer),
  10686. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10687. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10688. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10689. msm_routing_put_audio_mixer),
  10690. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10691. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10692. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10693. msm_routing_put_audio_mixer),
  10694. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10695. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10696. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10697. msm_routing_put_audio_mixer),
  10698. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10699. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10700. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10701. msm_routing_put_audio_mixer),
  10702. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10703. MSM_BACKEND_DAI_USB_TX,
  10704. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10705. msm_routing_put_audio_mixer),
  10706. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10707. MSM_BACKEND_DAI_MI2S_TX,
  10708. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10709. msm_routing_put_audio_mixer),
  10710. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10711. MSM_BACKEND_DAI_AUXPCM_TX,
  10712. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10713. msm_routing_put_audio_mixer),
  10714. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10715. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10716. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10717. msm_routing_put_audio_mixer),
  10718. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  10719. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10720. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10721. msm_routing_put_audio_mixer),
  10722. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10723. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10724. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10725. msm_routing_put_audio_mixer),
  10726. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10727. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10728. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10729. msm_routing_put_audio_mixer),
  10730. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10731. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10732. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10733. msm_routing_put_audio_mixer),
  10734. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10735. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10736. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10737. msm_routing_put_audio_mixer),
  10738. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10739. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10740. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10741. msm_routing_put_audio_mixer),
  10742. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10743. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10744. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10745. msm_routing_put_audio_mixer),
  10746. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10747. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10748. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10749. msm_routing_put_audio_mixer),
  10750. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10751. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10752. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10753. msm_routing_put_audio_mixer),
  10754. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10755. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10756. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10757. msm_routing_put_audio_mixer),
  10758. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10759. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10760. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10761. msm_routing_get_audio_mixer,
  10762. msm_routing_put_audio_mixer),
  10763. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10764. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10765. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10766. msm_routing_get_audio_mixer,
  10767. msm_routing_put_audio_mixer),
  10768. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10769. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10770. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10771. msm_routing_get_audio_mixer,
  10772. msm_routing_put_audio_mixer),
  10773. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10775. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10776. msm_routing_get_audio_mixer,
  10777. msm_routing_put_audio_mixer),
  10778. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10779. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10780. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10781. msm_routing_get_audio_mixer,
  10782. msm_routing_put_audio_mixer),
  10783. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10784. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10785. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10786. msm_routing_get_audio_mixer,
  10787. msm_routing_put_audio_mixer),
  10788. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10789. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10790. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10791. msm_routing_put_audio_mixer),
  10792. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10793. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10794. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10795. msm_routing_put_audio_mixer),
  10796. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10797. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10798. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10799. msm_routing_put_audio_mixer),
  10800. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10801. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10802. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10803. msm_routing_put_audio_mixer),
  10804. };
  10805. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  10806. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10807. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10808. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10809. msm_routing_put_audio_mixer),
  10810. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10811. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10812. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10813. msm_routing_put_audio_mixer),
  10814. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10815. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10816. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10817. msm_routing_put_audio_mixer),
  10818. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10819. MSM_BACKEND_DAI_INT_FM_TX,
  10820. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10821. msm_routing_put_audio_mixer),
  10822. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10823. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10824. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10825. msm_routing_put_audio_mixer),
  10826. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10827. MSM_BACKEND_DAI_AFE_PCM_TX,
  10828. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10829. msm_routing_put_audio_mixer),
  10830. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10831. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10832. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10833. msm_routing_put_audio_mixer),
  10834. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10835. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10836. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10837. msm_routing_put_audio_mixer),
  10838. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10839. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10840. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10841. msm_routing_put_audio_mixer),
  10842. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10843. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10844. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10845. msm_routing_put_audio_mixer),
  10846. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10847. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10848. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10849. msm_routing_put_audio_mixer),
  10850. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10851. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10852. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10853. msm_routing_put_audio_mixer),
  10854. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10855. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10856. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10857. msm_routing_put_audio_mixer),
  10858. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10859. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10860. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10861. msm_routing_put_audio_mixer),
  10862. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10863. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10864. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10865. msm_routing_put_audio_mixer),
  10866. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10867. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10868. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10869. msm_routing_get_audio_mixer,
  10870. msm_routing_put_audio_mixer),
  10871. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10873. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10874. msm_routing_get_audio_mixer,
  10875. msm_routing_put_audio_mixer),
  10876. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10877. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10878. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10879. msm_routing_get_audio_mixer,
  10880. msm_routing_put_audio_mixer),
  10881. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10882. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10883. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10884. msm_routing_get_audio_mixer,
  10885. msm_routing_put_audio_mixer),
  10886. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10887. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10888. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10889. msm_routing_get_audio_mixer,
  10890. msm_routing_put_audio_mixer),
  10891. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10892. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10893. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10894. msm_routing_get_audio_mixer,
  10895. msm_routing_put_audio_mixer),
  10896. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10897. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10898. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10899. msm_routing_put_audio_mixer),
  10900. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10901. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10902. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10903. msm_routing_put_audio_mixer),
  10904. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10905. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10906. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10907. msm_routing_put_audio_mixer),
  10908. };
  10909. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  10910. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10911. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10912. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10913. msm_routing_put_audio_mixer),
  10914. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10915. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10916. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10917. msm_routing_put_audio_mixer),
  10918. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10919. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10920. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10921. msm_routing_put_audio_mixer),
  10922. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10923. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10924. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10925. msm_routing_put_audio_mixer),
  10926. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10927. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10928. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10929. msm_routing_put_audio_mixer),
  10930. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10931. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10932. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10933. msm_routing_put_audio_mixer),
  10934. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10935. MSM_BACKEND_DAI_INT_FM_TX,
  10936. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10937. msm_routing_put_audio_mixer),
  10938. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10939. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10940. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10941. msm_routing_put_audio_mixer),
  10942. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10943. MSM_BACKEND_DAI_AFE_PCM_TX,
  10944. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10945. msm_routing_put_audio_mixer),
  10946. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10947. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10948. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10949. msm_routing_put_audio_mixer),
  10950. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10951. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10952. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10953. msm_routing_put_audio_mixer),
  10954. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10955. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10956. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10957. msm_routing_put_audio_mixer),
  10958. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10959. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10960. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10961. msm_routing_put_audio_mixer),
  10962. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10963. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10964. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10965. msm_routing_put_audio_mixer),
  10966. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10967. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10968. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10969. msm_routing_put_audio_mixer),
  10970. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10971. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10972. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10973. msm_routing_put_audio_mixer),
  10974. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10975. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10976. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10977. msm_routing_get_audio_mixer,
  10978. msm_routing_put_audio_mixer),
  10979. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10980. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10981. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10982. msm_routing_get_audio_mixer,
  10983. msm_routing_put_audio_mixer),
  10984. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10985. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10986. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10987. msm_routing_get_audio_mixer,
  10988. msm_routing_put_audio_mixer),
  10989. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10990. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10991. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10992. msm_routing_get_audio_mixer,
  10993. msm_routing_put_audio_mixer),
  10994. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10995. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10996. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10997. msm_routing_get_audio_mixer,
  10998. msm_routing_put_audio_mixer),
  10999. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11000. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11001. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  11002. msm_routing_get_audio_mixer,
  11003. msm_routing_put_audio_mixer),
  11004. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11005. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11006. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11007. msm_routing_put_audio_mixer),
  11008. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11009. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11010. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11011. msm_routing_put_audio_mixer),
  11012. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11013. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11014. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11015. msm_routing_put_audio_mixer),
  11016. };
  11017. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  11018. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11019. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11020. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11021. msm_routing_put_audio_mixer),
  11022. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11023. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11024. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11025. msm_routing_put_audio_mixer),
  11026. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11027. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11028. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11029. msm_routing_put_audio_mixer),
  11030. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11031. MSM_BACKEND_DAI_INT_FM_TX,
  11032. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11033. msm_routing_put_audio_mixer),
  11034. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11035. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11036. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11037. msm_routing_put_audio_mixer),
  11038. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11039. MSM_BACKEND_DAI_AFE_PCM_TX,
  11040. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11041. msm_routing_put_audio_mixer),
  11042. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11043. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11044. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11045. msm_routing_put_audio_mixer),
  11046. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11047. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11048. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11049. msm_routing_put_audio_mixer),
  11050. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11051. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11052. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11053. msm_routing_put_audio_mixer),
  11054. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11055. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11056. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11057. msm_routing_put_audio_mixer),
  11058. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11059. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11060. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11061. msm_routing_put_audio_mixer),
  11062. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11063. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11064. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11065. msm_routing_put_audio_mixer),
  11066. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11067. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11068. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11069. msm_routing_put_audio_mixer),
  11070. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11071. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11072. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11073. msm_routing_put_audio_mixer),
  11074. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11075. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11076. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11077. msm_routing_put_audio_mixer),
  11078. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11079. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11080. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11081. msm_routing_get_audio_mixer,
  11082. msm_routing_put_audio_mixer),
  11083. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11084. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11085. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11086. msm_routing_get_audio_mixer,
  11087. msm_routing_put_audio_mixer),
  11088. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11089. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11090. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11091. msm_routing_get_audio_mixer,
  11092. msm_routing_put_audio_mixer),
  11093. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11094. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11095. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11096. msm_routing_get_audio_mixer,
  11097. msm_routing_put_audio_mixer),
  11098. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11099. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11100. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11101. msm_routing_get_audio_mixer,
  11102. msm_routing_put_audio_mixer),
  11103. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11104. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11105. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11106. msm_routing_get_audio_mixer,
  11107. msm_routing_put_audio_mixer),
  11108. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11109. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11110. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11111. msm_routing_put_audio_mixer),
  11112. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11113. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11114. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11115. msm_routing_put_audio_mixer),
  11116. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11117. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11118. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11119. msm_routing_put_audio_mixer),
  11120. };
  11121. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  11122. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11123. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11124. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11125. msm_routing_put_audio_mixer),
  11126. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11127. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11128. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11129. msm_routing_put_audio_mixer),
  11130. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11131. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11132. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11133. msm_routing_put_audio_mixer),
  11134. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11135. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11136. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11137. msm_routing_put_audio_mixer),
  11138. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11139. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11140. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11141. msm_routing_put_audio_mixer),
  11142. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11143. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11144. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11145. msm_routing_put_audio_mixer),
  11146. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11147. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11148. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11149. msm_routing_put_audio_mixer),
  11150. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11151. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11152. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11153. msm_routing_put_audio_mixer),
  11154. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11155. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11156. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11157. msm_routing_put_audio_mixer),
  11158. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11159. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11160. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11161. msm_routing_put_audio_mixer),
  11162. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11163. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11164. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11165. msm_routing_put_audio_mixer),
  11166. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11167. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11168. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11169. msm_routing_put_audio_mixer),
  11170. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11171. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11172. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11173. msm_routing_put_audio_mixer),
  11174. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11175. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11176. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11177. msm_routing_put_audio_mixer),
  11178. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11179. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11180. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11181. msm_routing_put_audio_mixer),
  11182. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11183. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11184. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11185. msm_routing_put_audio_mixer),
  11186. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11187. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11188. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11189. msm_routing_put_audio_mixer),
  11190. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11191. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11192. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11193. msm_routing_put_audio_mixer),
  11194. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11195. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11196. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11197. msm_routing_put_audio_mixer),
  11198. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11199. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11200. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11201. msm_routing_put_audio_mixer),
  11202. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11203. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11204. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11205. msm_routing_put_audio_mixer),
  11206. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11207. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11208. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11209. msm_routing_put_audio_mixer),
  11210. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11211. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11212. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11213. msm_routing_put_audio_mixer),
  11214. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11215. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11216. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11217. msm_routing_put_audio_mixer),
  11218. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11219. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11220. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11221. msm_routing_put_audio_mixer),
  11222. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11223. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11224. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11225. msm_routing_put_audio_mixer),
  11226. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11227. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11228. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11229. msm_routing_put_audio_mixer),
  11230. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11231. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11232. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11233. msm_routing_put_audio_mixer),
  11234. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11235. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11236. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11237. msm_routing_put_audio_mixer),
  11238. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11239. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11240. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11241. msm_routing_put_audio_mixer),
  11242. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11243. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11244. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11245. msm_routing_put_audio_mixer),
  11246. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11247. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11248. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11249. msm_routing_put_audio_mixer),
  11250. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11251. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11252. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11253. msm_routing_put_audio_mixer),
  11254. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11255. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11256. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11257. msm_routing_put_audio_mixer),
  11258. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11259. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11260. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11261. msm_routing_put_audio_mixer),
  11262. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11263. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11264. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11265. msm_routing_put_audio_mixer),
  11266. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11267. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11268. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11269. msm_routing_put_audio_mixer),
  11270. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11271. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11272. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11273. msm_routing_put_audio_mixer),
  11274. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11275. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11276. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11277. msm_routing_put_audio_mixer),
  11278. };
  11279. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  11280. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11281. MSM_BACKEND_DAI_AUXPCM_TX,
  11282. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11283. msm_routing_put_audio_mixer),
  11284. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11285. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11286. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11287. msm_routing_put_audio_mixer),
  11288. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11289. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11290. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11291. msm_routing_put_audio_mixer),
  11292. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11293. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11294. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11295. msm_routing_put_audio_mixer),
  11296. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11297. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11298. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11299. msm_routing_put_audio_mixer),
  11300. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11301. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11302. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11303. msm_routing_put_audio_mixer),
  11304. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11305. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11306. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11307. msm_routing_put_audio_mixer),
  11308. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11309. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11310. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11311. msm_routing_put_audio_mixer),
  11312. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11313. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11314. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11315. msm_routing_put_audio_mixer),
  11316. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11317. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11318. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11319. msm_routing_put_audio_mixer),
  11320. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11321. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11322. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11323. msm_routing_put_audio_mixer),
  11324. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11325. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11326. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11327. msm_routing_put_audio_mixer),
  11328. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11329. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11330. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11331. msm_routing_put_audio_mixer),
  11332. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11333. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11334. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11335. msm_routing_put_audio_mixer),
  11336. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11337. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11338. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11339. msm_routing_put_audio_mixer),
  11340. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11341. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11342. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11343. msm_routing_put_audio_mixer),
  11344. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11345. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11346. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11347. msm_routing_put_audio_mixer),
  11348. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11349. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11350. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11351. msm_routing_put_audio_mixer),
  11352. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11353. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11354. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11355. msm_routing_put_audio_mixer),
  11356. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11357. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11358. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11359. msm_routing_put_audio_mixer),
  11360. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11361. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11362. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11363. msm_routing_put_audio_mixer),
  11364. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11365. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11366. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11367. msm_routing_put_audio_mixer),
  11368. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11369. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11370. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11371. msm_routing_put_audio_mixer),
  11372. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11373. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11374. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11375. msm_routing_put_audio_mixer),
  11376. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11377. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11378. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11379. msm_routing_put_audio_mixer),
  11380. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11381. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11382. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11383. msm_routing_put_audio_mixer),
  11384. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11385. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11386. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11387. msm_routing_put_audio_mixer),
  11388. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11389. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11390. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11391. msm_routing_put_audio_mixer),
  11392. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11393. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11394. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11395. msm_routing_put_audio_mixer),
  11396. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11397. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11398. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11399. msm_routing_put_audio_mixer),
  11400. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11401. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11402. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11403. msm_routing_put_audio_mixer),
  11404. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11405. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11406. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11407. msm_routing_put_audio_mixer),
  11408. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11409. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11410. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11411. msm_routing_put_audio_mixer),
  11412. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11413. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11414. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11415. msm_routing_put_audio_mixer),
  11416. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11417. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11418. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11419. msm_routing_put_audio_mixer),
  11420. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11421. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11422. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11423. msm_routing_put_audio_mixer),
  11424. };
  11425. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  11426. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11427. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11428. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11429. msm_routing_put_audio_mixer),
  11430. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11431. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11432. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11433. msm_routing_put_audio_mixer),
  11434. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11435. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11436. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11437. msm_routing_put_audio_mixer),
  11438. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11439. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11440. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11441. msm_routing_put_audio_mixer),
  11442. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11443. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11444. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11445. msm_routing_put_audio_mixer),
  11446. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11447. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11448. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11449. msm_routing_put_audio_mixer),
  11450. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11451. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11452. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11453. msm_routing_put_audio_mixer),
  11454. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11455. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11456. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11457. msm_routing_put_audio_mixer),
  11458. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11459. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11460. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11461. msm_routing_put_audio_mixer),
  11462. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11463. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11464. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11465. msm_routing_put_audio_mixer),
  11466. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11467. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11468. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11469. msm_routing_put_audio_mixer),
  11470. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11471. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11472. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11473. msm_routing_put_audio_mixer),
  11474. };
  11475. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  11476. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11477. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11478. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11479. msm_routing_put_audio_mixer),
  11480. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11481. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11482. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11483. msm_routing_put_audio_mixer),
  11484. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11485. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11486. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11487. msm_routing_put_audio_mixer),
  11488. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11489. MSM_BACKEND_DAI_INT_FM_TX,
  11490. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11491. msm_routing_put_audio_mixer),
  11492. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11493. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11494. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11495. msm_routing_put_audio_mixer),
  11496. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11497. MSM_BACKEND_DAI_AFE_PCM_TX,
  11498. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11499. msm_routing_put_audio_mixer),
  11500. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11501. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11502. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11503. msm_routing_put_audio_mixer),
  11504. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11505. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11506. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11507. msm_routing_put_audio_mixer),
  11508. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11509. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11510. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11511. msm_routing_put_audio_mixer),
  11512. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11513. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11514. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11515. msm_routing_put_audio_mixer),
  11516. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11517. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11518. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11519. msm_routing_put_audio_mixer),
  11520. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11521. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11522. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11523. msm_routing_put_audio_mixer),
  11524. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11525. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11526. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11527. msm_routing_put_audio_mixer),
  11528. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11529. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11530. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11531. msm_routing_put_audio_mixer),
  11532. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11533. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11534. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11535. msm_routing_put_audio_mixer),
  11536. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11537. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11538. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11539. msm_routing_get_audio_mixer,
  11540. msm_routing_put_audio_mixer),
  11541. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11542. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11543. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11544. msm_routing_get_audio_mixer,
  11545. msm_routing_put_audio_mixer),
  11546. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11547. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11548. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11549. msm_routing_get_audio_mixer,
  11550. msm_routing_put_audio_mixer),
  11551. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11552. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11553. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11554. msm_routing_get_audio_mixer,
  11555. msm_routing_put_audio_mixer),
  11556. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11557. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11558. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11559. msm_routing_get_audio_mixer,
  11560. msm_routing_put_audio_mixer),
  11561. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11562. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11563. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11564. msm_routing_get_audio_mixer,
  11565. msm_routing_put_audio_mixer),
  11566. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11567. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11568. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11569. msm_routing_put_audio_mixer),
  11570. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11571. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11572. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11573. msm_routing_put_audio_mixer),
  11574. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11575. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11576. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11577. msm_routing_put_audio_mixer),
  11578. };
  11579. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  11580. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11581. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11582. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11583. msm_routing_put_audio_mixer),
  11584. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11585. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11586. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11587. msm_routing_put_audio_mixer),
  11588. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11589. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11590. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11591. msm_routing_put_audio_mixer),
  11592. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11593. MSM_BACKEND_DAI_INT_FM_TX,
  11594. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11595. msm_routing_put_audio_mixer),
  11596. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11597. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11598. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11599. msm_routing_put_audio_mixer),
  11600. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11601. MSM_BACKEND_DAI_AFE_PCM_TX,
  11602. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11603. msm_routing_put_audio_mixer),
  11604. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11605. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11606. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11607. msm_routing_put_audio_mixer),
  11608. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11609. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11610. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11611. msm_routing_put_audio_mixer),
  11612. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11613. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11614. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11615. msm_routing_put_audio_mixer),
  11616. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11617. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11618. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11619. msm_routing_put_audio_mixer),
  11620. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11621. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11622. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11623. msm_routing_put_audio_mixer),
  11624. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11625. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11626. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11627. msm_routing_put_audio_mixer),
  11628. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11629. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11630. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11631. msm_routing_put_audio_mixer),
  11632. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11633. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11634. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11635. msm_routing_put_audio_mixer),
  11636. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11637. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11638. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11639. msm_routing_put_audio_mixer),
  11640. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11641. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11642. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11643. msm_routing_get_audio_mixer,
  11644. msm_routing_put_audio_mixer),
  11645. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11646. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11647. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11648. msm_routing_get_audio_mixer,
  11649. msm_routing_put_audio_mixer),
  11650. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11651. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11652. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11653. msm_routing_get_audio_mixer,
  11654. msm_routing_put_audio_mixer),
  11655. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11656. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11657. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11658. msm_routing_get_audio_mixer,
  11659. msm_routing_put_audio_mixer),
  11660. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11661. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11662. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11663. msm_routing_get_audio_mixer,
  11664. msm_routing_put_audio_mixer),
  11665. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11666. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11667. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11668. msm_routing_get_audio_mixer,
  11669. msm_routing_put_audio_mixer),
  11670. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11671. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11672. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11673. msm_routing_put_audio_mixer),
  11674. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11675. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11676. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11677. msm_routing_put_audio_mixer),
  11678. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11679. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11680. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11681. msm_routing_put_audio_mixer),
  11682. };
  11683. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  11684. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11685. MSM_BACKEND_DAI_PRI_I2S_RX,
  11686. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11687. msm_routing_put_voice_mixer),
  11688. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11689. MSM_BACKEND_DAI_PRI_I2S_RX,
  11690. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11691. msm_routing_put_voice_mixer),
  11692. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11693. MSM_BACKEND_DAI_PRI_I2S_RX,
  11694. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11695. msm_routing_put_voice_mixer),
  11696. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11697. MSM_BACKEND_DAI_PRI_I2S_RX,
  11698. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11699. msm_routing_put_voice_mixer),
  11700. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11701. MSM_BACKEND_DAI_PRI_I2S_RX,
  11702. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11703. msm_routing_put_voice_mixer),
  11704. };
  11705. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  11706. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11707. MSM_BACKEND_DAI_SEC_I2S_RX,
  11708. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11709. msm_routing_put_voice_mixer),
  11710. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11711. MSM_BACKEND_DAI_SEC_I2S_RX,
  11712. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11713. msm_routing_put_voice_mixer),
  11714. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11715. MSM_BACKEND_DAI_SEC_I2S_RX,
  11716. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11717. msm_routing_put_voice_mixer),
  11718. };
  11719. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  11720. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11721. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11722. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11723. msm_routing_put_voice_mixer),
  11724. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11725. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11726. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11727. msm_routing_put_voice_mixer),
  11728. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11729. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11730. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11731. msm_routing_put_voice_mixer),
  11732. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11733. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11734. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11735. msm_routing_put_voice_mixer),
  11736. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11737. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11738. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11739. msm_routing_put_voice_mixer),
  11740. };
  11741. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  11742. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11743. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11744. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11745. msm_routing_put_voice_mixer),
  11746. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11747. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11748. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11749. msm_routing_put_voice_mixer),
  11750. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11751. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11752. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11753. msm_routing_put_voice_mixer),
  11754. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11755. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11756. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11757. msm_routing_put_voice_mixer),
  11758. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11759. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11760. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11761. msm_routing_put_voice_mixer),
  11762. };
  11763. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  11764. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11765. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11766. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11767. msm_routing_put_voice_mixer),
  11768. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11769. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11770. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11771. msm_routing_put_voice_mixer),
  11772. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11773. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11774. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11775. msm_routing_put_voice_mixer),
  11776. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11777. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11778. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11779. msm_routing_put_voice_mixer),
  11780. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11781. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11782. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11783. msm_routing_put_voice_mixer),
  11784. };
  11785. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  11786. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11787. MSM_BACKEND_DAI_USB_RX,
  11788. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11789. msm_routing_put_voice_mixer),
  11790. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11791. MSM_BACKEND_DAI_USB_RX,
  11792. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11793. msm_routing_put_voice_mixer),
  11794. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11795. MSM_BACKEND_DAI_USB_RX,
  11796. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11797. msm_routing_put_voice_mixer),
  11798. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11799. MSM_BACKEND_DAI_USB_RX,
  11800. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11801. msm_routing_put_voice_mixer),
  11802. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11803. MSM_BACKEND_DAI_USB_RX,
  11804. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11805. msm_routing_put_voice_mixer),
  11806. };
  11807. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  11808. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11809. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11810. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11811. msm_routing_put_voice_mixer),
  11812. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11813. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11814. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11815. msm_routing_put_voice_mixer),
  11816. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11817. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11818. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11819. msm_routing_put_voice_mixer),
  11820. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11821. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11822. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11823. msm_routing_put_voice_mixer),
  11824. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11825. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11826. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11827. msm_routing_put_voice_mixer),
  11828. };
  11829. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  11830. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11831. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11832. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11833. msm_routing_put_voice_mixer),
  11834. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11835. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11836. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11837. msm_routing_put_voice_mixer),
  11838. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11839. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11840. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11841. msm_routing_put_voice_mixer),
  11842. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11843. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11844. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11845. msm_routing_put_voice_mixer),
  11846. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11847. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11848. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11849. msm_routing_put_voice_mixer),
  11850. };
  11851. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  11852. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11853. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11854. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11855. msm_routing_put_voice_mixer),
  11856. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11857. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11858. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11859. msm_routing_put_voice_mixer),
  11860. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11861. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11862. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11863. msm_routing_put_voice_mixer),
  11864. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11865. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11866. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11867. msm_routing_put_voice_mixer),
  11868. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11869. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11870. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11871. msm_routing_put_voice_mixer),
  11872. };
  11873. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  11874. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11875. MSM_BACKEND_DAI_MI2S_RX,
  11876. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11877. msm_routing_put_voice_mixer),
  11878. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11879. MSM_BACKEND_DAI_MI2S_RX,
  11880. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11881. msm_routing_put_voice_mixer),
  11882. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11883. MSM_BACKEND_DAI_MI2S_RX,
  11884. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11885. msm_routing_put_voice_mixer),
  11886. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11887. MSM_BACKEND_DAI_MI2S_RX,
  11888. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11889. msm_routing_put_voice_mixer),
  11890. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11891. MSM_BACKEND_DAI_MI2S_RX,
  11892. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11893. msm_routing_put_voice_mixer),
  11894. };
  11895. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  11896. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11897. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11898. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11899. msm_routing_put_voice_mixer),
  11900. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11901. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11902. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11903. msm_routing_put_voice_mixer),
  11904. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11905. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11906. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11907. msm_routing_put_voice_mixer),
  11908. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11909. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11910. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11911. msm_routing_put_voice_mixer),
  11912. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11913. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11914. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11915. msm_routing_put_voice_mixer),
  11916. };
  11917. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  11918. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11919. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11920. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11921. msm_routing_put_voice_mixer),
  11922. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11923. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11924. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11925. msm_routing_put_voice_mixer),
  11926. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11927. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11928. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11929. msm_routing_put_voice_mixer),
  11930. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11931. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11932. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11933. msm_routing_put_voice_mixer),
  11934. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11935. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11936. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11937. msm_routing_put_voice_mixer),
  11938. };
  11939. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  11940. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11941. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11942. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11943. msm_routing_put_voice_mixer),
  11944. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11945. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11946. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11947. msm_routing_put_voice_mixer),
  11948. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11949. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11950. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11951. msm_routing_put_voice_mixer),
  11952. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11953. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11954. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11955. msm_routing_put_voice_mixer),
  11956. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11957. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11958. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11959. msm_routing_put_voice_mixer),
  11960. };
  11961. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  11962. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11963. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11964. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11965. msm_routing_put_voice_mixer),
  11966. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11967. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11968. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11969. msm_routing_put_voice_mixer),
  11970. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11971. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11972. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11973. msm_routing_put_voice_mixer),
  11974. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11975. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11976. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11977. msm_routing_put_voice_mixer),
  11978. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11979. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11980. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11981. msm_routing_put_voice_mixer),
  11982. };
  11983. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  11984. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11985. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11986. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11987. msm_routing_put_voice_mixer),
  11988. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11989. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11990. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11991. msm_routing_put_voice_mixer),
  11992. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11993. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11994. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11995. msm_routing_put_voice_mixer),
  11996. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11997. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11998. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11999. msm_routing_put_voice_mixer),
  12000. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12001. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12002. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12003. msm_routing_put_voice_mixer),
  12004. };
  12005. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  12006. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12007. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12008. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12009. msm_routing_put_voice_mixer),
  12010. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12011. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12012. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12013. msm_routing_put_voice_mixer),
  12014. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12015. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12016. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12017. msm_routing_put_voice_mixer),
  12018. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12019. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12020. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12021. msm_routing_put_voice_mixer),
  12022. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12023. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12024. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12025. msm_routing_put_voice_mixer),
  12026. };
  12027. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  12028. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12029. MSM_BACKEND_DAI_AFE_PCM_RX,
  12030. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12031. msm_routing_put_voice_mixer),
  12032. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12033. MSM_BACKEND_DAI_AFE_PCM_RX,
  12034. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12035. msm_routing_put_voice_mixer),
  12036. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12037. MSM_BACKEND_DAI_AFE_PCM_RX,
  12038. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12039. msm_routing_put_voice_mixer),
  12040. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12041. MSM_BACKEND_DAI_AFE_PCM_RX,
  12042. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12043. msm_routing_put_voice_mixer),
  12044. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12045. MSM_BACKEND_DAI_AFE_PCM_RX,
  12046. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12047. msm_routing_put_voice_mixer),
  12048. };
  12049. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  12050. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12051. MSM_BACKEND_DAI_AUXPCM_RX,
  12052. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12053. msm_routing_put_voice_mixer),
  12054. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12055. MSM_BACKEND_DAI_AUXPCM_RX,
  12056. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12057. msm_routing_put_voice_mixer),
  12058. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12059. MSM_BACKEND_DAI_AUXPCM_RX,
  12060. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12061. msm_routing_put_voice_mixer),
  12062. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12063. MSM_BACKEND_DAI_AUXPCM_RX,
  12064. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12065. msm_routing_put_voice_mixer),
  12066. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12067. MSM_BACKEND_DAI_AUXPCM_RX,
  12068. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12069. msm_routing_put_voice_mixer),
  12070. };
  12071. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  12072. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12073. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12074. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12075. msm_routing_put_voice_mixer),
  12076. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12077. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12078. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12079. msm_routing_put_voice_mixer),
  12080. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12081. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12082. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12083. msm_routing_put_voice_mixer),
  12084. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12085. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12086. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12087. msm_routing_put_voice_mixer),
  12088. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12089. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12090. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12091. msm_routing_put_voice_mixer),
  12092. };
  12093. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  12094. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12095. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12096. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12097. msm_routing_put_voice_mixer),
  12098. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12099. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12100. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12101. msm_routing_put_voice_mixer),
  12102. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12103. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12104. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12105. msm_routing_put_voice_mixer),
  12106. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12107. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12108. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12109. msm_routing_put_voice_mixer),
  12110. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12111. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12112. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12113. msm_routing_put_voice_mixer),
  12114. };
  12115. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  12116. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12117. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12118. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12119. msm_routing_put_voice_mixer),
  12120. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12121. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12122. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12123. msm_routing_put_voice_mixer),
  12124. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12125. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12126. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12127. msm_routing_put_voice_mixer),
  12128. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12129. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12130. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12131. msm_routing_put_voice_mixer),
  12132. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12133. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12134. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12135. msm_routing_put_voice_mixer),
  12136. };
  12137. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  12138. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12139. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12140. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12141. msm_routing_put_voice_mixer),
  12142. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12143. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12144. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12145. msm_routing_put_voice_mixer),
  12146. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12147. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12148. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12149. msm_routing_put_voice_mixer),
  12150. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12151. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12152. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12153. msm_routing_put_voice_mixer),
  12154. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12155. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12156. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12157. msm_routing_put_voice_mixer),
  12158. };
  12159. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  12160. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12161. MSM_BACKEND_DAI_HDMI_RX,
  12162. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12163. msm_routing_put_voice_mixer),
  12164. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12165. MSM_BACKEND_DAI_HDMI_RX,
  12166. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12167. msm_routing_put_voice_mixer),
  12168. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12169. MSM_BACKEND_DAI_HDMI_RX,
  12170. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12171. msm_routing_put_voice_mixer),
  12172. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12173. MSM_BACKEND_DAI_HDMI_RX,
  12174. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12175. msm_routing_put_voice_mixer),
  12176. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12177. MSM_BACKEND_DAI_HDMI_RX,
  12178. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12179. msm_routing_put_voice_mixer),
  12180. };
  12181. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  12182. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12183. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12184. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12185. msm_routing_put_voice_mixer),
  12186. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12187. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12188. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12189. msm_routing_put_voice_mixer),
  12190. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12191. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12192. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12193. msm_routing_put_voice_mixer),
  12194. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12195. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12196. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12197. msm_routing_put_voice_mixer),
  12198. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12199. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12200. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12201. msm_routing_put_voice_mixer),
  12202. };
  12203. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  12204. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12205. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12206. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12207. msm_routing_put_voice_mixer),
  12208. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12209. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12210. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12211. msm_routing_put_voice_mixer),
  12212. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12213. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12214. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12215. msm_routing_put_voice_mixer),
  12216. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12217. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12218. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12219. msm_routing_put_voice_mixer),
  12220. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12221. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12222. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12223. msm_routing_put_voice_mixer),
  12224. };
  12225. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  12226. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12227. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12228. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12229. msm_routing_put_voice_mixer),
  12230. };
  12231. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  12232. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12233. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12234. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12235. msm_routing_put_voice_mixer),
  12236. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12237. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12238. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12239. msm_routing_put_voice_mixer),
  12240. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12241. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12242. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12243. msm_routing_put_voice_mixer),
  12244. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12245. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12246. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12247. msm_routing_put_voice_mixer),
  12248. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12249. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12250. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12251. msm_routing_put_voice_mixer),
  12252. };
  12253. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  12254. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12255. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12256. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12257. msm_routing_put_voice_mixer),
  12258. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12259. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12260. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12261. msm_routing_put_voice_mixer),
  12262. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12263. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12264. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12265. msm_routing_put_voice_mixer),
  12266. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12267. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12268. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12269. msm_routing_put_voice_mixer),
  12270. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12271. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12272. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12273. msm_routing_put_voice_mixer),
  12274. };
  12275. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  12276. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12277. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12278. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12279. msm_routing_put_voice_mixer),
  12280. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12281. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12282. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12283. msm_routing_put_voice_mixer),
  12284. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12285. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12286. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12287. msm_routing_put_voice_mixer),
  12288. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12289. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12290. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12291. msm_routing_put_voice_mixer),
  12292. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12293. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12294. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12295. msm_routing_put_voice_mixer),
  12296. };
  12297. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  12298. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12299. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12300. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12301. msm_routing_put_voice_mixer),
  12302. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12303. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12304. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12305. msm_routing_put_voice_mixer),
  12306. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12307. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12308. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12309. msm_routing_put_voice_mixer),
  12310. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12311. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12312. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12313. msm_routing_put_voice_mixer),
  12314. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12315. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12316. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12317. msm_routing_put_voice_mixer),
  12318. };
  12319. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  12320. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12321. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12322. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12323. msm_routing_put_voice_mixer),
  12324. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12325. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12326. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12327. msm_routing_put_voice_mixer),
  12328. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12329. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12330. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12331. msm_routing_put_voice_mixer),
  12332. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12333. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12334. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12335. msm_routing_put_voice_mixer),
  12336. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12337. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12338. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12339. msm_routing_put_voice_mixer),
  12340. };
  12341. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  12342. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12343. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12344. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12345. msm_routing_put_voice_mixer),
  12346. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12347. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12348. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12349. msm_routing_put_voice_mixer),
  12350. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12351. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12352. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12353. msm_routing_put_voice_mixer),
  12354. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12355. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12356. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12357. msm_routing_put_voice_mixer),
  12358. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12359. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12360. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12361. msm_routing_put_voice_mixer),
  12362. };
  12363. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  12364. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12365. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12366. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12367. msm_routing_put_voice_mixer),
  12368. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12369. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12370. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12371. msm_routing_put_voice_mixer),
  12372. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12373. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12374. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12375. msm_routing_put_voice_mixer),
  12376. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12377. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12378. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12379. msm_routing_put_voice_mixer),
  12380. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12381. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12382. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12383. msm_routing_put_voice_mixer),
  12384. };
  12385. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  12386. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12387. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12388. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12389. msm_routing_put_voice_mixer),
  12390. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12391. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12392. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12393. msm_routing_put_voice_mixer),
  12394. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12395. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12396. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12397. msm_routing_put_voice_mixer),
  12398. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12399. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12400. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12401. msm_routing_put_voice_mixer),
  12402. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12403. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12404. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12405. msm_routing_put_voice_mixer),
  12406. };
  12407. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  12408. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12409. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12410. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12411. msm_routing_put_voice_mixer),
  12412. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12413. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12414. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12415. msm_routing_put_voice_mixer),
  12416. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12417. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12418. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12419. msm_routing_put_voice_mixer),
  12420. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12421. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12422. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12423. msm_routing_put_voice_mixer),
  12424. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12425. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12426. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12427. msm_routing_put_voice_mixer),
  12428. };
  12429. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  12430. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12431. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12432. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12433. msm_routing_put_voice_mixer),
  12434. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12435. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12436. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12437. msm_routing_put_voice_mixer),
  12438. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12439. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12440. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12441. msm_routing_put_voice_mixer),
  12442. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12443. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12444. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12445. msm_routing_put_voice_mixer),
  12446. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12447. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12448. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12449. msm_routing_put_voice_mixer),
  12450. };
  12451. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  12452. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12453. MSM_BACKEND_DAI_EXTPROC_RX,
  12454. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12455. msm_routing_put_voice_mixer),
  12456. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12457. MSM_BACKEND_DAI_EXTPROC_RX,
  12458. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12459. msm_routing_put_voice_mixer),
  12460. };
  12461. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  12462. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12463. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12464. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12465. msm_routing_put_voice_mixer),
  12466. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12467. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12468. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12469. msm_routing_put_voice_mixer),
  12470. };
  12471. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  12472. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12473. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12474. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12475. msm_routing_put_voice_mixer),
  12476. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12477. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12478. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12479. msm_routing_put_voice_mixer),
  12480. };
  12481. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  12482. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  12483. MSM_BACKEND_DAI_PRI_I2S_TX,
  12484. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12485. msm_routing_put_voice_mixer),
  12486. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  12487. MSM_BACKEND_DAI_MI2S_TX,
  12488. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12489. msm_routing_put_voice_mixer),
  12490. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  12491. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12492. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12493. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  12494. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12495. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12496. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  12497. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12498. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12499. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12500. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12501. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12502. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12503. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12504. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12505. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12506. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12507. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12508. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12509. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12510. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12511. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12512. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12513. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12514. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  12515. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12516. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12517. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  12518. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12519. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12520. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  12521. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12522. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12523. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  12524. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12525. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12526. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  12527. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12528. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12529. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  12530. MSM_BACKEND_DAI_USB_TX,
  12531. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12532. msm_routing_put_voice_mixer),
  12533. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  12534. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12535. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12536. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12537. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12538. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12539. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12540. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12541. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12542. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12543. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12544. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12545. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12546. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12547. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12548. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  12549. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  12550. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12551. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  12552. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  12553. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12554. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  12555. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  12556. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12557. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  12558. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  12559. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12560. };
  12561. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  12562. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  12563. MSM_BACKEND_DAI_PRI_I2S_TX,
  12564. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12565. msm_routing_put_voice_mixer),
  12566. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  12567. MSM_BACKEND_DAI_MI2S_TX,
  12568. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12569. msm_routing_put_voice_mixer),
  12570. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  12571. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12572. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12573. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  12574. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12575. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12576. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  12577. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12578. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12579. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12580. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12581. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12582. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12583. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12584. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12585. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12586. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12587. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12588. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12589. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12590. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12591. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12592. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12593. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12594. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  12595. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12596. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12597. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  12598. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12599. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12600. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  12601. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12602. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12603. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  12604. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12605. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12606. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  12607. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12608. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12609. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  12610. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12611. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12612. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12613. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12614. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12615. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12616. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12617. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12618. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12619. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12620. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12621. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12622. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12623. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12624. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  12625. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  12626. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12627. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  12628. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  12629. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12630. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  12631. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  12632. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12633. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  12634. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  12635. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12636. };
  12637. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  12638. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  12639. MSM_BACKEND_DAI_PRI_I2S_TX,
  12640. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12641. msm_routing_put_voice_mixer),
  12642. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  12643. MSM_BACKEND_DAI_MI2S_TX,
  12644. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12645. msm_routing_put_voice_mixer),
  12646. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  12647. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12648. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12649. msm_routing_put_voice_mixer),
  12650. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  12651. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12652. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12653. msm_routing_put_voice_mixer),
  12654. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  12655. MSM_BACKEND_DAI_AFE_PCM_TX,
  12656. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12657. msm_routing_put_voice_mixer),
  12658. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12659. MSM_BACKEND_DAI_AUXPCM_TX,
  12660. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12661. msm_routing_put_voice_mixer),
  12662. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12663. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12664. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12665. msm_routing_put_voice_mixer),
  12666. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12667. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12668. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12669. msm_routing_put_voice_mixer),
  12670. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12671. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12672. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12673. msm_routing_put_voice_mixer),
  12674. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12675. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12676. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12677. msm_routing_put_voice_mixer),
  12678. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  12679. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12680. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12681. msm_routing_put_voice_mixer),
  12682. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  12683. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12684. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12685. msm_routing_put_voice_mixer),
  12686. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  12687. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12688. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12689. msm_routing_put_voice_mixer),
  12690. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  12691. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12692. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12693. msm_routing_put_voice_mixer),
  12694. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  12695. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12696. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12697. msm_routing_put_voice_mixer),
  12698. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  12699. MSM_BACKEND_DAI_USB_TX,
  12700. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12701. msm_routing_put_voice_mixer),
  12702. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12703. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12704. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12705. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12706. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12707. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12708. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12709. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12710. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12711. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12712. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12713. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12714. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  12715. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  12716. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12717. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  12718. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  12719. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12720. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  12721. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  12722. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12723. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  12724. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  12725. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12726. };
  12727. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  12728. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12729. MSM_BACKEND_DAI_EXTPROC_TX,
  12730. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12731. msm_routing_put_voice_stub_mixer),
  12732. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12733. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12734. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12735. msm_routing_put_voice_stub_mixer),
  12736. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12737. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12738. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12739. msm_routing_put_voice_stub_mixer),
  12740. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12741. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12742. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12743. msm_routing_put_voice_stub_mixer),
  12744. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12745. MSM_BACKEND_DAI_MI2S_TX,
  12746. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12747. msm_routing_put_voice_stub_mixer),
  12748. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12749. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12750. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12751. msm_routing_put_voice_stub_mixer),
  12752. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12753. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12754. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12755. msm_routing_put_voice_stub_mixer),
  12756. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12757. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12758. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12759. msm_routing_put_voice_stub_mixer),
  12760. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12761. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12762. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12763. msm_routing_put_voice_stub_mixer),
  12764. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12765. MSM_BACKEND_DAI_AUXPCM_TX,
  12766. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12767. msm_routing_put_voice_stub_mixer),
  12768. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12769. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12770. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12771. msm_routing_put_voice_stub_mixer),
  12772. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12773. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12774. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12775. msm_routing_put_voice_stub_mixer),
  12776. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12777. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12778. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12779. msm_routing_put_voice_stub_mixer),
  12780. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12781. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12782. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12783. msm_routing_put_voice_stub_mixer),
  12784. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12785. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12786. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12787. msm_routing_put_voice_stub_mixer),
  12788. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12789. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12790. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12791. msm_routing_put_voice_stub_mixer),
  12792. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12793. MSM_BACKEND_DAI_AFE_PCM_TX,
  12794. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12795. msm_routing_put_voice_stub_mixer),
  12796. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12797. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12798. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12799. msm_routing_put_voice_stub_mixer),
  12800. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12801. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12802. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12803. msm_routing_put_voice_stub_mixer),
  12804. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12805. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  12806. 1, 0, msm_routing_get_voice_stub_mixer,
  12807. msm_routing_put_voice_stub_mixer),
  12808. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12809. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  12810. 1, 0, msm_routing_get_voice_stub_mixer,
  12811. msm_routing_put_voice_stub_mixer),
  12812. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12813. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_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_1", SND_SOC_NOPM,
  12817. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_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_2", SND_SOC_NOPM,
  12821. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_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_3", SND_SOC_NOPM,
  12825. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_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_4", SND_SOC_NOPM,
  12829. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_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_5", SND_SOC_NOPM,
  12833. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  12834. 1, 0, msm_routing_get_voice_stub_mixer,
  12835. msm_routing_put_voice_stub_mixer),
  12836. };
  12837. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  12838. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12839. MSM_BACKEND_DAI_EXTPROC_TX,
  12840. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12841. msm_routing_put_voice_stub_mixer),
  12842. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12843. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12844. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12845. msm_routing_put_voice_stub_mixer),
  12846. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12847. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12848. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12849. msm_routing_put_voice_stub_mixer),
  12850. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12851. MSM_BACKEND_DAI_AUXPCM_TX,
  12852. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12853. msm_routing_put_voice_stub_mixer),
  12854. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12855. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12856. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12857. msm_routing_put_voice_stub_mixer),
  12858. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12859. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12860. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12861. msm_routing_put_voice_stub_mixer),
  12862. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12863. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12864. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12865. msm_routing_put_voice_stub_mixer),
  12866. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12867. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12868. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12869. msm_routing_put_voice_stub_mixer),
  12870. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12871. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12872. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12873. msm_routing_put_voice_stub_mixer),
  12874. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12875. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12876. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12877. msm_routing_put_voice_stub_mixer),
  12878. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12879. MSM_BACKEND_DAI_AFE_PCM_TX,
  12880. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12881. msm_routing_put_voice_stub_mixer),
  12882. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12883. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12884. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12885. msm_routing_put_voice_stub_mixer),
  12886. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12887. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12888. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12889. msm_routing_put_voice_stub_mixer),
  12890. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12891. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12892. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12893. msm_routing_put_voice_stub_mixer),
  12894. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12895. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12896. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12897. msm_routing_put_voice_stub_mixer),
  12898. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12899. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  12900. 1, 0, msm_routing_get_voice_stub_mixer,
  12901. msm_routing_put_voice_stub_mixer),
  12902. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12903. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  12904. 1, 0, msm_routing_get_voice_stub_mixer,
  12905. msm_routing_put_voice_stub_mixer),
  12906. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12907. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_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_1", SND_SOC_NOPM,
  12911. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_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_2", SND_SOC_NOPM,
  12915. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_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_3", SND_SOC_NOPM,
  12919. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_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_4", SND_SOC_NOPM,
  12923. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_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_5", SND_SOC_NOPM,
  12927. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  12928. 1, 0, msm_routing_get_voice_stub_mixer,
  12929. msm_routing_put_voice_stub_mixer),
  12930. };
  12931. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  12932. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12933. MSM_BACKEND_DAI_EXTPROC_TX,
  12934. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12935. msm_routing_put_voice_stub_mixer),
  12936. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12937. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12938. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12939. msm_routing_put_voice_stub_mixer),
  12940. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12941. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12942. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12943. msm_routing_put_voice_stub_mixer),
  12944. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12945. MSM_BACKEND_DAI_AUXPCM_TX,
  12946. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12947. msm_routing_put_voice_stub_mixer),
  12948. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12949. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12950. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12951. msm_routing_put_voice_stub_mixer),
  12952. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12953. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12954. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12955. msm_routing_put_voice_stub_mixer),
  12956. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12957. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12958. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12959. msm_routing_put_voice_stub_mixer),
  12960. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12961. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12962. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12963. msm_routing_put_voice_stub_mixer),
  12964. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12965. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12966. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12967. msm_routing_put_voice_stub_mixer),
  12968. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12969. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12970. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12971. msm_routing_put_voice_stub_mixer),
  12972. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12973. MSM_BACKEND_DAI_AFE_PCM_TX,
  12974. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12975. msm_routing_put_voice_stub_mixer),
  12976. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12977. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12978. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12979. msm_routing_put_voice_stub_mixer),
  12980. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12981. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12982. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12983. msm_routing_put_voice_stub_mixer),
  12984. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12985. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12986. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12987. msm_routing_put_voice_stub_mixer),
  12988. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12989. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12990. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12991. msm_routing_put_voice_stub_mixer),
  12992. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12993. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  12994. 1, 0, msm_routing_get_voice_stub_mixer,
  12995. msm_routing_put_voice_stub_mixer),
  12996. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12997. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  12998. 1, 0, msm_routing_get_voice_stub_mixer,
  12999. msm_routing_put_voice_stub_mixer),
  13000. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13001. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  13002. 1, 0, msm_routing_get_voice_stub_mixer,
  13003. msm_routing_put_voice_stub_mixer),
  13004. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13005. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  13006. 1, 0, msm_routing_get_voice_stub_mixer,
  13007. msm_routing_put_voice_stub_mixer),
  13008. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13009. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  13010. 1, 0, msm_routing_get_voice_stub_mixer,
  13011. msm_routing_put_voice_stub_mixer),
  13012. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13013. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  13014. 1, 0, msm_routing_get_voice_stub_mixer,
  13015. msm_routing_put_voice_stub_mixer),
  13016. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13017. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  13018. 1, 0, msm_routing_get_voice_stub_mixer,
  13019. msm_routing_put_voice_stub_mixer),
  13020. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13021. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  13022. 1, 0, msm_routing_get_voice_stub_mixer,
  13023. msm_routing_put_voice_stub_mixer),
  13024. };
  13025. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  13026. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  13027. MSM_BACKEND_DAI_PRI_I2S_TX,
  13028. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13029. msm_routing_put_voice_mixer),
  13030. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  13031. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13032. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13033. msm_routing_put_voice_mixer),
  13034. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  13035. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13036. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  13037. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13038. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  13039. MSM_BACKEND_DAI_AFE_PCM_TX,
  13040. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13041. msm_routing_put_voice_mixer),
  13042. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13043. MSM_BACKEND_DAI_AUXPCM_TX,
  13044. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13045. msm_routing_put_voice_mixer),
  13046. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13047. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13048. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13049. msm_routing_put_voice_mixer),
  13050. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13051. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13052. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13053. msm_routing_put_voice_mixer),
  13054. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13055. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13056. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13057. msm_routing_put_voice_mixer),
  13058. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13059. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  13060. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13061. msm_routing_put_voice_mixer),
  13062. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  13063. MSM_BACKEND_DAI_MI2S_TX,
  13064. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13065. msm_routing_put_voice_mixer),
  13066. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  13067. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13068. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13069. msm_routing_put_voice_mixer),
  13070. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  13071. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13072. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13073. msm_routing_put_voice_mixer),
  13074. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  13075. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13076. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13077. msm_routing_put_voice_mixer),
  13078. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  13079. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13080. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13081. msm_routing_put_voice_mixer),
  13082. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  13083. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13084. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13085. msm_routing_put_voice_mixer),
  13086. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  13087. MSM_BACKEND_DAI_USB_TX,
  13088. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13089. msm_routing_put_voice_mixer),
  13090. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  13091. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  13092. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13093. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  13094. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  13095. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13096. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  13097. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  13098. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13099. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  13100. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  13101. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13102. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  13103. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  13104. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13105. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  13106. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  13107. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13108. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  13109. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  13110. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13111. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  13112. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  13113. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13114. };
  13115. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  13116. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13117. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13118. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13119. msm_routing_put_port_mixer),
  13120. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13121. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13122. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13123. msm_routing_put_port_mixer),
  13124. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13125. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13126. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13127. msm_routing_put_port_mixer),
  13128. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13129. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13130. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13131. msm_routing_put_port_mixer),
  13132. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13133. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13134. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13135. msm_routing_put_port_mixer),
  13136. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13137. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13138. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13139. msm_routing_put_port_mixer),
  13140. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13141. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13142. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13143. msm_routing_put_port_mixer),
  13144. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13145. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13146. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13147. msm_routing_put_port_mixer),
  13148. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13149. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13150. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13151. msm_routing_put_port_mixer),
  13152. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13153. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13154. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13155. msm_routing_put_port_mixer),
  13156. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13157. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13158. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13159. msm_routing_put_port_mixer),
  13160. };
  13161. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  13162. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13163. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13164. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13165. msm_routing_put_port_mixer),
  13166. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13167. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13168. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13169. msm_routing_put_port_mixer),
  13170. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13171. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13172. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13173. msm_routing_put_port_mixer),
  13174. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13175. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13176. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13177. msm_routing_put_port_mixer),
  13178. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13179. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13180. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13181. msm_routing_put_port_mixer),
  13182. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13183. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13184. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13185. msm_routing_put_port_mixer),
  13186. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13187. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13188. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13189. msm_routing_put_port_mixer),
  13190. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13191. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13192. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13193. msm_routing_put_port_mixer),
  13194. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13195. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13196. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13197. msm_routing_put_port_mixer),
  13198. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13199. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13200. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13201. msm_routing_put_port_mixer),
  13202. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13203. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13204. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13205. msm_routing_put_port_mixer),
  13206. };
  13207. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  13208. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13209. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13210. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  13211. msm_routing_put_port_mixer),
  13212. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13213. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13214. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  13215. msm_routing_put_port_mixer),
  13216. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13217. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13218. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13219. msm_routing_put_port_mixer),
  13220. };
  13221. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  13222. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13223. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13224. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  13225. msm_routing_put_port_mixer),
  13226. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13227. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13228. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13229. msm_routing_put_port_mixer),
  13230. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13231. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13232. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13233. msm_routing_put_port_mixer),
  13234. };
  13235. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  13236. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13237. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13238. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13239. msm_routing_put_port_mixer),
  13240. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13241. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13242. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13243. msm_routing_put_port_mixer),
  13244. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13245. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13246. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13247. msm_routing_put_port_mixer),
  13248. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13249. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13250. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13251. msm_routing_put_port_mixer),
  13252. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13253. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13254. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13255. msm_routing_put_port_mixer),
  13256. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13257. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13258. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13259. msm_routing_put_port_mixer),
  13260. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13261. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13262. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13263. msm_routing_put_port_mixer),
  13264. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13265. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13266. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13267. msm_routing_put_port_mixer),
  13268. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13269. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13270. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13271. msm_routing_put_port_mixer),
  13272. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13273. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13274. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13275. msm_routing_put_port_mixer),
  13276. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13277. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13278. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13279. msm_routing_put_port_mixer),
  13280. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13281. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13282. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13283. msm_routing_put_port_mixer),
  13284. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13285. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13286. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13287. msm_routing_put_port_mixer),
  13288. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13289. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13290. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13291. msm_routing_put_port_mixer),
  13292. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13293. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13294. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13295. msm_routing_put_port_mixer),
  13296. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13297. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13298. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13299. msm_routing_put_port_mixer),
  13300. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13301. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13302. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13303. msm_routing_put_port_mixer),
  13304. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  13305. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13306. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13307. msm_routing_put_port_mixer),
  13308. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  13309. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13310. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13311. msm_routing_put_port_mixer),
  13312. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  13313. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13314. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13315. msm_routing_put_port_mixer),
  13316. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  13317. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13318. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13319. msm_routing_put_port_mixer),
  13320. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  13321. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13322. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13323. msm_routing_put_port_mixer),
  13324. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13325. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13326. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13327. msm_routing_put_port_mixer),
  13328. };
  13329. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  13330. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13331. MSM_BACKEND_DAI_AUXPCM_RX,
  13332. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13333. msm_routing_put_port_mixer),
  13334. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13335. MSM_BACKEND_DAI_AUXPCM_RX,
  13336. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13337. msm_routing_put_port_mixer),
  13338. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13339. MSM_BACKEND_DAI_AUXPCM_RX,
  13340. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13341. msm_routing_put_port_mixer),
  13342. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13343. MSM_BACKEND_DAI_AUXPCM_RX,
  13344. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13345. msm_routing_put_port_mixer),
  13346. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13347. MSM_BACKEND_DAI_AUXPCM_RX,
  13348. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  13349. msm_routing_put_port_mixer),
  13350. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13351. MSM_BACKEND_DAI_AUXPCM_RX,
  13352. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13353. msm_routing_put_port_mixer),
  13354. };
  13355. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  13356. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13357. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13358. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13359. msm_routing_put_port_mixer),
  13360. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13361. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13362. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13363. msm_routing_put_port_mixer),
  13364. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13365. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13366. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13367. msm_routing_put_port_mixer),
  13368. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13369. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13370. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13371. msm_routing_put_port_mixer),
  13372. };
  13373. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  13374. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13375. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13376. MSM_BACKEND_DAI_TERT_AUXPCM_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_TERT_AUXPCM_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("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13383. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13384. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13385. msm_routing_put_port_mixer),
  13386. };
  13387. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  13388. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13389. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13390. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13391. msm_routing_put_port_mixer),
  13392. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13393. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13394. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13395. msm_routing_put_port_mixer),
  13396. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13397. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13398. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13399. msm_routing_put_port_mixer),
  13400. };
  13401. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  13402. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13403. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13404. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13405. msm_routing_put_port_mixer),
  13406. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13407. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13408. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13409. msm_routing_put_port_mixer),
  13410. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13411. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13412. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13413. msm_routing_put_port_mixer),
  13414. };
  13415. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  13416. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13417. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13418. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13419. msm_routing_put_port_mixer),
  13420. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13421. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13422. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  13423. msm_routing_put_port_mixer),
  13424. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13425. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13426. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13427. msm_routing_put_port_mixer),
  13428. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13429. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13430. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13431. msm_routing_put_port_mixer),
  13432. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13433. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13434. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13435. msm_routing_put_port_mixer),
  13436. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13437. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13438. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13439. msm_routing_put_port_mixer),
  13440. };
  13441. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  13442. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  13443. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13444. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  13445. msm_routing_put_port_mixer),
  13446. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13447. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13448. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13449. msm_routing_put_port_mixer),
  13450. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  13451. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13452. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  13453. msm_routing_put_port_mixer),
  13454. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  13455. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13456. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  13457. msm_routing_put_port_mixer),
  13458. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  13459. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13460. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  13461. msm_routing_put_port_mixer),
  13462. };
  13463. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  13464. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13465. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13466. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13467. msm_routing_put_port_mixer),
  13468. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13469. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13470. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13471. msm_routing_put_port_mixer),
  13472. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13473. MSM_BACKEND_DAI_SLIMBUS_6_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("SLIM_7_TX", SND_SOC_NOPM,
  13477. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13478. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13479. msm_routing_put_port_mixer),
  13480. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13481. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13482. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13483. msm_routing_put_port_mixer),
  13484. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13485. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13486. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13487. msm_routing_put_port_mixer),
  13488. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13489. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13490. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13491. msm_routing_put_port_mixer),
  13492. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13493. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13494. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13495. msm_routing_put_port_mixer),
  13496. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13497. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13498. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13499. msm_routing_put_port_mixer),
  13500. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13501. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13502. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13503. msm_routing_put_port_mixer),
  13504. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13505. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13506. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13507. msm_routing_put_port_mixer),
  13508. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13509. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13510. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13511. msm_routing_put_port_mixer),
  13512. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13513. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13514. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13515. msm_routing_put_port_mixer),
  13516. };
  13517. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  13518. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13519. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13520. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13521. msm_routing_put_port_mixer),
  13522. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13523. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13524. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13525. msm_routing_put_port_mixer),
  13526. };
  13527. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  13528. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13529. MSM_BACKEND_DAI_AFE_PCM_RX,
  13530. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13531. msm_routing_put_port_mixer),
  13532. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13533. MSM_BACKEND_DAI_AFE_PCM_RX,
  13534. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13535. msm_routing_put_port_mixer),
  13536. };
  13537. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  13538. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13539. MSM_BACKEND_DAI_HDMI_RX,
  13540. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13541. msm_routing_put_port_mixer),
  13542. };
  13543. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  13544. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13545. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13546. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13547. msm_routing_put_port_mixer),
  13548. };
  13549. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  13550. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13551. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13552. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13553. msm_routing_put_port_mixer),
  13554. };
  13555. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  13556. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13557. MSM_BACKEND_DAI_SEC_I2S_RX,
  13558. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13559. msm_routing_put_port_mixer),
  13560. };
  13561. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  13562. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13563. MSM_BACKEND_DAI_MI2S_RX,
  13564. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13565. msm_routing_put_port_mixer),
  13566. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13567. MSM_BACKEND_DAI_MI2S_RX,
  13568. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13569. msm_routing_put_port_mixer),
  13570. };
  13571. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  13572. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13573. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13574. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13575. msm_routing_put_port_mixer),
  13576. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13577. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13578. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13579. msm_routing_put_port_mixer),
  13580. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13581. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13582. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13583. msm_routing_put_port_mixer),
  13584. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13585. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13586. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13587. msm_routing_put_port_mixer),
  13588. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13589. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13590. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13591. msm_routing_put_port_mixer),
  13592. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13593. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13594. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13595. msm_routing_put_port_mixer),
  13596. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13597. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13598. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13599. msm_routing_put_port_mixer),
  13600. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13601. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13602. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13603. msm_routing_put_port_mixer),
  13604. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13605. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13606. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13607. msm_routing_put_port_mixer),
  13608. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13609. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13610. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13611. msm_routing_put_port_mixer),
  13612. };
  13613. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  13614. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13615. MSM_BACKEND_DAI_USB_RX,
  13616. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  13617. msm_routing_put_port_mixer),
  13618. };
  13619. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  13620. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13621. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13622. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13623. msm_routing_put_port_mixer),
  13624. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13625. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13626. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13627. msm_routing_put_port_mixer),
  13628. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13629. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13630. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13631. msm_routing_put_port_mixer),
  13632. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13633. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13634. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13635. msm_routing_put_port_mixer),
  13636. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13637. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13638. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13639. msm_routing_put_port_mixer),
  13640. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13641. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13642. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13643. msm_routing_put_port_mixer),
  13644. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13645. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13646. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13647. msm_routing_put_port_mixer),
  13648. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13649. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13650. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13651. msm_routing_put_port_mixer),
  13652. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13653. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13654. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13655. msm_routing_put_port_mixer),
  13656. };
  13657. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  13658. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13659. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13660. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13661. msm_routing_put_port_mixer),
  13662. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13663. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13664. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13665. msm_routing_put_port_mixer),
  13666. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13667. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13668. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13669. msm_routing_put_port_mixer),
  13670. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13671. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13672. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13673. msm_routing_put_port_mixer),
  13674. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13675. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13676. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13677. msm_routing_put_port_mixer),
  13678. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13679. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13680. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13681. msm_routing_put_port_mixer),
  13682. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13683. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13684. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13685. msm_routing_put_port_mixer),
  13686. };
  13687. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  13688. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13689. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13690. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13691. msm_routing_get_port_mixer,
  13692. msm_routing_put_port_mixer),
  13693. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13694. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13695. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13696. msm_routing_get_port_mixer,
  13697. msm_routing_put_port_mixer),
  13698. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13699. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13700. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13701. msm_routing_get_port_mixer,
  13702. msm_routing_put_port_mixer),
  13703. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13704. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13705. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13706. msm_routing_get_port_mixer,
  13707. msm_routing_put_port_mixer),
  13708. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13709. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13710. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13711. msm_routing_get_port_mixer,
  13712. msm_routing_put_port_mixer),
  13713. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13714. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13715. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13716. msm_routing_get_port_mixer,
  13717. msm_routing_put_port_mixer),
  13718. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13719. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13720. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13721. msm_routing_get_port_mixer,
  13722. msm_routing_put_port_mixer),
  13723. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13724. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13725. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13726. msm_routing_get_port_mixer,
  13727. msm_routing_put_port_mixer),
  13728. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13729. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13730. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13731. msm_routing_get_port_mixer,
  13732. msm_routing_put_port_mixer),
  13733. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13734. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13735. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13736. msm_routing_get_port_mixer,
  13737. msm_routing_put_port_mixer),
  13738. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13739. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13740. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13741. msm_routing_get_port_mixer,
  13742. msm_routing_put_port_mixer),
  13743. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13744. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13745. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13746. msm_routing_get_port_mixer,
  13747. msm_routing_put_port_mixer),
  13748. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13749. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13750. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13751. msm_routing_get_port_mixer,
  13752. msm_routing_put_port_mixer),
  13753. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13754. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13755. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13756. msm_routing_get_port_mixer,
  13757. msm_routing_put_port_mixer),
  13758. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13759. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13760. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13761. msm_routing_get_port_mixer,
  13762. msm_routing_put_port_mixer),
  13763. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13764. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13765. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13766. msm_routing_get_port_mixer,
  13767. msm_routing_put_port_mixer),
  13768. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13769. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13770. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13771. msm_routing_get_port_mixer,
  13772. msm_routing_put_port_mixer),
  13773. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13774. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13775. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13776. msm_routing_get_port_mixer,
  13777. msm_routing_put_port_mixer),
  13778. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13779. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13780. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13781. msm_routing_get_port_mixer,
  13782. msm_routing_put_port_mixer),
  13783. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13784. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13785. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13786. msm_routing_get_port_mixer,
  13787. msm_routing_put_port_mixer),
  13788. };
  13789. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  13790. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13791. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13792. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13793. msm_routing_get_port_mixer,
  13794. msm_routing_put_port_mixer),
  13795. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13796. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13797. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13798. msm_routing_get_port_mixer,
  13799. msm_routing_put_port_mixer),
  13800. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13801. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13802. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13803. msm_routing_get_port_mixer,
  13804. msm_routing_put_port_mixer),
  13805. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13806. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13807. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13808. msm_routing_get_port_mixer,
  13809. msm_routing_put_port_mixer),
  13810. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13811. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13812. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13813. msm_routing_get_port_mixer,
  13814. msm_routing_put_port_mixer),
  13815. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13816. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13817. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13818. msm_routing_get_port_mixer,
  13819. msm_routing_put_port_mixer),
  13820. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13821. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13822. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13823. msm_routing_get_port_mixer,
  13824. msm_routing_put_port_mixer),
  13825. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13826. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13827. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13828. msm_routing_get_port_mixer,
  13829. msm_routing_put_port_mixer),
  13830. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13831. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13832. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13833. msm_routing_get_port_mixer,
  13834. msm_routing_put_port_mixer),
  13835. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13836. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13837. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13838. msm_routing_get_port_mixer,
  13839. msm_routing_put_port_mixer),
  13840. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13841. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13842. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13843. msm_routing_get_port_mixer,
  13844. msm_routing_put_port_mixer),
  13845. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13846. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13847. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13848. msm_routing_get_port_mixer,
  13849. msm_routing_put_port_mixer),
  13850. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13851. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13852. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13853. msm_routing_get_port_mixer,
  13854. msm_routing_put_port_mixer),
  13855. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13856. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13857. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13858. msm_routing_get_port_mixer,
  13859. msm_routing_put_port_mixer),
  13860. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13861. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13862. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13863. msm_routing_get_port_mixer,
  13864. msm_routing_put_port_mixer),
  13865. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13866. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13867. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13868. msm_routing_get_port_mixer,
  13869. msm_routing_put_port_mixer),
  13870. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13871. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13872. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13873. msm_routing_get_port_mixer,
  13874. msm_routing_put_port_mixer),
  13875. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13876. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13877. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13878. msm_routing_get_port_mixer,
  13879. msm_routing_put_port_mixer),
  13880. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13881. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13882. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13883. msm_routing_get_port_mixer,
  13884. msm_routing_put_port_mixer),
  13885. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13886. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13887. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13888. msm_routing_get_port_mixer,
  13889. msm_routing_put_port_mixer),
  13890. };
  13891. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  13892. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13893. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13894. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13895. msm_routing_get_port_mixer,
  13896. msm_routing_put_port_mixer),
  13897. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13898. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13899. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13900. msm_routing_get_port_mixer,
  13901. msm_routing_put_port_mixer),
  13902. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13903. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13904. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13905. msm_routing_get_port_mixer,
  13906. msm_routing_put_port_mixer),
  13907. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13908. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13909. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13910. msm_routing_get_port_mixer,
  13911. msm_routing_put_port_mixer),
  13912. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13913. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13914. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13915. msm_routing_get_port_mixer,
  13916. msm_routing_put_port_mixer),
  13917. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13918. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13919. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13920. msm_routing_get_port_mixer,
  13921. msm_routing_put_port_mixer),
  13922. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13923. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13924. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13925. msm_routing_get_port_mixer,
  13926. msm_routing_put_port_mixer),
  13927. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13928. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13929. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13930. msm_routing_get_port_mixer,
  13931. msm_routing_put_port_mixer),
  13932. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13933. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13934. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13935. msm_routing_get_port_mixer,
  13936. msm_routing_put_port_mixer),
  13937. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13938. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13939. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13940. msm_routing_get_port_mixer,
  13941. msm_routing_put_port_mixer),
  13942. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13943. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13944. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13945. msm_routing_get_port_mixer,
  13946. msm_routing_put_port_mixer),
  13947. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13948. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13949. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13950. msm_routing_get_port_mixer,
  13951. msm_routing_put_port_mixer),
  13952. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13953. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13954. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13955. msm_routing_get_port_mixer,
  13956. msm_routing_put_port_mixer),
  13957. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13958. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13959. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13960. msm_routing_get_port_mixer,
  13961. msm_routing_put_port_mixer),
  13962. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13963. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13964. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13965. msm_routing_get_port_mixer,
  13966. msm_routing_put_port_mixer),
  13967. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13968. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13969. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13970. msm_routing_get_port_mixer,
  13971. msm_routing_put_port_mixer),
  13972. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13973. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13974. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13975. msm_routing_get_port_mixer,
  13976. msm_routing_put_port_mixer),
  13977. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13978. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13979. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13980. msm_routing_get_port_mixer,
  13981. msm_routing_put_port_mixer),
  13982. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13983. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13984. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13985. msm_routing_get_port_mixer,
  13986. msm_routing_put_port_mixer),
  13987. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13988. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13989. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13990. msm_routing_get_port_mixer,
  13991. msm_routing_put_port_mixer),
  13992. };
  13993. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  13994. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13995. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13996. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13997. msm_routing_get_port_mixer,
  13998. msm_routing_put_port_mixer),
  13999. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14000. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14001. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14002. msm_routing_get_port_mixer,
  14003. msm_routing_put_port_mixer),
  14004. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14005. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14006. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14007. msm_routing_get_port_mixer,
  14008. msm_routing_put_port_mixer),
  14009. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14010. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14011. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14012. msm_routing_get_port_mixer,
  14013. msm_routing_put_port_mixer),
  14014. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14015. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14016. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14017. msm_routing_get_port_mixer,
  14018. msm_routing_put_port_mixer),
  14019. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14020. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14021. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14022. msm_routing_get_port_mixer,
  14023. msm_routing_put_port_mixer),
  14024. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14025. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14026. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14027. msm_routing_get_port_mixer,
  14028. msm_routing_put_port_mixer),
  14029. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14030. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14031. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14032. msm_routing_get_port_mixer,
  14033. msm_routing_put_port_mixer),
  14034. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14035. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14036. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  14037. msm_routing_get_port_mixer,
  14038. msm_routing_put_port_mixer),
  14039. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14040. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14041. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  14042. msm_routing_get_port_mixer,
  14043. msm_routing_put_port_mixer),
  14044. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14045. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14046. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  14047. msm_routing_get_port_mixer,
  14048. msm_routing_put_port_mixer),
  14049. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14050. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14051. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  14052. msm_routing_get_port_mixer,
  14053. msm_routing_put_port_mixer),
  14054. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14055. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14056. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14057. msm_routing_get_port_mixer,
  14058. msm_routing_put_port_mixer),
  14059. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14060. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14061. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14062. msm_routing_get_port_mixer,
  14063. msm_routing_put_port_mixer),
  14064. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14065. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14066. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14067. msm_routing_get_port_mixer,
  14068. msm_routing_put_port_mixer),
  14069. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14070. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14071. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14072. msm_routing_get_port_mixer,
  14073. msm_routing_put_port_mixer),
  14074. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14075. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14076. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14077. msm_routing_get_port_mixer,
  14078. msm_routing_put_port_mixer),
  14079. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14080. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14081. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14082. msm_routing_get_port_mixer,
  14083. msm_routing_put_port_mixer),
  14084. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14085. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14086. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14087. msm_routing_get_port_mixer,
  14088. msm_routing_put_port_mixer),
  14089. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14090. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14091. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14092. msm_routing_get_port_mixer,
  14093. msm_routing_put_port_mixer),
  14094. };
  14095. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  14096. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14097. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14098. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14099. msm_routing_get_port_mixer,
  14100. msm_routing_put_port_mixer),
  14101. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14102. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14103. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14104. msm_routing_get_port_mixer,
  14105. msm_routing_put_port_mixer),
  14106. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14107. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14108. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14109. msm_routing_get_port_mixer,
  14110. msm_routing_put_port_mixer),
  14111. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14112. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14113. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14114. msm_routing_get_port_mixer,
  14115. msm_routing_put_port_mixer),
  14116. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14117. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14118. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14119. msm_routing_get_port_mixer,
  14120. msm_routing_put_port_mixer),
  14121. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14122. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14123. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14124. msm_routing_get_port_mixer,
  14125. msm_routing_put_port_mixer),
  14126. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14127. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14128. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14129. msm_routing_get_port_mixer,
  14130. msm_routing_put_port_mixer),
  14131. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14132. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14133. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14134. msm_routing_get_port_mixer,
  14135. msm_routing_put_port_mixer),
  14136. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14137. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14138. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14139. msm_routing_get_port_mixer,
  14140. msm_routing_put_port_mixer),
  14141. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14142. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14143. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14144. msm_routing_get_port_mixer,
  14145. msm_routing_put_port_mixer),
  14146. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14147. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14148. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14149. msm_routing_get_port_mixer,
  14150. msm_routing_put_port_mixer),
  14151. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14152. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14153. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14154. msm_routing_get_port_mixer,
  14155. msm_routing_put_port_mixer),
  14156. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14157. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14158. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14159. msm_routing_get_port_mixer,
  14160. msm_routing_put_port_mixer),
  14161. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14162. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14163. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14164. msm_routing_get_port_mixer,
  14165. msm_routing_put_port_mixer),
  14166. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14167. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14168. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14169. msm_routing_get_port_mixer,
  14170. msm_routing_put_port_mixer),
  14171. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14172. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14173. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14174. msm_routing_get_port_mixer,
  14175. msm_routing_put_port_mixer),
  14176. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14177. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14178. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14179. msm_routing_get_port_mixer,
  14180. msm_routing_put_port_mixer),
  14181. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14182. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14183. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14184. msm_routing_get_port_mixer,
  14185. msm_routing_put_port_mixer),
  14186. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14187. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14188. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14189. msm_routing_get_port_mixer,
  14190. msm_routing_put_port_mixer),
  14191. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14192. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14193. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14194. msm_routing_get_port_mixer,
  14195. msm_routing_put_port_mixer),
  14196. };
  14197. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  14198. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14199. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14200. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14201. msm_routing_get_port_mixer,
  14202. msm_routing_put_port_mixer),
  14203. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14204. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14205. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14206. msm_routing_get_port_mixer,
  14207. msm_routing_put_port_mixer),
  14208. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14209. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14210. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14211. msm_routing_get_port_mixer,
  14212. msm_routing_put_port_mixer),
  14213. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14214. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14215. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14216. msm_routing_get_port_mixer,
  14217. msm_routing_put_port_mixer),
  14218. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14219. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14220. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14221. msm_routing_get_port_mixer,
  14222. msm_routing_put_port_mixer),
  14223. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14224. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14225. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14226. msm_routing_get_port_mixer,
  14227. msm_routing_put_port_mixer),
  14228. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14229. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14230. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14231. msm_routing_get_port_mixer,
  14232. msm_routing_put_port_mixer),
  14233. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14234. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14235. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14236. msm_routing_get_port_mixer,
  14237. msm_routing_put_port_mixer),
  14238. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14239. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14240. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14241. msm_routing_get_port_mixer,
  14242. msm_routing_put_port_mixer),
  14243. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14244. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14245. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14246. msm_routing_get_port_mixer,
  14247. msm_routing_put_port_mixer),
  14248. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14249. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14250. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14251. msm_routing_get_port_mixer,
  14252. msm_routing_put_port_mixer),
  14253. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14254. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14255. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14256. msm_routing_get_port_mixer,
  14257. msm_routing_put_port_mixer),
  14258. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14259. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14260. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14261. msm_routing_get_port_mixer,
  14262. msm_routing_put_port_mixer),
  14263. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14264. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14265. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14266. msm_routing_get_port_mixer,
  14267. msm_routing_put_port_mixer),
  14268. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14269. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14270. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14271. msm_routing_get_port_mixer,
  14272. msm_routing_put_port_mixer),
  14273. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14274. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14275. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14276. msm_routing_get_port_mixer,
  14277. msm_routing_put_port_mixer),
  14278. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14279. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14280. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14281. msm_routing_get_port_mixer,
  14282. msm_routing_put_port_mixer),
  14283. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14284. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14285. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14286. msm_routing_get_port_mixer,
  14287. msm_routing_put_port_mixer),
  14288. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14289. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14290. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14291. msm_routing_get_port_mixer,
  14292. msm_routing_put_port_mixer),
  14293. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14294. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14295. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14296. msm_routing_get_port_mixer,
  14297. msm_routing_put_port_mixer),
  14298. };
  14299. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  14300. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14301. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14302. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14303. msm_routing_get_port_mixer,
  14304. msm_routing_put_port_mixer),
  14305. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14306. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14307. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14308. msm_routing_get_port_mixer,
  14309. msm_routing_put_port_mixer),
  14310. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14311. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14312. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14313. msm_routing_get_port_mixer,
  14314. msm_routing_put_port_mixer),
  14315. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14316. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14317. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14318. msm_routing_get_port_mixer,
  14319. msm_routing_put_port_mixer),
  14320. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14321. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14322. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14323. msm_routing_get_port_mixer,
  14324. msm_routing_put_port_mixer),
  14325. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14326. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14327. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14328. msm_routing_get_port_mixer,
  14329. msm_routing_put_port_mixer),
  14330. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14331. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14332. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14333. msm_routing_get_port_mixer,
  14334. msm_routing_put_port_mixer),
  14335. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14336. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14337. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14338. msm_routing_get_port_mixer,
  14339. msm_routing_put_port_mixer),
  14340. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14341. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14342. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14343. msm_routing_get_port_mixer,
  14344. msm_routing_put_port_mixer),
  14345. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14346. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14347. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14348. msm_routing_get_port_mixer,
  14349. msm_routing_put_port_mixer),
  14350. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14351. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14352. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14353. msm_routing_get_port_mixer,
  14354. msm_routing_put_port_mixer),
  14355. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14356. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14357. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14358. msm_routing_get_port_mixer,
  14359. msm_routing_put_port_mixer),
  14360. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14361. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14362. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14363. msm_routing_get_port_mixer,
  14364. msm_routing_put_port_mixer),
  14365. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14366. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14367. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14368. msm_routing_get_port_mixer,
  14369. msm_routing_put_port_mixer),
  14370. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14371. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14372. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14373. msm_routing_get_port_mixer,
  14374. msm_routing_put_port_mixer),
  14375. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14376. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14377. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14378. msm_routing_get_port_mixer,
  14379. msm_routing_put_port_mixer),
  14380. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14381. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14382. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14383. msm_routing_get_port_mixer,
  14384. msm_routing_put_port_mixer),
  14385. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14386. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14387. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14388. msm_routing_get_port_mixer,
  14389. msm_routing_put_port_mixer),
  14390. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14391. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14392. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14393. msm_routing_get_port_mixer,
  14394. msm_routing_put_port_mixer),
  14395. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14396. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14397. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14398. msm_routing_get_port_mixer,
  14399. msm_routing_put_port_mixer),
  14400. };
  14401. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  14402. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14403. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14404. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14405. msm_routing_get_port_mixer,
  14406. msm_routing_put_port_mixer),
  14407. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14408. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14409. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14410. msm_routing_get_port_mixer,
  14411. msm_routing_put_port_mixer),
  14412. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14413. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14414. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14415. msm_routing_get_port_mixer,
  14416. msm_routing_put_port_mixer),
  14417. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14418. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14419. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14420. msm_routing_get_port_mixer,
  14421. msm_routing_put_port_mixer),
  14422. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14423. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14424. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14425. msm_routing_get_port_mixer,
  14426. msm_routing_put_port_mixer),
  14427. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14428. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14429. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14430. msm_routing_get_port_mixer,
  14431. msm_routing_put_port_mixer),
  14432. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14433. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14434. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14435. msm_routing_get_port_mixer,
  14436. msm_routing_put_port_mixer),
  14437. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14438. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14439. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14440. msm_routing_get_port_mixer,
  14441. msm_routing_put_port_mixer),
  14442. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14443. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14444. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14445. msm_routing_get_port_mixer,
  14446. msm_routing_put_port_mixer),
  14447. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14448. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14449. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14450. msm_routing_get_port_mixer,
  14451. msm_routing_put_port_mixer),
  14452. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14453. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14454. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14455. msm_routing_get_port_mixer,
  14456. msm_routing_put_port_mixer),
  14457. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14458. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14459. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14460. msm_routing_get_port_mixer,
  14461. msm_routing_put_port_mixer),
  14462. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14463. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14464. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14465. msm_routing_get_port_mixer,
  14466. msm_routing_put_port_mixer),
  14467. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14468. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14469. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14470. msm_routing_get_port_mixer,
  14471. msm_routing_put_port_mixer),
  14472. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14473. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14474. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14475. msm_routing_get_port_mixer,
  14476. msm_routing_put_port_mixer),
  14477. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14478. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14479. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14480. msm_routing_get_port_mixer,
  14481. msm_routing_put_port_mixer),
  14482. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14483. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14484. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14485. msm_routing_get_port_mixer,
  14486. msm_routing_put_port_mixer),
  14487. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14488. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14489. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14490. msm_routing_get_port_mixer,
  14491. msm_routing_put_port_mixer),
  14492. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14493. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14494. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14495. msm_routing_get_port_mixer,
  14496. msm_routing_put_port_mixer),
  14497. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14498. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14499. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14500. msm_routing_get_port_mixer,
  14501. msm_routing_put_port_mixer),
  14502. };
  14503. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  14504. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  14505. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  14506. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  14507. msm_routing_get_port_mixer,
  14508. msm_routing_put_port_mixer),
  14509. };
  14510. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  14511. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14512. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14513. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14514. msm_routing_get_port_mixer,
  14515. msm_routing_put_port_mixer),
  14516. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14517. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14518. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14519. msm_routing_get_port_mixer,
  14520. msm_routing_put_port_mixer),
  14521. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14522. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14523. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14524. msm_routing_get_port_mixer,
  14525. msm_routing_put_port_mixer),
  14526. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14527. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14528. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14529. msm_routing_get_port_mixer,
  14530. msm_routing_put_port_mixer),
  14531. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14532. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14533. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14534. msm_routing_get_port_mixer,
  14535. msm_routing_put_port_mixer),
  14536. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14537. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14538. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14539. msm_routing_get_port_mixer,
  14540. msm_routing_put_port_mixer),
  14541. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14542. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14543. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14544. msm_routing_get_port_mixer,
  14545. msm_routing_put_port_mixer),
  14546. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14547. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14548. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14549. msm_routing_get_port_mixer,
  14550. msm_routing_put_port_mixer),
  14551. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14552. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14553. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14554. msm_routing_get_port_mixer,
  14555. msm_routing_put_port_mixer),
  14556. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14557. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14558. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14559. msm_routing_get_port_mixer,
  14560. msm_routing_put_port_mixer),
  14561. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14562. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14563. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14564. msm_routing_get_port_mixer,
  14565. msm_routing_put_port_mixer),
  14566. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14567. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14568. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14569. msm_routing_get_port_mixer,
  14570. msm_routing_put_port_mixer),
  14571. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14572. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14573. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14574. msm_routing_get_port_mixer,
  14575. msm_routing_put_port_mixer),
  14576. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14577. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14578. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14579. msm_routing_get_port_mixer,
  14580. msm_routing_put_port_mixer),
  14581. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14582. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14583. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14584. msm_routing_get_port_mixer,
  14585. msm_routing_put_port_mixer),
  14586. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14587. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14588. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14589. msm_routing_get_port_mixer,
  14590. msm_routing_put_port_mixer),
  14591. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14592. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14593. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14594. msm_routing_get_port_mixer,
  14595. msm_routing_put_port_mixer),
  14596. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14597. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14598. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14599. msm_routing_get_port_mixer,
  14600. msm_routing_put_port_mixer),
  14601. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14602. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14603. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14604. msm_routing_get_port_mixer,
  14605. msm_routing_put_port_mixer),
  14606. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14607. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14608. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14609. msm_routing_get_port_mixer,
  14610. msm_routing_put_port_mixer),
  14611. };
  14612. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  14613. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14614. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14615. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14616. msm_routing_get_port_mixer,
  14617. msm_routing_put_port_mixer),
  14618. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14619. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14620. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14621. msm_routing_get_port_mixer,
  14622. msm_routing_put_port_mixer),
  14623. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14624. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14625. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14626. msm_routing_get_port_mixer,
  14627. msm_routing_put_port_mixer),
  14628. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14629. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14630. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14631. msm_routing_get_port_mixer,
  14632. msm_routing_put_port_mixer),
  14633. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14634. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14635. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14636. msm_routing_get_port_mixer,
  14637. msm_routing_put_port_mixer),
  14638. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14639. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14640. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14641. msm_routing_get_port_mixer,
  14642. msm_routing_put_port_mixer),
  14643. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14644. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14645. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14646. msm_routing_get_port_mixer,
  14647. msm_routing_put_port_mixer),
  14648. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14649. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14650. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14651. msm_routing_get_port_mixer,
  14652. msm_routing_put_port_mixer),
  14653. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14654. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14655. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14656. msm_routing_get_port_mixer,
  14657. msm_routing_put_port_mixer),
  14658. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14659. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14660. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14661. msm_routing_get_port_mixer,
  14662. msm_routing_put_port_mixer),
  14663. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14664. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14665. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14666. msm_routing_get_port_mixer,
  14667. msm_routing_put_port_mixer),
  14668. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14669. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14670. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14671. msm_routing_get_port_mixer,
  14672. msm_routing_put_port_mixer),
  14673. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14674. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14675. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14676. msm_routing_get_port_mixer,
  14677. msm_routing_put_port_mixer),
  14678. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14679. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14680. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14681. msm_routing_get_port_mixer,
  14682. msm_routing_put_port_mixer),
  14683. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14684. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14685. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14686. msm_routing_get_port_mixer,
  14687. msm_routing_put_port_mixer),
  14688. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14689. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14690. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14691. msm_routing_get_port_mixer,
  14692. msm_routing_put_port_mixer),
  14693. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14694. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14695. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14696. msm_routing_get_port_mixer,
  14697. msm_routing_put_port_mixer),
  14698. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14699. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14700. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14701. msm_routing_get_port_mixer,
  14702. msm_routing_put_port_mixer),
  14703. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14704. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14705. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14706. msm_routing_get_port_mixer,
  14707. msm_routing_put_port_mixer),
  14708. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14709. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14710. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14711. msm_routing_get_port_mixer,
  14712. msm_routing_put_port_mixer),
  14713. };
  14714. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  14715. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14716. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14717. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14718. msm_routing_get_port_mixer,
  14719. msm_routing_put_port_mixer),
  14720. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14721. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14722. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14723. msm_routing_get_port_mixer,
  14724. msm_routing_put_port_mixer),
  14725. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14726. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14727. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14728. msm_routing_get_port_mixer,
  14729. msm_routing_put_port_mixer),
  14730. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14731. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14732. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14733. msm_routing_get_port_mixer,
  14734. msm_routing_put_port_mixer),
  14735. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14736. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14737. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14738. msm_routing_get_port_mixer,
  14739. msm_routing_put_port_mixer),
  14740. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14741. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14742. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14743. msm_routing_get_port_mixer,
  14744. msm_routing_put_port_mixer),
  14745. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14746. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14747. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14748. msm_routing_get_port_mixer,
  14749. msm_routing_put_port_mixer),
  14750. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14751. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14752. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14753. msm_routing_get_port_mixer,
  14754. msm_routing_put_port_mixer),
  14755. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14756. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14757. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14758. msm_routing_get_port_mixer,
  14759. msm_routing_put_port_mixer),
  14760. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14761. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14762. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14763. msm_routing_get_port_mixer,
  14764. msm_routing_put_port_mixer),
  14765. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14766. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14767. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14768. msm_routing_get_port_mixer,
  14769. msm_routing_put_port_mixer),
  14770. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14771. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14772. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14773. msm_routing_get_port_mixer,
  14774. msm_routing_put_port_mixer),
  14775. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14776. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14777. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14778. msm_routing_get_port_mixer,
  14779. msm_routing_put_port_mixer),
  14780. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14781. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14782. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14783. msm_routing_get_port_mixer,
  14784. msm_routing_put_port_mixer),
  14785. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14786. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14787. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14788. msm_routing_get_port_mixer,
  14789. msm_routing_put_port_mixer),
  14790. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14791. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14792. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14793. msm_routing_get_port_mixer,
  14794. msm_routing_put_port_mixer),
  14795. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14796. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14797. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14798. msm_routing_get_port_mixer,
  14799. msm_routing_put_port_mixer),
  14800. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14801. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14802. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14803. msm_routing_get_port_mixer,
  14804. msm_routing_put_port_mixer),
  14805. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14806. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14807. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14808. msm_routing_get_port_mixer,
  14809. msm_routing_put_port_mixer),
  14810. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14811. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14812. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14813. msm_routing_get_port_mixer,
  14814. msm_routing_put_port_mixer),
  14815. };
  14816. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  14817. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14818. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14819. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14820. msm_routing_get_port_mixer,
  14821. msm_routing_put_port_mixer),
  14822. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14823. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14824. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14825. msm_routing_get_port_mixer,
  14826. msm_routing_put_port_mixer),
  14827. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14828. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14829. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14830. msm_routing_get_port_mixer,
  14831. msm_routing_put_port_mixer),
  14832. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14833. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14834. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14835. msm_routing_get_port_mixer,
  14836. msm_routing_put_port_mixer),
  14837. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14838. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14839. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14840. msm_routing_get_port_mixer,
  14841. msm_routing_put_port_mixer),
  14842. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14843. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14844. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14845. msm_routing_get_port_mixer,
  14846. msm_routing_put_port_mixer),
  14847. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14848. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14849. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14850. msm_routing_get_port_mixer,
  14851. msm_routing_put_port_mixer),
  14852. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14853. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14854. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14855. msm_routing_get_port_mixer,
  14856. msm_routing_put_port_mixer),
  14857. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14858. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14859. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14860. msm_routing_get_port_mixer,
  14861. msm_routing_put_port_mixer),
  14862. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14863. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14864. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14865. msm_routing_get_port_mixer,
  14866. msm_routing_put_port_mixer),
  14867. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14868. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14869. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14870. msm_routing_get_port_mixer,
  14871. msm_routing_put_port_mixer),
  14872. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14873. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14874. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14875. msm_routing_get_port_mixer,
  14876. msm_routing_put_port_mixer),
  14877. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14878. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14879. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14880. msm_routing_get_port_mixer,
  14881. msm_routing_put_port_mixer),
  14882. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14883. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14884. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14885. msm_routing_get_port_mixer,
  14886. msm_routing_put_port_mixer),
  14887. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14888. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14889. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14890. msm_routing_get_port_mixer,
  14891. msm_routing_put_port_mixer),
  14892. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14893. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14894. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14895. msm_routing_get_port_mixer,
  14896. msm_routing_put_port_mixer),
  14897. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14898. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14899. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14900. msm_routing_get_port_mixer,
  14901. msm_routing_put_port_mixer),
  14902. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14903. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14904. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14905. msm_routing_get_port_mixer,
  14906. msm_routing_put_port_mixer),
  14907. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14908. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14909. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14910. msm_routing_get_port_mixer,
  14911. msm_routing_put_port_mixer),
  14912. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14913. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14914. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14915. msm_routing_get_port_mixer,
  14916. msm_routing_put_port_mixer),
  14917. };
  14918. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  14919. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14920. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14921. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14922. msm_routing_get_port_mixer,
  14923. msm_routing_put_port_mixer),
  14924. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14925. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14926. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14927. msm_routing_get_port_mixer,
  14928. msm_routing_put_port_mixer),
  14929. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14930. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14931. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14932. msm_routing_get_port_mixer,
  14933. msm_routing_put_port_mixer),
  14934. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14935. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14936. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14937. msm_routing_get_port_mixer,
  14938. msm_routing_put_port_mixer),
  14939. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14940. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14941. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14942. msm_routing_get_port_mixer,
  14943. msm_routing_put_port_mixer),
  14944. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14945. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14946. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14947. msm_routing_get_port_mixer,
  14948. msm_routing_put_port_mixer),
  14949. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14950. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14951. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14952. msm_routing_get_port_mixer,
  14953. msm_routing_put_port_mixer),
  14954. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14955. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14956. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14957. msm_routing_get_port_mixer,
  14958. msm_routing_put_port_mixer),
  14959. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14960. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14961. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14962. msm_routing_get_port_mixer,
  14963. msm_routing_put_port_mixer),
  14964. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14965. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14966. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14967. msm_routing_get_port_mixer,
  14968. msm_routing_put_port_mixer),
  14969. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14970. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14971. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14972. msm_routing_get_port_mixer,
  14973. msm_routing_put_port_mixer),
  14974. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14975. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14976. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14977. msm_routing_get_port_mixer,
  14978. msm_routing_put_port_mixer),
  14979. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14980. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14981. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14982. msm_routing_get_port_mixer,
  14983. msm_routing_put_port_mixer),
  14984. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14985. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14986. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14987. msm_routing_get_port_mixer,
  14988. msm_routing_put_port_mixer),
  14989. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14990. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14991. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14992. msm_routing_get_port_mixer,
  14993. msm_routing_put_port_mixer),
  14994. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14995. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14996. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14997. msm_routing_get_port_mixer,
  14998. msm_routing_put_port_mixer),
  14999. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15001. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15002. msm_routing_get_port_mixer,
  15003. msm_routing_put_port_mixer),
  15004. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15005. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15006. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15007. msm_routing_get_port_mixer,
  15008. msm_routing_put_port_mixer),
  15009. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15010. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15011. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15012. msm_routing_get_port_mixer,
  15013. msm_routing_put_port_mixer),
  15014. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15015. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15016. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15017. msm_routing_get_port_mixer,
  15018. msm_routing_put_port_mixer),
  15019. };
  15020. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  15021. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15022. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15023. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15024. msm_routing_get_port_mixer,
  15025. msm_routing_put_port_mixer),
  15026. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15027. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15028. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15029. msm_routing_get_port_mixer,
  15030. msm_routing_put_port_mixer),
  15031. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15032. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15033. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15034. msm_routing_get_port_mixer,
  15035. msm_routing_put_port_mixer),
  15036. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15037. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15038. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15039. msm_routing_get_port_mixer,
  15040. msm_routing_put_port_mixer),
  15041. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15042. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15043. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15044. msm_routing_get_port_mixer,
  15045. msm_routing_put_port_mixer),
  15046. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15047. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15048. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15049. msm_routing_get_port_mixer,
  15050. msm_routing_put_port_mixer),
  15051. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15052. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15053. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15054. msm_routing_get_port_mixer,
  15055. msm_routing_put_port_mixer),
  15056. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15057. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15058. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15059. msm_routing_get_port_mixer,
  15060. msm_routing_put_port_mixer),
  15061. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15062. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15063. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15064. msm_routing_get_port_mixer,
  15065. msm_routing_put_port_mixer),
  15066. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15067. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15068. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15069. msm_routing_get_port_mixer,
  15070. msm_routing_put_port_mixer),
  15071. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15072. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15073. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15074. msm_routing_get_port_mixer,
  15075. msm_routing_put_port_mixer),
  15076. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15077. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15078. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15079. msm_routing_get_port_mixer,
  15080. msm_routing_put_port_mixer),
  15081. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15082. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15083. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15084. msm_routing_get_port_mixer,
  15085. msm_routing_put_port_mixer),
  15086. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15087. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15088. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15089. msm_routing_get_port_mixer,
  15090. msm_routing_put_port_mixer),
  15091. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15092. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15093. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15094. msm_routing_get_port_mixer,
  15095. msm_routing_put_port_mixer),
  15096. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15097. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15098. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15099. msm_routing_get_port_mixer,
  15100. msm_routing_put_port_mixer),
  15101. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15102. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15103. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15104. msm_routing_get_port_mixer,
  15105. msm_routing_put_port_mixer),
  15106. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15107. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15108. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15109. msm_routing_get_port_mixer,
  15110. msm_routing_put_port_mixer),
  15111. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15112. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15113. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15114. msm_routing_get_port_mixer,
  15115. msm_routing_put_port_mixer),
  15116. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15117. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15118. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15119. msm_routing_get_port_mixer,
  15120. msm_routing_put_port_mixer),
  15121. };
  15122. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  15123. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15124. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15125. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15126. msm_routing_get_port_mixer,
  15127. msm_routing_put_port_mixer),
  15128. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15129. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15130. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15131. msm_routing_get_port_mixer,
  15132. msm_routing_put_port_mixer),
  15133. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15134. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15135. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15136. msm_routing_get_port_mixer,
  15137. msm_routing_put_port_mixer),
  15138. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15139. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15140. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15141. msm_routing_get_port_mixer,
  15142. msm_routing_put_port_mixer),
  15143. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15144. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15145. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15146. msm_routing_get_port_mixer,
  15147. msm_routing_put_port_mixer),
  15148. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15149. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15150. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15151. msm_routing_get_port_mixer,
  15152. msm_routing_put_port_mixer),
  15153. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15154. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15155. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15156. msm_routing_get_port_mixer,
  15157. msm_routing_put_port_mixer),
  15158. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15159. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15160. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15161. msm_routing_get_port_mixer,
  15162. msm_routing_put_port_mixer),
  15163. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15164. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15165. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15166. msm_routing_get_port_mixer,
  15167. msm_routing_put_port_mixer),
  15168. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15169. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15170. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15171. msm_routing_get_port_mixer,
  15172. msm_routing_put_port_mixer),
  15173. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15174. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15175. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15176. msm_routing_get_port_mixer,
  15177. msm_routing_put_port_mixer),
  15178. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15179. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15180. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15181. msm_routing_get_port_mixer,
  15182. msm_routing_put_port_mixer),
  15183. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15184. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15185. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15186. msm_routing_get_port_mixer,
  15187. msm_routing_put_port_mixer),
  15188. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15189. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15190. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15191. msm_routing_get_port_mixer,
  15192. msm_routing_put_port_mixer),
  15193. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15194. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15195. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15196. msm_routing_get_port_mixer,
  15197. msm_routing_put_port_mixer),
  15198. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15199. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15200. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15201. msm_routing_get_port_mixer,
  15202. msm_routing_put_port_mixer),
  15203. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15204. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15205. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15206. msm_routing_get_port_mixer,
  15207. msm_routing_put_port_mixer),
  15208. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15209. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15210. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15211. msm_routing_get_port_mixer,
  15212. msm_routing_put_port_mixer),
  15213. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15214. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15215. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15216. msm_routing_get_port_mixer,
  15217. msm_routing_put_port_mixer),
  15218. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15219. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15220. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15221. msm_routing_get_port_mixer,
  15222. msm_routing_put_port_mixer),
  15223. };
  15224. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  15225. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15226. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15227. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15228. msm_routing_get_port_mixer,
  15229. msm_routing_put_port_mixer),
  15230. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15231. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15232. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15233. msm_routing_get_port_mixer,
  15234. msm_routing_put_port_mixer),
  15235. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15236. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15237. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15238. msm_routing_get_port_mixer,
  15239. msm_routing_put_port_mixer),
  15240. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15241. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15242. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15243. msm_routing_get_port_mixer,
  15244. msm_routing_put_port_mixer),
  15245. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15246. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15247. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15248. msm_routing_get_port_mixer,
  15249. msm_routing_put_port_mixer),
  15250. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15251. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15252. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15253. msm_routing_get_port_mixer,
  15254. msm_routing_put_port_mixer),
  15255. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15256. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15257. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15258. msm_routing_get_port_mixer,
  15259. msm_routing_put_port_mixer),
  15260. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15261. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15262. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15263. msm_routing_get_port_mixer,
  15264. msm_routing_put_port_mixer),
  15265. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15266. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15267. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15268. msm_routing_get_port_mixer,
  15269. msm_routing_put_port_mixer),
  15270. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15271. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15272. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15273. msm_routing_get_port_mixer,
  15274. msm_routing_put_port_mixer),
  15275. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15276. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15277. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15278. msm_routing_get_port_mixer,
  15279. msm_routing_put_port_mixer),
  15280. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15281. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15282. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15283. msm_routing_get_port_mixer,
  15284. msm_routing_put_port_mixer),
  15285. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15286. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15287. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15288. msm_routing_get_port_mixer,
  15289. msm_routing_put_port_mixer),
  15290. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15291. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15292. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15293. msm_routing_get_port_mixer,
  15294. msm_routing_put_port_mixer),
  15295. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15296. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15297. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15298. msm_routing_get_port_mixer,
  15299. msm_routing_put_port_mixer),
  15300. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15301. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15302. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15303. msm_routing_get_port_mixer,
  15304. msm_routing_put_port_mixer),
  15305. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15306. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15307. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15308. msm_routing_get_port_mixer,
  15309. msm_routing_put_port_mixer),
  15310. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15311. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15312. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15313. msm_routing_get_port_mixer,
  15314. msm_routing_put_port_mixer),
  15315. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15316. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15317. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15318. msm_routing_get_port_mixer,
  15319. msm_routing_put_port_mixer),
  15320. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15321. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15322. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15323. msm_routing_get_port_mixer,
  15324. msm_routing_put_port_mixer),
  15325. };
  15326. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  15327. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15328. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15329. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15330. msm_routing_get_port_mixer,
  15331. msm_routing_put_port_mixer),
  15332. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15333. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15334. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15335. msm_routing_get_port_mixer,
  15336. msm_routing_put_port_mixer),
  15337. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15338. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15339. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15340. msm_routing_get_port_mixer,
  15341. msm_routing_put_port_mixer),
  15342. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15343. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15344. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15345. msm_routing_get_port_mixer,
  15346. msm_routing_put_port_mixer),
  15347. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15348. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15349. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15350. msm_routing_get_port_mixer,
  15351. msm_routing_put_port_mixer),
  15352. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15353. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15354. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15355. msm_routing_get_port_mixer,
  15356. msm_routing_put_port_mixer),
  15357. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15358. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15359. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15360. msm_routing_get_port_mixer,
  15361. msm_routing_put_port_mixer),
  15362. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15363. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15364. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15365. msm_routing_get_port_mixer,
  15366. msm_routing_put_port_mixer),
  15367. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15368. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15369. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15370. msm_routing_get_port_mixer,
  15371. msm_routing_put_port_mixer),
  15372. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15373. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15374. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15375. msm_routing_get_port_mixer,
  15376. msm_routing_put_port_mixer),
  15377. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15378. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15379. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15380. msm_routing_get_port_mixer,
  15381. msm_routing_put_port_mixer),
  15382. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15383. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15384. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15385. msm_routing_get_port_mixer,
  15386. msm_routing_put_port_mixer),
  15387. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15388. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15389. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15390. msm_routing_get_port_mixer,
  15391. msm_routing_put_port_mixer),
  15392. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15393. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15394. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15395. msm_routing_get_port_mixer,
  15396. msm_routing_put_port_mixer),
  15397. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15398. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15399. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15400. msm_routing_get_port_mixer,
  15401. msm_routing_put_port_mixer),
  15402. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15403. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15404. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15405. msm_routing_get_port_mixer,
  15406. msm_routing_put_port_mixer),
  15407. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15408. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15409. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15410. msm_routing_get_port_mixer,
  15411. msm_routing_put_port_mixer),
  15412. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15413. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15414. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15415. msm_routing_get_port_mixer,
  15416. msm_routing_put_port_mixer),
  15417. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15418. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15419. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15420. msm_routing_get_port_mixer,
  15421. msm_routing_put_port_mixer),
  15422. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15423. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15424. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15425. msm_routing_get_port_mixer,
  15426. msm_routing_put_port_mixer),
  15427. };
  15428. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  15429. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15430. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15431. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15432. msm_routing_get_port_mixer,
  15433. msm_routing_put_port_mixer),
  15434. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15435. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15436. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15437. msm_routing_get_port_mixer,
  15438. msm_routing_put_port_mixer),
  15439. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15440. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15441. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15442. msm_routing_get_port_mixer,
  15443. msm_routing_put_port_mixer),
  15444. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15445. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15446. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15447. msm_routing_get_port_mixer,
  15448. msm_routing_put_port_mixer),
  15449. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15450. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15451. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15452. msm_routing_get_port_mixer,
  15453. msm_routing_put_port_mixer),
  15454. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15455. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15456. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15457. msm_routing_get_port_mixer,
  15458. msm_routing_put_port_mixer),
  15459. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15460. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15461. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15462. msm_routing_get_port_mixer,
  15463. msm_routing_put_port_mixer),
  15464. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15465. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15466. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15467. msm_routing_get_port_mixer,
  15468. msm_routing_put_port_mixer),
  15469. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15470. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15471. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15472. msm_routing_get_port_mixer,
  15473. msm_routing_put_port_mixer),
  15474. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15475. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15476. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15477. msm_routing_get_port_mixer,
  15478. msm_routing_put_port_mixer),
  15479. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15480. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15481. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15482. msm_routing_get_port_mixer,
  15483. msm_routing_put_port_mixer),
  15484. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15485. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15486. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15487. msm_routing_get_port_mixer,
  15488. msm_routing_put_port_mixer),
  15489. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15490. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15491. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15492. msm_routing_get_port_mixer,
  15493. msm_routing_put_port_mixer),
  15494. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15495. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15496. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15497. msm_routing_get_port_mixer,
  15498. msm_routing_put_port_mixer),
  15499. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15500. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15501. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15502. msm_routing_get_port_mixer,
  15503. msm_routing_put_port_mixer),
  15504. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15505. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15506. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15507. msm_routing_get_port_mixer,
  15508. msm_routing_put_port_mixer),
  15509. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15510. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15511. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15512. msm_routing_get_port_mixer,
  15513. msm_routing_put_port_mixer),
  15514. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15515. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15516. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15517. msm_routing_get_port_mixer,
  15518. msm_routing_put_port_mixer),
  15519. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15520. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15521. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15522. msm_routing_get_port_mixer,
  15523. msm_routing_put_port_mixer),
  15524. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15525. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15526. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15527. msm_routing_get_port_mixer,
  15528. msm_routing_put_port_mixer),
  15529. };
  15530. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  15531. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15532. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15533. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15534. msm_routing_get_port_mixer,
  15535. msm_routing_put_port_mixer),
  15536. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15537. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15538. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15539. msm_routing_get_port_mixer,
  15540. msm_routing_put_port_mixer),
  15541. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15542. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15543. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15544. msm_routing_get_port_mixer,
  15545. msm_routing_put_port_mixer),
  15546. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15547. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15548. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15549. msm_routing_get_port_mixer,
  15550. msm_routing_put_port_mixer),
  15551. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15552. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15553. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15554. msm_routing_get_port_mixer,
  15555. msm_routing_put_port_mixer),
  15556. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15557. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15558. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15559. msm_routing_get_port_mixer,
  15560. msm_routing_put_port_mixer),
  15561. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15562. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15563. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15564. msm_routing_get_port_mixer,
  15565. msm_routing_put_port_mixer),
  15566. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15567. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15568. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15569. msm_routing_get_port_mixer,
  15570. msm_routing_put_port_mixer),
  15571. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15572. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15573. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15574. msm_routing_get_port_mixer,
  15575. msm_routing_put_port_mixer),
  15576. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15577. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15578. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15579. msm_routing_get_port_mixer,
  15580. msm_routing_put_port_mixer),
  15581. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15582. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15583. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15584. msm_routing_get_port_mixer,
  15585. msm_routing_put_port_mixer),
  15586. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15587. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15588. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15589. msm_routing_get_port_mixer,
  15590. msm_routing_put_port_mixer),
  15591. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15592. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15593. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15594. msm_routing_get_port_mixer,
  15595. msm_routing_put_port_mixer),
  15596. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15597. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15598. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15599. msm_routing_get_port_mixer,
  15600. msm_routing_put_port_mixer),
  15601. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15602. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15603. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15604. msm_routing_get_port_mixer,
  15605. msm_routing_put_port_mixer),
  15606. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15607. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15608. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15609. msm_routing_get_port_mixer,
  15610. msm_routing_put_port_mixer),
  15611. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15612. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15613. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15614. msm_routing_get_port_mixer,
  15615. msm_routing_put_port_mixer),
  15616. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15617. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15618. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15619. msm_routing_get_port_mixer,
  15620. msm_routing_put_port_mixer),
  15621. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15622. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15623. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15624. msm_routing_get_port_mixer,
  15625. msm_routing_put_port_mixer),
  15626. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15627. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15628. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15629. msm_routing_get_port_mixer,
  15630. msm_routing_put_port_mixer),
  15631. };
  15632. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  15633. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15634. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15635. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15636. msm_routing_get_port_mixer,
  15637. msm_routing_put_port_mixer),
  15638. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15639. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15640. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15641. msm_routing_get_port_mixer,
  15642. msm_routing_put_port_mixer),
  15643. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15644. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15645. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15646. msm_routing_get_port_mixer,
  15647. msm_routing_put_port_mixer),
  15648. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15649. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15650. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15651. msm_routing_get_port_mixer,
  15652. msm_routing_put_port_mixer),
  15653. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15654. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15655. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15656. msm_routing_get_port_mixer,
  15657. msm_routing_put_port_mixer),
  15658. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15659. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15660. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15661. msm_routing_get_port_mixer,
  15662. msm_routing_put_port_mixer),
  15663. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15664. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15665. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15666. msm_routing_get_port_mixer,
  15667. msm_routing_put_port_mixer),
  15668. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15669. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15670. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15671. msm_routing_get_port_mixer,
  15672. msm_routing_put_port_mixer),
  15673. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15674. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15675. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15676. msm_routing_get_port_mixer,
  15677. msm_routing_put_port_mixer),
  15678. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15679. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15680. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15681. msm_routing_get_port_mixer,
  15682. msm_routing_put_port_mixer),
  15683. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15684. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15685. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15686. msm_routing_get_port_mixer,
  15687. msm_routing_put_port_mixer),
  15688. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15689. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15690. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15691. msm_routing_get_port_mixer,
  15692. msm_routing_put_port_mixer),
  15693. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15694. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15695. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15696. msm_routing_get_port_mixer,
  15697. msm_routing_put_port_mixer),
  15698. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15699. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15700. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15701. msm_routing_get_port_mixer,
  15702. msm_routing_put_port_mixer),
  15703. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15704. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15705. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15706. msm_routing_get_port_mixer,
  15707. msm_routing_put_port_mixer),
  15708. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15709. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15710. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15711. msm_routing_get_port_mixer,
  15712. msm_routing_put_port_mixer),
  15713. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15714. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15715. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15716. msm_routing_get_port_mixer,
  15717. msm_routing_put_port_mixer),
  15718. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15719. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15720. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15721. msm_routing_get_port_mixer,
  15722. msm_routing_put_port_mixer),
  15723. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15724. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15725. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15726. msm_routing_get_port_mixer,
  15727. msm_routing_put_port_mixer),
  15728. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15729. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15730. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15731. msm_routing_get_port_mixer,
  15732. msm_routing_put_port_mixer),
  15733. };
  15734. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  15735. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15736. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15737. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15738. msm_routing_put_port_mixer),
  15739. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15740. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15741. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15742. msm_routing_put_port_mixer),
  15743. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15744. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15745. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15746. msm_routing_put_port_mixer),
  15747. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15748. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15749. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15750. msm_routing_put_port_mixer),
  15751. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15752. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15753. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15754. msm_routing_put_port_mixer),
  15755. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15756. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15757. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15758. msm_routing_put_port_mixer),
  15759. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15760. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15761. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15762. msm_routing_put_port_mixer),
  15763. };
  15764. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  15765. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15766. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15767. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15768. msm_routing_put_port_mixer),
  15769. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15770. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15771. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15772. msm_routing_put_port_mixer),
  15773. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15774. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15775. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15776. msm_routing_put_port_mixer),
  15777. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15778. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15779. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15780. msm_routing_put_port_mixer),
  15781. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15782. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15783. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15784. msm_routing_put_port_mixer),
  15785. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15786. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15787. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15788. msm_routing_put_port_mixer),
  15789. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15790. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15791. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15792. msm_routing_put_port_mixer),
  15793. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15794. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15795. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15796. msm_routing_put_port_mixer),
  15797. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15798. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15799. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15800. msm_routing_put_port_mixer),
  15801. };
  15802. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  15803. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15804. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15805. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15806. msm_routing_put_listen_mixer),
  15807. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15808. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15809. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15810. msm_routing_put_listen_mixer),
  15811. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15812. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15813. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15814. msm_routing_put_listen_mixer),
  15815. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15816. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15817. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15818. msm_routing_put_listen_mixer),
  15819. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15820. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15821. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15822. msm_routing_put_listen_mixer),
  15823. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15824. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15825. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15826. msm_routing_put_listen_mixer),
  15827. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15828. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15829. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15830. msm_routing_put_listen_mixer),
  15831. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15832. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15833. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15834. msm_routing_put_listen_mixer),
  15835. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15836. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15837. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15838. msm_routing_put_listen_mixer),
  15839. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15840. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15841. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15842. msm_routing_put_listen_mixer),
  15843. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15844. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15845. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15846. msm_routing_put_listen_mixer),
  15847. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15848. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15849. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15850. msm_routing_put_listen_mixer),
  15851. };
  15852. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  15853. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15854. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15855. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15856. msm_routing_put_listen_mixer),
  15857. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  15858. SND_SOC_NOPM,
  15859. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15860. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15861. msm_routing_put_listen_mixer),
  15862. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15863. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15864. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15865. msm_routing_put_listen_mixer),
  15866. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15867. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15868. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15869. msm_routing_put_listen_mixer),
  15870. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15871. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15872. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15873. msm_routing_put_listen_mixer),
  15874. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15875. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15876. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15877. msm_routing_put_listen_mixer),
  15878. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15879. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15880. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15881. msm_routing_put_listen_mixer),
  15882. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15883. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15884. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15885. msm_routing_put_listen_mixer),
  15886. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15887. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15888. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15889. msm_routing_put_listen_mixer),
  15890. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15891. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15892. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15893. msm_routing_put_listen_mixer),
  15894. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15895. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15896. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15897. msm_routing_put_listen_mixer),
  15898. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15899. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15900. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15901. msm_routing_put_listen_mixer),
  15902. };
  15903. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  15904. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15905. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15906. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15907. msm_routing_put_listen_mixer),
  15908. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15909. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15910. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15911. msm_routing_put_listen_mixer),
  15912. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15913. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15914. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15915. msm_routing_put_listen_mixer),
  15916. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15917. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15918. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15919. msm_routing_put_listen_mixer),
  15920. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15921. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15922. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15923. msm_routing_put_listen_mixer),
  15924. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15925. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15926. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15927. msm_routing_put_listen_mixer),
  15928. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15929. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15930. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15931. msm_routing_put_listen_mixer),
  15932. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15933. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15934. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15935. msm_routing_put_listen_mixer),
  15936. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15937. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15938. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15939. msm_routing_put_listen_mixer),
  15940. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15941. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15942. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15943. msm_routing_put_listen_mixer),
  15944. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15945. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15946. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15947. msm_routing_put_listen_mixer),
  15948. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15949. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15950. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15951. msm_routing_put_listen_mixer),
  15952. };
  15953. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  15954. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15955. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15956. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15957. msm_routing_put_listen_mixer),
  15958. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15959. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15960. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15961. msm_routing_put_listen_mixer),
  15962. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15963. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15964. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15965. msm_routing_put_listen_mixer),
  15966. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15967. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15968. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15969. msm_routing_put_listen_mixer),
  15970. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15971. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15972. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15973. msm_routing_put_listen_mixer),
  15974. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15975. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15976. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15977. msm_routing_put_listen_mixer),
  15978. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15979. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15980. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15981. msm_routing_put_listen_mixer),
  15982. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15983. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15984. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15985. msm_routing_put_listen_mixer),
  15986. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15987. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15988. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15989. msm_routing_put_listen_mixer),
  15990. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15991. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15992. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15993. msm_routing_put_listen_mixer),
  15994. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15995. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15996. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15997. msm_routing_put_listen_mixer),
  15998. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15999. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16000. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16001. msm_routing_put_listen_mixer),
  16002. };
  16003. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  16004. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16005. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16006. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16007. msm_routing_put_listen_mixer),
  16008. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16009. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16010. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16011. msm_routing_put_listen_mixer),
  16012. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16013. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16014. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16015. msm_routing_put_listen_mixer),
  16016. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16017. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16018. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16019. msm_routing_put_listen_mixer),
  16020. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16021. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16022. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16023. msm_routing_put_listen_mixer),
  16024. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16025. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16026. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16027. msm_routing_put_listen_mixer),
  16028. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16029. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16030. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16031. msm_routing_put_listen_mixer),
  16032. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16033. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16034. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16035. msm_routing_put_listen_mixer),
  16036. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16037. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16038. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16039. msm_routing_put_listen_mixer),
  16040. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16041. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16042. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16043. msm_routing_put_listen_mixer),
  16044. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16045. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16046. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16047. msm_routing_put_listen_mixer),
  16048. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16049. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16050. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16051. msm_routing_put_listen_mixer),
  16052. };
  16053. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  16054. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16055. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16056. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16057. msm_routing_put_listen_mixer),
  16058. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16059. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16060. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16061. msm_routing_put_listen_mixer),
  16062. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16063. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16064. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16065. msm_routing_put_listen_mixer),
  16066. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16067. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16068. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16069. msm_routing_put_listen_mixer),
  16070. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16071. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16072. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16073. msm_routing_put_listen_mixer),
  16074. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16075. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16076. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16077. msm_routing_put_listen_mixer),
  16078. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16079. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16080. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16081. msm_routing_put_listen_mixer),
  16082. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16083. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16084. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16085. msm_routing_put_listen_mixer),
  16086. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16087. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16088. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16089. msm_routing_put_listen_mixer),
  16090. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16091. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16092. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16093. msm_routing_put_listen_mixer),
  16094. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16095. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16096. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16097. msm_routing_put_listen_mixer),
  16098. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16099. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16100. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16101. msm_routing_put_listen_mixer),
  16102. };
  16103. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  16104. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16105. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16106. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16107. msm_routing_put_listen_mixer),
  16108. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16109. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16110. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16111. msm_routing_put_listen_mixer),
  16112. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16113. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16114. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16115. msm_routing_put_listen_mixer),
  16116. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16117. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16118. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16119. msm_routing_put_listen_mixer),
  16120. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16121. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16122. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16123. msm_routing_put_listen_mixer),
  16124. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16125. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16126. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16127. msm_routing_put_listen_mixer),
  16128. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16129. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16130. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16131. msm_routing_put_listen_mixer),
  16132. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16133. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16134. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16135. msm_routing_put_listen_mixer),
  16136. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16137. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16138. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16139. msm_routing_put_listen_mixer),
  16140. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16141. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16142. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16143. msm_routing_put_listen_mixer),
  16144. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16145. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16146. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16147. msm_routing_put_listen_mixer),
  16148. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16149. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16150. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16151. msm_routing_put_listen_mixer),
  16152. };
  16153. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  16154. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16155. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16156. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16157. msm_routing_put_listen_mixer),
  16158. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16159. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16160. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16161. msm_routing_put_listen_mixer),
  16162. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16163. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16164. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16165. msm_routing_put_listen_mixer),
  16166. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16167. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16168. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16169. msm_routing_put_listen_mixer),
  16170. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16171. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16172. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16173. msm_routing_put_listen_mixer),
  16174. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16175. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16176. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16177. msm_routing_put_listen_mixer),
  16178. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16179. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16180. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16181. msm_routing_put_listen_mixer),
  16182. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16183. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16184. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16185. msm_routing_put_listen_mixer),
  16186. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16187. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16188. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16189. msm_routing_put_listen_mixer),
  16190. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16191. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16192. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16193. msm_routing_put_listen_mixer),
  16194. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16195. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16196. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16197. msm_routing_put_listen_mixer),
  16198. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16199. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16200. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16201. msm_routing_put_listen_mixer),
  16202. };
  16203. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  16204. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16205. 0, 1, 0, msm_routing_get_switch_mixer,
  16206. msm_routing_put_switch_mixer);
  16207. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  16208. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16209. 0, 1, 0, msm_routing_get_switch_mixer,
  16210. msm_routing_put_switch_mixer);
  16211. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  16212. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16213. 0, 1, 0, msm_routing_get_switch_mixer,
  16214. msm_routing_put_switch_mixer);
  16215. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  16216. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16217. 0, 1, 0, msm_routing_get_switch_mixer,
  16218. msm_routing_put_switch_mixer);
  16219. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  16220. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16221. 0, 1, 0, msm_routing_get_switch_mixer,
  16222. msm_routing_put_switch_mixer);
  16223. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  16224. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16225. 0, 1, 0, msm_routing_get_switch_mixer,
  16226. msm_routing_put_switch_mixer);
  16227. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  16228. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16229. 0, 1, 0, msm_routing_get_switch_mixer,
  16230. msm_routing_put_switch_mixer);
  16231. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  16232. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16233. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  16234. msm_routing_put_fm_pcmrx_switch_mixer);
  16235. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  16236. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16237. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  16238. msm_routing_put_int0_mi2s_switch_mixer);
  16239. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  16240. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16241. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  16242. msm_routing_put_int4_mi2s_switch_mixer);
  16243. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  16244. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16245. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  16246. msm_routing_put_pri_mi2s_switch_mixer);
  16247. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  16248. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16249. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  16250. msm_routing_put_sec_mi2s_switch_mixer);
  16251. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  16252. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16253. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  16254. msm_routing_put_tert_mi2s_switch_mixer);
  16255. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  16256. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16257. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  16258. msm_routing_put_quat_mi2s_switch_mixer);
  16259. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  16260. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16261. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  16262. msm_routing_put_quin_mi2s_switch_mixer);
  16263. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  16264. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16265. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16266. msm_routing_put_hfp_switch_mixer);
  16267. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  16268. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16269. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16270. msm_routing_put_hfp_switch_mixer);
  16271. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  16272. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16273. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16274. msm_routing_put_hfp_switch_mixer);
  16275. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  16276. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16277. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16278. msm_routing_put_hfp_switch_mixer);
  16279. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  16280. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16281. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  16282. msm_routing_put_usb_switch_mixer);
  16283. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  16284. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16285. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  16286. msm_routing_a2dp_switch_mixer_put);
  16287. static const struct soc_enum lsm_port_enum =
  16288. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  16289. static const char * const lsm_func_text[] = {
  16290. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  16291. };
  16292. static const struct soc_enum lsm_func_enum =
  16293. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  16294. static const struct snd_kcontrol_new lsm_controls[] = {
  16295. /* kcontrol of lsm_function */
  16296. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16297. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16298. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16299. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16300. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16301. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16302. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16303. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16304. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16305. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16306. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16307. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16308. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16309. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16310. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16311. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16312. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16313. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16314. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16315. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16316. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16317. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16318. /* kcontrol of lsm_port */
  16319. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  16320. msm_routing_lsm_port_get,
  16321. msm_routing_lsm_port_put),
  16322. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  16323. msm_routing_lsm_port_get,
  16324. msm_routing_lsm_port_put),
  16325. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  16326. msm_routing_lsm_port_get,
  16327. msm_routing_lsm_port_put),
  16328. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  16329. msm_routing_lsm_port_get,
  16330. msm_routing_lsm_port_put),
  16331. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  16332. msm_routing_lsm_port_get,
  16333. msm_routing_lsm_port_put),
  16334. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  16335. msm_routing_lsm_port_get,
  16336. msm_routing_lsm_port_put),
  16337. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  16338. msm_routing_lsm_port_get,
  16339. msm_routing_lsm_port_put),
  16340. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  16341. msm_routing_lsm_port_get,
  16342. msm_routing_lsm_port_put),
  16343. };
  16344. static const char * const aanc_slim_0_rx_text[] = {
  16345. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  16346. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  16347. };
  16348. static const struct soc_enum aanc_slim_0_rx_enum =
  16349. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  16350. aanc_slim_0_rx_text);
  16351. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  16352. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  16353. msm_routing_slim_0_rx_aanc_mux_get,
  16354. msm_routing_slim_0_rx_aanc_mux_put)
  16355. };
  16356. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  16357. struct snd_ctl_elem_value *ucontrol)
  16358. {
  16359. ucontrol->value.integer.value[0] = aanc_level;
  16360. return 0;
  16361. }
  16362. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  16363. struct snd_ctl_elem_value *ucontrol)
  16364. {
  16365. int ret = 0;
  16366. mutex_lock(&routing_lock);
  16367. aanc_level = ucontrol->value.integer.value[0];
  16368. pr_debug("%s: value: %ld\n",
  16369. __func__, ucontrol->value.integer.value[0]);
  16370. ret = afe_set_aanc_noise_level(aanc_level);
  16371. mutex_unlock(&routing_lock);
  16372. return ret;
  16373. }
  16374. static const struct snd_kcontrol_new aanc_noise_level[] = {
  16375. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  16376. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  16377. };
  16378. static int msm_routing_get_stereo_to_custom_stereo_control(
  16379. struct snd_kcontrol *kcontrol,
  16380. struct snd_ctl_elem_value *ucontrol)
  16381. {
  16382. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  16383. return 0;
  16384. }
  16385. static int msm_routing_put_stereo_to_custom_stereo_control(
  16386. struct snd_kcontrol *kcontrol,
  16387. struct snd_ctl_elem_value *ucontrol)
  16388. {
  16389. int flag = 0, i = 0, rc = 0, idx = 0;
  16390. int be_index = 0, port_id, topo_id;
  16391. unsigned int session_id = 0;
  16392. uint16_t op_FL_ip_FL_weight = 0;
  16393. uint16_t op_FL_ip_FR_weight = 0;
  16394. uint16_t op_FR_ip_FL_weight = 0;
  16395. uint16_t op_FR_ip_FR_weight = 0;
  16396. flag = ucontrol->value.integer.value[0];
  16397. pr_debug("%s E flag %d\n", __func__, flag);
  16398. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  16399. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  16400. __func__, is_custom_stereo_on, flag);
  16401. return 0;
  16402. }
  16403. is_custom_stereo_on = flag ? true : false;
  16404. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  16405. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  16406. port_id = msm_bedais[be_index].port_id;
  16407. if (!msm_bedais[be_index].active)
  16408. continue;
  16409. if ((port_id != SLIMBUS_0_RX) &&
  16410. (port_id != RT_PROXY_PORT_001_RX) &&
  16411. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  16412. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  16413. continue;
  16414. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  16415. MSM_FRONTEND_DAI_MM_SIZE) {
  16416. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  16417. LEGACY_PCM_MODE)
  16418. goto skip_send_custom_stereo;
  16419. session_id =
  16420. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  16421. if (is_custom_stereo_on) {
  16422. op_FL_ip_FL_weight =
  16423. Q14_GAIN_ZERO_POINT_FIVE;
  16424. op_FL_ip_FR_weight =
  16425. Q14_GAIN_ZERO_POINT_FIVE;
  16426. op_FR_ip_FL_weight =
  16427. Q14_GAIN_ZERO_POINT_FIVE;
  16428. op_FR_ip_FR_weight =
  16429. Q14_GAIN_ZERO_POINT_FIVE;
  16430. } else {
  16431. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  16432. op_FL_ip_FR_weight = 0;
  16433. op_FR_ip_FL_weight = 0;
  16434. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  16435. }
  16436. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16437. unsigned long copp =
  16438. session_copp_map[i]
  16439. [SESSION_TYPE_RX][be_index];
  16440. if (!test_bit(idx, &copp))
  16441. goto skip_send_custom_stereo;
  16442. topo_id = adm_get_topology_for_port_copp_idx(
  16443. msm_bedais[be_index].port_id, idx);
  16444. if (topo_id < 0)
  16445. pr_debug("%s:Err:custom stereo topo %d",
  16446. __func__, topo_id);
  16447. pr_debug("idx %d\n", idx);
  16448. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  16449. rc = msm_ds2_dap_set_custom_stereo_onoff
  16450. (msm_bedais[be_index].port_id,
  16451. idx, is_custom_stereo_on);
  16452. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  16453. rc = dolby_dap_set_custom_stereo_onoff(
  16454. msm_bedais[be_index].port_id,
  16455. idx, is_custom_stereo_on);
  16456. else
  16457. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  16458. (msm_bedais[be_index].port_id,
  16459. idx, session_id,
  16460. op_FL_ip_FL_weight,
  16461. op_FL_ip_FR_weight,
  16462. op_FR_ip_FL_weight,
  16463. op_FR_ip_FR_weight);
  16464. if (rc < 0)
  16465. skip_send_custom_stereo:
  16466. pr_err("%s: err setting custom stereo\n",
  16467. __func__);
  16468. }
  16469. }
  16470. }
  16471. return 0;
  16472. }
  16473. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  16474. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  16475. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  16476. msm_routing_put_stereo_to_custom_stereo_control),
  16477. };
  16478. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  16479. struct snd_ctl_elem_value *ucontrol)
  16480. {
  16481. return 0;
  16482. }
  16483. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  16484. struct snd_ctl_elem_value *ucontrol)
  16485. {
  16486. int i = 0, j;
  16487. int num_app_types = ucontrol->value.integer.value[i++];
  16488. pr_debug("%s\n", __func__);
  16489. memset(app_type_cfg, 0, MAX_APP_TYPES*
  16490. sizeof(struct msm_pcm_routing_app_type_data));
  16491. if (num_app_types > MAX_APP_TYPES) {
  16492. pr_err("%s: number of app types exceed the max supported\n",
  16493. __func__);
  16494. return -EINVAL;
  16495. }
  16496. for (j = 0; j < num_app_types; j++) {
  16497. app_type_cfg[j].app_type =
  16498. ucontrol->value.integer.value[i++];
  16499. app_type_cfg[j].sample_rate =
  16500. ucontrol->value.integer.value[i++];
  16501. app_type_cfg[j].bit_width =
  16502. ucontrol->value.integer.value[i++];
  16503. }
  16504. return 0;
  16505. }
  16506. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  16507. struct snd_ctl_elem_value *ucontrol)
  16508. {
  16509. int j, fe_id, be_id, port_type;
  16510. int ret = 0;
  16511. unsigned long copp;
  16512. struct msm_pcm_routing_bdai_data *bedai;
  16513. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  16514. SESSION_TYPE_RX;
  16515. int app_type = ucontrol->value.integer.value[1];
  16516. int gain = (ucontrol->value.integer.value[2] +
  16517. ucontrol->value.integer.value[3])/2;
  16518. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  16519. MSM_AFE_PORT_TYPE_TX;
  16520. mutex_lock(&routing_lock);
  16521. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  16522. if (is_be_dai_extproc(be_id))
  16523. continue;
  16524. bedai = &msm_bedais[be_id];
  16525. if (afe_get_port_type(bedai->port_id) != port_type)
  16526. continue;
  16527. if (!bedai->active)
  16528. continue;
  16529. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  16530. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  16531. continue;
  16532. if (app_type !=
  16533. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  16534. continue;
  16535. copp = session_copp_map[fe_id][dir][be_id];
  16536. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  16537. if (!test_bit(j, &copp))
  16538. continue;
  16539. ret |= adm_set_volume(bedai->port_id, j, gain);
  16540. }
  16541. }
  16542. }
  16543. mutex_unlock(&routing_lock);
  16544. return ret ? -EINVAL : 0;
  16545. }
  16546. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  16547. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  16548. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  16549. msm_routing_put_app_type_cfg_control),
  16550. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  16551. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  16552. };
  16553. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  16554. struct snd_ctl_elem_value *ucontrol)
  16555. {
  16556. int copp_idx, fe_id, be_id, port_type;
  16557. int ret = 0;
  16558. unsigned long copp;
  16559. struct msm_pcm_routing_bdai_data *bedai;
  16560. u8 *packed_params = NULL;
  16561. struct param_hdr_v3 param_hdr;
  16562. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  16563. sizeof(uint32_t));
  16564. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  16565. SESSION_TYPE_RX;
  16566. int app_type = ucontrol->value.integer.value[1];
  16567. int module_id = ucontrol->value.integer.value[2];
  16568. int instance_id = ucontrol->value.integer.value[3];
  16569. int param_id = ucontrol->value.integer.value[4];
  16570. int param_value = ucontrol->value.integer.value[5];
  16571. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  16572. MSM_AFE_PORT_TYPE_TX;
  16573. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  16574. __func__, app_type, module_id,
  16575. instance_id, param_id, param_value);
  16576. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  16577. if (!packed_params)
  16578. return -ENOMEM;
  16579. memset(&param_hdr, 0, sizeof(param_hdr));
  16580. param_hdr.module_id = module_id;
  16581. param_hdr.instance_id = instance_id;
  16582. param_hdr.param_id = param_id;
  16583. param_hdr.param_size = sizeof(uint32_t);
  16584. packed_param_size = 0;
  16585. mutex_lock(&routing_lock);
  16586. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  16587. if (is_be_dai_extproc(be_id))
  16588. continue;
  16589. bedai = &msm_bedais[be_id];
  16590. if (afe_get_port_type(bedai->port_id) != port_type)
  16591. continue;
  16592. if (!bedai->active)
  16593. continue;
  16594. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  16595. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  16596. continue;
  16597. if (app_type !=
  16598. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  16599. continue;
  16600. copp = session_copp_map[fe_id][dir][be_id];
  16601. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  16602. copp_idx++) {
  16603. if (!test_bit(copp_idx, &copp))
  16604. continue;
  16605. ret = q6common_pack_pp_params(packed_params,
  16606. &param_hdr,
  16607. (u8 *) &param_value,
  16608. &packed_param_size);
  16609. if (ret) {
  16610. pr_err("%s: Failed to pack params, error %d\n",
  16611. __func__, ret);
  16612. goto done;
  16613. }
  16614. ret = adm_set_pp_params(bedai->port_id,
  16615. copp_idx, NULL,
  16616. packed_params,
  16617. packed_param_size);
  16618. if (ret) {
  16619. pr_err("%s: Setting param failed with err=%d\n",
  16620. __func__, ret);
  16621. ret = -EINVAL;
  16622. goto done;
  16623. }
  16624. }
  16625. }
  16626. }
  16627. done:
  16628. mutex_unlock(&routing_lock);
  16629. kfree(packed_params);
  16630. return ret;
  16631. }
  16632. static const struct snd_kcontrol_new module_cfg_controls[] = {
  16633. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  16634. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  16635. };
  16636. static int msm_routing_get_lsm_app_type_cfg_control(
  16637. struct snd_kcontrol *kcontrol,
  16638. struct snd_ctl_elem_value *ucontrol)
  16639. {
  16640. int shift = ((struct soc_multi_mixer_control *)
  16641. kcontrol->private_value)->shift;
  16642. int i = 0, j = 0;
  16643. ucontrol->value.integer.value[i] = num_app_cfg_types;
  16644. for (j = 0; j < num_app_cfg_types; ++j) {
  16645. ucontrol->value.integer.value[++i] =
  16646. lsm_app_type_cfg[j].app_type;
  16647. ucontrol->value.integer.value[++i] =
  16648. lsm_app_type_cfg[j].sample_rate;
  16649. ucontrol->value.integer.value[++i] =
  16650. lsm_app_type_cfg[j].bit_width;
  16651. if (shift == 1)
  16652. ucontrol->value.integer.value[++i] =
  16653. lsm_app_type_cfg[j].num_out_channels;
  16654. }
  16655. return 0;
  16656. }
  16657. static int msm_routing_put_lsm_app_type_cfg_control(
  16658. struct snd_kcontrol *kcontrol,
  16659. struct snd_ctl_elem_value *ucontrol)
  16660. {
  16661. int shift = ((struct soc_multi_mixer_control *)
  16662. kcontrol->private_value)->shift;
  16663. int i = 0, j;
  16664. num_app_cfg_types = ucontrol->value.integer.value[i++];
  16665. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  16666. sizeof(struct msm_pcm_routing_app_type_data));
  16667. if (num_app_cfg_types > MAX_APP_TYPES) {
  16668. pr_err("%s: number of app types exceed the max supported\n",
  16669. __func__);
  16670. return -EINVAL;
  16671. }
  16672. for (j = 0; j < num_app_cfg_types; j++) {
  16673. lsm_app_type_cfg[j].app_type =
  16674. ucontrol->value.integer.value[i++];
  16675. lsm_app_type_cfg[j].sample_rate =
  16676. ucontrol->value.integer.value[i++];
  16677. lsm_app_type_cfg[j].bit_width =
  16678. ucontrol->value.integer.value[i++];
  16679. /* Shift of 1 indicates this is V2 mixer control */
  16680. if (shift == 1)
  16681. lsm_app_type_cfg[j].num_out_channels =
  16682. ucontrol->value.integer.value[i++];
  16683. }
  16684. return 0;
  16685. }
  16686. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  16687. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  16688. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  16689. msm_routing_put_lsm_app_type_cfg_control),
  16690. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  16691. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  16692. msm_routing_put_lsm_app_type_cfg_control),
  16693. };
  16694. static int msm_routing_get_use_ds1_or_ds2_control(
  16695. struct snd_kcontrol *kcontrol,
  16696. struct snd_ctl_elem_value *ucontrol)
  16697. {
  16698. ucontrol->value.integer.value[0] = is_ds2_on;
  16699. return 0;
  16700. }
  16701. static int msm_routing_put_use_ds1_or_ds2_control(
  16702. struct snd_kcontrol *kcontrol,
  16703. struct snd_ctl_elem_value *ucontrol)
  16704. {
  16705. is_ds2_on = ucontrol->value.integer.value[0];
  16706. return 0;
  16707. }
  16708. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  16709. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  16710. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  16711. msm_routing_put_use_ds1_or_ds2_control),
  16712. };
  16713. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  16714. struct snd_ctl_elem_value *ucontrol) {
  16715. int rc = 0;
  16716. int be_idx = 0;
  16717. char *param_value;
  16718. int *update_param_value;
  16719. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  16720. struct param_hdr_v3 param_hdr;
  16721. param_value = kzalloc(param_size, GFP_KERNEL);
  16722. if (!param_value)
  16723. return -ENOMEM;
  16724. memset(&param_hdr, 0, sizeof(param_hdr));
  16725. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  16726. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  16727. break;
  16728. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  16729. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  16730. param_hdr.instance_id = INSTANCE_ID_0;
  16731. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  16732. param_hdr.param_size = param_size;
  16733. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  16734. NULL, &param_hdr, (u8 *) param_value);
  16735. if (rc) {
  16736. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  16737. kfree(param_value);
  16738. return -EINVAL;
  16739. }
  16740. update_param_value = (int *)param_value;
  16741. ucontrol->value.integer.value[0] = update_param_value[0];
  16742. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  16743. __func__, update_param_value[0]);
  16744. }
  16745. kfree(param_value);
  16746. return 0;
  16747. }
  16748. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  16749. struct snd_ctl_elem_value *ucontrol)
  16750. {
  16751. voc_session_id = ucontrol->value.integer.value[0];
  16752. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  16753. return 0;
  16754. }
  16755. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  16756. struct snd_ctl_elem_value *ucontrol)
  16757. {
  16758. ucontrol->value.integer.value[0] = voc_session_id;
  16759. return 0;
  16760. }
  16761. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  16762. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  16763. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  16764. msm_voc_session_id_put),
  16765. };
  16766. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  16767. struct snd_ctl_elem_info *uinfo)
  16768. {
  16769. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16770. uinfo->count = sizeof(struct sound_focus_param);
  16771. return 0;
  16772. }
  16773. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  16774. struct snd_ctl_elem_value *ucontrol)
  16775. {
  16776. int ret = 0;
  16777. struct sound_focus_param soundFocusData;
  16778. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16779. sizeof(struct sound_focus_param));
  16780. ret = voc_set_sound_focus(soundFocusData);
  16781. if (ret) {
  16782. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16783. __func__, ret);
  16784. ret = -EINVAL;
  16785. }
  16786. return ret;
  16787. }
  16788. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  16789. struct snd_ctl_elem_value *ucontrol)
  16790. {
  16791. int ret = 0;
  16792. struct sound_focus_param soundFocusData;
  16793. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  16794. ret = voc_get_sound_focus(&soundFocusData);
  16795. if (ret) {
  16796. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  16797. __func__, ret);
  16798. ret = -EINVAL;
  16799. goto done;
  16800. }
  16801. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16802. sizeof(struct sound_focus_param));
  16803. done:
  16804. return ret;
  16805. }
  16806. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  16807. struct snd_ctl_elem_info *uinfo)
  16808. {
  16809. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16810. uinfo->count = sizeof(struct source_tracking_param);
  16811. return 0;
  16812. }
  16813. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  16814. struct snd_ctl_elem_value *ucontrol)
  16815. {
  16816. int ret = 0;
  16817. struct source_tracking_param sourceTrackingData;
  16818. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  16819. ret = voc_get_source_tracking(&sourceTrackingData);
  16820. if (ret) {
  16821. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  16822. __func__, ret);
  16823. ret = -EINVAL;
  16824. goto done;
  16825. }
  16826. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  16827. sizeof(struct source_tracking_param));
  16828. done:
  16829. return ret;
  16830. }
  16831. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  16832. int *copp_idx)
  16833. {
  16834. int i, idx, be_idx;
  16835. int ret = 0;
  16836. unsigned long copp;
  16837. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  16838. ret = q6audio_validate_port(port_id);
  16839. if (ret < 0) {
  16840. pr_err("%s: port validation failed id 0x%x ret %d\n",
  16841. __func__, port_id, ret);
  16842. ret = -EINVAL;
  16843. goto done;
  16844. }
  16845. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  16846. if (msm_bedais[be_idx].port_id == port_id)
  16847. break;
  16848. }
  16849. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  16850. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  16851. ret = -EINVAL;
  16852. goto done;
  16853. }
  16854. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  16855. MSM_FRONTEND_DAI_MAX) {
  16856. if (!(is_mm_lsm_fe_id(i) &&
  16857. route_check_fe_id_adm_support(i)))
  16858. continue;
  16859. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16860. copp = session_copp_map[i]
  16861. [session_type][be_idx];
  16862. if (test_bit(idx, &copp))
  16863. break;
  16864. }
  16865. if (idx >= MAX_COPPS_PER_PORT)
  16866. continue;
  16867. else
  16868. break;
  16869. }
  16870. if (i >= MSM_FRONTEND_DAI_MAX) {
  16871. pr_debug("%s: Invalid FE, exiting\n", __func__);
  16872. ret = -EINVAL;
  16873. goto done;
  16874. }
  16875. *copp_idx = idx;
  16876. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  16877. done:
  16878. return ret;
  16879. }
  16880. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  16881. const char *prefix, int *port_id)
  16882. {
  16883. int ret = 0;
  16884. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  16885. /*
  16886. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  16887. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  16888. * and compare the string with the backend name to derive the port id.
  16889. */
  16890. if (!strcmp(kcontrol->id.name + strlen(prefix),
  16891. "SLIMBUS_0")) {
  16892. *port_id = SLIMBUS_0_TX;
  16893. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16894. "TERT_MI2S")) {
  16895. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  16896. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16897. "INT3_MI2S")) {
  16898. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  16899. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16900. "VA_CDC_DMA_TX_0")) {
  16901. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  16902. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16903. "TX_CDC_DMA_TX_3")) {
  16904. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  16905. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16906. "QUIN_TDM_TX_0")) {
  16907. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  16908. } else {
  16909. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  16910. __func__, kcontrol->id.name);
  16911. ret = -EINVAL;
  16912. goto done;
  16913. }
  16914. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  16915. __func__, kcontrol->id.name, *port_id);
  16916. done:
  16917. return ret;
  16918. }
  16919. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  16920. struct snd_ctl_elem_value *ucontrol)
  16921. {
  16922. int ret = 0;
  16923. struct sound_focus_param soundFocusData;
  16924. int port_id, copp_idx;
  16925. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16926. "Sound Focus Audio Tx ", &port_id);
  16927. if (ret != 0) {
  16928. pr_err("%s: Error in deriving port id, err=%d\n",
  16929. __func__, ret);
  16930. ret = -EINVAL;
  16931. goto done;
  16932. }
  16933. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16934. &copp_idx);
  16935. if (ret) {
  16936. pr_err("%s: Could not get copp idx for port_id=%d\n",
  16937. __func__, port_id);
  16938. ret = -EINVAL;
  16939. goto done;
  16940. }
  16941. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16942. sizeof(struct sound_focus_param));
  16943. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  16944. if (ret) {
  16945. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16946. __func__, ret);
  16947. ret = -EINVAL;
  16948. goto done;
  16949. }
  16950. done:
  16951. return ret;
  16952. }
  16953. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  16954. struct snd_ctl_elem_value *ucontrol)
  16955. {
  16956. int ret = 0;
  16957. struct sound_focus_param soundFocusData;
  16958. int port_id, copp_idx;
  16959. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16960. "Sound Focus Audio Tx ", &port_id);
  16961. if (ret) {
  16962. pr_err("%s: Error in deriving port id, err=%d\n",
  16963. __func__, ret);
  16964. ret = -EINVAL;
  16965. goto done;
  16966. }
  16967. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16968. &copp_idx);
  16969. if (ret) {
  16970. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  16971. __func__, port_id);
  16972. ret = -EINVAL;
  16973. goto done;
  16974. }
  16975. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  16976. if (ret) {
  16977. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  16978. __func__, ret);
  16979. ret = -EINVAL;
  16980. goto done;
  16981. }
  16982. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16983. sizeof(struct sound_focus_param));
  16984. done:
  16985. return ret;
  16986. }
  16987. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  16988. struct snd_ctl_elem_value *ucontrol)
  16989. {
  16990. int ret = 0;
  16991. struct source_tracking_param sourceTrackingData;
  16992. int port_id, copp_idx;
  16993. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16994. "Source Tracking Audio Tx ", &port_id);
  16995. if (ret) {
  16996. pr_err("%s: Error in deriving port id, err=%d\n",
  16997. __func__, ret);
  16998. ret = -EINVAL;
  16999. goto done;
  17000. }
  17001. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  17002. &copp_idx);
  17003. if (ret) {
  17004. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  17005. __func__, port_id);
  17006. ret = -EINVAL;
  17007. goto done;
  17008. }
  17009. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  17010. if (ret) {
  17011. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  17012. __func__, ret);
  17013. ret = -EINVAL;
  17014. goto done;
  17015. }
  17016. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  17017. sizeof(struct source_tracking_param));
  17018. done:
  17019. return ret;
  17020. }
  17021. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  17022. struct snd_ctl_elem_info *uinfo)
  17023. {
  17024. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  17025. uinfo->count = sizeof(struct doa_tracking_mon_param);
  17026. return 0;
  17027. }
  17028. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  17029. struct snd_ctl_elem_value *ucontrol)
  17030. {
  17031. int ret = 0;
  17032. struct doa_tracking_mon_param doa_tracking_data;
  17033. int port_id, copp_idx;
  17034. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  17035. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  17036. "Doa Tracking Monitor Listen ", &port_id);
  17037. if (ret) {
  17038. pr_err("%s: Error in deriving port id, err=%d\n",
  17039. __func__, ret);
  17040. ret = -EINVAL;
  17041. goto done;
  17042. }
  17043. /*
  17044. * If copp id exists for given port id, query adm to get doa data.
  17045. * Else query afe for doa tracking params.
  17046. * This is to support in cases where LSM directly connects to
  17047. * AFE for FFNS.
  17048. */
  17049. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  17050. &copp_idx);
  17051. if (!ret)
  17052. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  17053. &doa_tracking_data);
  17054. else
  17055. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  17056. if (ret) {
  17057. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  17058. __func__, ret);
  17059. ret = -EINVAL;
  17060. goto done;
  17061. }
  17062. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  17063. sizeof(struct doa_tracking_mon_param));
  17064. done:
  17065. return ret;
  17066. }
  17067. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  17068. {
  17069. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17070. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17071. .name = "Sound Focus Voice Tx SLIMBUS_0",
  17072. .info = msm_sound_focus_info,
  17073. .get = msm_voice_sound_focus_get,
  17074. .put = msm_voice_sound_focus_put,
  17075. },
  17076. {
  17077. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17078. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17079. .name = "Source Tracking Voice Tx SLIMBUS_0",
  17080. .info = msm_source_tracking_info,
  17081. .get = msm_voice_source_tracking_get,
  17082. },
  17083. {
  17084. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17085. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17086. .name = "Sound Focus Audio Tx SLIMBUS_0",
  17087. .info = msm_sound_focus_info,
  17088. .get = msm_audio_sound_focus_get,
  17089. .put = msm_audio_sound_focus_put,
  17090. },
  17091. {
  17092. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17093. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17094. .name = "Source Tracking Audio Tx SLIMBUS_0",
  17095. .info = msm_source_tracking_info,
  17096. .get = msm_audio_source_tracking_get,
  17097. },
  17098. {
  17099. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17100. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17101. .name = "Sound Focus Voice Tx TERT_MI2S",
  17102. .info = msm_sound_focus_info,
  17103. .get = msm_voice_sound_focus_get,
  17104. .put = msm_voice_sound_focus_put,
  17105. },
  17106. {
  17107. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17108. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17109. .name = "Source Tracking Voice Tx TERT_MI2S",
  17110. .info = msm_source_tracking_info,
  17111. .get = msm_voice_source_tracking_get,
  17112. },
  17113. {
  17114. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17115. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17116. .name = "Sound Focus Audio Tx TERT_MI2S",
  17117. .info = msm_sound_focus_info,
  17118. .get = msm_audio_sound_focus_get,
  17119. .put = msm_audio_sound_focus_put,
  17120. },
  17121. {
  17122. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17123. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17124. .name = "Source Tracking Audio Tx TERT_MI2S",
  17125. .info = msm_source_tracking_info,
  17126. .get = msm_audio_source_tracking_get,
  17127. },
  17128. {
  17129. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17130. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17131. .name = "Sound Focus Voice Tx INT3_MI2S",
  17132. .info = msm_sound_focus_info,
  17133. .get = msm_voice_sound_focus_get,
  17134. .put = msm_voice_sound_focus_put,
  17135. },
  17136. {
  17137. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17138. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17139. .name = "Source Tracking Voice Tx INT3_MI2S",
  17140. .info = msm_source_tracking_info,
  17141. .get = msm_voice_source_tracking_get,
  17142. },
  17143. {
  17144. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17145. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17146. .name = "Sound Focus Audio Tx INT3_MI2S",
  17147. .info = msm_sound_focus_info,
  17148. .get = msm_audio_sound_focus_get,
  17149. .put = msm_audio_sound_focus_put,
  17150. },
  17151. {
  17152. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17153. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17154. .name = "Source Tracking Audio Tx INT3_MI2S",
  17155. .info = msm_source_tracking_info,
  17156. .get = msm_audio_source_tracking_get,
  17157. },
  17158. {
  17159. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17160. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17161. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  17162. .info = msm_sound_focus_info,
  17163. .get = msm_voice_sound_focus_get,
  17164. .put = msm_voice_sound_focus_put,
  17165. },
  17166. {
  17167. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17168. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17169. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  17170. .info = msm_source_tracking_info,
  17171. .get = msm_voice_source_tracking_get,
  17172. },
  17173. {
  17174. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17175. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17176. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  17177. .info = msm_sound_focus_info,
  17178. .get = msm_audio_sound_focus_get,
  17179. .put = msm_audio_sound_focus_put,
  17180. },
  17181. {
  17182. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17183. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17184. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  17185. .info = msm_source_tracking_info,
  17186. .get = msm_audio_source_tracking_get,
  17187. },
  17188. {
  17189. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17190. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17191. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  17192. .info = msm_sound_focus_info,
  17193. .get = msm_voice_sound_focus_get,
  17194. .put = msm_voice_sound_focus_put,
  17195. },
  17196. {
  17197. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17198. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17199. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  17200. .info = msm_source_tracking_info,
  17201. .get = msm_voice_source_tracking_get,
  17202. },
  17203. {
  17204. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17205. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17206. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  17207. .info = msm_sound_focus_info,
  17208. .get = msm_audio_sound_focus_get,
  17209. .put = msm_audio_sound_focus_put,
  17210. },
  17211. {
  17212. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17213. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17214. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  17215. .info = msm_source_tracking_info,
  17216. .get = msm_audio_source_tracking_get,
  17217. },
  17218. {
  17219. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17220. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17221. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  17222. .info = msm_sound_focus_info,
  17223. .get = msm_voice_sound_focus_get,
  17224. .put = msm_voice_sound_focus_put,
  17225. },
  17226. {
  17227. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17228. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17229. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  17230. .info = msm_source_tracking_info,
  17231. .get = msm_voice_source_tracking_get,
  17232. },
  17233. {
  17234. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17235. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17236. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  17237. .info = msm_sound_focus_info,
  17238. .get = msm_audio_sound_focus_get,
  17239. .put = msm_audio_sound_focus_put,
  17240. },
  17241. {
  17242. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17243. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17244. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  17245. .info = msm_source_tracking_info,
  17246. .get = msm_audio_source_tracking_get,
  17247. },
  17248. {
  17249. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17250. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17251. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  17252. .info = msm_doa_tracking_mon_info,
  17253. .get = msm_doa_tracking_mon_get,
  17254. },
  17255. };
  17256. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  17257. struct snd_ctl_elem_value *ucontrol)
  17258. {
  17259. int ret = 0;
  17260. int item;
  17261. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  17262. pr_debug("%s item is %d\n", __func__,
  17263. ucontrol->value.enumerated.item[0]);
  17264. mutex_lock(&routing_lock);
  17265. item = ucontrol->value.enumerated.item[0];
  17266. if (item < e->items) {
  17267. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  17268. __func__, e->shift_l, e->values[item]);
  17269. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  17270. e->values[item] < MSM_BACKEND_DAI_MAX)
  17271. /* Enable feedback TX path */
  17272. ret = afe_spk_prot_feed_back_cfg(
  17273. msm_bedais[e->values[item]].port_id,
  17274. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  17275. else {
  17276. pr_debug("%s values are out of range item %d\n",
  17277. __func__, e->values[item]);
  17278. /* Disable feedback TX path */
  17279. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  17280. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  17281. else
  17282. ret = -EINVAL;
  17283. }
  17284. } else {
  17285. pr_err("%s item value is out of range item\n", __func__);
  17286. ret = -EINVAL;
  17287. }
  17288. mutex_unlock(&routing_lock);
  17289. return ret;
  17290. }
  17291. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  17292. struct snd_ctl_elem_value *ucontrol)
  17293. {
  17294. int ret = 0;
  17295. int item;
  17296. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  17297. pr_debug("%s item is %d\n", __func__,
  17298. ucontrol->value.enumerated.item[0]);
  17299. mutex_lock(&routing_lock);
  17300. item = ucontrol->value.enumerated.item[0];
  17301. if (item < e->items) {
  17302. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  17303. __func__, e->shift_l, e->values[item]);
  17304. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  17305. e->values[item] < MSM_BACKEND_DAI_MAX)
  17306. /* Enable feedback TX path */
  17307. ret = afe_spk_prot_feed_back_cfg(
  17308. msm_bedais[e->values[item]].port_id,
  17309. msm_bedais[e->shift_l].port_id,
  17310. 1, 1, 1);
  17311. else {
  17312. pr_debug("%s values are out of range item %d\n",
  17313. __func__, e->values[item]);
  17314. /* Disable feedback TX path */
  17315. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  17316. ret = afe_spk_prot_feed_back_cfg(0,
  17317. 0, 0, 0, 0);
  17318. else
  17319. ret = -EINVAL;
  17320. }
  17321. } else {
  17322. pr_err("%s item value is out of range item\n", __func__);
  17323. ret = -EINVAL;
  17324. }
  17325. mutex_unlock(&routing_lock);
  17326. return ret;
  17327. }
  17328. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  17329. struct snd_ctl_elem_value *ucontrol)
  17330. {
  17331. pr_debug("%s\n", __func__);
  17332. return 0;
  17333. }
  17334. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  17335. struct snd_ctl_elem_value *ucontrol)
  17336. {
  17337. pr_debug("%s\n", __func__);
  17338. ucontrol->value.enumerated.item[0] = 0;
  17339. return 0;
  17340. }
  17341. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  17342. "ZERO", "SLIM4_TX"
  17343. };
  17344. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  17345. "ZERO", "SLIM4_TX"
  17346. };
  17347. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  17348. "ZERO", "WSA_CDC_DMA_TX_0"
  17349. };
  17350. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  17351. "ZERO", "WSA_CDC_DMA_TX_0"
  17352. };
  17353. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  17354. "ZERO", "SENARY_TX"
  17355. };
  17356. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  17357. "ZERO", "INT5_MI2S_TX"
  17358. };
  17359. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  17360. "ZERO", "INT5_MI2S_TX"
  17361. };
  17362. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  17363. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  17364. };
  17365. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  17366. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  17367. };
  17368. static const int const wsa_rx_0_vi_fb_tx_lch_value[] = {
  17369. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  17370. };
  17371. static const int const wsa_rx_0_vi_fb_tx_rch_value[] = {
  17372. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  17373. };
  17374. static const int const mi2s_rx_vi_fb_tx_value[] = {
  17375. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  17376. };
  17377. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  17378. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  17379. };
  17380. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  17381. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  17382. };
  17383. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  17384. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  17385. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  17386. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  17387. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  17388. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  17389. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  17390. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  17391. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  17392. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  17393. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  17394. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  17395. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  17396. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  17397. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  17398. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  17399. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  17400. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  17401. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  17402. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  17403. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  17404. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  17405. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  17406. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  17407. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  17408. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  17409. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  17410. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  17411. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  17412. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  17413. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  17414. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  17415. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  17416. spkr_prot_put_vi_lch_port);
  17417. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  17418. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  17419. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  17420. spkr_prot_put_vi_rch_port);
  17421. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  17422. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  17423. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  17424. spkr_prot_put_vi_lch_port);
  17425. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  17426. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  17427. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  17428. spkr_prot_put_vi_rch_port);
  17429. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  17430. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  17431. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  17432. spkr_prot_put_vi_lch_port);
  17433. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  17434. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  17435. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  17436. spkr_prot_put_vi_lch_port);
  17437. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  17438. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  17439. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  17440. spkr_prot_put_vi_rch_port);
  17441. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  17442. /* Frontend AIF */
  17443. /* Widget name equals to Front-End DAI name<Need confirmation>,
  17444. * Stream name must contains substring of front-end dai name
  17445. */
  17446. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  17447. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  17448. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  17449. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  17450. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  17451. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  17452. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  17453. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  17454. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  17455. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  17456. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  17457. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  17458. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  17459. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  17460. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  17461. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  17462. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  17463. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  17464. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  17465. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  17466. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  17467. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  17468. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  17469. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  17470. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  17471. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  17472. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  17473. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  17474. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  17475. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  17476. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  17477. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  17478. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  17479. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  17480. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  17481. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  17482. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  17483. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  17484. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  17485. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  17486. "VoiceMMode1 Playback", 0, 0, 0, 0),
  17487. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  17488. "VoiceMMode1 Capture", 0, 0, 0, 0),
  17489. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  17490. "VoiceMMode2 Playback", 0, 0, 0, 0),
  17491. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  17492. "VoiceMMode2 Capture", 0, 0, 0, 0),
  17493. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  17494. 0, 0, 0, 0),
  17495. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  17496. 0, 0, 0, 0),
  17497. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  17498. 0, 0, 0, 0),
  17499. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  17500. 0, 0, 0, 0),
  17501. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  17502. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  17503. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  17504. 0, 0, 0, 0),
  17505. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  17506. 0, 0, 0, 0),
  17507. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  17508. 0, 0, 0, 0),
  17509. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  17510. 0, 0, 0, 0),
  17511. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  17512. 0, 0, 0, 0),
  17513. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  17514. 0, 0, 0, 0),
  17515. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  17516. 0, 0, 0, 0),
  17517. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  17518. 0, 0, 0, 0),
  17519. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  17520. 0, 0, 0, 0),
  17521. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  17522. 0, 0, 0, 0),
  17523. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  17524. 0, 0, 0, 0),
  17525. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  17526. 0, 0, 0, 0),
  17527. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  17528. 0, 0, 0, 0),
  17529. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  17530. 0, 0, 0, 0),
  17531. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  17532. 0, 0, 0, 0),
  17533. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  17534. 0, 0, 0, 0),
  17535. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  17536. 0, 0, 0, 0),
  17537. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  17538. 0, 0, 0, 0),
  17539. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  17540. 0, 0, 0, 0),
  17541. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  17542. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  17543. 0, 0, 0, 0),
  17544. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  17545. "INT0 MI2S_RX Hostless Playback",
  17546. 0, 0, 0, 0),
  17547. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  17548. "INT4 MI2S_RX Hostless Playback",
  17549. 0, 0, 0, 0),
  17550. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  17551. "Primary MI2S_RX Hostless Playback",
  17552. 0, 0, 0, 0),
  17553. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  17554. "Secondary MI2S_RX Hostless Playback",
  17555. 0, 0, 0, 0),
  17556. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  17557. "Tertiary MI2S_RX Hostless Playback",
  17558. 0, 0, 0, 0),
  17559. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  17560. "Quaternary MI2S_RX Hostless Playback",
  17561. 0, 0, 0, 0),
  17562. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  17563. "Quinary MI2S_RX Hostless Playback",
  17564. 0, 0, 0, 0),
  17565. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  17566. 0, 0, 0, 0),
  17567. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  17568. 0, 0, 0, 0),
  17569. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  17570. 0, 0, 0, 0),
  17571. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  17572. 0, 0, 0, 0),
  17573. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  17574. 0, 0, 0, 0),
  17575. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  17576. "INT3 MI2S_TX Hostless Capture",
  17577. 0, 0, 0, 0),
  17578. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  17579. "Tertiary MI2S_TX Hostless Capture",
  17580. 0, 0, 0, 0),
  17581. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  17582. "Secondary MI2S_TX Hostless Capture",
  17583. 0, 0, 0, 0),
  17584. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  17585. "Primary MI2S_TX Hostless Capture",
  17586. 0, 0, 0, 0),
  17587. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  17588. 0, 0, 0, 0),
  17589. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  17590. 0, 0, 0, 0),
  17591. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  17592. "Quaternary MI2S_TX Hostless Capture",
  17593. 0, 0, 0, 0),
  17594. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  17595. "Quinary MI2S_TX Hostless Capture",
  17596. 0, 0, 0, 0),
  17597. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  17598. "Primary TDM0 Hostless Playback",
  17599. 0, 0, 0, 0),
  17600. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  17601. "Primary TDM0 Hostless Capture",
  17602. 0, 0, 0, 0),
  17603. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  17604. "Primary TDM1 Hostless Playback",
  17605. 0, 0, 0, 0),
  17606. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  17607. "Primary TDM1 Hostless Capture",
  17608. 0, 0, 0, 0),
  17609. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  17610. "Primary TDM2 Hostless Playback",
  17611. 0, 0, 0, 0),
  17612. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  17613. "Primary TDM2 Hostless Capture",
  17614. 0, 0, 0, 0),
  17615. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  17616. "Primary TDM3 Hostless Playback",
  17617. 0, 0, 0, 0),
  17618. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  17619. "Primary TDM3 Hostless Capture",
  17620. 0, 0, 0, 0),
  17621. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  17622. "Primary TDM4 Hostless Playback",
  17623. 0, 0, 0, 0),
  17624. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  17625. "Primary TDM4 Hostless Capture",
  17626. 0, 0, 0, 0),
  17627. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  17628. "Primary TDM5 Hostless Playback",
  17629. 0, 0, 0, 0),
  17630. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  17631. "Primary TDM5 Hostless Capture",
  17632. 0, 0, 0, 0),
  17633. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  17634. "Primary TDM6 Hostless Playback",
  17635. 0, 0, 0, 0),
  17636. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  17637. "Primary TDM6 Hostless Capture",
  17638. 0, 0, 0, 0),
  17639. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  17640. "Primary TDM7 Hostless Playback",
  17641. 0, 0, 0, 0),
  17642. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  17643. "Primary TDM7 Hostless Capture",
  17644. 0, 0, 0, 0),
  17645. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  17646. "Secondary TDM0 Hostless Playback",
  17647. 0, 0, 0, 0),
  17648. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  17649. "Secondary TDM0 Hostless Capture",
  17650. 0, 0, 0, 0),
  17651. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  17652. "Secondary TDM1 Hostless Playback",
  17653. 0, 0, 0, 0),
  17654. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  17655. "Secondary TDM1 Hostless Capture",
  17656. 0, 0, 0, 0),
  17657. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  17658. "Secondary TDM2 Hostless Playback",
  17659. 0, 0, 0, 0),
  17660. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  17661. "Secondary TDM2 Hostless Capture",
  17662. 0, 0, 0, 0),
  17663. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  17664. "Secondary TDM3 Hostless Playback",
  17665. 0, 0, 0, 0),
  17666. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  17667. "Secondary TDM3 Hostless Capture",
  17668. 0, 0, 0, 0),
  17669. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  17670. "Secondary TDM4 Hostless Playback",
  17671. 0, 0, 0, 0),
  17672. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  17673. "Secondary TDM4 Hostless Capture",
  17674. 0, 0, 0, 0),
  17675. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  17676. "Secondary TDM5 Hostless Playback",
  17677. 0, 0, 0, 0),
  17678. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  17679. "Secondary TDM5 Hostless Capture",
  17680. 0, 0, 0, 0),
  17681. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  17682. "Secondary TDM6 Hostless Playback",
  17683. 0, 0, 0, 0),
  17684. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  17685. "Secondary TDM6 Hostless Capture",
  17686. 0, 0, 0, 0),
  17687. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  17688. "Secondary TDM7 Hostless Playback",
  17689. 0, 0, 0, 0),
  17690. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  17691. "Secondary TDM7 Hostless Capture",
  17692. 0, 0, 0, 0),
  17693. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  17694. "Tertiary TDM0 Hostless Playback",
  17695. 0, 0, 0, 0),
  17696. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  17697. "Tertiary TDM0 Hostless Capture",
  17698. 0, 0, 0, 0),
  17699. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  17700. "Tertiary TDM1 Hostless Playback",
  17701. 0, 0, 0, 0),
  17702. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  17703. "Tertiary TDM1 Hostless Capture",
  17704. 0, 0, 0, 0),
  17705. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  17706. "Tertiary TDM2 Hostless Playback",
  17707. 0, 0, 0, 0),
  17708. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  17709. "Tertiary TDM2 Hostless Capture",
  17710. 0, 0, 0, 0),
  17711. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  17712. "Tertiary TDM3 Hostless Playback",
  17713. 0, 0, 0, 0),
  17714. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  17715. "Tertiary TDM3 Hostless Capture",
  17716. 0, 0, 0, 0),
  17717. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  17718. "Tertiary TDM4 Hostless Playback",
  17719. 0, 0, 0, 0),
  17720. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  17721. "Tertiary TDM4 Hostless Capture",
  17722. 0, 0, 0, 0),
  17723. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  17724. "Tertiary TDM5 Hostless Playback",
  17725. 0, 0, 0, 0),
  17726. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  17727. "Tertiary TDM5 Hostless Capture",
  17728. 0, 0, 0, 0),
  17729. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  17730. "Tertiary TDM6 Hostless Playback",
  17731. 0, 0, 0, 0),
  17732. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  17733. "Tertiary TDM6 Hostless Capture",
  17734. 0, 0, 0, 0),
  17735. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  17736. "Tertiary TDM7 Hostless Playback",
  17737. 0, 0, 0, 0),
  17738. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  17739. "Tertiary TDM7 Hostless Capture",
  17740. 0, 0, 0, 0),
  17741. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  17742. "Quaternary TDM0 Hostless Playback",
  17743. 0, 0, 0, 0),
  17744. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  17745. "Quaternary TDM0 Hostless Capture",
  17746. 0, 0, 0, 0),
  17747. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  17748. "Quaternary TDM1 Hostless Playback",
  17749. 0, 0, 0, 0),
  17750. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  17751. "Quaternary TDM1 Hostless Capture",
  17752. 0, 0, 0, 0),
  17753. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  17754. "Quaternary TDM2 Hostless Playback",
  17755. 0, 0, 0, 0),
  17756. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  17757. "Quaternary TDM2 Hostless Capture",
  17758. 0, 0, 0, 0),
  17759. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  17760. "Quaternary TDM3 Hostless Playback",
  17761. 0, 0, 0, 0),
  17762. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  17763. "Quaternary TDM3 Hostless Capture",
  17764. 0, 0, 0, 0),
  17765. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  17766. "Quaternary TDM4 Hostless Playback",
  17767. 0, 0, 0, 0),
  17768. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  17769. "Quaternary TDM4 Hostless Capture",
  17770. 0, 0, 0, 0),
  17771. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  17772. "Quaternary TDM5 Hostless Playback",
  17773. 0, 0, 0, 0),
  17774. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  17775. "Quaternary TDM5 Hostless Capture",
  17776. 0, 0, 0, 0),
  17777. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  17778. "Quaternary TDM6 Hostless Playback",
  17779. 0, 0, 0, 0),
  17780. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  17781. "Quaternary TDM6 Hostless Capture",
  17782. 0, 0, 0, 0),
  17783. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  17784. "Quaternary TDM7 Hostless Playback",
  17785. 0, 0, 0, 0),
  17786. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  17787. "Quaternary TDM7 Hostless Capture",
  17788. 0, 0, 0, 0),
  17789. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  17790. "Quinary TDM0 Hostless Playback",
  17791. 0, 0, 0, 0),
  17792. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  17793. "Quinary TDM0 Hostless Capture",
  17794. 0, 0, 0, 0),
  17795. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  17796. "Quinary TDM1 Hostless Playback",
  17797. 0, 0, 0, 0),
  17798. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  17799. "Quinary TDM1 Hostless Capture",
  17800. 0, 0, 0, 0),
  17801. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  17802. "Quinary TDM2 Hostless Playback",
  17803. 0, 0, 0, 0),
  17804. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  17805. "Quinary TDM2 Hostless Capture",
  17806. 0, 0, 0, 0),
  17807. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  17808. "Quinary TDM3 Hostless Playback",
  17809. 0, 0, 0, 0),
  17810. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  17811. "Quinary TDM3 Hostless Capture",
  17812. 0, 0, 0, 0),
  17813. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  17814. "Quinary TDM4 Hostless Playback",
  17815. 0, 0, 0, 0),
  17816. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  17817. "Quinary TDM4 Hostless Capture",
  17818. 0, 0, 0, 0),
  17819. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  17820. "Quinary TDM5 Hostless Playback",
  17821. 0, 0, 0, 0),
  17822. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  17823. "Quinary TDM5 Hostless Capture",
  17824. 0, 0, 0, 0),
  17825. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  17826. "Quinary TDM6 Hostless Playback",
  17827. 0, 0, 0, 0),
  17828. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  17829. "Quinary TDM6 Hostless Capture",
  17830. 0, 0, 0, 0),
  17831. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  17832. "Quinary TDM7 Hostless Playback",
  17833. 0, 0, 0, 0),
  17834. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  17835. "Quinary TDM7 Hostless Capture",
  17836. 0, 0, 0, 0),
  17837. /* LSM */
  17838. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  17839. 0, 0, 0, 0),
  17840. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  17841. 0, 0, 0, 0),
  17842. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  17843. 0, 0, 0, 0),
  17844. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  17845. 0, 0, 0, 0),
  17846. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  17847. 0, 0, 0, 0),
  17848. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  17849. 0, 0, 0, 0),
  17850. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  17851. 0, 0, 0, 0),
  17852. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  17853. 0, 0, 0, 0),
  17854. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  17855. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  17856. /* Backend AIF */
  17857. /* Stream name equals to backend dai link stream name */
  17858. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  17859. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  17860. 0, 0, 0, 0),
  17861. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  17862. 0, 0, 0, 0),
  17863. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  17864. 0, 0, 0, 0),
  17865. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  17866. 0, 0, 0, 0),
  17867. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  17868. 0, 0, 0, 0),
  17869. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  17870. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  17871. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  17872. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  17873. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  17874. 0, 0, 0, 0),
  17875. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  17876. 0, 0, 0, 0),
  17877. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  17878. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  17879. 0, 0, 0, 0),
  17880. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  17881. 0, 0, 0, 0),
  17882. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  17883. 0, 0, 0, 0),
  17884. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  17885. "Secondary MI2S Playback SD1",
  17886. 0, 0, 0, 0),
  17887. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  17888. 0, 0, 0, 0),
  17889. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  17890. 0, 0, 0, 0),
  17891. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  17892. 0, 0, 0, 0),
  17893. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  17894. 0, 0, 0, 0),
  17895. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  17896. 0, 0, 0, 0),
  17897. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  17898. 0, 0, 0, 0),
  17899. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  17900. 0, 0, 0, 0),
  17901. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  17902. 0, 0, 0, 0),
  17903. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  17904. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  17905. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  17906. 0, 0, 0, 0),
  17907. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  17908. 0, 0, 0, 0),
  17909. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  17910. 0, 0, 0, 0),
  17911. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  17912. 0, 0, 0, 0),
  17913. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  17914. 0, 0, 0, 0),
  17915. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  17916. 0, 0, 0, 0),
  17917. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  17918. 0, 0, 0, 0),
  17919. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  17920. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  17921. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  17922. 0, 0, 0, 0),
  17923. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  17924. 0, 0, 0, 0),
  17925. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  17926. 0, 0, 0, 0),
  17927. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  17928. 0, 0, 0, 0),
  17929. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  17930. 0, 0, 0, 0),
  17931. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  17932. 0, 0, 0, 0),
  17933. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  17934. 0, 0, 0, 0),
  17935. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  17936. 0, 0, 0, 0),
  17937. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  17938. 0, 0, 0, 0),
  17939. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  17940. 0, 0, 0, 0),
  17941. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  17942. 0, 0, 0, 0),
  17943. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  17944. 0, 0, 0, 0),
  17945. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  17946. 0, 0, 0, 0),
  17947. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  17948. 0, 0, 0, 0),
  17949. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  17950. 0, 0, 0, 0),
  17951. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  17952. 0, 0, 0, 0),
  17953. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  17954. 0, 0, 0, 0),
  17955. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  17956. 0, 0, 0, 0),
  17957. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  17958. 0, 0, 0, 0),
  17959. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  17960. 0, 0, 0, 0),
  17961. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  17962. 0, 0, 0, 0),
  17963. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  17964. 0, 0, 0, 0),
  17965. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  17966. 0, 0, 0, 0),
  17967. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  17968. 0, 0, 0, 0),
  17969. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  17970. 0, 0, 0, 0),
  17971. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  17972. 0, 0, 0, 0),
  17973. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  17974. 0, 0, 0, 0),
  17975. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  17976. 0, 0, 0, 0),
  17977. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  17978. 0, 0, 0, 0),
  17979. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  17980. 0, 0, 0, 0),
  17981. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  17982. 0, 0, 0, 0),
  17983. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  17984. 0, 0, 0, 0),
  17985. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  17986. 0, 0, 0, 0),
  17987. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  17988. 0, 0, 0, 0),
  17989. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  17990. 0, 0, 0, 0),
  17991. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  17992. 0, 0, 0, 0),
  17993. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  17994. 0, 0, 0, 0),
  17995. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  17996. 0, 0, 0, 0),
  17997. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  17998. 0, 0, 0, 0),
  17999. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  18000. 0, 0, 0, 0),
  18001. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  18002. 0, 0, 0, 0),
  18003. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  18004. 0, 0, 0, 0),
  18005. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  18006. 0, 0, 0, 0),
  18007. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  18008. 0, 0, 0, 0),
  18009. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  18010. 0, 0, 0, 0),
  18011. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  18012. 0, 0, 0, 0),
  18013. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  18014. 0, 0, 0, 0),
  18015. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  18016. 0, 0, 0, 0),
  18017. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  18018. 0, 0, 0, 0),
  18019. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  18020. 0, 0, 0, 0),
  18021. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  18022. 0, 0, 0, 0),
  18023. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  18024. 0, 0, 0, 0),
  18025. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  18026. 0, 0, 0, 0),
  18027. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  18028. 0, 0, 0, 0),
  18029. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  18030. 0, 0, 0, 0),
  18031. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  18032. 0, 0, 0, 0),
  18033. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  18034. 0, 0, 0, 0),
  18035. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  18036. 0, 0, 0, 0),
  18037. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  18038. 0, 0, 0, 0),
  18039. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  18040. 0, 0, 0, 0),
  18041. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  18042. 0, 0, 0, 0),
  18043. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  18044. 0, 0, 0, 0),
  18045. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  18046. 0, 0, 0, 0),
  18047. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  18048. 0, 0, 0, 0),
  18049. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  18050. 0, 0, 0, 0),
  18051. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  18052. 0, 0, 0, 0),
  18053. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  18054. 0, 0, 0, 0),
  18055. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  18056. 0, 0, 0, 0),
  18057. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  18058. 0, 0, 0, 0),
  18059. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  18060. 0, 0, 0, 0),
  18061. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  18062. 0, 0, 0, 0),
  18063. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  18064. 0, 0, 0, 0),
  18065. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  18066. 0, 0, 0, 0),
  18067. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  18068. 0, 0, 0, 0),
  18069. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  18070. 0, 0, 0, 0),
  18071. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  18072. 0, 0, 0, 0),
  18073. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  18074. 0, 0, 0, 0),
  18075. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  18076. 0, 0, 0, 0),
  18077. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  18078. 0, 0, 0, 0),
  18079. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  18080. 0, 0, 0, 0),
  18081. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  18082. 0, 0, 0, 0),
  18083. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  18084. 0, 0, 0, 0),
  18085. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  18086. 0, 0, 0, 0),
  18087. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  18088. 0, 0, 0, 0),
  18089. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  18090. 0, 0, 0, 0),
  18091. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  18092. 0, 0, 0, 0),
  18093. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  18094. 0, 0, 0, 0),
  18095. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  18096. 0, 0, 0, 0),
  18097. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  18098. 0, 0, 0, 0),
  18099. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  18100. 0, 0, 0, 0),
  18101. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  18102. 0, 0, 0, 0),
  18103. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  18104. 0, 0, 0, 0),
  18105. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  18106. 0, 0, 0, 0),
  18107. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  18108. 0, 0, 0, 0),
  18109. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  18110. 0, 0, 0, 0),
  18111. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  18112. 0, 0, 0, 0),
  18113. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  18114. 0, 0, 0, 0),
  18115. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  18116. 0, 0, 0, 0),
  18117. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  18118. 0, 0, 0, 0),
  18119. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  18120. 0, 0, 0, 0),
  18121. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  18122. 0, 0, 0, 0),
  18123. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  18124. 0, 0, 0, 0),
  18125. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  18126. 0, 0, 0, 0),
  18127. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  18128. 0, 0, 0, 0),
  18129. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  18130. 0, 0, 0, 0),
  18131. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  18132. 0, 0, 0, 0),
  18133. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  18134. 0, 0, 0, 0),
  18135. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  18136. 0, 0, 0, 0),
  18137. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  18138. 0, 0, 0, 0),
  18139. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  18140. 0, 0, 0, 0),
  18141. /* incall */
  18142. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  18143. 0, 0, 0, 0),
  18144. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  18145. 0, 0, 0, 0),
  18146. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  18147. 0, 0, 0, 0),
  18148. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  18149. 0, 0, 0, 0),
  18150. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  18151. 0, 0, 0, 0),
  18152. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  18153. 0, 0, 0, 0),
  18154. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  18155. 0, 0, 0, 0),
  18156. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  18157. 0, 0, 0, 0),
  18158. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  18159. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  18160. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  18161. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  18162. 0, 0, 0, 0),
  18163. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  18164. 0, 0, 0, 0),
  18165. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  18166. 0, 0, 0, 0),
  18167. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  18168. 0, 0, 0, 0),
  18169. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  18170. 0, 0, 0, 0),
  18171. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  18172. 0, 0, 0, 0),
  18173. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  18174. 0, 0, 0, 0),
  18175. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  18176. 0, 0, 0, 0),
  18177. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  18178. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  18179. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  18180. 0, 0, 0, 0),
  18181. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  18182. 0, 0, 0, 0),
  18183. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  18184. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  18185. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  18186. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  18187. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  18188. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  18189. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  18190. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  18191. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  18192. /* In- call recording */
  18193. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  18194. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  18195. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  18196. 0, 0, 0, 0),
  18197. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  18198. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  18199. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  18200. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  18201. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  18202. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  18203. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  18204. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  18205. /* Switch Definitions */
  18206. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  18207. &slim_fm_switch_mixer_controls),
  18208. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  18209. &slim1_fm_switch_mixer_controls),
  18210. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  18211. &slim3_fm_switch_mixer_controls),
  18212. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  18213. &slim4_fm_switch_mixer_controls),
  18214. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  18215. &slim6_fm_switch_mixer_controls),
  18216. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18217. &pcm_rx_switch_mixer_controls),
  18218. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18219. &int0_mi2s_rx_switch_mixer_controls),
  18220. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18221. &int4_mi2s_rx_switch_mixer_controls),
  18222. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18223. &pri_mi2s_rx_switch_mixer_controls),
  18224. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18225. &sec_mi2s_rx_switch_mixer_controls),
  18226. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18227. &tert_mi2s_rx_switch_mixer_controls),
  18228. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18229. &quat_mi2s_rx_switch_mixer_controls),
  18230. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18231. &quin_mi2s_rx_switch_mixer_controls),
  18232. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  18233. &hfp_pri_aux_switch_mixer_controls),
  18234. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  18235. &hfp_aux_switch_mixer_controls),
  18236. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  18237. &hfp_int_switch_mixer_controls),
  18238. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  18239. &hfp_slim7_switch_mixer_controls),
  18240. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  18241. &usb_switch_mixer_controls),
  18242. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  18243. &a2dp_slim7_switch_mixer_controls),
  18244. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  18245. &cdc_dma_wsa_switch_mixer_controls),
  18246. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  18247. &cdc_dma_rx_switch_mixer_controls),
  18248. /* Mixer definitions */
  18249. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18250. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  18251. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18252. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  18253. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18254. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  18255. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18256. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  18257. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18258. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  18259. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18260. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  18261. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18262. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  18263. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  18264. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  18265. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  18266. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  18267. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  18268. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  18269. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18270. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  18271. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18272. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  18273. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18274. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  18275. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18276. quaternary_mi2s_rx_mixer_controls,
  18277. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  18278. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18279. tertiary_mi2s_rx_mixer_controls,
  18280. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  18281. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18282. secondary_mi2s_rx_mixer_controls,
  18283. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  18284. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18285. secondary_mi2s_rx2_mixer_controls,
  18286. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  18287. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18288. primary_mi2s_rx_mixer_controls,
  18289. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  18290. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18291. int0_mi2s_rx_mixer_controls,
  18292. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  18293. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18294. int4_mi2s_rx_mixer_controls,
  18295. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  18296. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18297. quinary_mi2s_rx_mixer_controls,
  18298. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  18299. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18300. pri_tdm_rx_0_mixer_controls,
  18301. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  18302. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18303. pri_tdm_rx_1_mixer_controls,
  18304. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  18305. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18306. pri_tdm_rx_2_mixer_controls,
  18307. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  18308. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18309. pri_tdm_rx_3_mixer_controls,
  18310. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  18311. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18312. pri_tdm_tx_0_mixer_controls,
  18313. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  18314. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18315. sec_tdm_rx_0_mixer_controls,
  18316. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  18317. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18318. sec_tdm_rx_1_mixer_controls,
  18319. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  18320. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18321. sec_tdm_rx_2_mixer_controls,
  18322. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  18323. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18324. sec_tdm_rx_3_mixer_controls,
  18325. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  18326. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18327. sec_tdm_tx_0_mixer_controls,
  18328. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  18329. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18330. tert_tdm_rx_0_mixer_controls,
  18331. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  18332. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18333. tert_tdm_tx_0_mixer_controls,
  18334. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  18335. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18336. tert_tdm_rx_1_mixer_controls,
  18337. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  18338. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18339. tert_tdm_rx_2_mixer_controls,
  18340. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  18341. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18342. tert_tdm_rx_3_mixer_controls,
  18343. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  18344. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18345. tert_tdm_rx_4_mixer_controls,
  18346. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  18347. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18348. quat_tdm_rx_0_mixer_controls,
  18349. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  18350. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18351. quat_tdm_tx_0_mixer_controls,
  18352. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  18353. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18354. quat_tdm_rx_1_mixer_controls,
  18355. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  18356. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18357. quat_tdm_rx_2_mixer_controls,
  18358. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  18359. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18360. quat_tdm_rx_3_mixer_controls,
  18361. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  18362. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18363. quin_tdm_rx_0_mixer_controls,
  18364. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  18365. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18366. quin_tdm_tx_0_mixer_controls,
  18367. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  18368. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18369. quin_tdm_rx_1_mixer_controls,
  18370. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  18371. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18372. quin_tdm_rx_2_mixer_controls,
  18373. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  18374. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18375. quin_tdm_rx_3_mixer_controls,
  18376. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  18377. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18378. wsa_cdc_dma_rx_0_mixer_controls,
  18379. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  18380. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18381. wsa_cdc_dma_rx_1_mixer_controls,
  18382. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  18383. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18384. rx_cdc_dma_rx_0_mixer_controls,
  18385. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  18386. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18387. rx_cdc_dma_rx_1_mixer_controls,
  18388. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  18389. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18390. rx_cdc_dma_rx_2_mixer_controls,
  18391. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  18392. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18393. rx_cdc_dma_rx_3_mixer_controls,
  18394. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  18395. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18396. rx_cdc_dma_rx_4_mixer_controls,
  18397. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  18398. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18399. rx_cdc_dma_rx_5_mixer_controls,
  18400. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  18401. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18402. rx_cdc_dma_rx_6_mixer_controls,
  18403. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  18404. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18405. rx_cdc_dma_rx_7_mixer_controls,
  18406. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  18407. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  18408. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  18409. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  18410. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  18411. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  18412. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  18413. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  18414. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  18415. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  18416. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  18417. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  18418. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  18419. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  18420. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  18421. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  18422. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  18423. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  18424. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  18425. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  18426. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  18427. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  18428. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  18429. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  18430. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  18431. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  18432. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  18433. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  18434. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  18435. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  18436. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  18437. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  18438. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  18439. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  18440. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  18441. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  18442. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  18443. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18444. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  18445. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18446. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  18447. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18448. tert_auxpcm_rx_mixer_controls,
  18449. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  18450. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18451. quat_auxpcm_rx_mixer_controls,
  18452. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  18453. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18454. quin_auxpcm_rx_mixer_controls,
  18455. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  18456. /* incall */
  18457. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  18458. incall_music_delivery_mixer_controls,
  18459. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  18460. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18461. incall_music2_delivery_mixer_controls,
  18462. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  18463. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18464. slimbus_4_rx_mixer_controls,
  18465. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  18466. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18467. slimbus_6_rx_mixer_controls,
  18468. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  18469. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18470. usb_audio_rx_mixer_controls,
  18471. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  18472. /* Voice Mixer */
  18473. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  18474. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  18475. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  18476. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  18477. SND_SOC_NOPM, 0, 0,
  18478. sec_i2s_rx_voice_mixer_controls,
  18479. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  18480. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  18481. SND_SOC_NOPM, 0, 0,
  18482. sec_mi2s_rx_voice_mixer_controls,
  18483. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  18484. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  18485. SND_SOC_NOPM, 0, 0,
  18486. slimbus_rx_voice_mixer_controls,
  18487. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  18488. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  18489. SND_SOC_NOPM, 0, 0,
  18490. bt_sco_rx_voice_mixer_controls,
  18491. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  18492. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  18493. SND_SOC_NOPM, 0, 0,
  18494. afe_pcm_rx_voice_mixer_controls,
  18495. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  18496. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  18497. SND_SOC_NOPM, 0, 0,
  18498. aux_pcm_rx_voice_mixer_controls,
  18499. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  18500. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  18501. SND_SOC_NOPM, 0, 0,
  18502. sec_aux_pcm_rx_voice_mixer_controls,
  18503. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  18504. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  18505. SND_SOC_NOPM, 0, 0,
  18506. tert_aux_pcm_rx_voice_mixer_controls,
  18507. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  18508. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  18509. SND_SOC_NOPM, 0, 0,
  18510. quat_aux_pcm_rx_voice_mixer_controls,
  18511. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  18512. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  18513. SND_SOC_NOPM, 0, 0,
  18514. quin_aux_pcm_rx_voice_mixer_controls,
  18515. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  18516. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  18517. SND_SOC_NOPM, 0, 0,
  18518. hdmi_rx_voice_mixer_controls,
  18519. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  18520. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  18521. SND_SOC_NOPM, 0, 0,
  18522. mi2s_rx_voice_mixer_controls,
  18523. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  18524. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  18525. SND_SOC_NOPM, 0, 0,
  18526. pri_mi2s_rx_voice_mixer_controls,
  18527. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  18528. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  18529. SND_SOC_NOPM, 0, 0,
  18530. int0_mi2s_rx_voice_mixer_controls,
  18531. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  18532. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  18533. SND_SOC_NOPM, 0, 0,
  18534. int4_mi2s_rx_voice_mixer_controls,
  18535. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  18536. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  18537. SND_SOC_NOPM, 0, 0,
  18538. tert_mi2s_rx_voice_mixer_controls,
  18539. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  18540. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  18541. SND_SOC_NOPM, 0, 0,
  18542. quat_mi2s_rx_voice_mixer_controls,
  18543. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  18544. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  18545. SND_SOC_NOPM, 0, 0,
  18546. quin_mi2s_rx_voice_mixer_controls,
  18547. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  18548. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  18549. SND_SOC_NOPM, 0, 0,
  18550. quat_tdm_rx_2_voice_mixer_controls,
  18551. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  18552. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  18553. SND_SOC_NOPM, 0, 0,
  18554. wsa_cdc_dma_rx_0_voice_mixer_controls,
  18555. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  18556. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  18557. SND_SOC_NOPM, 0, 0,
  18558. rx_cdc_dma_rx_0_voice_mixer_controls,
  18559. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  18560. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  18561. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  18562. ARRAY_SIZE(tx_voip_mixer_controls)),
  18563. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  18564. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  18565. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  18566. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  18567. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  18568. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  18569. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18570. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  18571. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18572. int_bt_a2dp_rx_mixer_controls,
  18573. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  18574. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18575. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  18576. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18577. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  18578. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18579. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  18580. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18581. tx_voice2_stub_mixer_controls,
  18582. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  18583. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18584. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  18585. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  18586. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  18587. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  18588. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  18589. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18590. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  18591. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  18592. SND_SOC_NOPM, 0, 0,
  18593. slimbus_6_rx_voice_mixer_controls,
  18594. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  18595. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18596. slimbus_7_rx_voice_mixer_controls,
  18597. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  18598. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18599. slimbus_8_rx_voice_mixer_controls,
  18600. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  18601. /* port mixer */
  18602. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  18603. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  18604. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  18605. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  18606. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  18607. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  18608. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  18609. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  18610. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  18611. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  18612. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  18613. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  18614. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  18615. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  18616. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  18617. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  18618. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  18619. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  18620. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18621. sbus_1_rx_port_mixer_controls,
  18622. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  18623. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18624. bt_sco_rx_port_mixer_controls,
  18625. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  18626. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  18627. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  18628. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  18629. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  18630. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  18631. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  18632. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  18633. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  18634. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  18635. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  18636. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  18637. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  18638. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  18639. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  18640. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  18641. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  18642. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  18643. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  18644. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  18645. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  18646. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  18647. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18648. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  18649. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18650. primary_mi2s_rx_port_mixer_controls,
  18651. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  18652. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18653. sec_mi2s_rx_port_mixer_controls,
  18654. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  18655. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18656. tert_mi2s_rx_port_mixer_controls,
  18657. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  18658. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18659. quat_mi2s_rx_port_mixer_controls,
  18660. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  18661. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18662. quin_mi2s_rx_port_mixer_controls,
  18663. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  18664. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18665. pri_tdm_rx_0_port_mixer_controls,
  18666. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  18667. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18668. pri_tdm_rx_1_port_mixer_controls,
  18669. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  18670. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18671. pri_tdm_rx_2_port_mixer_controls,
  18672. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  18673. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18674. pri_tdm_rx_3_port_mixer_controls,
  18675. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  18676. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18677. sec_tdm_rx_0_port_mixer_controls,
  18678. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  18679. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18680. sec_tdm_rx_1_port_mixer_controls,
  18681. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  18682. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18683. sec_tdm_rx_2_port_mixer_controls,
  18684. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  18685. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18686. sec_tdm_rx_3_port_mixer_controls,
  18687. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  18688. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  18689. sec_tdm_rx_7_port_mixer_controls,
  18690. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  18691. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18692. tert_tdm_rx_0_port_mixer_controls,
  18693. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  18694. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18695. tert_tdm_rx_1_port_mixer_controls,
  18696. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  18697. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18698. tert_tdm_rx_2_port_mixer_controls,
  18699. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  18700. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18701. tert_tdm_rx_3_port_mixer_controls,
  18702. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  18703. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18704. quat_tdm_rx_0_port_mixer_controls,
  18705. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  18706. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18707. quat_tdm_rx_1_port_mixer_controls,
  18708. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  18709. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18710. quat_tdm_rx_2_port_mixer_controls,
  18711. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  18712. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18713. quat_tdm_rx_3_port_mixer_controls,
  18714. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  18715. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18716. quin_tdm_rx_0_port_mixer_controls,
  18717. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  18718. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18719. quin_tdm_rx_1_port_mixer_controls,
  18720. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  18721. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18722. quin_tdm_rx_2_port_mixer_controls,
  18723. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  18724. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18725. quin_tdm_rx_3_port_mixer_controls,
  18726. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  18727. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18728. int0_mi2s_rx_port_mixer_controls,
  18729. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  18730. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18731. int4_mi2s_rx_port_mixer_controls,
  18732. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  18733. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18734. wsa_cdc_dma_rx_0_port_mixer_controls,
  18735. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  18736. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18737. rx_cdc_dma_rx_0_port_mixer_controls,
  18738. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  18739. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  18740. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  18741. ARRAY_SIZE(tx_qchat_mixer_controls)),
  18742. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  18743. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  18744. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  18745. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  18746. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  18747. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  18748. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  18749. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  18750. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  18751. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  18752. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  18753. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  18754. /* lsm mixer definitions */
  18755. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  18756. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  18757. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  18758. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  18759. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  18760. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  18761. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  18762. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  18763. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  18764. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  18765. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  18766. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  18767. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  18768. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  18769. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  18770. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  18771. /* Virtual Pins to force backends ON atm */
  18772. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  18773. SND_SOC_DAPM_INPUT("BE_IN"),
  18774. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  18775. &slim0_rx_vi_fb_lch_mux),
  18776. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  18777. &slim0_rx_vi_fb_rch_mux),
  18778. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  18779. &wsa_rx_0_vi_fb_lch_mux),
  18780. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  18781. &wsa_rx_0_vi_fb_rch_mux),
  18782. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  18783. &mi2s_rx_vi_fb_mux),
  18784. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  18785. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  18786. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  18787. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  18788. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  18789. &voc_ext_ec_mux),
  18790. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  18791. &ext_ec_ref_mux_ul1),
  18792. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  18793. &ext_ec_ref_mux_ul2),
  18794. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  18795. &ext_ec_ref_mux_ul3),
  18796. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  18797. &ext_ec_ref_mux_ul4),
  18798. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  18799. &ext_ec_ref_mux_ul5),
  18800. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  18801. &ext_ec_ref_mux_ul6),
  18802. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  18803. &ext_ec_ref_mux_ul8),
  18804. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  18805. &ext_ec_ref_mux_ul9),
  18806. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  18807. &ext_ec_ref_mux_ul10),
  18808. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  18809. &ext_ec_ref_mux_ul16),
  18810. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  18811. &ext_ec_ref_mux_ul17),
  18812. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  18813. &ext_ec_ref_mux_ul18),
  18814. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  18815. &ext_ec_ref_mux_ul19),
  18816. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  18817. &ext_ec_ref_mux_ul28),
  18818. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  18819. &ext_ec_ref_mux_ul29),
  18820. };
  18821. static const struct snd_soc_dapm_route intercon[] = {
  18822. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18823. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18824. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18825. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18826. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18827. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18828. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18829. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18830. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18831. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18832. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18833. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18834. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18835. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18836. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18837. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18838. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18839. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  18840. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18841. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18842. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18843. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18844. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18845. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18846. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18847. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18848. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18849. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18850. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18851. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18852. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18853. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18854. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18855. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18856. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18857. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  18858. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18859. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18860. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18861. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18862. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18863. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18864. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18865. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18866. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18867. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18868. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18869. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18870. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18871. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18872. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18873. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18874. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18875. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  18876. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18877. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18878. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18879. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18880. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18881. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18882. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18883. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18884. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18885. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18886. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18887. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18888. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18889. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18890. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18891. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18892. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18893. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  18894. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18895. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18896. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18897. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18898. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18899. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18900. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18901. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18902. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18903. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18904. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18905. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18906. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18907. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18908. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18909. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18910. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18911. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  18912. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18913. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18914. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18915. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18916. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18917. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18918. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18919. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18920. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18921. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18922. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18923. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18924. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18925. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18926. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18927. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18928. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18929. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  18930. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18931. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18932. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18933. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18934. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18935. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18936. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18937. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18938. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18939. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18940. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18941. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18942. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18943. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18944. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18945. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18946. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18947. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  18948. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18949. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18950. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18951. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18952. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18953. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18954. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18955. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18956. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18957. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18958. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18959. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18960. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18961. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18962. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18963. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18964. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18965. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  18966. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18967. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18968. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18969. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18970. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18971. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18972. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18973. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18974. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18975. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18976. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18977. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18978. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18979. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18980. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18981. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18982. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18983. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  18984. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18985. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18986. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18987. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18988. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18989. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18990. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18991. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18992. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18993. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18994. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18995. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18996. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18997. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18998. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18999. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19000. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19001. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  19002. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19003. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19004. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19005. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19006. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19007. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19008. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19009. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19010. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19011. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19012. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19013. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19014. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19015. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19016. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19017. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19018. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19019. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  19020. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19021. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19022. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19023. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19024. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19025. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19026. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19027. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19028. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19029. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19030. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19031. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19032. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19033. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19034. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19035. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19036. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19037. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  19038. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19039. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19040. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19041. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19042. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19043. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19044. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19045. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19046. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19047. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19048. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19049. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19050. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19051. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19052. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19053. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19054. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19055. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  19056. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19057. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19058. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19059. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19060. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19061. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19062. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19063. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19064. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19065. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19066. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19067. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19068. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19069. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19070. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19071. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19072. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19073. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  19074. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19075. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19076. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19077. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19078. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19079. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19080. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19081. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19082. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19083. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19084. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19085. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19086. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19087. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19088. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19089. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19090. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19091. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  19092. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  19093. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  19094. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  19095. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  19096. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  19097. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  19098. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  19099. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  19100. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  19101. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  19102. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  19103. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  19104. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  19105. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  19106. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  19107. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  19108. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  19109. {"HDMI", NULL, "HDMI Mixer"},
  19110. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  19111. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  19112. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  19113. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  19114. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  19115. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  19116. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  19117. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  19118. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  19119. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  19120. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  19121. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  19122. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  19123. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  19124. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  19125. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  19126. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  19127. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  19128. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  19129. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  19130. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  19131. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  19132. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  19133. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  19134. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  19135. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  19136. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  19137. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  19138. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  19139. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  19140. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  19141. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  19142. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  19143. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  19144. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  19145. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  19146. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19147. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19148. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19149. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19150. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19151. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19152. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19153. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19154. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19155. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19156. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19157. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19158. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19159. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19160. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19161. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19162. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19163. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  19164. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19165. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19166. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19167. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19168. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19169. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19170. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19171. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19172. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19173. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19174. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19175. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19176. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19177. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19178. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19179. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19180. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19181. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  19182. /* incall */
  19183. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  19184. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  19185. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  19186. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  19187. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  19188. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19189. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19190. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19191. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19192. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  19193. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19194. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19195. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19196. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19197. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  19198. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19199. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19200. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19201. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19202. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19203. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19204. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19205. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19206. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19207. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19208. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19209. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19210. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19211. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19212. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19213. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19214. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19215. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  19216. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19217. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19218. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19219. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19220. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19221. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19222. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19223. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19224. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19225. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19226. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19227. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19228. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19229. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19230. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19231. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19232. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19233. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  19234. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19235. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19236. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19237. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19238. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19239. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19240. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19241. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19242. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19243. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19244. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19245. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19246. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19247. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19248. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19249. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19250. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19251. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  19252. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19253. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19254. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19255. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19256. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19257. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19258. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19259. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19260. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19261. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19262. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19263. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19264. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19265. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19266. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19267. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19268. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19269. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  19270. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19271. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19272. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19273. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19274. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19275. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19276. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  19277. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19278. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19279. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19280. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19281. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19282. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19283. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19284. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19285. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19286. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19287. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19288. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19289. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19290. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19291. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19292. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19293. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19294. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19295. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19296. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19297. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19298. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19299. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19300. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19301. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19302. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19303. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19304. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19305. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19306. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19307. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19308. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19309. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19310. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19311. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19312. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19313. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19314. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19315. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19316. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19317. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19318. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19319. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19320. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19321. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19322. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19323. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19324. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19325. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19326. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19327. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19328. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19329. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19330. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19331. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19332. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19333. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19334. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19335. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19336. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19337. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19338. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19339. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  19340. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19341. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19342. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19343. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19344. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19345. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19346. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19347. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19348. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19349. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19350. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19351. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19352. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19353. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19354. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19355. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19356. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  19357. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19358. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19359. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19360. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19361. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19362. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19363. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19364. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19365. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19366. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19367. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19368. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19369. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19370. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19371. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19372. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  19373. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19374. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19375. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19376. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19377. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19378. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19379. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19380. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19381. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19382. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19383. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19384. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19385. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19386. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19387. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19388. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  19389. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19390. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  19391. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19392. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19393. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19394. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19395. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19396. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19397. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19398. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19399. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19400. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19401. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19402. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19403. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19404. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19405. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19406. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19407. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19408. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19409. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  19410. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19411. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19412. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19413. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19414. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19415. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19416. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19417. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19418. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19419. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19420. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19421. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19422. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19423. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19424. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19425. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  19426. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19427. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19428. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19429. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19430. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19431. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19432. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19433. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19434. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19435. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19436. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19437. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19438. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19439. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19440. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19441. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  19442. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19443. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19444. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19445. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19446. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19447. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19448. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19449. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19450. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19451. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19452. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19453. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19454. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19455. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19456. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19457. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19458. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19459. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  19460. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19461. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19462. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19463. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19464. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19465. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19466. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19467. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19468. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19469. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19470. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19471. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19472. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19473. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19474. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19475. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19476. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19477. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  19478. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19479. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19480. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19481. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19482. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19483. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19484. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19485. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19486. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19487. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19488. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19489. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19490. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19491. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19492. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19493. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19494. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19495. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  19496. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19497. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19498. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19499. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19500. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19501. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19502. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19503. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19504. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19505. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19506. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19507. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19508. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19509. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19510. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19511. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19512. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19513. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  19514. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19515. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19516. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19517. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19518. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19519. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19520. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19521. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19522. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19523. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19524. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19525. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19526. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19527. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19528. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19529. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19530. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19531. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  19532. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19533. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19534. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19535. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19536. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19537. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19538. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19539. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19540. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19541. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19542. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19543. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19544. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19545. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19546. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19547. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19548. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  19549. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19550. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19551. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19552. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19553. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19554. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19555. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19556. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19557. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19558. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19559. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19560. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19561. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19562. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19563. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19564. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19565. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19566. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  19567. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19568. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19569. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19570. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19571. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19572. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19573. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19574. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19575. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19576. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19577. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19578. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19579. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19580. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19581. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19582. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19583. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19584. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  19585. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19586. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19587. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19588. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19589. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19590. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19591. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19592. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19593. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19594. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19595. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19596. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19597. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19598. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19599. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19600. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19601. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19602. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  19603. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19604. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19605. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19606. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19607. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19608. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19609. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19610. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19611. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19612. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19613. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19614. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19615. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19616. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19617. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19618. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19619. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19620. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  19621. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19622. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19623. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19624. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19625. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19626. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19627. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19628. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19629. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19630. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19631. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19632. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19633. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19634. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19635. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19636. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19637. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  19638. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19639. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19640. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19641. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19642. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19643. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19644. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19645. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19646. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19647. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19648. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19649. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19650. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19651. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19652. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19653. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19654. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19655. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  19656. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19657. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19658. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19659. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19660. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19661. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19662. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19663. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19664. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19665. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19666. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19667. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19668. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19669. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19670. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19671. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19672. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  19673. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19674. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19675. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19676. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19677. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19678. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19679. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19680. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19681. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19682. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19683. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19684. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19685. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19686. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19687. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19688. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19689. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19690. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  19691. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19692. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19693. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19694. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19695. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19696. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19697. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19698. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19699. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19700. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19701. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19702. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19703. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19704. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19705. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19706. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19707. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19708. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  19709. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19710. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19711. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19712. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19713. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19714. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19715. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19716. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19717. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19718. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19719. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19720. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19721. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19722. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19723. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19724. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19725. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19726. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  19727. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19728. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19729. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19730. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19731. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19732. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19733. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19734. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19735. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19736. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19737. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19738. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19739. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19740. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19741. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19742. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19743. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19744. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  19745. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19746. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19747. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19748. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19749. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19750. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19751. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19752. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19753. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19754. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19755. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19756. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19757. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19758. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19759. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19760. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19761. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19762. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19763. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  19764. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19765. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19766. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19767. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19768. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19769. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19770. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19771. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19772. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19773. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19774. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19775. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19776. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19777. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19778. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19779. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19780. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  19781. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19782. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19783. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19784. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19785. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19786. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19787. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19788. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19789. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19790. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19791. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19792. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19793. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19794. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19795. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19796. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19797. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19798. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19799. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  19800. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19801. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19802. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19803. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19804. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19805. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19806. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19807. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19808. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19809. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19810. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19811. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19812. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19813. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19814. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19815. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19816. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19817. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19818. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  19819. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19820. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19821. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19822. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19823. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19824. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19825. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19826. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19827. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19828. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19829. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19830. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19831. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19832. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19833. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19834. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19835. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19836. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19837. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  19838. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19839. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19840. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19841. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19842. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19843. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19844. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19845. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19846. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19847. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19848. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19849. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19850. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19851. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19852. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19853. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19854. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19855. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19856. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  19857. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19858. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19859. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19860. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19861. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19862. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19863. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19864. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19865. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19866. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19867. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19868. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19869. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19870. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19871. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19872. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19873. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  19874. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19875. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19876. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19877. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19878. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19879. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19880. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19881. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19882. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19883. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19884. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19885. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19886. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19887. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19888. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19889. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19890. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19891. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19892. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  19893. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19894. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19895. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19896. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19897. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19898. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19899. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19900. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19901. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19902. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19903. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19904. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19905. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19906. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19907. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19908. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19909. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19910. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19911. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  19912. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19913. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19914. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19915. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19916. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19917. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19918. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19919. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19920. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19921. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19922. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19923. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19924. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19925. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19926. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19927. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19928. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19929. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19930. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  19931. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  19932. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  19933. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  19934. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  19935. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  19936. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  19937. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  19938. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19939. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19940. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19941. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19942. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19943. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19944. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19945. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19946. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19947. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19948. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19949. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19950. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19951. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19952. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19953. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19954. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19955. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19956. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19957. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19958. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19959. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19960. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  19961. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19962. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19963. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19964. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  19965. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19966. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19967. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19968. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19969. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  19970. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  19971. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  19972. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19973. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19974. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19975. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19976. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19977. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19978. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19979. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19980. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19981. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19982. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19983. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19984. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19985. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19986. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19987. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19988. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19989. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19990. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19991. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19992. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19993. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19994. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19995. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19996. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19997. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19998. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19999. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20000. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20001. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20002. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20003. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20004. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20005. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20006. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20007. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20008. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20009. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20010. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20011. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20012. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20013. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20014. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20015. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20016. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20017. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20018. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20019. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20020. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20021. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20022. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20023. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20024. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20025. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20026. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20027. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20028. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20029. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20030. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20031. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20032. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20033. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20034. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20035. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20036. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20037. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20038. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20039. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20040. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20041. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20042. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20043. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20044. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20045. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20046. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20047. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20048. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20049. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20050. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20051. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20052. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20053. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20054. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20055. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20056. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20057. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20058. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20059. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20060. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20061. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20062. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20063. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20064. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20065. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20066. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20067. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20068. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20069. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20070. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20071. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20072. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20073. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20074. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20075. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20076. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20077. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20078. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20079. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20080. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20081. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20082. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20083. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20084. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20085. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20086. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20087. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20088. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20089. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20090. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20091. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20092. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20093. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20094. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20095. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20096. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20097. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20098. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20099. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20100. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20101. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20102. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20103. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20104. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20105. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20106. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20107. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20108. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20109. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20110. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20111. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20112. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20113. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20114. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20115. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20116. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20117. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20118. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20119. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20120. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20121. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20122. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20123. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20124. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20125. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20126. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20127. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20128. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20129. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20130. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20131. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20132. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20133. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20134. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20135. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20136. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20137. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20138. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20139. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20140. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20141. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20142. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20143. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20144. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20145. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20146. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20147. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20148. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20149. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20150. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20151. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20152. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20153. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20154. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20155. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20156. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20157. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20158. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20159. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20160. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20161. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20162. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20163. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20164. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20165. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20166. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20167. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20168. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20169. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20170. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20171. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20172. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20173. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20174. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20175. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20176. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20177. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20178. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20179. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20180. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20181. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20182. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20183. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20184. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20185. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20186. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20187. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20188. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20189. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20190. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20191. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20192. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20193. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20194. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20195. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20196. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20197. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20198. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20199. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20200. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20201. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20202. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20203. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20204. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20205. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20206. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20207. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20208. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20209. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20210. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20211. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20212. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20213. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20214. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20215. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20216. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20217. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20218. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20219. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20220. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20221. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20222. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20223. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20224. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20225. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20226. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20227. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20228. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20229. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20230. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20231. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20232. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20233. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20234. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20235. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20236. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20237. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20238. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20239. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20240. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20241. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20242. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20243. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20244. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20245. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20246. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20247. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20248. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20249. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20250. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20251. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20252. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20253. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20254. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20255. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20256. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20257. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20258. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20259. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20260. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20261. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20262. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20263. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20264. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20265. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20266. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20267. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20268. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20269. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20270. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20271. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20272. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20273. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20274. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20275. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20276. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20277. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20278. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20279. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20280. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20281. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20282. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20283. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20284. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20285. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20286. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20287. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20288. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20289. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20290. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20291. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20292. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20293. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20294. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20295. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20296. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20297. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20298. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20299. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20300. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20301. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20302. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20303. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20304. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20305. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20306. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20307. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20308. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20309. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20310. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20311. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20312. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20313. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20314. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20315. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20316. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20317. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20318. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20319. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20320. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20321. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20322. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20323. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20324. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20325. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20326. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20327. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20328. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20329. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20330. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20331. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20332. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20333. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20334. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20335. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20336. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20337. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20338. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20339. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20340. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20341. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20342. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20343. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20344. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20345. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20346. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20347. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20348. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20349. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20350. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20351. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20352. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20353. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20354. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20355. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20356. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20357. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20358. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20359. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  20360. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20361. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  20362. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20363. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20364. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20365. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20366. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20367. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20368. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20369. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20370. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20371. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20372. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20373. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20374. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20375. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20376. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20377. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20378. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20379. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20380. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20381. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20382. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20383. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20384. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20385. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20386. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20387. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20388. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20389. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20390. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20391. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20392. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20393. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20394. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20395. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20396. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20397. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20398. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20399. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20400. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20401. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20402. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20403. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20404. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20405. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20406. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20407. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20408. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20409. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20410. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20411. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20412. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20413. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20414. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20415. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20416. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20417. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20418. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20419. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20420. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20421. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20422. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20423. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20424. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20425. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20426. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20427. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20428. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20429. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20430. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20431. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20432. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20433. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20434. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20435. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20436. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20437. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20438. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20439. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20440. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20441. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20442. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20443. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20444. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20445. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20446. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20447. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20448. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20449. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20450. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20451. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20452. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20453. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20454. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20455. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20456. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20457. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20458. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20459. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  20460. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  20461. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20462. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20463. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20464. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20465. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20466. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20467. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20468. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20469. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20470. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20471. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20472. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20473. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20474. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20475. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20476. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20477. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  20478. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  20479. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20480. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20481. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20482. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20483. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20484. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20485. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20486. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20487. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20488. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20489. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20490. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20491. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20492. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20493. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20494. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20495. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  20496. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20497. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20498. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20499. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20500. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20501. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20502. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20503. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20504. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20505. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20506. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20507. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20508. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20509. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20510. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20511. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20512. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  20513. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20514. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20515. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20516. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20517. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20518. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20519. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20520. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20521. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20522. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20523. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20524. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20525. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20526. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20527. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20528. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20529. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20530. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20531. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20532. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20533. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20534. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20535. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20536. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20537. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20538. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20539. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20540. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20541. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20542. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20543. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20544. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20545. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20546. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20547. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20548. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  20549. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20550. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  20551. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  20552. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  20553. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  20554. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  20555. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  20556. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  20557. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  20558. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  20559. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  20560. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  20561. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  20562. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  20563. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  20564. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  20565. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  20566. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  20567. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20568. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20569. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20570. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20571. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20572. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20573. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20574. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20575. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20576. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20577. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20578. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20579. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20580. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20581. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20582. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20583. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  20584. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  20585. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20586. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20587. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20588. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20589. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20590. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20591. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20592. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20593. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20594. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20595. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20596. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20597. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20598. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20599. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20600. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20601. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  20602. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  20603. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20604. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20605. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20606. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20607. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20608. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20609. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20610. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20611. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20612. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20613. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20614. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20615. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20616. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20617. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20618. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20619. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  20620. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20621. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20622. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20623. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20624. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20625. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20626. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20627. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20628. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20629. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20630. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20631. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20632. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20633. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20634. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20635. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20636. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  20637. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20638. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20639. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20640. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20641. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20642. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20643. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20644. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20645. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20646. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20647. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20648. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20649. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20650. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20651. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20652. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20653. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  20654. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20655. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20656. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20657. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20658. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20659. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  20660. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20661. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20662. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20663. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  20664. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20665. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20666. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20667. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20668. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20669. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  20670. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20671. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20672. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20673. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20674. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20675. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  20676. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20677. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20678. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20679. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20680. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20681. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  20682. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20683. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20684. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20685. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20686. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20687. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  20688. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20689. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20690. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20691. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20692. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20693. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  20694. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  20695. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20696. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20697. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20698. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20699. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  20700. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20701. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20702. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20703. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20704. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20705. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  20706. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20707. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20708. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20709. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20710. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20711. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  20712. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20713. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20714. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20715. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20716. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20717. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  20718. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20719. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20720. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20721. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20722. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20723. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  20724. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20725. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20726. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20727. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20728. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20729. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  20730. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20731. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20732. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20733. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20734. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20735. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  20736. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20737. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20738. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20739. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20740. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20741. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  20742. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20743. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20744. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20745. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20746. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20747. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  20748. {"HDMI", NULL, "HDMI_DL_HL"},
  20749. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20750. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20751. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20752. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20753. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20754. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  20755. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20756. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20757. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20758. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20759. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20760. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  20761. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20762. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20763. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20764. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20765. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20766. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  20767. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20768. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20769. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20770. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20771. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20772. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  20773. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20774. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20775. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20776. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20777. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20778. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  20779. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20780. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20781. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20782. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20783. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  20784. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20785. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20786. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20787. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20788. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  20789. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20790. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  20791. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20792. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20793. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  20794. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20795. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20796. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  20797. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20798. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20799. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20800. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20801. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20802. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20803. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  20804. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  20805. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  20806. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  20807. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20808. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20809. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20810. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20811. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20812. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20813. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  20814. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  20815. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  20816. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20817. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  20818. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20819. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20820. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20821. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20822. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20823. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20824. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20825. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20826. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20827. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20828. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20829. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20830. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20831. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20832. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20833. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20834. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20835. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20836. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20837. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20838. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20839. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20840. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20841. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20842. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20843. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20844. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20845. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20846. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20847. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20848. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20849. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20850. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20851. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20852. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20853. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  20854. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  20855. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  20856. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20857. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  20858. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20859. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20860. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20861. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20862. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20863. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20864. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20865. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20866. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20867. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20868. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20869. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20870. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20871. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20872. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20873. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20874. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20875. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20876. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20877. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20878. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20879. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20880. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20881. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20882. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20883. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20884. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20885. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20886. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20887. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20888. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20889. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20890. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20891. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20892. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  20893. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  20894. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  20895. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  20896. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  20897. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  20898. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  20899. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  20900. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  20901. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  20902. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  20903. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  20904. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  20905. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  20906. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  20907. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  20908. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  20909. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  20910. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  20911. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  20912. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  20913. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  20914. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  20915. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  20916. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  20917. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  20918. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  20919. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  20920. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  20921. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  20922. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  20923. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  20924. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  20925. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  20926. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  20927. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  20928. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  20929. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  20930. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  20931. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  20932. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  20933. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  20934. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  20935. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  20936. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  20937. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  20938. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  20939. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  20940. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  20941. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  20942. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  20943. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  20944. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  20945. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  20946. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  20947. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  20948. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  20949. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  20950. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  20951. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  20952. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  20953. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  20954. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  20955. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  20956. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  20957. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  20958. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  20959. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  20960. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  20961. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  20962. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  20963. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  20964. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  20965. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  20966. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  20967. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  20968. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  20969. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  20970. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  20971. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  20972. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  20973. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  20974. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  20975. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  20976. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  20977. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  20978. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  20979. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  20980. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  20981. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  20982. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  20983. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  20984. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  20985. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  20986. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  20987. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  20988. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  20989. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  20990. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  20991. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20992. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20993. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20994. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20995. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20996. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20997. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20998. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20999. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21000. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21001. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21002. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21003. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  21004. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21005. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21006. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21007. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21008. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21009. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21010. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21011. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21012. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21013. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21014. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21015. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21016. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  21017. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21018. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21019. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21020. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21021. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21022. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21023. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21024. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21025. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21026. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21027. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21028. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21029. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  21030. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21031. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21032. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21033. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21034. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21035. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21036. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21037. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21038. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21039. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21040. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21041. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21042. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  21043. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21044. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21045. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21046. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21047. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21048. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21049. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21050. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21051. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21052. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21053. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21054. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21055. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  21056. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21057. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21058. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21059. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21060. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21061. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21062. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21063. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21064. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21065. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21066. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  21067. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21068. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21069. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21070. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21071. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21072. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21073. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21074. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21075. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21076. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21077. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  21078. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21079. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21080. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21081. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21082. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21083. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21084. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21085. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21086. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21087. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21088. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  21089. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  21090. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  21091. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  21092. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  21093. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  21094. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  21095. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  21096. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  21097. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  21098. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  21099. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  21100. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  21101. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  21102. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  21103. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  21104. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  21105. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  21106. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  21107. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  21108. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  21109. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  21110. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  21111. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  21112. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  21113. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  21114. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  21115. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  21116. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  21117. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  21118. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  21119. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  21120. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  21121. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  21122. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  21123. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  21124. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  21125. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  21126. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  21127. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  21128. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  21129. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  21130. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  21131. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  21132. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  21133. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  21134. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  21135. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  21136. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  21137. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  21138. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  21139. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  21140. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  21141. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  21142. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  21143. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  21144. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  21145. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  21146. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  21147. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  21148. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  21149. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  21150. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  21151. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  21152. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  21153. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  21154. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  21155. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  21156. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  21157. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  21158. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  21159. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  21160. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  21161. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  21162. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  21163. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  21164. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  21165. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  21166. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  21167. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  21168. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  21169. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  21170. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  21171. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  21172. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  21173. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  21174. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  21175. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  21176. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  21177. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  21178. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  21179. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  21180. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  21181. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  21182. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  21183. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  21184. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  21185. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  21186. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  21187. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  21188. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  21189. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  21190. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  21191. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  21192. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  21193. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  21194. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  21195. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21196. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21197. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21198. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21199. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21200. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21201. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21202. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21203. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21204. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21205. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21206. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21207. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21208. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21209. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21210. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21211. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21212. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21213. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21214. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21215. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  21216. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21217. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21218. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21219. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21220. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21221. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21222. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21223. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21224. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21225. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21226. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21227. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21228. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21229. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21230. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21231. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21232. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21233. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21234. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21235. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21236. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  21237. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21238. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21239. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21240. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21241. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21242. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21243. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21244. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21245. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21246. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21247. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21248. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21249. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21250. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21251. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21252. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21253. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21254. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21255. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21256. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21257. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  21258. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21259. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21260. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21261. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21262. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21263. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21264. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21265. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21266. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21267. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21268. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21269. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21270. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21271. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21272. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21273. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21274. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21275. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21276. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21277. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21278. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  21279. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21280. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21281. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21282. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21283. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21284. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21285. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21286. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21287. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21288. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21289. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21290. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21291. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21292. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21293. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21294. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21295. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21296. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21297. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21298. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21299. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  21300. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21301. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21302. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21303. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21304. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21305. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21306. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21307. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21308. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21309. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21310. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21311. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21312. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21313. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21314. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21315. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21316. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21317. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21318. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21319. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21320. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  21321. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21322. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21323. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21324. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21325. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21326. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21327. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21328. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21329. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21330. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21331. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21332. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21333. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21334. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21335. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21336. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21337. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21338. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21339. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21340. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21341. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  21342. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21343. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21344. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21345. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21346. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21347. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21348. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21349. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21350. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21351. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21352. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21353. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21354. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21355. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21356. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21357. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21358. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21359. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21360. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21361. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21362. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  21363. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  21364. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  21365. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21366. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21367. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21368. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21369. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21370. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21371. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21372. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21373. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21374. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21375. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21376. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21377. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21378. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21379. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21380. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21381. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21382. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21383. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21384. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21385. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  21386. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21387. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21388. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21389. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21390. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21391. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21392. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21393. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21394. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21395. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21396. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21397. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21398. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21399. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21400. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21401. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21402. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21403. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21404. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21405. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21406. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  21407. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21408. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21409. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21410. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21411. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21412. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21413. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21414. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21415. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21416. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21417. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21418. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21419. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21420. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21421. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21422. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21423. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21424. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21425. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21426. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21427. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  21428. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21429. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21430. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21431. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21432. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21433. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21434. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21435. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21436. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21437. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21438. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21439. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21440. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21441. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21442. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21443. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21444. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21445. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21446. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21447. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21448. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  21449. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21450. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21451. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21452. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21453. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21454. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21455. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21456. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21457. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21458. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21459. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21460. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21461. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21462. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21463. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21464. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21465. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21466. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21467. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21468. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21469. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  21470. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21471. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21472. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21473. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21474. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21475. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21476. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21477. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21478. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21479. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21480. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21481. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21482. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21483. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21484. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21485. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21486. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21487. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21488. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21489. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21490. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  21491. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21492. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21493. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21494. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21495. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21496. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21497. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21498. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21499. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21500. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21501. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21502. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21503. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21504. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21505. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21506. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21507. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21508. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21509. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21510. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21511. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  21512. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21513. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21514. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21515. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21516. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21517. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21518. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21519. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21520. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21521. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21522. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21523. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21524. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21525. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21526. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21527. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21528. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21529. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21530. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21531. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21532. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  21533. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21534. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21535. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21536. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21537. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21538. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21539. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21540. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21541. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21542. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21543. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21544. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21545. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21546. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21547. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21548. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21549. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21550. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21551. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21552. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21553. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  21554. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21555. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21556. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21557. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21558. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21559. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21560. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21561. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21562. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21563. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21564. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21565. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21566. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21567. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21568. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21569. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21570. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21571. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21572. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21573. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21574. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  21575. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21576. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21577. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21578. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21579. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21580. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21581. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21582. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21583. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21584. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21585. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21586. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21587. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21588. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21589. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21590. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21591. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21592. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21593. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21594. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21595. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  21596. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21597. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21598. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21599. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21600. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21601. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21602. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21603. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21604. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21605. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21606. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21607. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21608. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21609. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21610. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21611. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21612. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21613. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21614. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21615. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21616. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  21617. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21618. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21619. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21620. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21621. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21622. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21623. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21624. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21625. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21626. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21627. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21628. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  21629. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21630. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21631. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21632. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21633. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21634. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21635. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21636. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21637. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21638. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21639. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21640. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  21641. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21642. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21643. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21644. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21645. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21646. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21647. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21648. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21649. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21650. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21651. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21652. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21653. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21654. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21655. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21656. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21657. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21658. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21659. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21660. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21661. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21662. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21663. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21664. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  21665. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21666. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21667. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  21668. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  21669. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  21670. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  21671. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  21672. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  21673. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21674. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21675. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21676. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21677. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21678. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21679. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  21680. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21681. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21682. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21683. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21684. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  21685. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21686. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21687. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21688. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  21689. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21690. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21691. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21692. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  21693. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21694. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21695. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21696. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  21697. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21698. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21699. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21700. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21701. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21702. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21703. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21704. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21705. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21706. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  21707. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21708. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21709. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21710. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21711. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21712. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21713. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21714. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21715. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21716. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  21717. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21718. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21719. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21720. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21721. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21722. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21723. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21724. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21725. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21726. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21727. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21728. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  21729. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21730. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21731. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21732. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21733. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21734. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21735. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21736. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21737. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21738. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21739. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21740. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  21741. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21742. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21743. {"STUB_RX", NULL, "STUB_RX Mixer"},
  21744. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21745. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21746. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  21747. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21748. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21749. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  21750. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21751. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21752. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21753. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21754. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21755. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  21756. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21757. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21758. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21759. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21760. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21761. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  21762. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21763. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21764. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21765. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  21766. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21767. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21768. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  21769. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  21770. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21771. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  21772. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  21773. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  21774. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  21775. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21776. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21777. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21778. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21779. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21780. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21781. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21782. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21783. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21784. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21785. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21786. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21787. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21788. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  21789. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21790. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  21791. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21792. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  21793. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  21794. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  21795. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21796. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  21797. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21798. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21799. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  21800. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21801. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21802. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21803. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21804. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21805. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21806. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21807. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21808. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21809. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21810. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  21811. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21812. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21813. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21814. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21815. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21816. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21817. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21818. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21819. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21820. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  21821. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21822. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21823. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21824. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21825. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21826. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21827. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21828. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  21829. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21830. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21831. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21832. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21833. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21834. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21835. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21836. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21837. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21838. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  21839. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21840. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21841. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21842. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21843. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21844. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21845. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21846. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  21847. /* Backend Enablement */
  21848. {"BE_OUT", NULL, "PRI_I2S_RX"},
  21849. {"BE_OUT", NULL, "SEC_I2S_RX"},
  21850. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  21851. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  21852. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  21853. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21854. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  21855. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  21856. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  21857. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  21858. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  21859. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  21860. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  21861. {"BE_OUT", NULL, "HDMI"},
  21862. {"BE_OUT", NULL, "DISPLAY_PORT"},
  21863. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  21864. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  21865. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  21866. {"BE_OUT", NULL, "MI2S_RX"},
  21867. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  21868. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  21869. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  21870. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  21871. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  21872. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  21873. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  21874. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  21875. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  21876. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  21877. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  21878. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  21879. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  21880. {"BE_OUT", NULL, "INT_FM_RX"},
  21881. {"BE_OUT", NULL, "PCM_RX"},
  21882. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21883. {"BE_OUT", NULL, "AUX_PCM_RX"},
  21884. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  21885. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  21886. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  21887. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  21888. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  21889. {"BE_OUT", NULL, "INT_FM_RX"},
  21890. {"BE_OUT", NULL, "PCM_RX"},
  21891. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21892. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  21893. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  21894. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  21895. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  21896. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  21897. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  21898. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  21899. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  21900. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  21901. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  21902. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  21903. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  21904. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  21905. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  21906. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  21907. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  21908. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  21909. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  21910. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  21911. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  21912. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  21913. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  21914. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  21915. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  21916. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  21917. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  21918. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  21919. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  21920. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  21921. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  21922. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  21923. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  21924. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  21925. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  21926. {"PRI_I2S_TX", NULL, "BE_IN"},
  21927. {"MI2S_TX", NULL, "BE_IN"},
  21928. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  21929. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  21930. {"PRI_MI2S_TX", NULL, "BE_IN"},
  21931. {"TERT_MI2S_TX", NULL, "BE_IN"},
  21932. {"INT0_MI2S_TX", NULL, "BE_IN"},
  21933. {"INT2_MI2S_TX", NULL, "BE_IN"},
  21934. {"INT3_MI2S_TX", NULL, "BE_IN"},
  21935. {"INT4_MI2S_TX", NULL, "BE_IN"},
  21936. {"INT5_MI2S_TX", NULL, "BE_IN"},
  21937. {"SEC_MI2S_TX", NULL, "BE_IN"},
  21938. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  21939. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  21940. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  21941. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  21942. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  21943. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  21944. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  21945. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  21946. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  21947. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  21948. {"USB_AUDIO_TX", NULL, "BE_IN" },
  21949. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  21950. {"INT_FM_TX", NULL, "BE_IN"},
  21951. {"PCM_TX", NULL, "BE_IN"},
  21952. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21953. {"BE_OUT", NULL, "STUB_RX"},
  21954. {"STUB_TX", NULL, "BE_IN"},
  21955. {"STUB_1_TX", NULL, "BE_IN"},
  21956. {"BE_OUT", NULL, "AUX_PCM_RX"},
  21957. {"AUX_PCM_TX", NULL, "BE_IN"},
  21958. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  21959. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  21960. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  21961. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  21962. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  21963. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  21964. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  21965. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  21966. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21967. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21968. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  21969. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  21970. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  21971. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  21972. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  21973. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  21974. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  21975. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  21976. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  21977. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  21978. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  21979. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  21980. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  21981. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  21982. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  21983. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  21984. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  21985. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  21986. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  21987. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  21988. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  21989. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  21990. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  21991. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  21992. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  21993. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  21994. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  21995. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  21996. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  21997. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  21998. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  21999. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  22000. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  22001. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  22002. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  22003. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  22004. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  22005. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  22006. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  22007. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  22008. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  22009. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  22010. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  22011. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  22012. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  22013. };
  22014. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  22015. struct snd_pcm_hw_params *params)
  22016. {
  22017. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  22018. unsigned int be_id = rtd->dai_link->id;
  22019. if (be_id >= MSM_BACKEND_DAI_MAX) {
  22020. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  22021. return -EINVAL;
  22022. }
  22023. mutex_lock(&routing_lock);
  22024. msm_bedais[be_id].sample_rate = params_rate(params);
  22025. msm_bedais[be_id].channel = params_channels(params);
  22026. msm_bedais[be_id].format = params_format(params);
  22027. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  22028. __func__, msm_bedais[be_id].sample_rate,
  22029. msm_bedais[be_id].format, be_id);
  22030. mutex_unlock(&routing_lock);
  22031. return 0;
  22032. }
  22033. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  22034. {
  22035. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  22036. unsigned int be_id = rtd->dai_link->id;
  22037. int i, session_type, path_type, topology;
  22038. struct msm_pcm_routing_bdai_data *bedai;
  22039. struct msm_pcm_routing_fdai_data *fdai;
  22040. pr_debug("%s: substream->pcm->id:%s\n",
  22041. __func__, substream->pcm->id);
  22042. if (be_id >= MSM_BACKEND_DAI_MAX) {
  22043. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  22044. return -EINVAL;
  22045. }
  22046. bedai = &msm_bedais[be_id];
  22047. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  22048. 0 : 1);
  22049. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  22050. path_type = ADM_PATH_PLAYBACK;
  22051. else
  22052. path_type = ADM_PATH_LIVE_REC;
  22053. mutex_lock(&routing_lock);
  22054. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  22055. if (!is_mm_lsm_fe_id(i))
  22056. continue;
  22057. fdai = &fe_dai_map[i][session_type];
  22058. if (fdai->strm_id != INVALID_SESSION) {
  22059. int idx;
  22060. int port_id;
  22061. unsigned long copp =
  22062. session_copp_map[i][session_type][be_id];
  22063. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  22064. if (test_bit(idx, &copp))
  22065. break;
  22066. if (idx >= MAX_COPPS_PER_PORT) {
  22067. pr_debug("%s: copp idx is invalid, exiting\n",
  22068. __func__);
  22069. continue;
  22070. }
  22071. fdai->be_srate = bedai->sample_rate;
  22072. port_id = get_port_id(bedai->port_id);
  22073. topology = adm_get_topology_for_port_copp_idx(port_id,
  22074. idx);
  22075. msm_routing_unload_topology(topology);
  22076. adm_close(port_id, fdai->perf_mode, idx);
  22077. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  22078. __func__, copp, i, session_type, be_id,
  22079. topology);
  22080. clear_bit(idx,
  22081. &session_copp_map[i][session_type][be_id]);
  22082. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  22083. (fdai->passthr_mode == LEGACY_PCM))
  22084. msm_pcm_routing_deinit_pp(port_id,
  22085. topology);
  22086. }
  22087. }
  22088. bedai->active = 0;
  22089. bedai->sample_rate = 0;
  22090. bedai->channel = 0;
  22091. mutex_unlock(&routing_lock);
  22092. return 0;
  22093. }
  22094. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  22095. {
  22096. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  22097. unsigned int be_id = rtd->dai_link->id;
  22098. int i, path_type, topology;
  22099. int session_type = INVALID_SESSION;
  22100. struct msm_pcm_routing_bdai_data *bedai;
  22101. u32 channels, sample_rate;
  22102. uint16_t bits_per_sample = 16, voc_path_type;
  22103. struct msm_pcm_routing_fdai_data *fdai;
  22104. u32 session_id;
  22105. struct media_format_info voc_be_media_format;
  22106. bool is_lsm;
  22107. pr_debug("%s: substream->pcm->id:%s\n",
  22108. __func__, substream->pcm->id);
  22109. if (be_id >= MSM_BACKEND_DAI_MAX) {
  22110. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  22111. return -EINVAL;
  22112. }
  22113. bedai = &msm_bedais[be_id];
  22114. mutex_lock(&routing_lock);
  22115. if (bedai->active == 1)
  22116. goto done; /* Ignore prepare if back-end already active */
  22117. /* AFE port is not active at this point. However, still
  22118. * go ahead setting active flag under the notion that
  22119. * QDSP6 is able to handle ADM starting before AFE port
  22120. * is started.
  22121. */
  22122. bedai->active = 1;
  22123. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  22124. if (!(is_mm_lsm_fe_id(i) &&
  22125. route_check_fe_id_adm_support(i)))
  22126. continue;
  22127. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  22128. SESSION_TYPE_RX : SESSION_TYPE_TX;
  22129. fdai = &fe_dai_map[i][session_type];
  22130. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  22131. if (fdai->passthr_mode != LEGACY_PCM)
  22132. path_type = ADM_PATH_COMPRESSED_RX;
  22133. else
  22134. path_type = ADM_PATH_PLAYBACK;
  22135. } else {
  22136. if ((fdai->passthr_mode != LEGACY_PCM) &&
  22137. (fdai->passthr_mode != LISTEN))
  22138. path_type = ADM_PATH_COMPRESSED_TX;
  22139. else
  22140. path_type = ADM_PATH_LIVE_REC;
  22141. }
  22142. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  22143. (i <= MSM_FRONTEND_DAI_LSM8);
  22144. if (fdai->strm_id != INVALID_SESSION) {
  22145. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  22146. int port_id = get_port_id(bedai->port_id);
  22147. if (session_type == SESSION_TYPE_TX &&
  22148. fdai->be_srate &&
  22149. (fdai->be_srate != bedai->sample_rate)) {
  22150. pr_debug("%s: flush strm %d diff BE rates\n",
  22151. __func__,
  22152. fdai->strm_id);
  22153. if (fdai->event_info.event_func)
  22154. fdai->event_info.event_func(
  22155. MSM_PCM_RT_EVT_BUF_RECFG,
  22156. fdai->event_info.priv_data);
  22157. fdai->be_srate = 0; /* might not need it */
  22158. }
  22159. bits_per_sample = msm_routing_get_bit_width(
  22160. bedai->format);
  22161. app_type =
  22162. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  22163. if (app_type && is_lsm) {
  22164. app_type_idx =
  22165. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  22166. sample_rate =
  22167. fe_dai_app_type_cfg[i][session_type][be_id]
  22168. .sample_rate;
  22169. bits_per_sample =
  22170. lsm_app_type_cfg[app_type_idx].bit_width;
  22171. } else if (app_type) {
  22172. app_type_idx =
  22173. msm_pcm_routing_get_app_type_idx(app_type);
  22174. sample_rate =
  22175. fe_dai_app_type_cfg[i][session_type]
  22176. [be_id].sample_rate;
  22177. bits_per_sample =
  22178. app_type_cfg[app_type_idx].bit_width;
  22179. } else
  22180. sample_rate = bedai->sample_rate;
  22181. /*
  22182. * check if ADM needs to be configured with different
  22183. * channel mapping than backend
  22184. */
  22185. if (!bedai->adm_override_ch)
  22186. channels = bedai->channel;
  22187. else
  22188. channels = bedai->adm_override_ch;
  22189. acdb_dev_id =
  22190. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  22191. topology = msm_routing_get_adm_topology(i, session_type,
  22192. be_id);
  22193. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  22194. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  22195. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  22196. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  22197. copp_idx = adm_open(port_id, path_type,
  22198. sample_rate, channels, topology,
  22199. fdai->perf_mode, bits_per_sample,
  22200. app_type, acdb_dev_id,
  22201. session_type);
  22202. if ((copp_idx < 0) ||
  22203. (copp_idx >= MAX_COPPS_PER_PORT)) {
  22204. pr_err("%s: adm open failed\n", __func__);
  22205. mutex_unlock(&routing_lock);
  22206. return -EINVAL;
  22207. }
  22208. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  22209. __func__, i, session_type, be_id);
  22210. set_bit(copp_idx,
  22211. &session_copp_map[i][session_type][be_id]);
  22212. if (msm_is_resample_needed(
  22213. sample_rate,
  22214. bedai->sample_rate))
  22215. adm_copp_mfc_cfg(port_id, copp_idx,
  22216. bedai->sample_rate);
  22217. msm_pcm_routing_build_matrix(i, session_type, path_type,
  22218. fdai->perf_mode, fdai->passthr_mode);
  22219. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  22220. (fdai->passthr_mode == LEGACY_PCM))
  22221. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  22222. topology, channels);
  22223. }
  22224. }
  22225. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  22226. session_id = msm_pcm_routing_get_voc_sessionid(i);
  22227. if (session_id) {
  22228. pr_debug("%s voice session_id: 0x%x\n", __func__,
  22229. session_id);
  22230. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  22231. voc_path_type = RX_PATH;
  22232. else
  22233. voc_path_type = TX_PATH;
  22234. voc_set_route_flag(session_id, voc_path_type, 1);
  22235. memset(&voc_be_media_format, 0,
  22236. sizeof(struct media_format_info));
  22237. voc_be_media_format.port_id = bedai->port_id;
  22238. voc_be_media_format.num_channels = bedai->channel;
  22239. voc_be_media_format.sample_rate = bedai->sample_rate;
  22240. voc_be_media_format.bits_per_sample = bedai->format;
  22241. /* Defaulting this to 1 for voice call usecases */
  22242. voc_be_media_format.channel_mapping[0] = 1;
  22243. voc_set_device_config(session_id, voc_path_type,
  22244. &voc_be_media_format);
  22245. if (voc_get_route_flag(session_id, RX_PATH) &&
  22246. voc_get_route_flag(session_id, TX_PATH))
  22247. voc_enable_device(session_id);
  22248. }
  22249. }
  22250. /* Check if backend is an external ec ref port and set as needed */
  22251. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  22252. memset(&voc_be_media_format, 0,
  22253. sizeof(struct media_format_info));
  22254. /* Get format info for ec ref port from msm_bedais[] */
  22255. voc_be_media_format.port_id = bedai->port_id;
  22256. voc_be_media_format.num_channels = bedai->channel;
  22257. voc_be_media_format.bits_per_sample = bedai->format;
  22258. voc_be_media_format.sample_rate = bedai->sample_rate;
  22259. /* Defaulting this to 1 for voice call usecases */
  22260. voc_be_media_format.channel_mapping[0] = 1;
  22261. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  22262. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  22263. __func__, voc_be_media_format.port_id,
  22264. voc_be_media_format.num_channels,
  22265. voc_be_media_format.bits_per_sample,
  22266. voc_be_media_format.sample_rate);
  22267. }
  22268. done:
  22269. mutex_unlock(&routing_lock);
  22270. return 0;
  22271. }
  22272. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  22273. int fe_id)
  22274. {
  22275. int index, topo_id, be_idx;
  22276. unsigned long pp_config = 0;
  22277. bool mute_on;
  22278. int latency, session_type;
  22279. bool compr_passthr_mode = true;
  22280. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  22281. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  22282. pr_err("%s: Device pp params on invalid port %d\n",
  22283. __func__, port_id);
  22284. return -EINVAL;
  22285. }
  22286. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22287. if (port_id == msm_bedais[be_idx].port_id)
  22288. break;
  22289. }
  22290. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22291. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  22292. return -EINVAL;
  22293. }
  22294. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  22295. if (msm_bedais_pp_params[index].port_id == port_id)
  22296. break;
  22297. }
  22298. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  22299. pr_err("%s: Invalid backend pp params index %d\n",
  22300. __func__, index);
  22301. return -EINVAL;
  22302. }
  22303. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  22304. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  22305. pr_err("%s: Invalid passthrough topology 0x%x\n",
  22306. __func__, topo_id);
  22307. return -EINVAL;
  22308. }
  22309. session_type =
  22310. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  22311. SESSION_TYPE_RX : SESSION_TYPE_TX;
  22312. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  22313. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  22314. compr_passthr_mode = false;
  22315. pp_config = msm_bedais_pp_params[index].pp_params_config;
  22316. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  22317. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  22318. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  22319. mute_on = msm_bedais_pp_params[index].mute_on;
  22320. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22321. adm_send_compressed_device_mute(port_id,
  22322. copp_idx,
  22323. mute_on);
  22324. }
  22325. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  22326. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  22327. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  22328. &pp_config);
  22329. latency = msm_bedais_pp_params[index].latency;
  22330. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22331. adm_send_compressed_device_latency(port_id,
  22332. copp_idx,
  22333. latency);
  22334. }
  22335. return 0;
  22336. }
  22337. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  22338. {
  22339. uint32_t topology = NULL_COPP_TOPOLOGY;
  22340. void *cal_info = NULL;
  22341. uint32_t size = 0;
  22342. /* Retrieve cal_info size from cal data*/
  22343. size = data_size - sizeof(struct audio_cal_type_basic);
  22344. cal_info = kzalloc(size, GFP_KERNEL);
  22345. if (!cal_info)
  22346. goto done;
  22347. memcpy(cal_info,
  22348. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  22349. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  22350. kfree(cal_info);
  22351. cal_info = NULL;
  22352. done:
  22353. pr_debug("%s: Using topology %d\n", __func__, topology);
  22354. return topology;
  22355. }
  22356. static void msm_routing_load_topology(size_t data_size, void *data)
  22357. {
  22358. uint32_t topology_id;
  22359. int ret = -EINVAL;
  22360. topology_id = msm_routing_get_topology(data_size, data);
  22361. if (topology_id != NULL_COPP_TOPOLOGY)
  22362. ret = q6core_load_unload_topo_modules(topology_id,
  22363. CORE_LOAD_TOPOLOGY);
  22364. if (ret < 0)
  22365. pr_debug("%s %d load topology failed\n",
  22366. __func__, topology_id);
  22367. }
  22368. static void msm_routing_unload_topology(uint32_t topology_id)
  22369. {
  22370. int ret = -EINVAL;
  22371. if (topology_id != NULL_COPP_TOPOLOGY)
  22372. ret = q6core_load_unload_topo_modules(topology_id,
  22373. CORE_UNLOAD_TOPOLOGY);
  22374. if (ret < 0)
  22375. pr_debug("%s %d unload topology failed\n",
  22376. __func__, topology_id);
  22377. }
  22378. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  22379. struct snd_ctl_elem_value *ucontrol)
  22380. {
  22381. int pp_id = ucontrol->value.integer.value[0];
  22382. int port_id = 0;
  22383. int index, be_idx, i, topo_id, idx;
  22384. bool mute;
  22385. int latency, session_type;
  22386. bool compr_passthr_mode = true;
  22387. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  22388. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22389. port_id = msm_bedais[be_idx].port_id;
  22390. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  22391. break;
  22392. }
  22393. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22394. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  22395. return -EINVAL;
  22396. }
  22397. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  22398. if (msm_bedais_pp_params[index].port_id == port_id)
  22399. break;
  22400. }
  22401. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  22402. pr_err("%s: Invalid pp params backend index %d\n",
  22403. __func__, index);
  22404. return -EINVAL;
  22405. }
  22406. session_type =
  22407. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  22408. SESSION_TYPE_RX : SESSION_TYPE_TX;
  22409. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  22410. MSM_FRONTEND_DAI_MM_SIZE) {
  22411. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  22412. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  22413. compr_passthr_mode = false;
  22414. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22415. unsigned long copp =
  22416. session_copp_map[i]
  22417. [SESSION_TYPE_RX][be_idx];
  22418. if (!test_bit(idx, &copp))
  22419. continue;
  22420. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  22421. idx);
  22422. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  22423. continue;
  22424. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  22425. __func__, port_id, copp, msm_bedais[be_idx].active,
  22426. fe_dai_map[i][session_type].passthr_mode);
  22427. switch (pp_id) {
  22428. case ADM_PP_PARAM_MUTE_ID:
  22429. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  22430. mute = ucontrol->value.integer.value[1] ? true : false;
  22431. msm_bedais_pp_params[index].mute_on = mute;
  22432. set_bit(ADM_PP_PARAM_MUTE_BIT,
  22433. &msm_bedais_pp_params[index].pp_params_config);
  22434. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22435. adm_send_compressed_device_mute(port_id,
  22436. idx, mute);
  22437. break;
  22438. case ADM_PP_PARAM_LATENCY_ID:
  22439. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  22440. msm_bedais_pp_params[index].latency =
  22441. ucontrol->value.integer.value[1];
  22442. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  22443. &msm_bedais_pp_params[index].pp_params_config);
  22444. latency = msm_bedais_pp_params[index].latency =
  22445. ucontrol->value.integer.value[1];
  22446. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22447. adm_send_compressed_device_latency(port_id,
  22448. idx, latency);
  22449. break;
  22450. default:
  22451. pr_info("%s, device pp param %d not supported\n",
  22452. __func__, pp_id);
  22453. break;
  22454. }
  22455. }
  22456. }
  22457. return 0;
  22458. }
  22459. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  22460. struct snd_ctl_elem_value *ucontrol)
  22461. {
  22462. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  22463. return 0;
  22464. }
  22465. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  22466. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  22467. 0, 3, msm_routing_get_device_pp_params_mixer,
  22468. msm_routing_put_device_pp_params_mixer),
  22469. };
  22470. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  22471. struct snd_ctl_elem_value *ucontrol)
  22472. {
  22473. ucontrol->value.integer.value[0] =
  22474. core_get_license_status(ASM_MEDIA_FMT_APTX);
  22475. pr_debug("%s: status %ld\n", __func__,
  22476. ucontrol->value.integer.value[0]);
  22477. return 0;
  22478. }
  22479. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  22480. struct snd_ctl_elem_value *ucontrol)
  22481. {
  22482. int32_t status = 0;
  22483. status = core_set_license(ucontrol->value.integer.value[0],
  22484. APTX_CLASSIC_DEC_LICENSE_ID);
  22485. pr_debug("%s: status %d\n", __func__, status);
  22486. return status;
  22487. }
  22488. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  22489. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  22490. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  22491. msm_aptx_dec_license_control_put),
  22492. };
  22493. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  22494. struct snd_ctl_elem_info *uinfo)
  22495. {
  22496. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22497. uinfo->count = sizeof(be_dai_name_table);
  22498. return 0;
  22499. }
  22500. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  22501. unsigned int __user *bytes,
  22502. unsigned int size)
  22503. {
  22504. int i;
  22505. int ret = 0;
  22506. if (size < sizeof(be_dai_name_table)) {
  22507. pr_err("%s: invalid size %d requested, returning\n",
  22508. __func__, size);
  22509. ret = -EINVAL;
  22510. goto done;
  22511. }
  22512. /*
  22513. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  22514. * needed when adding new backends
  22515. */
  22516. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  22517. be_dai_name_table[i].be_id = i;
  22518. strlcpy(be_dai_name_table[i].be_name,
  22519. msm_bedais[i].name,
  22520. LPASS_BE_NAME_MAX_LENGTH);
  22521. }
  22522. ret = copy_to_user(bytes, &be_dai_name_table,
  22523. sizeof(be_dai_name_table));
  22524. if (ret) {
  22525. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  22526. ret = -EFAULT;
  22527. }
  22528. done:
  22529. return ret;
  22530. }
  22531. static const struct snd_kcontrol_new
  22532. msm_routing_be_dai_name_table_mixer_controls[] = {
  22533. {
  22534. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  22535. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  22536. .info = msm_routing_be_dai_name_table_info,
  22537. .name = "Backend DAI Name Table",
  22538. .tlv.c = snd_soc_bytes_tlv_callback,
  22539. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  22540. .max = sizeof(be_dai_name_table),
  22541. .get = msm_routing_be_dai_name_table_tlv_get,
  22542. }
  22543. },
  22544. };
  22545. static int msm_routing_stereo_channel_reverse_control_get(
  22546. struct snd_kcontrol *kcontrol,
  22547. struct snd_ctl_elem_value *ucontrol)
  22548. {
  22549. ucontrol->value.integer.value[0] = swap_ch;
  22550. pr_debug("%s: Swap channel value: %ld\n", __func__,
  22551. ucontrol->value.integer.value[0]);
  22552. return 0;
  22553. }
  22554. static int msm_routing_stereo_channel_reverse_control_put(
  22555. struct snd_kcontrol *kcontrol,
  22556. struct snd_ctl_elem_value *ucontrol)
  22557. {
  22558. int i, idx, be_index, port_id;
  22559. int ret = 0;
  22560. unsigned long copp;
  22561. pr_debug("%s Swap channel value:%ld\n", __func__,
  22562. ucontrol->value.integer.value[0]);
  22563. swap_ch = ucontrol->value.integer.value[0];
  22564. mutex_lock(&routing_lock);
  22565. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  22566. port_id = msm_bedais[be_index].port_id;
  22567. if (!msm_bedais[be_index].active)
  22568. continue;
  22569. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  22570. MSM_FRONTEND_DAI_MM_SIZE) {
  22571. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  22572. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22573. if (!test_bit(idx, &copp))
  22574. continue;
  22575. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  22576. __func__, port_id, idx);
  22577. ret = adm_swap_speaker_channels(
  22578. port_id, idx,
  22579. msm_bedais[be_index].sample_rate,
  22580. swap_ch);
  22581. if (ret) {
  22582. pr_err("%s:Swap_channel failed, err=%d\n",
  22583. __func__, ret);
  22584. goto done;
  22585. }
  22586. }
  22587. }
  22588. }
  22589. done:
  22590. mutex_unlock(&routing_lock);
  22591. return ret;
  22592. }
  22593. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  22594. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  22595. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  22596. msm_routing_stereo_channel_reverse_control_put),
  22597. };
  22598. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  22599. struct snd_ctl_elem_info *uinfo)
  22600. {
  22601. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  22602. uinfo->count = 1;
  22603. return 0;
  22604. }
  22605. static int msm_routing_instance_id_support_put(
  22606. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  22607. {
  22608. bool supported = ucontrol->value.integer.value[0] ? true : false;
  22609. q6common_update_instance_id_support(supported);
  22610. return 0;
  22611. }
  22612. static int msm_routing_instance_id_support_get(
  22613. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  22614. {
  22615. bool supported = false;
  22616. supported = q6common_is_instance_id_supported();
  22617. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  22618. return 0;
  22619. }
  22620. static const struct snd_kcontrol_new
  22621. msm_routing_feature_support_mixer_controls[] = {
  22622. {
  22623. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  22624. SNDRV_CTL_ELEM_ACCESS_WRITE,
  22625. .info = msm_routing_instance_id_support_info,
  22626. .name = "Instance ID Support",
  22627. .put = msm_routing_instance_id_support_put,
  22628. .get = msm_routing_instance_id_support_get,
  22629. },
  22630. };
  22631. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  22632. .hw_params = msm_pcm_routing_hw_params,
  22633. .close = msm_pcm_routing_close,
  22634. .prepare = msm_pcm_routing_prepare,
  22635. };
  22636. /* Not used but frame seems to require it */
  22637. static int msm_routing_probe(struct snd_soc_component *component)
  22638. {
  22639. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  22640. ARRAY_SIZE(msm_qdsp6_widgets));
  22641. snd_soc_dapm_add_routes(&component->dapm, intercon,
  22642. ARRAY_SIZE(intercon));
  22643. snd_soc_dapm_new_widgets(component->dapm.card);
  22644. snd_soc_add_component_controls(component, lsm_controls,
  22645. ARRAY_SIZE(lsm_controls));
  22646. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  22647. ARRAY_SIZE(aanc_slim_0_rx_mux));
  22648. snd_soc_add_component_controls(component, aanc_noise_level,
  22649. ARRAY_SIZE(aanc_noise_level));
  22650. snd_soc_add_component_controls(component, msm_voc_session_controls,
  22651. ARRAY_SIZE(msm_voc_session_controls));
  22652. snd_soc_add_component_controls(component, app_type_cfg_controls,
  22653. ARRAY_SIZE(app_type_cfg_controls));
  22654. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  22655. ARRAY_SIZE(lsm_app_type_cfg_controls));
  22656. snd_soc_add_component_controls(component, module_cfg_controls,
  22657. ARRAY_SIZE(module_cfg_controls));
  22658. snd_soc_add_component_controls(component,
  22659. stereo_to_custom_stereo_controls,
  22660. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  22661. snd_soc_add_component_controls(component, ec_ref_param_controls,
  22662. ARRAY_SIZE(ec_ref_param_controls));
  22663. snd_soc_add_component_controls(component, channel_mixer_controls,
  22664. ARRAY_SIZE(channel_mixer_controls));
  22665. msm_qti_pp_add_controls(component);
  22666. msm_dts_srs_tm_add_controls(component);
  22667. msm_dolby_dap_add_controls(component);
  22668. snd_soc_add_component_controls(component,
  22669. use_ds1_or_ds2_controls,
  22670. ARRAY_SIZE(use_ds1_or_ds2_controls));
  22671. snd_soc_add_component_controls(component,
  22672. device_pp_params_mixer_controls,
  22673. ARRAY_SIZE(device_pp_params_mixer_controls));
  22674. snd_soc_add_component_controls(component,
  22675. msm_routing_be_dai_name_table_mixer_controls,
  22676. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  22677. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  22678. ARRAY_SIZE(msm_source_tracking_controls));
  22679. snd_soc_add_component_controls(component, adm_channel_config_controls,
  22680. ARRAY_SIZE(adm_channel_config_controls));
  22681. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  22682. ARRAY_SIZE(aptx_dec_license_controls));
  22683. snd_soc_add_component_controls(component,
  22684. stereo_channel_reverse_control,
  22685. ARRAY_SIZE(stereo_channel_reverse_control));
  22686. snd_soc_add_component_controls(
  22687. component, msm_routing_feature_support_mixer_controls,
  22688. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  22689. return 0;
  22690. }
  22691. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  22692. {
  22693. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  22694. }
  22695. void msm_routing_pcm_free(struct snd_pcm *pcm)
  22696. {
  22697. msm_pcm_routing_hwdep_free(pcm);
  22698. }
  22699. static struct snd_soc_component_driver msm_soc_routing_component = {
  22700. .name = DRV_NAME,
  22701. .ops = &msm_routing_pcm_ops,
  22702. .probe = msm_routing_probe,
  22703. .pcm_new = msm_routing_pcm_new,
  22704. .pcm_free = msm_routing_pcm_free,
  22705. };
  22706. static int msm_routing_pcm_probe(struct platform_device *pdev)
  22707. {
  22708. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  22709. return snd_soc_register_component(&pdev->dev,
  22710. &msm_soc_routing_component,
  22711. NULL, 0);
  22712. }
  22713. static int msm_routing_pcm_remove(struct platform_device *pdev)
  22714. {
  22715. snd_soc_unregister_component(&pdev->dev);
  22716. return 0;
  22717. }
  22718. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  22719. {.compatible = "qcom,msm-pcm-routing"},
  22720. {}
  22721. };
  22722. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  22723. static struct platform_driver msm_routing_pcm_driver = {
  22724. .driver = {
  22725. .name = "msm-pcm-routing",
  22726. .owner = THIS_MODULE,
  22727. .of_match_table = msm_pcm_routing_dt_match,
  22728. },
  22729. .probe = msm_routing_pcm_probe,
  22730. .remove = msm_routing_pcm_remove,
  22731. };
  22732. int msm_routing_check_backend_enabled(int fedai_id)
  22733. {
  22734. int i;
  22735. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  22736. /* bad ID assigned in machine driver */
  22737. pr_err("%s: bad MM ID\n", __func__);
  22738. return 0;
  22739. }
  22740. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  22741. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  22742. return msm_bedais[i].active;
  22743. }
  22744. return 0;
  22745. }
  22746. static int get_cal_type_index(int32_t cal_type)
  22747. {
  22748. int ret = -EINVAL;
  22749. switch (cal_type) {
  22750. case ADM_TOPOLOGY_CAL_TYPE:
  22751. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  22752. break;
  22753. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  22754. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  22755. break;
  22756. default:
  22757. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  22758. }
  22759. return ret;
  22760. }
  22761. static int msm_routing_set_cal(int32_t cal_type,
  22762. size_t data_size, void *data)
  22763. {
  22764. int ret = 0;
  22765. int cal_index;
  22766. pr_debug("%s\n", __func__);
  22767. cal_index = get_cal_type_index(cal_type);
  22768. if (cal_index < 0) {
  22769. pr_err("%s: Could not get cal index %d\n",
  22770. __func__, cal_index);
  22771. ret = -EINVAL;
  22772. goto done;
  22773. }
  22774. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  22775. if (ret < 0) {
  22776. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  22777. __func__, ret, cal_type);
  22778. ret = -EINVAL;
  22779. goto done;
  22780. }
  22781. /* Pre-load if it is ADM topology */
  22782. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  22783. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  22784. msm_routing_load_topology(data_size, data);
  22785. }
  22786. done:
  22787. return ret;
  22788. }
  22789. static void msm_routing_delete_cal_data(void)
  22790. {
  22791. pr_debug("%s\n", __func__);
  22792. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  22793. }
  22794. static int msm_routing_init_cal_data(void)
  22795. {
  22796. int ret = 0;
  22797. struct cal_type_info cal_type_info[] = {
  22798. {{ADM_TOPOLOGY_CAL_TYPE,
  22799. {NULL, NULL, NULL,
  22800. msm_routing_set_cal, NULL, NULL} },
  22801. {NULL, NULL, cal_utils_match_buf_num} },
  22802. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  22803. {NULL, NULL, NULL,
  22804. msm_routing_set_cal, NULL, NULL} },
  22805. {NULL, NULL, cal_utils_match_buf_num} },
  22806. };
  22807. pr_debug("%s\n", __func__);
  22808. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  22809. &cal_type_info[0]);
  22810. if (ret < 0) {
  22811. pr_err("%s: could not create cal type!\n",
  22812. __func__);
  22813. ret = -EINVAL;
  22814. goto err;
  22815. }
  22816. return ret;
  22817. err:
  22818. msm_routing_delete_cal_data();
  22819. return ret;
  22820. }
  22821. int __init msm_soc_routing_platform_init(void)
  22822. {
  22823. mutex_init(&routing_lock);
  22824. if (msm_routing_init_cal_data())
  22825. pr_err("%s: could not init cal data!\n", __func__);
  22826. afe_set_routing_callback(
  22827. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  22828. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  22829. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  22830. return platform_driver_register(&msm_routing_pcm_driver);
  22831. }
  22832. void msm_soc_routing_platform_exit(void)
  22833. {
  22834. msm_routing_delete_cal_data();
  22835. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  22836. mutex_destroy(&routing_lock);
  22837. platform_driver_unregister(&msm_routing_pcm_driver);
  22838. }
  22839. MODULE_DESCRIPTION("MSM routing platform driver");
  22840. MODULE_LICENSE("GPL v2");