msm-pcm-routing-v2.c 945 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846
  1. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/err.h>
  14. #include <linux/module.h>
  15. #include <linux/moduleparam.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/bitops.h>
  18. #include <linux/mutex.h>
  19. #include <linux/of_device.h>
  20. #include <linux/slab.h>
  21. #include <sound/core.h>
  22. #include <sound/soc.h>
  23. #include <sound/soc-dapm.h>
  24. #include <sound/pcm.h>
  25. #include <sound/initval.h>
  26. #include <sound/control.h>
  27. #include <sound/tlv.h>
  28. #include <sound/asound.h>
  29. #include <sound/pcm_params.h>
  30. #include <sound/hwdep.h>
  31. #include <sound/audio_effects.h>
  32. #include <dsp/msm-dts-srs-tm-config.h>
  33. #include <dsp/q6voice.h>
  34. #include <dsp/q6adm-v2.h>
  35. #include <dsp/q6asm-v2.h>
  36. #include <dsp/q6afe-v2.h>
  37. #include <dsp/q6lsm.h>
  38. #include <dsp/q6core.h>
  39. #include <dsp/q6common.h>
  40. #include <dsp/audio_cal_utils.h>
  41. #include "msm-pcm-routing-v2.h"
  42. #include "msm-pcm-routing-devdep.h"
  43. #include "msm-qti-pp-config.h"
  44. #include "msm-dolby-dap-config.h"
  45. #include "msm-ds2-dap-config.h"
  46. #ifndef CONFIG_DOLBY_DAP
  47. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  48. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  49. #endif
  50. #ifndef CONFIG_DOLBY_DS2
  51. #undef DS2_ADM_COPP_TOPOLOGY_ID
  52. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  53. #endif
  54. static struct mutex routing_lock;
  55. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  56. static int fm_switch_enable;
  57. static int hfp_switch_enable;
  58. static int a2dp_switch_enable;
  59. static int int0_mi2s_switch_enable;
  60. static int int4_mi2s_switch_enable;
  61. static int pri_mi2s_switch_enable;
  62. static int sec_mi2s_switch_enable;
  63. static int tert_mi2s_switch_enable;
  64. static int quat_mi2s_switch_enable;
  65. static int quin_mi2s_switch_enable;
  66. static int fm_pcmrx_switch_enable;
  67. static int usb_switch_enable;
  68. static int lsm_port_index;
  69. static int slim0_rx_aanc_fb_port;
  70. static int msm_route_ec_ref_rx;
  71. static int msm_ec_ref_ch = 4;
  72. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  73. static int msm_ec_ref_sampling_rate = 48000;
  74. static uint32_t voc_session_id = ALL_SESSION_VSID;
  75. static int msm_route_ext_ec_ref;
  76. static bool is_custom_stereo_on;
  77. static bool is_ds2_on;
  78. static bool swap_ch;
  79. static int aanc_level;
  80. static int num_app_cfg_types;
  81. #define WEIGHT_0_DB 0x4000
  82. /* all the FEs which can support channel mixer */
  83. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  84. /* input BE for each FE */
  85. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  86. enum {
  87. MADNONE,
  88. MADAUDIO,
  89. MADBEACON,
  90. MADULTRASOUND,
  91. MADSWAUDIO,
  92. };
  93. #define ADM_LSM_PORT_INDEX 9
  94. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  95. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  96. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  97. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  98. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  99. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  100. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  101. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  102. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  103. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  104. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  105. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  106. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  107. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  108. #define LSM_FUNCTION_TEXT "LSM Function"
  109. static const char * const lsm_port_text[] = {
  110. "None",
  111. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  112. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  113. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  114. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  115. TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT
  116. };
  117. struct msm_pcm_route_bdai_pp_params {
  118. u16 port_id; /* AFE port ID */
  119. unsigned long pp_params_config;
  120. bool mute_on;
  121. int latency;
  122. };
  123. static struct msm_pcm_route_bdai_pp_params
  124. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  125. {HDMI_RX, 0, 0, 0},
  126. {DISPLAY_PORT_RX, 0, 0, 0},
  127. };
  128. /*
  129. * The be_dai_name_table is passed to HAL so that it can specify the
  130. * BE ID for the BE it wants to enable based on the name. Thus there
  131. * is a matching table and structure in HAL that need to be updated
  132. * if any changes to these are made.
  133. */
  134. struct msm_pcm_route_bdai_name {
  135. unsigned int be_id;
  136. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  137. };
  138. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  139. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  140. int fe_id);
  141. static void msm_routing_load_topology(size_t data_size, void *data);
  142. static void msm_routing_unload_topology(uint32_t topology_id);
  143. static int msm_routing_get_bit_width(unsigned int format)
  144. {
  145. int bit_width;
  146. switch (format) {
  147. case SNDRV_PCM_FORMAT_S32_LE:
  148. bit_width = 32;
  149. break;
  150. case SNDRV_PCM_FORMAT_S24_LE:
  151. case SNDRV_PCM_FORMAT_S24_3LE:
  152. bit_width = 24;
  153. break;
  154. case SNDRV_PCM_FORMAT_S16_LE:
  155. default:
  156. bit_width = 16;
  157. }
  158. return bit_width;
  159. }
  160. static bool msm_is_resample_needed(int input_sr, int output_sr)
  161. {
  162. bool rc = false;
  163. if (input_sr != output_sr)
  164. rc = true;
  165. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  166. (rc ? "oh yes" : "not really"),
  167. input_sr, output_sr);
  168. return rc;
  169. }
  170. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  171. int channels)
  172. {
  173. int rc = 0;
  174. switch (topology) {
  175. case SRS_TRUMEDIA_TOPOLOGY_ID:
  176. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  177. msm_dts_srs_tm_init(port_id, copp_idx);
  178. break;
  179. case DS2_ADM_COPP_TOPOLOGY_ID:
  180. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  181. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  182. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  183. is_custom_stereo_on);
  184. if (rc < 0)
  185. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  186. __func__, topology, port_id,
  187. is_custom_stereo_on, rc);
  188. break;
  189. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  190. if (is_ds2_on) {
  191. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  192. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  193. is_custom_stereo_on);
  194. if (rc < 0)
  195. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  196. __func__, topology, port_id, rc);
  197. } else {
  198. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  199. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  200. is_custom_stereo_on);
  201. if (rc < 0)
  202. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  203. __func__, topology, port_id, rc);
  204. }
  205. break;
  206. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  207. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  208. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  209. if (rc < 0)
  210. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  211. __func__, topology, port_id, copp_idx, rc);
  212. break;
  213. default:
  214. /* custom topology specific feature param handlers */
  215. break;
  216. }
  217. }
  218. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  219. {
  220. switch (topology) {
  221. case SRS_TRUMEDIA_TOPOLOGY_ID:
  222. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  223. msm_dts_srs_tm_deinit(port_id);
  224. break;
  225. case DS2_ADM_COPP_TOPOLOGY_ID:
  226. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  227. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  228. msm_ds2_dap_deinit(port_id);
  229. break;
  230. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  231. if (is_ds2_on) {
  232. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  233. msm_ds2_dap_deinit(port_id);
  234. } else {
  235. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  236. msm_dolby_dap_deinit(port_id);
  237. }
  238. break;
  239. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  240. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  241. msm_qti_pp_asphere_deinit(port_id);
  242. break;
  243. default:
  244. /* custom topology specific feature deinit handlers */
  245. break;
  246. }
  247. }
  248. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  249. int path_type, int perf_mode)
  250. {
  251. int itr = 0, rc = 0;
  252. if ((path_type == ADM_PATH_PLAYBACK) &&
  253. (perf_mode == LEGACY_PCM_MODE) &&
  254. is_custom_stereo_on) {
  255. for (itr = 0; itr < payload.num_copps; itr++) {
  256. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  257. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  258. continue;
  259. }
  260. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  261. payload.port_id[itr],
  262. payload.copp_idx[itr],
  263. payload.session_id,
  264. Q14_GAIN_ZERO_POINT_FIVE,
  265. Q14_GAIN_ZERO_POINT_FIVE,
  266. Q14_GAIN_ZERO_POINT_FIVE,
  267. Q14_GAIN_ZERO_POINT_FIVE);
  268. if (rc < 0)
  269. pr_err("%s: err setting custom stereo\n",
  270. __func__);
  271. }
  272. }
  273. }
  274. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  275. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  276. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  277. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  278. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  279. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  280. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  281. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  282. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  283. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  284. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  285. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  286. LPASS_BE_AFE_PCM_RX},
  287. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  288. LPASS_BE_AFE_PCM_TX},
  289. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  290. LPASS_BE_AUXPCM_RX},
  291. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  292. LPASS_BE_AUXPCM_TX},
  293. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  294. LPASS_BE_VOICE_PLAYBACK_TX},
  295. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  296. LPASS_BE_VOICE2_PLAYBACK_TX},
  297. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  298. LPASS_BE_INCALL_RECORD_RX},
  299. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  300. LPASS_BE_INCALL_RECORD_TX},
  301. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  302. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  303. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  304. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  305. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  306. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  307. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  308. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  309. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  310. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  311. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  312. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  313. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  314. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  315. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  316. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  317. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  318. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  319. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  320. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  321. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  322. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  323. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  324. LPASS_BE_QUAT_MI2S_RX},
  325. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  326. LPASS_BE_QUAT_MI2S_TX},
  327. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  328. LPASS_BE_SEC_MI2S_RX},
  329. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  330. LPASS_BE_SEC_MI2S_TX},
  331. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  332. LPASS_BE_PRI_MI2S_RX},
  333. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  334. LPASS_BE_PRI_MI2S_TX},
  335. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  336. LPASS_BE_TERT_MI2S_RX},
  337. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  338. LPASS_BE_TERT_MI2S_TX},
  339. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  340. LPASS_BE_AUDIO_I2S_RX},
  341. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  342. LPASS_BE_SEC_AUXPCM_RX},
  343. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  344. LPASS_BE_SEC_AUXPCM_TX},
  345. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  346. LPASS_BE_PRI_SPDIF_RX},
  347. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  348. LPASS_BE_SEC_MI2S_RX_SD1},
  349. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  350. LPASS_BE_QUIN_MI2S_RX},
  351. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  352. LPASS_BE_QUIN_MI2S_TX},
  353. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  354. LPASS_BE_SENARY_MI2S_TX},
  355. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  356. LPASS_BE_PRI_TDM_RX_0},
  357. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  358. LPASS_BE_PRI_TDM_TX_0},
  359. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  360. LPASS_BE_PRI_TDM_RX_1},
  361. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  362. LPASS_BE_PRI_TDM_TX_1},
  363. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  364. LPASS_BE_PRI_TDM_RX_2},
  365. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  366. LPASS_BE_PRI_TDM_TX_2},
  367. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  368. LPASS_BE_PRI_TDM_RX_3},
  369. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  370. LPASS_BE_PRI_TDM_TX_3},
  371. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  372. LPASS_BE_PRI_TDM_RX_4},
  373. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  374. LPASS_BE_PRI_TDM_TX_4},
  375. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  376. LPASS_BE_PRI_TDM_RX_5},
  377. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  378. LPASS_BE_PRI_TDM_TX_5},
  379. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  380. LPASS_BE_PRI_TDM_RX_6},
  381. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  382. LPASS_BE_PRI_TDM_TX_6},
  383. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  384. LPASS_BE_PRI_TDM_RX_7},
  385. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  386. LPASS_BE_PRI_TDM_TX_7},
  387. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  388. LPASS_BE_SEC_TDM_RX_0},
  389. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  390. LPASS_BE_SEC_TDM_TX_0},
  391. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  392. LPASS_BE_SEC_TDM_RX_1},
  393. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  394. LPASS_BE_SEC_TDM_TX_1},
  395. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  396. LPASS_BE_SEC_TDM_RX_2},
  397. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  398. LPASS_BE_SEC_TDM_TX_2},
  399. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  400. LPASS_BE_SEC_TDM_RX_3},
  401. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  402. LPASS_BE_SEC_TDM_TX_3},
  403. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  404. LPASS_BE_SEC_TDM_RX_4},
  405. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  406. LPASS_BE_SEC_TDM_TX_4},
  407. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  408. LPASS_BE_SEC_TDM_RX_5},
  409. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  410. LPASS_BE_SEC_TDM_TX_5},
  411. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  412. LPASS_BE_SEC_TDM_RX_6},
  413. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  414. LPASS_BE_SEC_TDM_TX_6},
  415. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  416. LPASS_BE_SEC_TDM_RX_7},
  417. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  418. LPASS_BE_SEC_TDM_TX_7},
  419. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  420. LPASS_BE_TERT_TDM_RX_0},
  421. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  422. LPASS_BE_TERT_TDM_TX_0},
  423. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  424. LPASS_BE_TERT_TDM_RX_1},
  425. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  426. LPASS_BE_TERT_TDM_TX_1},
  427. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  428. LPASS_BE_TERT_TDM_RX_2},
  429. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  430. LPASS_BE_TERT_TDM_TX_2},
  431. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  432. LPASS_BE_TERT_TDM_RX_3},
  433. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  434. LPASS_BE_TERT_TDM_TX_3},
  435. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  436. LPASS_BE_TERT_TDM_RX_4},
  437. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  438. LPASS_BE_TERT_TDM_TX_4},
  439. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  440. LPASS_BE_TERT_TDM_RX_5},
  441. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  442. LPASS_BE_TERT_TDM_TX_5},
  443. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  444. LPASS_BE_TERT_TDM_RX_6},
  445. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  446. LPASS_BE_TERT_TDM_TX_6},
  447. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  448. LPASS_BE_TERT_TDM_RX_7},
  449. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  450. LPASS_BE_TERT_TDM_TX_7},
  451. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  452. LPASS_BE_QUAT_TDM_RX_0},
  453. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  454. LPASS_BE_QUAT_TDM_TX_0},
  455. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  456. LPASS_BE_QUAT_TDM_RX_1},
  457. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  458. LPASS_BE_QUAT_TDM_TX_1},
  459. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  460. LPASS_BE_QUAT_TDM_RX_2},
  461. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  462. LPASS_BE_QUAT_TDM_TX_2},
  463. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  464. LPASS_BE_QUAT_TDM_RX_3},
  465. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  466. LPASS_BE_QUAT_TDM_TX_3},
  467. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  468. LPASS_BE_QUAT_TDM_RX_4},
  469. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  470. LPASS_BE_QUAT_TDM_TX_4},
  471. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  472. LPASS_BE_QUAT_TDM_RX_5},
  473. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  474. LPASS_BE_QUAT_TDM_TX_5},
  475. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  476. LPASS_BE_QUAT_TDM_RX_6},
  477. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  478. LPASS_BE_QUAT_TDM_TX_6},
  479. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  480. LPASS_BE_QUAT_TDM_RX_7},
  481. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  482. LPASS_BE_QUAT_TDM_TX_7},
  483. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  484. LPASS_BE_QUIN_TDM_RX_0},
  485. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  486. LPASS_BE_QUIN_TDM_TX_0},
  487. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  488. LPASS_BE_QUIN_TDM_RX_1},
  489. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  490. LPASS_BE_QUIN_TDM_TX_1},
  491. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  492. LPASS_BE_QUIN_TDM_RX_2},
  493. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  494. LPASS_BE_QUIN_TDM_TX_2},
  495. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  496. LPASS_BE_QUIN_TDM_RX_3},
  497. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  498. LPASS_BE_QUIN_TDM_TX_3},
  499. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  500. LPASS_BE_QUIN_TDM_RX_4},
  501. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  502. LPASS_BE_QUIN_TDM_TX_4},
  503. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  504. LPASS_BE_QUIN_TDM_RX_5},
  505. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  506. LPASS_BE_QUIN_TDM_TX_5},
  507. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  508. LPASS_BE_QUIN_TDM_RX_6},
  509. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  510. LPASS_BE_QUIN_TDM_TX_6},
  511. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  512. LPASS_BE_QUIN_TDM_RX_7},
  513. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  514. LPASS_BE_QUIN_TDM_TX_7},
  515. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  516. LPASS_BE_INT_BT_A2DP_RX},
  517. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  518. LPASS_BE_USB_AUDIO_RX},
  519. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  520. LPASS_BE_USB_AUDIO_TX},
  521. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  522. LPASS_BE_DISPLAY_PORT},
  523. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  524. LPASS_BE_DISPLAY_PORT1},
  525. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  526. LPASS_BE_TERT_AUXPCM_RX},
  527. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  528. LPASS_BE_TERT_AUXPCM_TX},
  529. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  530. LPASS_BE_QUAT_AUXPCM_RX},
  531. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  532. LPASS_BE_QUAT_AUXPCM_TX},
  533. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  534. LPASS_BE_QUIN_AUXPCM_RX},
  535. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  536. LPASS_BE_QUIN_AUXPCM_TX},
  537. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  538. LPASS_BE_INT0_MI2S_RX},
  539. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  540. LPASS_BE_INT0_MI2S_TX},
  541. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  542. LPASS_BE_INT1_MI2S_RX},
  543. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  544. LPASS_BE_INT1_MI2S_TX},
  545. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  546. LPASS_BE_INT2_MI2S_RX},
  547. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  548. LPASS_BE_INT2_MI2S_TX},
  549. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  550. LPASS_BE_INT3_MI2S_RX},
  551. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  552. LPASS_BE_INT3_MI2S_TX},
  553. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  554. LPASS_BE_INT4_MI2S_RX},
  555. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  556. LPASS_BE_INT4_MI2S_TX},
  557. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  558. LPASS_BE_INT5_MI2S_RX},
  559. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  560. LPASS_BE_INT5_MI2S_TX},
  561. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  562. LPASS_BE_INT6_MI2S_RX},
  563. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  564. LPASS_BE_INT6_MI2S_TX},
  565. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  566. LPASS_BE_SEN_AUXPCM_RX},
  567. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  568. LPASS_BE_SEN_AUXPCM_TX},
  569. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  570. LPASS_BE_SENARY_MI2S_RX},
  571. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  572. LPASS_BE_WSA_CDC_DMA_RX_0},
  573. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  574. LPASS_BE_WSA_CDC_DMA_TX_0},
  575. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  576. LPASS_BE_WSA_CDC_DMA_RX_1},
  577. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  578. LPASS_BE_WSA_CDC_DMA_TX_1},
  579. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  580. LPASS_BE_WSA_CDC_DMA_TX_2},
  581. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  582. LPASS_BE_VA_CDC_DMA_TX_0},
  583. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  584. LPASS_BE_VA_CDC_DMA_TX_1},
  585. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  586. LPASS_BE_RX_CDC_DMA_RX_0},
  587. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  588. LPASS_BE_TX_CDC_DMA_TX_0},
  589. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  590. LPASS_BE_RX_CDC_DMA_RX_1},
  591. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  592. LPASS_BE_TX_CDC_DMA_TX_1},
  593. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  594. LPASS_BE_RX_CDC_DMA_RX_2},
  595. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  596. LPASS_BE_TX_CDC_DMA_TX_2},
  597. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  598. LPASS_BE_RX_CDC_DMA_RX_3},
  599. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  600. LPASS_BE_TX_CDC_DMA_TX_3},
  601. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  602. LPASS_BE_RX_CDC_DMA_RX_4},
  603. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  604. LPASS_BE_TX_CDC_DMA_TX_4},
  605. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  606. LPASS_BE_RX_CDC_DMA_RX_5},
  607. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  608. LPASS_BE_TX_CDC_DMA_TX_5},
  609. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  610. LPASS_BE_RX_CDC_DMA_RX_6},
  611. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  612. LPASS_BE_RX_CDC_DMA_RX_7},
  613. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  614. LPASS_BE_PRI_SPDIF_TX},
  615. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  616. LPASS_BE_SEC_SPDIF_RX},
  617. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  618. LPASS_BE_SEC_SPDIF_TX},
  619. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  620. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  621. };
  622. /* Track ASM playback & capture sessions of DAI
  623. * Track LSM listen sessions
  624. */
  625. static struct msm_pcm_routing_fdai_data
  626. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  627. /* MULTIMEDIA1 */
  628. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  629. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  630. /* MULTIMEDIA2 */
  631. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  632. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  633. /* MULTIMEDIA3 */
  634. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  635. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  636. /* MULTIMEDIA4 */
  637. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  638. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  639. /* MULTIMEDIA5 */
  640. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  641. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  642. /* MULTIMEDIA6 */
  643. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  644. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  645. /* MULTIMEDIA7*/
  646. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  647. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  648. /* MULTIMEDIA8 */
  649. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  650. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  651. /* MULTIMEDIA9 */
  652. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  653. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  654. /* MULTIMEDIA10 */
  655. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  656. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  657. /* MULTIMEDIA11 */
  658. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  659. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  660. /* MULTIMEDIA12 */
  661. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  662. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  663. /* MULTIMEDIA13 */
  664. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  665. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  666. /* MULTIMEDIA14 */
  667. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  668. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  669. /* MULTIMEDIA15 */
  670. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  671. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  672. /* MULTIMEDIA16 */
  673. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  674. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  675. /* MULTIMEDIA17 */
  676. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  677. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  678. /* MULTIMEDIA18 */
  679. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  680. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  681. /* MULTIMEDIA19 */
  682. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  683. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  684. /* MULTIMEDIA20 */
  685. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  686. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  687. /* MULTIMEDIA21 */
  688. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  689. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  690. /* MULTIMEDIA26 */
  691. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  692. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  693. /* MULTIMEDIA27 */
  694. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  695. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  696. /* MULTIMEDIA28 */
  697. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  698. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  699. /* MULTIMEDIA29 */
  700. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  701. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  702. /* VOIP */
  703. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  704. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  705. /* AFE_RX */
  706. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  707. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  708. /* AFE_TX */
  709. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  710. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  711. /* VOICE_STUB */
  712. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  713. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  714. /* DTMF_RX */
  715. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  716. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  717. /* QCHAT */
  718. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  719. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  720. /* VOLTE_STUB */
  721. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  722. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  723. /* LSM1 */
  724. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  725. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  726. /* LSM2 */
  727. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  728. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  729. /* LSM3 */
  730. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  731. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  732. /* LSM4 */
  733. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  734. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  735. /* LSM5 */
  736. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  737. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  738. /* LSM6 */
  739. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  740. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  741. /* LSM7 */
  742. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  743. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  744. /* LSM8 */
  745. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  746. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  747. /* VOICE2_STUB */
  748. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  749. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  750. /* VOICEMMODE1 */
  751. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  752. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  753. /* VOICEMMODE2 */
  754. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  755. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  756. };
  757. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  758. [MSM_BACKEND_DAI_MAX];
  759. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  760. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  761. static struct msm_pcm_stream_app_type_cfg
  762. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  763. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  764. /* The caller of this should acquire routing lock */
  765. void msm_pcm_routing_get_bedai_info(int be_idx,
  766. struct msm_pcm_routing_bdai_data *be_dai)
  767. {
  768. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  769. memcpy(be_dai, &msm_bedais[be_idx],
  770. sizeof(struct msm_pcm_routing_bdai_data));
  771. }
  772. /* The caller of this should acquire routing lock */
  773. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  774. struct msm_pcm_routing_fdai_data *fe_dai)
  775. {
  776. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  777. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  778. sizeof(struct msm_pcm_routing_fdai_data));
  779. }
  780. void msm_pcm_routing_acquire_lock(void)
  781. {
  782. mutex_lock(&routing_lock);
  783. }
  784. void msm_pcm_routing_release_lock(void)
  785. {
  786. mutex_unlock(&routing_lock);
  787. }
  788. static int msm_pcm_routing_get_app_type_idx(int app_type)
  789. {
  790. int idx;
  791. pr_debug("%s: app_type: %d\n", __func__, app_type);
  792. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  793. if (app_type_cfg[idx].app_type == app_type)
  794. return idx;
  795. }
  796. pr_info("%s: App type not available, fallback to default\n", __func__);
  797. return 0;
  798. }
  799. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  800. {
  801. int idx;
  802. pr_debug("%s: app_type: %d\n", __func__, app_type);
  803. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  804. if (lsm_app_type_cfg[idx].app_type == app_type)
  805. return idx;
  806. }
  807. pr_debug("%s: App type not available, fallback to default\n", __func__);
  808. return 0;
  809. }
  810. static bool is_mm_lsm_fe_id(int fe_id)
  811. {
  812. bool rc = true;
  813. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  814. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  815. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  816. rc = false;
  817. }
  818. return rc;
  819. }
  820. /*
  821. * msm_pcm_routing_send_chmix_cfg:
  822. * send the channel mixer command to mix the input channels
  823. * into output channels.
  824. *
  825. * @fe_id: front end id
  826. * @ip_channel_cnt: input channel count
  827. * @op_channel_cnt: output channel count
  828. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  829. * @session_type: indicates session is of type TX or RX
  830. * @stream_type: indicates either Audio or Listen stream type
  831. */
  832. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  833. int op_channel_cnt, int *ch_wght_coeff,
  834. int session_type, int stream_type)
  835. {
  836. int rc = 0, idx = 0;
  837. int be_index = 0, port_id;
  838. unsigned int session_id = 0;
  839. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  840. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  841. stream_type);
  842. if (!is_mm_lsm_fe_id(fe_id)) {
  843. /* bad ID assigned in machine driver */
  844. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  845. return -EINVAL;
  846. }
  847. if (ch_wght_coeff == NULL) {
  848. pr_err("%s: Null channel weightage coefficients passed\n",
  849. __func__);
  850. return -EINVAL;
  851. }
  852. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  853. port_id = msm_bedais[be_index].port_id;
  854. if (!msm_bedais[be_index].active ||
  855. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  856. continue;
  857. session_id = fe_dai_map[fe_id][session_type].strm_id;
  858. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  859. unsigned long copp =
  860. session_copp_map[fe_id][session_type][be_index];
  861. if (!test_bit(idx, &copp))
  862. continue;
  863. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  864. session_id, ip_channel_cnt,
  865. op_channel_cnt, ch_wght_coeff,
  866. session_type, stream_type);
  867. if (rc < 0)
  868. pr_err("%s: err setting channel mix config\n",
  869. __func__);
  870. }
  871. }
  872. return 0;
  873. }
  874. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  875. int msm_pcm_routing_reg_stream_app_type_cfg(
  876. int fedai_id, int session_type, int be_id,
  877. struct msm_pcm_stream_app_type_cfg *cfg_data)
  878. {
  879. int ret = 0;
  880. if (cfg_data == NULL) {
  881. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  882. ret = -EINVAL;
  883. goto done;
  884. }
  885. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  886. __func__, fedai_id, session_type, be_id,
  887. cfg_data->app_type, cfg_data->acdb_dev_id,
  888. cfg_data->sample_rate);
  889. if (!is_mm_lsm_fe_id(fedai_id)) {
  890. pr_err("%s: Invalid machine driver ID %d\n",
  891. __func__, fedai_id);
  892. ret = -EINVAL;
  893. goto done;
  894. }
  895. if (session_type != SESSION_TYPE_RX &&
  896. session_type != SESSION_TYPE_TX) {
  897. pr_err("%s: Invalid session type %d\n",
  898. __func__, session_type);
  899. ret = -EINVAL;
  900. goto done;
  901. }
  902. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  903. pr_err("%s: Received out of bounds be_id %d\n",
  904. __func__, be_id);
  905. ret = -EINVAL;
  906. goto done;
  907. }
  908. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  909. /*
  910. * Store the BE ID of the configuration information set as the latest so
  911. * the get mixer control knows what to return.
  912. */
  913. last_be_id_configured[fedai_id][session_type] = be_id;
  914. done:
  915. return ret;
  916. }
  917. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  918. /**
  919. * msm_pcm_routing_get_stream_app_type_cfg
  920. *
  921. * Receives fedai_id, session_type, be_id, and populates app_type,
  922. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  923. * -EINVAL and does not alter passed values.
  924. *
  925. * fedai_id - Passed value, front end ID for which app type config is wanted
  926. * session_type - Passed value, session type for which app type config
  927. * is wanted
  928. * be_id - Returned value, back end device id the app type config data is for
  929. * cfg_data - Returned value, configuration data used by app type config
  930. */
  931. int msm_pcm_routing_get_stream_app_type_cfg(
  932. int fedai_id, int session_type, int *bedai_id,
  933. struct msm_pcm_stream_app_type_cfg *cfg_data)
  934. {
  935. int be_id;
  936. int ret = 0;
  937. if (bedai_id == NULL) {
  938. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  939. ret = -EINVAL;
  940. goto done;
  941. } else if (cfg_data == NULL) {
  942. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  943. ret = -EINVAL;
  944. goto done;
  945. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  946. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  947. ret = -EINVAL;
  948. goto done;
  949. } else if (session_type != SESSION_TYPE_RX &&
  950. session_type != SESSION_TYPE_TX) {
  951. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  952. ret = -EINVAL;
  953. goto done;
  954. }
  955. be_id = last_be_id_configured[fedai_id][session_type];
  956. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  957. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  958. ret = -EINVAL;
  959. goto done;
  960. }
  961. *bedai_id = be_id;
  962. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  963. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  964. __func__, fedai_id, session_type, *bedai_id,
  965. cfg_data->app_type, cfg_data->acdb_dev_id,
  966. cfg_data->sample_rate);
  967. done:
  968. return ret;
  969. }
  970. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  971. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  972. int cal_index)
  973. {
  974. struct list_head *ptr, *next;
  975. struct cal_block_data *cal_block = NULL;
  976. pr_debug("%s\n", __func__);
  977. list_for_each_safe(ptr, next,
  978. &cal_data[cal_index]->cal_blocks) {
  979. cal_block = list_entry(ptr,
  980. struct cal_block_data, list);
  981. if (cal_utils_is_cal_stale(cal_block))
  982. continue;
  983. if (((struct audio_cal_info_adm_top *)cal_block
  984. ->cal_info)->path == path) {
  985. return cal_block;
  986. }
  987. }
  988. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  989. return NULL;
  990. }
  991. static struct cal_block_data *msm_routing_find_topology(int path,
  992. int app_type,
  993. int acdb_id,
  994. int cal_index)
  995. {
  996. struct list_head *ptr, *next;
  997. struct cal_block_data *cal_block = NULL;
  998. struct audio_cal_info_adm_top *cal_info;
  999. pr_debug("%s\n", __func__);
  1000. list_for_each_safe(ptr, next,
  1001. &cal_data[cal_index]->cal_blocks) {
  1002. cal_block = list_entry(ptr,
  1003. struct cal_block_data, list);
  1004. if (cal_utils_is_cal_stale(cal_block))
  1005. continue;
  1006. cal_info = (struct audio_cal_info_adm_top *)
  1007. cal_block->cal_info;
  1008. if ((cal_info->path == path) &&
  1009. (cal_info->app_type == app_type) &&
  1010. (cal_info->acdb_id == acdb_id)) {
  1011. return cal_block;
  1012. }
  1013. }
  1014. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  1015. __func__, path, app_type, acdb_id);
  1016. return msm_routing_find_topology_by_path(path, cal_index);
  1017. }
  1018. /*
  1019. * Retrieving cal_block will mark cal_block as stale.
  1020. * Hence it cannot be reused or resent unless the flag
  1021. * is reset.
  1022. */
  1023. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1024. int be_id)
  1025. {
  1026. int topology = NULL_COPP_TOPOLOGY;
  1027. struct cal_block_data *cal_block = NULL;
  1028. int app_type = 0, acdb_dev_id = 0;
  1029. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1030. __func__, fedai_id, session_type, be_id);
  1031. if (cal_data == NULL)
  1032. goto done;
  1033. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1034. acdb_dev_id =
  1035. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1036. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1037. cal_block = msm_routing_find_topology(session_type, app_type,
  1038. acdb_dev_id,
  1039. ADM_TOPOLOGY_CAL_TYPE_IDX);
  1040. if (cal_block != NULL) {
  1041. topology = ((struct audio_cal_info_adm_top *)
  1042. cal_block->cal_info)->topology;
  1043. cal_utils_mark_cal_used(cal_block);
  1044. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1045. } else {
  1046. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1047. pr_debug("%s: Check for LSM topology\n", __func__);
  1048. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1049. cal_block = msm_routing_find_topology(session_type, app_type,
  1050. acdb_dev_id,
  1051. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  1052. if (cal_block != NULL) {
  1053. topology = ((struct audio_cal_info_adm_top *)
  1054. cal_block->cal_info)->topology;
  1055. cal_utils_mark_cal_used(cal_block);
  1056. }
  1057. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1058. }
  1059. done:
  1060. pr_debug("%s: Using topology %d\n", __func__, topology);
  1061. return topology;
  1062. }
  1063. static uint8_t is_be_dai_extproc(int be_dai)
  1064. {
  1065. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1066. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1067. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1068. return 1;
  1069. else
  1070. return 0;
  1071. }
  1072. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1073. int path_type, int perf_mode,
  1074. uint32_t passthr_mode)
  1075. {
  1076. int i, port_type, j, num_copps = 0;
  1077. struct route_payload payload;
  1078. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1079. path_type == ADM_PATH_COMPRESSED_RX) ?
  1080. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1081. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1082. if (!is_be_dai_extproc(i) &&
  1083. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1084. (msm_bedais[i].active) &&
  1085. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  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] =
  1091. msm_bedais[i].port_id;
  1092. payload.copp_idx[num_copps] = j;
  1093. payload.app_type[num_copps] =
  1094. fe_dai_app_type_cfg
  1095. [fedai_id][sess_type][i]
  1096. .app_type;
  1097. payload.acdb_dev_id[num_copps] =
  1098. fe_dai_app_type_cfg
  1099. [fedai_id][sess_type][i]
  1100. .acdb_dev_id;
  1101. payload.sample_rate[num_copps] =
  1102. fe_dai_app_type_cfg
  1103. [fedai_id][sess_type][i]
  1104. .sample_rate;
  1105. num_copps++;
  1106. }
  1107. }
  1108. }
  1109. }
  1110. if (num_copps) {
  1111. payload.num_copps = num_copps;
  1112. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1113. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1114. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1115. }
  1116. }
  1117. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1118. int stream_type)
  1119. {
  1120. int i, session_type, path_type, port_type;
  1121. u32 mode = 0;
  1122. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1123. /* bad ID assigned in machine driver */
  1124. pr_err("%s: bad MM ID\n", __func__);
  1125. return;
  1126. }
  1127. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1128. session_type = SESSION_TYPE_RX;
  1129. path_type = ADM_PATH_PLAYBACK;
  1130. port_type = MSM_AFE_PORT_TYPE_RX;
  1131. } else {
  1132. session_type = SESSION_TYPE_TX;
  1133. path_type = ADM_PATH_LIVE_REC;
  1134. port_type = MSM_AFE_PORT_TYPE_TX;
  1135. }
  1136. mutex_lock(&routing_lock);
  1137. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1138. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1139. if (!is_be_dai_extproc(i) &&
  1140. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1141. (msm_bedais[i].active) &&
  1142. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1143. mode = afe_get_port_type(msm_bedais[i].port_id);
  1144. adm_connect_afe_port(mode, dspst_id,
  1145. msm_bedais[i].port_id);
  1146. break;
  1147. }
  1148. }
  1149. mutex_unlock(&routing_lock);
  1150. }
  1151. static bool route_check_fe_id_adm_support(int fe_id)
  1152. {
  1153. bool rc = true;
  1154. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1155. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1156. /* fe id is listen while port is set to afe */
  1157. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1158. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1159. __func__, fe_id, lsm_port_index);
  1160. rc = false;
  1161. }
  1162. }
  1163. return rc;
  1164. }
  1165. /*
  1166. * msm_pcm_routing_get_pp_ch_cnt:
  1167. * Read the processed channel count
  1168. *
  1169. * @fe_id: Front end ID
  1170. * @session_type: Inidicates RX or TX session type
  1171. */
  1172. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1173. {
  1174. struct msm_pcm_stream_app_type_cfg cfg_data;
  1175. int be_id = 0, app_type_idx = 0, app_type = 0;
  1176. int ret = -EINVAL;
  1177. memset(&cfg_data, 0, sizeof(cfg_data));
  1178. if (!is_mm_lsm_fe_id(fe_id)) {
  1179. pr_err("%s: bad MM ID\n", __func__);
  1180. return -EINVAL;
  1181. }
  1182. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1183. &be_id, &cfg_data);
  1184. if (ret) {
  1185. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1186. return ret;
  1187. }
  1188. app_type = cfg_data.app_type;
  1189. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1190. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1191. }
  1192. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1193. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1194. int dspst_id, int stream_type,
  1195. uint32_t passthr_mode)
  1196. {
  1197. int i, j, session_type, path_type, port_type, topology;
  1198. int num_copps = 0;
  1199. struct route_payload payload;
  1200. u32 channels, sample_rate;
  1201. u16 bit_width = 16;
  1202. bool is_lsm;
  1203. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1204. __func__, fe_id, perf_mode, dspst_id,
  1205. stream_type, passthr_mode);
  1206. if (!is_mm_lsm_fe_id(fe_id)) {
  1207. /* bad ID assigned in machine driver */
  1208. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1209. return -EINVAL;
  1210. }
  1211. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1212. session_type = SESSION_TYPE_RX;
  1213. if (passthr_mode != LEGACY_PCM)
  1214. path_type = ADM_PATH_COMPRESSED_RX;
  1215. else
  1216. path_type = ADM_PATH_PLAYBACK;
  1217. port_type = MSM_AFE_PORT_TYPE_RX;
  1218. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1219. session_type = SESSION_TYPE_TX;
  1220. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1221. path_type = ADM_PATH_COMPRESSED_TX;
  1222. else
  1223. path_type = ADM_PATH_LIVE_REC;
  1224. port_type = MSM_AFE_PORT_TYPE_TX;
  1225. } else {
  1226. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1227. return -EINVAL;
  1228. }
  1229. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1230. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1231. mutex_lock(&routing_lock);
  1232. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1233. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1234. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1235. if (!route_check_fe_id_adm_support(fe_id)) {
  1236. /* ignore adm open if not supported for fe_id */
  1237. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1238. mutex_unlock(&routing_lock);
  1239. return 0;
  1240. }
  1241. payload.num_copps = 0; /* only RX needs to use payload */
  1242. /* re-enable EQ if active */
  1243. msm_qti_pp_send_eq_values(fe_id);
  1244. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1245. if (!is_be_dai_extproc(i) &&
  1246. (afe_get_port_type(msm_bedais[i].port_id) ==
  1247. port_type) &&
  1248. (msm_bedais[i].active) &&
  1249. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1250. int app_type, app_type_idx, copp_idx, acdb_dev_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(msm_bedais[i].port_id,
  1297. path_type, sample_rate, channels,
  1298. topology, perf_mode, bit_width,
  1299. app_type, acdb_dev_id);
  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(
  1315. msm_bedais[i].port_id, copp_idx,
  1316. msm_bedais[i].sample_rate);
  1317. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1318. unsigned long copp =
  1319. session_copp_map[fe_id][session_type][i];
  1320. if (test_bit(j, &copp)) {
  1321. payload.port_id[num_copps] =
  1322. msm_bedais[i].port_id;
  1323. payload.copp_idx[num_copps] = j;
  1324. payload.app_type[num_copps] =
  1325. fe_dai_app_type_cfg
  1326. [fe_id][session_type][i]
  1327. .app_type;
  1328. payload.acdb_dev_id[num_copps] =
  1329. fe_dai_app_type_cfg
  1330. [fe_id][session_type][i]
  1331. .acdb_dev_id;
  1332. payload.sample_rate[num_copps] =
  1333. fe_dai_app_type_cfg
  1334. [fe_id][session_type][i]
  1335. .sample_rate;
  1336. num_copps++;
  1337. }
  1338. }
  1339. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1340. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1341. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1342. msm_routing_send_device_pp_params(
  1343. msm_bedais[i].port_id,
  1344. copp_idx, fe_id);
  1345. }
  1346. }
  1347. if (num_copps) {
  1348. payload.num_copps = num_copps;
  1349. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1350. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1351. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1352. }
  1353. mutex_unlock(&routing_lock);
  1354. return 0;
  1355. }
  1356. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1357. {
  1358. u32 session_id;
  1359. switch (val) {
  1360. case MSM_FRONTEND_DAI_QCHAT:
  1361. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1362. break;
  1363. case MSM_FRONTEND_DAI_VOIP:
  1364. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1365. break;
  1366. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1367. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1368. break;
  1369. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1370. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1371. break;
  1372. default:
  1373. session_id = 0;
  1374. }
  1375. pr_debug("%s session_id 0x%x", __func__, session_id);
  1376. return session_id;
  1377. }
  1378. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1379. int dspst_id, int stream_type)
  1380. {
  1381. int copp_idx = 0;
  1382. int sess_type = 0;
  1383. int i = 0, j = 0, be_id;
  1384. int ret = 0;
  1385. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1386. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1387. return 0;
  1388. }
  1389. if (!(channel_mixer[fe_id].enable)) {
  1390. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1391. __func__, fe_id);
  1392. return 0;
  1393. }
  1394. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1395. sess_type = SESSION_TYPE_RX;
  1396. else
  1397. sess_type = SESSION_TYPE_TX;
  1398. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1399. ++i) {
  1400. be_id = channel_input[fe_id][i] - 1;
  1401. channel_mixer[fe_id].input_channels[i] =
  1402. msm_bedais[be_id].channel;
  1403. if ((msm_bedais[be_id].active) &&
  1404. test_bit(fe_id,
  1405. &msm_bedais[be_id].fe_sessions[0])) {
  1406. unsigned long copp =
  1407. session_copp_map[fe_id][sess_type][be_id];
  1408. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1409. if (test_bit(j, &copp)) {
  1410. copp_idx = j;
  1411. break;
  1412. }
  1413. }
  1414. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1415. __func__,
  1416. fe_id, be_id, msm_bedais[be_id].channel,
  1417. copp_idx);
  1418. ret = adm_programable_channel_mixer(
  1419. msm_bedais[be_id].port_id,
  1420. copp_idx, dspst_id, sess_type,
  1421. channel_mixer + fe_id, i);
  1422. }
  1423. }
  1424. return ret;
  1425. }
  1426. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1427. int dspst_id, int stream_type)
  1428. {
  1429. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1430. struct route_payload payload;
  1431. u32 channels, sample_rate;
  1432. uint16_t bits_per_sample = 16;
  1433. uint32_t passthr_mode = LEGACY_PCM;
  1434. int ret = 0;
  1435. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1436. /* bad ID assigned in machine driver */
  1437. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1438. return -EINVAL;
  1439. }
  1440. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1441. session_type = SESSION_TYPE_RX;
  1442. path_type = ADM_PATH_PLAYBACK;
  1443. port_type = MSM_AFE_PORT_TYPE_RX;
  1444. } else {
  1445. session_type = SESSION_TYPE_TX;
  1446. path_type = ADM_PATH_LIVE_REC;
  1447. port_type = MSM_AFE_PORT_TYPE_TX;
  1448. }
  1449. mutex_lock(&routing_lock);
  1450. payload.num_copps = 0; /* only RX needs to use payload */
  1451. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1452. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1453. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1454. /* re-enable EQ if active */
  1455. msm_qti_pp_send_eq_values(fedai_id);
  1456. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1457. if (!is_be_dai_extproc(i) &&
  1458. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1459. (msm_bedais[i].active) &&
  1460. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1461. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1462. /*
  1463. * check if ADM needs to be configured with different
  1464. * channel mapping than backend
  1465. */
  1466. if (!msm_bedais[i].adm_override_ch)
  1467. channels = msm_bedais[i].channel;
  1468. else
  1469. channels = msm_bedais[i].adm_override_ch;
  1470. bits_per_sample = msm_routing_get_bit_width(
  1471. msm_bedais[i].format);
  1472. app_type =
  1473. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1474. if (app_type) {
  1475. app_type_idx =
  1476. msm_pcm_routing_get_app_type_idx(app_type);
  1477. sample_rate =
  1478. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1479. .sample_rate;
  1480. bits_per_sample =
  1481. app_type_cfg[app_type_idx].bit_width;
  1482. } else
  1483. sample_rate = msm_bedais[i].sample_rate;
  1484. acdb_dev_id =
  1485. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1486. .acdb_dev_id;
  1487. topology = msm_routing_get_adm_topology(fedai_id,
  1488. session_type,
  1489. i);
  1490. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1491. sample_rate, channels, topology,
  1492. perf_mode, bits_per_sample,
  1493. app_type, acdb_dev_id);
  1494. if ((copp_idx < 0) ||
  1495. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1496. pr_err("%s: adm open failed copp_idx:%d\n",
  1497. __func__, copp_idx);
  1498. mutex_unlock(&routing_lock);
  1499. return -EINVAL;
  1500. }
  1501. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1502. __func__, fedai_id, session_type, i);
  1503. set_bit(copp_idx,
  1504. &session_copp_map[fedai_id][session_type][i]);
  1505. if (msm_is_resample_needed(
  1506. sample_rate,
  1507. msm_bedais[i].sample_rate))
  1508. adm_copp_mfc_cfg(
  1509. msm_bedais[i].port_id, copp_idx,
  1510. msm_bedais[i].sample_rate);
  1511. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1512. unsigned long copp =
  1513. session_copp_map[fedai_id][session_type][i];
  1514. if (test_bit(j, &copp)) {
  1515. payload.port_id[num_copps] =
  1516. msm_bedais[i].port_id;
  1517. payload.copp_idx[num_copps] = j;
  1518. payload.app_type[num_copps] =
  1519. fe_dai_app_type_cfg
  1520. [fedai_id][session_type]
  1521. [i].app_type;
  1522. payload.acdb_dev_id[num_copps] =
  1523. fe_dai_app_type_cfg
  1524. [fedai_id][session_type]
  1525. [i].acdb_dev_id;
  1526. payload.sample_rate[num_copps] =
  1527. fe_dai_app_type_cfg
  1528. [fedai_id][session_type]
  1529. [i].sample_rate;
  1530. num_copps++;
  1531. }
  1532. }
  1533. if (perf_mode == LEGACY_PCM_MODE)
  1534. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1535. copp_idx, topology, channels);
  1536. }
  1537. }
  1538. if (num_copps) {
  1539. payload.num_copps = num_copps;
  1540. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1541. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1542. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1543. }
  1544. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1545. dspst_id, stream_type);
  1546. mutex_unlock(&routing_lock);
  1547. return ret;
  1548. }
  1549. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1550. int dspst_id, int stream_type,
  1551. struct msm_pcm_routing_evt event_info)
  1552. {
  1553. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1554. stream_type)) {
  1555. pr_err("%s: failed to reg phy stream\n", __func__);
  1556. return -EINVAL;
  1557. }
  1558. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1559. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1560. else
  1561. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1562. return 0;
  1563. }
  1564. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1565. {
  1566. int i, port_type, session_type, path_type, topology;
  1567. struct msm_pcm_routing_fdai_data *fdai;
  1568. if (!is_mm_lsm_fe_id(fedai_id)) {
  1569. /* bad ID assigned in machine driver */
  1570. pr_err("%s: bad MM ID\n", __func__);
  1571. return;
  1572. }
  1573. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1574. port_type = MSM_AFE_PORT_TYPE_RX;
  1575. session_type = SESSION_TYPE_RX;
  1576. path_type = ADM_PATH_PLAYBACK;
  1577. } else {
  1578. port_type = MSM_AFE_PORT_TYPE_TX;
  1579. session_type = SESSION_TYPE_TX;
  1580. path_type = ADM_PATH_LIVE_REC;
  1581. }
  1582. mutex_lock(&routing_lock);
  1583. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1584. if (!is_be_dai_extproc(i) &&
  1585. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1586. (msm_bedais[i].active) &&
  1587. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1588. int idx;
  1589. unsigned long copp =
  1590. session_copp_map[fedai_id][session_type][i];
  1591. fdai = &fe_dai_map[fedai_id][session_type];
  1592. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1593. if (test_bit(idx, &copp))
  1594. break;
  1595. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1596. pr_debug("%s: copp idx is invalid, exiting\n",
  1597. __func__);
  1598. continue;
  1599. }
  1600. topology = adm_get_topology_for_port_copp_idx(
  1601. msm_bedais[i].port_id, idx);
  1602. msm_routing_unload_topology(topology);
  1603. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1604. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1605. __func__, copp, fedai_id, session_type, i);
  1606. clear_bit(idx,
  1607. &session_copp_map[fedai_id][session_type][i]);
  1608. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1609. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1610. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1611. (fdai->passthr_mode == LEGACY_PCM))
  1612. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1613. topology);
  1614. }
  1615. }
  1616. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1617. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1618. mutex_unlock(&routing_lock);
  1619. }
  1620. /* Check if FE/BE route is set */
  1621. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1622. {
  1623. bool rc = false;
  1624. if (!is_mm_lsm_fe_id(fe_id)) {
  1625. /* recheck FE ID in the mixer control defined in this file */
  1626. pr_err("%s: bad MM ID\n", __func__);
  1627. return rc;
  1628. }
  1629. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1630. rc = true;
  1631. return rc;
  1632. }
  1633. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1634. {
  1635. int session_type, path_type, topology;
  1636. u32 channels, sample_rate;
  1637. uint16_t bits_per_sample = 16;
  1638. struct msm_pcm_routing_fdai_data *fdai;
  1639. uint32_t passthr_mode;
  1640. bool is_lsm;
  1641. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1642. if (!is_mm_lsm_fe_id(val)) {
  1643. /* recheck FE ID in the mixer control defined in this file */
  1644. pr_err("%s: bad MM ID\n", __func__);
  1645. return;
  1646. }
  1647. if (!route_check_fe_id_adm_support(val)) {
  1648. /* ignore adm open if not supported for fe_id */
  1649. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1650. return;
  1651. }
  1652. session_type =
  1653. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1654. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1655. fdai = &fe_dai_map[val][session_type];
  1656. passthr_mode = fdai->passthr_mode;
  1657. if (session_type == SESSION_TYPE_RX) {
  1658. if (passthr_mode != LEGACY_PCM)
  1659. path_type = ADM_PATH_COMPRESSED_RX;
  1660. else
  1661. path_type = ADM_PATH_PLAYBACK;
  1662. } else {
  1663. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1664. path_type = ADM_PATH_COMPRESSED_TX;
  1665. else
  1666. path_type = ADM_PATH_LIVE_REC;
  1667. }
  1668. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1669. (val <= MSM_FRONTEND_DAI_LSM8);
  1670. mutex_lock(&routing_lock);
  1671. if (set) {
  1672. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1673. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1674. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1675. voc_start_playback(set, msm_bedais[reg].port_id);
  1676. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1677. if (msm_bedais[reg].active && fdai->strm_id !=
  1678. INVALID_SESSION) {
  1679. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1680. /*
  1681. * check if ADM needs to be configured with different
  1682. * channel mapping than backend
  1683. */
  1684. if (!msm_bedais[reg].adm_override_ch)
  1685. channels = msm_bedais[reg].channel;
  1686. else
  1687. channels = msm_bedais[reg].adm_override_ch;
  1688. if (session_type == SESSION_TYPE_TX &&
  1689. fdai->be_srate &&
  1690. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1691. pr_debug("%s: flush strm %d diff BE rates\n",
  1692. __func__, fdai->strm_id);
  1693. if (fdai->event_info.event_func)
  1694. fdai->event_info.event_func(
  1695. MSM_PCM_RT_EVT_BUF_RECFG,
  1696. fdai->event_info.priv_data);
  1697. fdai->be_srate = 0; /* might not need it */
  1698. }
  1699. bits_per_sample = msm_routing_get_bit_width(
  1700. msm_bedais[reg].format);
  1701. app_type =
  1702. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1703. if (app_type && is_lsm) {
  1704. app_type_idx =
  1705. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1706. sample_rate =
  1707. fe_dai_app_type_cfg[val][session_type][reg]
  1708. .sample_rate;
  1709. bits_per_sample =
  1710. lsm_app_type_cfg[app_type_idx].bit_width;
  1711. } else if (app_type) {
  1712. app_type_idx =
  1713. msm_pcm_routing_get_app_type_idx(app_type);
  1714. sample_rate =
  1715. fe_dai_app_type_cfg[val][session_type][reg]
  1716. .sample_rate;
  1717. bits_per_sample =
  1718. app_type_cfg[app_type_idx].bit_width;
  1719. } else
  1720. sample_rate = msm_bedais[reg].sample_rate;
  1721. topology = msm_routing_get_adm_topology(val,
  1722. session_type,
  1723. reg);
  1724. acdb_dev_id =
  1725. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1726. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1727. sample_rate, channels, topology,
  1728. fdai->perf_mode, bits_per_sample,
  1729. app_type, acdb_dev_id);
  1730. if ((copp_idx < 0) ||
  1731. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1732. pr_err("%s: adm open failed\n", __func__);
  1733. mutex_unlock(&routing_lock);
  1734. return;
  1735. }
  1736. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1737. __func__, val, session_type, reg);
  1738. set_bit(copp_idx,
  1739. &session_copp_map[val][session_type][reg]);
  1740. if (msm_is_resample_needed(
  1741. sample_rate,
  1742. msm_bedais[reg].sample_rate))
  1743. adm_copp_mfc_cfg(
  1744. msm_bedais[reg].port_id, copp_idx,
  1745. msm_bedais[reg].sample_rate);
  1746. if (session_type == SESSION_TYPE_RX &&
  1747. fdai->event_info.event_func)
  1748. fdai->event_info.event_func(
  1749. MSM_PCM_RT_EVT_DEVSWITCH,
  1750. fdai->event_info.priv_data);
  1751. msm_pcm_routing_build_matrix(val, session_type,
  1752. path_type,
  1753. fdai->perf_mode,
  1754. passthr_mode);
  1755. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1756. (passthr_mode == LEGACY_PCM))
  1757. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1758. copp_idx, topology,
  1759. channels);
  1760. }
  1761. } else {
  1762. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1763. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1764. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1765. voc_start_playback(set, msm_bedais[reg].port_id);
  1766. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1767. if (msm_bedais[reg].active && fdai->strm_id !=
  1768. INVALID_SESSION) {
  1769. int idx;
  1770. int port_id;
  1771. unsigned long copp =
  1772. session_copp_map[val][session_type][reg];
  1773. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1774. if (test_bit(idx, &copp))
  1775. break;
  1776. if (idx >= MAX_COPPS_PER_PORT) {
  1777. pr_debug("%s: copp idx is invalid, exiting\n",
  1778. __func__);
  1779. mutex_unlock(&routing_lock);
  1780. return;
  1781. }
  1782. port_id = msm_bedais[reg].port_id;
  1783. topology = adm_get_topology_for_port_copp_idx(port_id,
  1784. idx);
  1785. msm_routing_unload_topology(topology);
  1786. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1787. idx);
  1788. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1789. __func__, copp, val, session_type, reg,
  1790. topology);
  1791. clear_bit(idx,
  1792. &session_copp_map[val][session_type][reg]);
  1793. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1794. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1795. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1796. (passthr_mode == LEGACY_PCM))
  1797. msm_pcm_routing_deinit_pp(
  1798. msm_bedais[reg].port_id,
  1799. topology);
  1800. msm_pcm_routing_build_matrix(val, session_type,
  1801. path_type,
  1802. fdai->perf_mode,
  1803. passthr_mode);
  1804. }
  1805. }
  1806. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1807. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1808. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1809. mutex_unlock(&routing_lock);
  1810. }
  1811. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1812. struct snd_ctl_elem_value *ucontrol)
  1813. {
  1814. struct soc_mixer_control *mc =
  1815. (struct soc_mixer_control *)kcontrol->private_value;
  1816. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1817. ucontrol->value.integer.value[0] = 1;
  1818. else
  1819. ucontrol->value.integer.value[0] = 0;
  1820. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1821. ucontrol->value.integer.value[0]);
  1822. return 0;
  1823. }
  1824. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1825. struct snd_ctl_elem_value *ucontrol)
  1826. {
  1827. struct snd_soc_dapm_widget *widget =
  1828. snd_soc_dapm_kcontrol_widget(kcontrol);
  1829. struct soc_mixer_control *mc =
  1830. (struct soc_mixer_control *)kcontrol->private_value;
  1831. struct snd_soc_dapm_update *update = NULL;
  1832. if (ucontrol->value.integer.value[0] &&
  1833. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  1834. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1835. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1836. update);
  1837. } else if (!ucontrol->value.integer.value[0] &&
  1838. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  1839. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1840. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1841. update);
  1842. }
  1843. return 1;
  1844. }
  1845. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1846. struct snd_ctl_elem_value *ucontrol)
  1847. {
  1848. struct soc_mixer_control *mc =
  1849. (struct soc_mixer_control *)kcontrol->private_value;
  1850. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1851. ucontrol->value.integer.value[0] = 1;
  1852. else
  1853. ucontrol->value.integer.value[0] = 0;
  1854. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1855. ucontrol->value.integer.value[0]);
  1856. return 0;
  1857. }
  1858. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1859. struct snd_ctl_elem_value *ucontrol)
  1860. {
  1861. struct snd_soc_dapm_widget *widget =
  1862. snd_soc_dapm_kcontrol_widget(kcontrol);
  1863. struct soc_mixer_control *mc =
  1864. (struct soc_mixer_control *)kcontrol->private_value;
  1865. struct snd_soc_dapm_update *update = NULL;
  1866. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1867. ucontrol->value.integer.value[0]);
  1868. if (ucontrol->value.integer.value[0]) {
  1869. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  1870. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1871. snd_soc_dapm_mixer_update_power(widget->dapm,
  1872. kcontrol, 1, update);
  1873. } else if (!ucontrol->value.integer.value[0]) {
  1874. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  1875. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1876. snd_soc_dapm_mixer_update_power(widget->dapm,
  1877. kcontrol, 0, update);
  1878. }
  1879. return 1;
  1880. }
  1881. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1882. {
  1883. u32 session_id = 0;
  1884. u16 path_type;
  1885. struct media_format_info voc_be_media_format;
  1886. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1887. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1888. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1889. __func__, val, session_id);
  1890. mutex_lock(&routing_lock);
  1891. if (set)
  1892. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1893. else
  1894. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1895. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1896. afe_get_port_type(msm_bedais[reg].port_id) ==
  1897. MSM_AFE_PORT_TYPE_RX) {
  1898. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1899. __func__, set, msm_bedais[reg].port_id);
  1900. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1901. }
  1902. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1903. MSM_AFE_PORT_TYPE_RX)
  1904. path_type = RX_PATH;
  1905. else
  1906. path_type = TX_PATH;
  1907. if (set) {
  1908. if (msm_bedais[reg].active) {
  1909. voc_set_route_flag(session_id, path_type, 1);
  1910. memset(&voc_be_media_format, 0,
  1911. sizeof(struct media_format_info));
  1912. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1913. voc_be_media_format.num_channels =
  1914. msm_bedais[reg].channel;
  1915. voc_be_media_format.sample_rate =
  1916. msm_bedais[reg].sample_rate;
  1917. voc_be_media_format.bits_per_sample =
  1918. msm_bedais[reg].format;
  1919. /* Defaulting this to 1 for voice call usecases */
  1920. voc_be_media_format.channel_mapping[0] = 1;
  1921. voc_set_device_config(session_id, path_type,
  1922. &voc_be_media_format);
  1923. if (voc_get_route_flag(session_id, TX_PATH) &&
  1924. voc_get_route_flag(session_id, RX_PATH))
  1925. voc_enable_device(session_id);
  1926. } else {
  1927. pr_debug("%s BE is not active\n", __func__);
  1928. }
  1929. } else {
  1930. voc_set_route_flag(session_id, path_type, 0);
  1931. voc_disable_device(session_id);
  1932. }
  1933. mutex_unlock(&routing_lock);
  1934. }
  1935. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1936. struct snd_ctl_elem_value *ucontrol)
  1937. {
  1938. struct soc_mixer_control *mc =
  1939. (struct soc_mixer_control *)kcontrol->private_value;
  1940. mutex_lock(&routing_lock);
  1941. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1942. ucontrol->value.integer.value[0] = 1;
  1943. else
  1944. ucontrol->value.integer.value[0] = 0;
  1945. mutex_unlock(&routing_lock);
  1946. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1947. ucontrol->value.integer.value[0]);
  1948. return 0;
  1949. }
  1950. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1951. struct snd_ctl_elem_value *ucontrol)
  1952. {
  1953. struct snd_soc_dapm_widget *widget =
  1954. snd_soc_dapm_kcontrol_widget(kcontrol);
  1955. struct soc_mixer_control *mc =
  1956. (struct soc_mixer_control *)kcontrol->private_value;
  1957. struct snd_soc_dapm_update *update = NULL;
  1958. if (ucontrol->value.integer.value[0]) {
  1959. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  1960. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1961. update);
  1962. } else {
  1963. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  1964. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1965. update);
  1966. }
  1967. return 1;
  1968. }
  1969. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1970. struct snd_ctl_elem_value *ucontrol)
  1971. {
  1972. struct soc_mixer_control *mc =
  1973. (struct soc_mixer_control *)kcontrol->private_value;
  1974. mutex_lock(&routing_lock);
  1975. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1976. ucontrol->value.integer.value[0] = 1;
  1977. else
  1978. ucontrol->value.integer.value[0] = 0;
  1979. mutex_unlock(&routing_lock);
  1980. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1981. ucontrol->value.integer.value[0]);
  1982. return 0;
  1983. }
  1984. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1985. struct snd_ctl_elem_value *ucontrol)
  1986. {
  1987. struct snd_soc_dapm_widget *widget =
  1988. snd_soc_dapm_kcontrol_widget(kcontrol);
  1989. struct soc_mixer_control *mc =
  1990. (struct soc_mixer_control *)kcontrol->private_value;
  1991. struct snd_soc_dapm_update *update = NULL;
  1992. if (ucontrol->value.integer.value[0]) {
  1993. mutex_lock(&routing_lock);
  1994. set_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, 1,
  1997. update);
  1998. } else {
  1999. mutex_lock(&routing_lock);
  2000. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2001. mutex_unlock(&routing_lock);
  2002. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2003. update);
  2004. }
  2005. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2006. ucontrol->value.integer.value[0]);
  2007. return 1;
  2008. }
  2009. /*
  2010. * Return the mapping between port ID and backend ID to enable the AFE callback
  2011. * to determine the acdb_dev_id from the port id
  2012. */
  2013. int msm_pcm_get_be_id_from_port_id(int port_id)
  2014. {
  2015. int i;
  2016. int be_id = -EINVAL;
  2017. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2018. if (msm_bedais[i].port_id == port_id) {
  2019. be_id = i;
  2020. break;
  2021. }
  2022. }
  2023. return be_id;
  2024. }
  2025. /*
  2026. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2027. * correct AFE calibration information by comparing the header information.
  2028. */
  2029. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2030. {
  2031. int acdb_id = -EINVAL;
  2032. int i = 0;
  2033. int session;
  2034. int port_type = afe_get_port_type(port_id);
  2035. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2036. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2037. __func__, port_id, be_id, port_type);
  2038. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2039. session = SESSION_TYPE_TX;
  2040. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2041. session = SESSION_TYPE_RX;
  2042. } else {
  2043. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2044. acdb_id = -EINVAL;
  2045. goto exit;
  2046. }
  2047. if (be_id < 0) {
  2048. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2049. goto exit;
  2050. }
  2051. mutex_lock(&routing_lock);
  2052. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2053. MSM_FRONTEND_DAI_MAX);
  2054. if (i < MSM_FRONTEND_DAI_MAX)
  2055. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2056. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2057. __func__, i, session, be_id, acdb_id);
  2058. mutex_unlock(&routing_lock);
  2059. exit:
  2060. return acdb_id;
  2061. }
  2062. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2063. struct snd_ctl_elem_value *ucontrol)
  2064. {
  2065. ucontrol->value.integer.value[0] = fm_switch_enable;
  2066. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2067. ucontrol->value.integer.value[0]);
  2068. return 0;
  2069. }
  2070. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2071. struct snd_ctl_elem_value *ucontrol)
  2072. {
  2073. struct snd_soc_dapm_widget *widget =
  2074. snd_soc_dapm_kcontrol_widget(kcontrol);
  2075. struct snd_soc_dapm_update *update = NULL;
  2076. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2077. ucontrol->value.integer.value[0]);
  2078. if (ucontrol->value.integer.value[0])
  2079. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2080. update);
  2081. else
  2082. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2083. update);
  2084. fm_switch_enable = ucontrol->value.integer.value[0];
  2085. return 1;
  2086. }
  2087. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2088. struct snd_ctl_elem_value *ucontrol)
  2089. {
  2090. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2091. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2092. ucontrol->value.integer.value[0]);
  2093. return 0;
  2094. }
  2095. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2096. struct snd_ctl_elem_value *ucontrol)
  2097. {
  2098. struct snd_soc_dapm_widget *widget =
  2099. snd_soc_dapm_kcontrol_widget(kcontrol);
  2100. struct snd_soc_dapm_update *update = NULL;
  2101. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2102. ucontrol->value.integer.value[0]);
  2103. if (ucontrol->value.integer.value[0])
  2104. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2105. 1, update);
  2106. else
  2107. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2108. 0, update);
  2109. hfp_switch_enable = ucontrol->value.integer.value[0];
  2110. return 1;
  2111. }
  2112. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2113. struct snd_ctl_elem_value *ucontrol)
  2114. {
  2115. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2116. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2117. ucontrol->value.integer.value[0]);
  2118. return 0;
  2119. }
  2120. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2121. struct snd_ctl_elem_value *ucontrol)
  2122. {
  2123. struct snd_soc_dapm_widget *widget =
  2124. snd_soc_dapm_kcontrol_widget(kcontrol);
  2125. struct snd_soc_dapm_update *update = NULL;
  2126. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2127. ucontrol->value.integer.value[0]);
  2128. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2129. if (a2dp_switch_enable)
  2130. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2131. 1, update);
  2132. else
  2133. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2134. 0, update);
  2135. return 1;
  2136. }
  2137. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2138. struct snd_ctl_elem_value *ucontrol)
  2139. {
  2140. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2141. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2142. ucontrol->value.integer.value[0]);
  2143. return 0;
  2144. }
  2145. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2146. struct snd_ctl_elem_value *ucontrol)
  2147. {
  2148. struct snd_soc_dapm_widget *widget =
  2149. snd_soc_dapm_kcontrol_widget(kcontrol);
  2150. struct snd_soc_dapm_update *update = NULL;
  2151. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2152. ucontrol->value.integer.value[0]);
  2153. if (ucontrol->value.integer.value[0])
  2154. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2155. update);
  2156. else
  2157. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2158. update);
  2159. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2160. return 1;
  2161. }
  2162. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2163. struct snd_ctl_elem_value *ucontrol)
  2164. {
  2165. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2166. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2167. ucontrol->value.integer.value[0]);
  2168. return 0;
  2169. }
  2170. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2171. struct snd_ctl_elem_value *ucontrol)
  2172. {
  2173. struct snd_soc_dapm_widget *widget =
  2174. snd_soc_dapm_kcontrol_widget(kcontrol);
  2175. struct snd_soc_dapm_update *update = NULL;
  2176. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2177. ucontrol->value.integer.value[0]);
  2178. if (ucontrol->value.integer.value[0])
  2179. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2180. update);
  2181. else
  2182. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2183. update);
  2184. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2185. return 1;
  2186. }
  2187. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2188. struct snd_ctl_elem_value *ucontrol)
  2189. {
  2190. ucontrol->value.integer.value[0] = usb_switch_enable;
  2191. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2192. ucontrol->value.integer.value[0]);
  2193. return 0;
  2194. }
  2195. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2196. struct snd_ctl_elem_value *ucontrol)
  2197. {
  2198. struct snd_soc_dapm_widget *widget =
  2199. snd_soc_dapm_kcontrol_widget(kcontrol);
  2200. struct snd_soc_dapm_update *update = NULL;
  2201. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2202. ucontrol->value.integer.value[0]);
  2203. if (ucontrol->value.integer.value[0])
  2204. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2205. 1, update);
  2206. else
  2207. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2208. 0, update);
  2209. usb_switch_enable = ucontrol->value.integer.value[0];
  2210. return 1;
  2211. }
  2212. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2213. struct snd_ctl_elem_value *ucontrol)
  2214. {
  2215. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2216. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2217. ucontrol->value.integer.value[0]);
  2218. return 0;
  2219. }
  2220. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2221. struct snd_ctl_elem_value *ucontrol)
  2222. {
  2223. struct snd_soc_dapm_widget *widget =
  2224. snd_soc_dapm_kcontrol_widget(kcontrol);
  2225. struct snd_soc_dapm_update *update = NULL;
  2226. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2227. ucontrol->value.integer.value[0]);
  2228. if (ucontrol->value.integer.value[0])
  2229. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2230. update);
  2231. else
  2232. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2233. update);
  2234. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2235. return 1;
  2236. }
  2237. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2238. struct snd_ctl_elem_value *ucontrol)
  2239. {
  2240. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2241. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2242. ucontrol->value.integer.value[0]);
  2243. return 0;
  2244. }
  2245. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2246. struct snd_ctl_elem_value *ucontrol)
  2247. {
  2248. struct snd_soc_dapm_widget *widget =
  2249. snd_soc_dapm_kcontrol_widget(kcontrol);
  2250. struct snd_soc_dapm_update *update = NULL;
  2251. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2252. ucontrol->value.integer.value[0]);
  2253. if (ucontrol->value.integer.value[0])
  2254. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2255. update);
  2256. else
  2257. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2258. update);
  2259. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2260. return 1;
  2261. }
  2262. static int msm_routing_get_tert_mi2s_switch_mixer(
  2263. struct snd_kcontrol *kcontrol,
  2264. struct snd_ctl_elem_value *ucontrol)
  2265. {
  2266. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2267. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2268. ucontrol->value.integer.value[0]);
  2269. return 0;
  2270. }
  2271. static int msm_routing_put_tert_mi2s_switch_mixer(
  2272. struct snd_kcontrol *kcontrol,
  2273. struct snd_ctl_elem_value *ucontrol)
  2274. {
  2275. struct snd_soc_dapm_widget *widget =
  2276. snd_soc_dapm_kcontrol_widget(kcontrol);
  2277. struct snd_soc_dapm_update *update = NULL;
  2278. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2279. ucontrol->value.integer.value[0]);
  2280. if (ucontrol->value.integer.value[0])
  2281. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2282. update);
  2283. else
  2284. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2285. update);
  2286. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2287. return 1;
  2288. }
  2289. static int msm_routing_get_quat_mi2s_switch_mixer(
  2290. struct snd_kcontrol *kcontrol,
  2291. struct snd_ctl_elem_value *ucontrol)
  2292. {
  2293. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2294. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2295. ucontrol->value.integer.value[0]);
  2296. return 0;
  2297. }
  2298. static int msm_routing_put_quat_mi2s_switch_mixer(
  2299. struct snd_kcontrol *kcontrol,
  2300. struct snd_ctl_elem_value *ucontrol)
  2301. {
  2302. struct snd_soc_dapm_widget *widget =
  2303. snd_soc_dapm_kcontrol_widget(kcontrol);
  2304. struct snd_soc_dapm_update *update = NULL;
  2305. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2306. ucontrol->value.integer.value[0]);
  2307. if (ucontrol->value.integer.value[0])
  2308. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2309. update);
  2310. else
  2311. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2312. update);
  2313. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2314. return 1;
  2315. }
  2316. static int msm_routing_get_quin_mi2s_switch_mixer(
  2317. struct snd_kcontrol *kcontrol,
  2318. struct snd_ctl_elem_value *ucontrol)
  2319. {
  2320. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2321. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2322. ucontrol->value.integer.value[0]);
  2323. return 0;
  2324. }
  2325. static int msm_routing_put_quin_mi2s_switch_mixer(
  2326. struct snd_kcontrol *kcontrol,
  2327. struct snd_ctl_elem_value *ucontrol)
  2328. {
  2329. struct snd_soc_dapm_widget *widget =
  2330. snd_soc_dapm_kcontrol_widget(kcontrol);
  2331. struct snd_soc_dapm_update *update = NULL;
  2332. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2333. ucontrol->value.integer.value[0]);
  2334. if (ucontrol->value.integer.value[0])
  2335. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2336. update);
  2337. else
  2338. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2339. update);
  2340. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2341. return 1;
  2342. }
  2343. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2344. struct snd_ctl_elem_value *ucontrol)
  2345. {
  2346. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2347. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2348. ucontrol->value.integer.value[0]);
  2349. return 0;
  2350. }
  2351. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2352. struct snd_ctl_elem_value *ucontrol)
  2353. {
  2354. struct snd_soc_dapm_widget *widget =
  2355. snd_soc_dapm_kcontrol_widget(kcontrol);
  2356. struct snd_soc_dapm_update *update = NULL;
  2357. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2358. ucontrol->value.integer.value[0]);
  2359. if (ucontrol->value.integer.value[0])
  2360. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2361. update);
  2362. else
  2363. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2364. update);
  2365. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2366. return 1;
  2367. }
  2368. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2369. struct snd_ctl_elem_value *ucontrol)
  2370. {
  2371. ucontrol->value.integer.value[0] = lsm_port_index;
  2372. return 0;
  2373. }
  2374. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2375. struct snd_ctl_elem_value *ucontrol)
  2376. {
  2377. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2378. int mux = ucontrol->value.enumerated.item[0];
  2379. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2380. if (mux >= e->items) {
  2381. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2382. return -EINVAL;
  2383. }
  2384. pr_debug("%s: LSM enable %ld\n", __func__,
  2385. ucontrol->value.integer.value[0]);
  2386. switch (ucontrol->value.integer.value[0]) {
  2387. case 1:
  2388. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2389. break;
  2390. case 2:
  2391. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2392. break;
  2393. case 3:
  2394. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2395. break;
  2396. case 4:
  2397. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2398. break;
  2399. case 5:
  2400. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2401. break;
  2402. case 6:
  2403. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2404. break;
  2405. case 7:
  2406. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2407. break;
  2408. case 8:
  2409. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2410. break;
  2411. case 9:
  2412. lsm_port = ADM_LSM_PORT_ID;
  2413. break;
  2414. case 10:
  2415. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2416. break;
  2417. case 11:
  2418. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2419. break;
  2420. case 12:
  2421. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2422. break;
  2423. case 13:
  2424. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2425. break;
  2426. case 14:
  2427. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2428. break;
  2429. default:
  2430. pr_err("Default lsm port");
  2431. break;
  2432. }
  2433. set_lsm_port(lsm_port);
  2434. lsm_port_index = ucontrol->value.integer.value[0];
  2435. return 0;
  2436. }
  2437. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2438. struct snd_ctl_elem_value *ucontrol)
  2439. {
  2440. int i;
  2441. u16 port_id;
  2442. enum afe_mad_type mad_type;
  2443. pr_debug("%s: enter\n", __func__);
  2444. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2445. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2446. strlen(lsm_port_text[i])))
  2447. break;
  2448. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2449. pr_warn("%s: Invalid id name %s\n", __func__,
  2450. kcontrol->id.name);
  2451. return -EINVAL;
  2452. }
  2453. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2454. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2455. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2456. strlen(lsm_port_text[7])))
  2457. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2458. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2459. strlen(lsm_port_text[8])))
  2460. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2461. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2462. strlen(lsm_port_text[10])))
  2463. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2464. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2465. strlen(lsm_port_text[13])))
  2466. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2467. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2468. strlen(lsm_port_text[14])))
  2469. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2470. mad_type = afe_port_get_mad_type(port_id);
  2471. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2472. mad_type);
  2473. switch (mad_type) {
  2474. case MAD_HW_NONE:
  2475. ucontrol->value.integer.value[0] = MADNONE;
  2476. break;
  2477. case MAD_HW_AUDIO:
  2478. ucontrol->value.integer.value[0] = MADAUDIO;
  2479. break;
  2480. case MAD_HW_BEACON:
  2481. ucontrol->value.integer.value[0] = MADBEACON;
  2482. break;
  2483. case MAD_HW_ULTRASOUND:
  2484. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2485. break;
  2486. case MAD_SW_AUDIO:
  2487. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2488. break;
  2489. default:
  2490. pr_warn("%s: Unknown\n", __func__);
  2491. return -EINVAL;
  2492. }
  2493. return 0;
  2494. }
  2495. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2496. struct snd_ctl_elem_value *ucontrol)
  2497. {
  2498. int i;
  2499. u16 port_id;
  2500. enum afe_mad_type mad_type;
  2501. pr_debug("%s: enter\n", __func__);
  2502. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2503. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2504. strlen(lsm_port_text[i])))
  2505. break;
  2506. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2507. pr_warn("%s: Invalid id name %s\n", __func__,
  2508. kcontrol->id.name);
  2509. return -EINVAL;
  2510. }
  2511. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2512. switch (ucontrol->value.integer.value[0]) {
  2513. case MADNONE:
  2514. mad_type = MAD_HW_NONE;
  2515. break;
  2516. case MADAUDIO:
  2517. mad_type = MAD_HW_AUDIO;
  2518. break;
  2519. case MADBEACON:
  2520. mad_type = MAD_HW_BEACON;
  2521. break;
  2522. case MADULTRASOUND:
  2523. mad_type = MAD_HW_ULTRASOUND;
  2524. break;
  2525. case MADSWAUDIO:
  2526. mad_type = MAD_SW_AUDIO;
  2527. break;
  2528. default:
  2529. pr_warn("%s: Unknown\n", __func__);
  2530. return -EINVAL;
  2531. }
  2532. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2533. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2534. strlen(lsm_port_text[7])))
  2535. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2536. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2537. strlen(lsm_port_text[8])))
  2538. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2539. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2540. strlen(lsm_port_text[10])))
  2541. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2542. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2543. strlen(lsm_port_text[13])))
  2544. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2545. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2546. strlen(lsm_port_text[14])))
  2547. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2548. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2549. mad_type);
  2550. return afe_port_set_mad_type(port_id, mad_type);
  2551. }
  2552. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2553. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2554. adm_override_chs_text);
  2555. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2556. {
  2557. int backend_id;
  2558. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2559. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2560. } else {
  2561. pr_err("%s: unsupported backend id: %s",
  2562. __func__, kcontrol->id.name);
  2563. return -EINVAL;
  2564. }
  2565. return backend_id;
  2566. }
  2567. static int msm_routing_adm_channel_config_get(
  2568. struct snd_kcontrol *kcontrol,
  2569. struct snd_ctl_elem_value *ucontrol)
  2570. {
  2571. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2572. if (backend_id >= 0) {
  2573. mutex_lock(&routing_lock);
  2574. ucontrol->value.integer.value[0] =
  2575. msm_bedais[backend_id].adm_override_ch;
  2576. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2577. ucontrol->value.integer.value[0], backend_id);
  2578. mutex_unlock(&routing_lock);
  2579. }
  2580. return 0;
  2581. }
  2582. static int msm_routing_adm_channel_config_put(
  2583. struct snd_kcontrol *kcontrol,
  2584. struct snd_ctl_elem_value *ucontrol)
  2585. {
  2586. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2587. if (backend_id >= 0) {
  2588. mutex_lock(&routing_lock);
  2589. msm_bedais[backend_id].adm_override_ch =
  2590. ucontrol->value.integer.value[0];
  2591. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2592. __func__, backend_id,
  2593. msm_bedais[backend_id].adm_override_ch);
  2594. mutex_unlock(&routing_lock);
  2595. }
  2596. return 0;
  2597. }
  2598. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2599. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2600. msm_routing_adm_channel_config_get,
  2601. msm_routing_adm_channel_config_put),
  2602. };
  2603. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2604. struct snd_ctl_elem_value *ucontrol)
  2605. {
  2606. mutex_lock(&routing_lock);
  2607. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2608. mutex_unlock(&routing_lock);
  2609. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2610. ucontrol->value.integer.value[0]);
  2611. return 0;
  2612. };
  2613. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2614. struct snd_ctl_elem_value *ucontrol)
  2615. {
  2616. struct aanc_data aanc_info;
  2617. mutex_lock(&routing_lock);
  2618. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2619. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2620. ucontrol->value.integer.value[0]);
  2621. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2622. if (ucontrol->value.integer.value[0] == 0) {
  2623. aanc_info.aanc_active = false;
  2624. aanc_info.aanc_tx_port = 0;
  2625. aanc_info.aanc_rx_port = 0;
  2626. } else {
  2627. aanc_info.aanc_active = true;
  2628. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2629. aanc_info.aanc_tx_port =
  2630. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2631. }
  2632. afe_set_aanc_info(&aanc_info);
  2633. mutex_unlock(&routing_lock);
  2634. return 0;
  2635. };
  2636. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2637. struct snd_ctl_elem_value *ucontrol)
  2638. {
  2639. int idx = 0, shift = 0;
  2640. struct soc_mixer_control *mc =
  2641. (struct soc_mixer_control *)kcontrol->private_value;
  2642. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2643. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2644. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2645. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2646. return -EINVAL;
  2647. }
  2648. if (test_bit(shift,
  2649. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2650. ucontrol->value.integer.value[0] = 1;
  2651. else
  2652. ucontrol->value.integer.value[0] = 0;
  2653. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2654. ucontrol->value.integer.value[0]);
  2655. return 0;
  2656. }
  2657. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2658. struct snd_ctl_elem_value *ucontrol)
  2659. {
  2660. int idx = 0, shift = 0;
  2661. struct soc_mixer_control *mc =
  2662. (struct soc_mixer_control *)kcontrol->private_value;
  2663. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2664. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2665. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2666. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2667. return -EINVAL;
  2668. }
  2669. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2670. __func__, mc->shift, mc->rshift,
  2671. ucontrol->value.integer.value[0], idx, shift);
  2672. if (ucontrol->value.integer.value[0]) {
  2673. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2674. msm_bedais[mc->rshift].port_id);
  2675. set_bit(shift,
  2676. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2677. } else {
  2678. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2679. msm_bedais[mc->rshift].port_id);
  2680. clear_bit(shift,
  2681. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2682. }
  2683. return 1;
  2684. }
  2685. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2686. struct snd_ctl_elem_value *ucontrol)
  2687. {
  2688. u16 fe_id = 0;
  2689. fe_id = ((struct soc_mixer_control *)
  2690. kcontrol->private_value)->shift;
  2691. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2692. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2693. return -EINVAL;
  2694. }
  2695. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2696. return 0;
  2697. }
  2698. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2699. struct snd_ctl_elem_value *ucontrol)
  2700. {
  2701. u16 fe_id = 0;
  2702. fe_id = ((struct soc_mixer_control *)
  2703. kcontrol->private_value)->shift;
  2704. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2705. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2706. return -EINVAL;
  2707. }
  2708. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2709. return 1;
  2710. }
  2711. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2712. struct snd_ctl_elem_value *ucontrol)
  2713. {
  2714. u16 fe_id = 0;
  2715. fe_id = ((struct soc_multi_mixer_control *)
  2716. kcontrol->private_value)->shift;
  2717. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2718. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2719. return -EINVAL;
  2720. }
  2721. ucontrol->value.integer.value[0] =
  2722. channel_mixer[fe_id].output_channel;
  2723. return 0;
  2724. }
  2725. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2726. struct snd_ctl_elem_value *ucontrol)
  2727. {
  2728. u16 fe_id = 0;
  2729. fe_id = ((struct soc_multi_mixer_control *)
  2730. kcontrol->private_value)->shift;
  2731. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2732. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2733. return -EINVAL;
  2734. }
  2735. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2736. fe_id,
  2737. (unsigned int)(ucontrol->value.integer.value[0]));
  2738. channel_mixer[fe_id].output_channel =
  2739. (unsigned int)(ucontrol->value.integer.value[0]);
  2740. return 1;
  2741. }
  2742. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2743. /* If new backend is added, need update this array */
  2744. static const char *const be_name[] = {
  2745. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2746. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2747. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2748. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2749. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2750. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2751. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2752. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2753. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2754. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2755. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2756. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2757. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  2758. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2759. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2760. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2761. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2762. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2763. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2764. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2765. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2766. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2767. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2768. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2769. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2770. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2771. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2772. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2773. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2774. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2775. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2776. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2777. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2778. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2779. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX", "DISPLAY_PORT_RX1",
  2780. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2781. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2782. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2783. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2784. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2785. "INT6_MI2S_RX", "INT6_MI2S_TX", "WSA_CDC_DMA_RX_0",
  2786. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1", "WSA_CDC_DMA_TX_1",
  2787. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1",
  2788. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  2789. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  2790. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  2791. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  2792. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  2793. };
  2794. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2795. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2796. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2797. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2798. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2799. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2800. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2801. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2802. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2803. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2804. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2805. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2806. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2807. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2808. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2809. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2810. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2811. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2812. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2813. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2814. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2815. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2816. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2817. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2818. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2819. unsigned int channels,
  2820. unsigned int items, const char *const names[])
  2821. {
  2822. if (uinfo->value.enumerated.item >= items)
  2823. uinfo->value.enumerated.item = items - 1;
  2824. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2825. sizeof(uinfo->value.enumerated.name),
  2826. "ALSA: too long item name '%s'\n",
  2827. names[uinfo->value.enumerated.item]);
  2828. strlcpy(uinfo->value.enumerated.name,
  2829. names[uinfo->value.enumerated.item],
  2830. sizeof(uinfo->value.enumerated.name));
  2831. return 0;
  2832. }
  2833. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2834. struct snd_ctl_elem_info *uinfo)
  2835. {
  2836. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2837. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2838. uinfo->count = 1;
  2839. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2840. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2841. return 0;
  2842. }
  2843. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2844. struct snd_ctl_elem_value *ucontrol)
  2845. {
  2846. u16 fe_id = 0;
  2847. fe_id = ((struct soc_enum *)
  2848. kcontrol->private_value)->shift_l;
  2849. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2850. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2851. return -EINVAL;
  2852. }
  2853. pr_debug("%s: FE %d %s\n", __func__,
  2854. fe_id,
  2855. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2856. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2857. return 0;
  2858. }
  2859. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2860. struct snd_ctl_elem_value *ucontrol)
  2861. {
  2862. u16 fe_id = 0;
  2863. fe_id = ((struct soc_enum *)
  2864. kcontrol->private_value)->shift_l;
  2865. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2866. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2867. return -EINVAL;
  2868. }
  2869. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2870. pr_debug("%s: %s FE %d\n", __func__,
  2871. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2872. fe_id);
  2873. return 0;
  2874. }
  2875. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2876. struct snd_ctl_elem_info *uinfo)
  2877. {
  2878. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2879. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2880. uinfo->count = 1;
  2881. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2882. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2883. return 0;
  2884. }
  2885. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2886. struct snd_ctl_elem_value *ucontrol)
  2887. {
  2888. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2889. u16 fe_id = 0, in_ch = 0;
  2890. fe_id = e->shift_l;
  2891. in_ch = e->shift_r;
  2892. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2893. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2894. return -EINVAL;
  2895. }
  2896. if (in_ch >= ADM_MAX_CHANNELS) {
  2897. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2898. return -EINVAL;
  2899. }
  2900. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2901. return 1;
  2902. }
  2903. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2904. struct snd_ctl_elem_value *ucontrol)
  2905. {
  2906. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2907. u16 fe_id = 0, in_ch = 0;
  2908. fe_id = e->shift_l;
  2909. in_ch = e->shift_r;
  2910. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2911. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2912. return -EINVAL;
  2913. }
  2914. if (in_ch >= ADM_MAX_CHANNELS) {
  2915. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2916. return -EINVAL;
  2917. }
  2918. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2919. return 1;
  2920. }
  2921. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2922. struct snd_ctl_elem_info *uinfo)
  2923. {
  2924. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2925. uinfo->count = ADM_MAX_CHANNELS;
  2926. uinfo->value.integer.min = 0;
  2927. uinfo->value.integer.max = WEIGHT_0_DB;
  2928. return 0;
  2929. }
  2930. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2931. struct snd_ctl_elem_value *ucontrol)
  2932. {
  2933. u16 fe_id = 0, out_ch = 0;
  2934. int i, weight;
  2935. fe_id = ((struct soc_multi_mixer_control *)
  2936. kcontrol->private_value)->shift;
  2937. out_ch = ((struct soc_multi_mixer_control *)
  2938. kcontrol->private_value)->rshift;
  2939. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2940. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2941. return -EINVAL;
  2942. }
  2943. if (out_ch >= ADM_MAX_CHANNELS) {
  2944. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2945. return -EINVAL;
  2946. }
  2947. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2948. __func__, fe_id,
  2949. ucontrol->value.integer.value[0],
  2950. ucontrol->value.integer.value[1],
  2951. ucontrol->value.integer.value[2],
  2952. ucontrol->value.integer.value[3],
  2953. ucontrol->value.integer.value[4],
  2954. ucontrol->value.integer.value[5],
  2955. ucontrol->value.integer.value[6],
  2956. ucontrol->value.integer.value[7]);
  2957. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2958. weight = ucontrol->value.integer.value[i];
  2959. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2960. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2961. __func__, fe_id, out_ch, i,
  2962. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2963. }
  2964. return 0;
  2965. }
  2966. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2967. struct snd_ctl_elem_value *ucontrol)
  2968. {
  2969. u16 fe_id = 0, out_ch = 0;
  2970. int i;
  2971. fe_id = ((struct soc_multi_mixer_control *)
  2972. kcontrol->private_value)->shift;
  2973. out_ch = ((struct soc_multi_mixer_control *)
  2974. kcontrol->private_value)->rshift;
  2975. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2976. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2977. return -EINVAL;
  2978. }
  2979. if (out_ch >= ADM_MAX_CHANNELS) {
  2980. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2981. return -EINVAL;
  2982. }
  2983. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2984. ucontrol->value.integer.value[i] =
  2985. channel_mixer[fe_id].channel_weight[out_ch][i];
  2986. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2987. __func__, fe_id,
  2988. ucontrol->value.integer.value[0],
  2989. ucontrol->value.integer.value[1],
  2990. ucontrol->value.integer.value[2],
  2991. ucontrol->value.integer.value[3],
  2992. ucontrol->value.integer.value[4],
  2993. ucontrol->value.integer.value[5],
  2994. ucontrol->value.integer.value[6],
  2995. ucontrol->value.integer.value[7]);
  2996. return 0;
  2997. }
  2998. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2999. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3000. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3001. msm_pcm_get_channel_rule_index,
  3002. msm_pcm_put_channel_rule_index),
  3003. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3004. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3005. msm_pcm_get_channel_rule_index,
  3006. msm_pcm_put_channel_rule_index),
  3007. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3008. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3009. msm_pcm_get_channel_rule_index,
  3010. msm_pcm_put_channel_rule_index),
  3011. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3012. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3013. msm_pcm_get_channel_rule_index,
  3014. msm_pcm_put_channel_rule_index),
  3015. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3016. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3017. msm_pcm_get_channel_rule_index,
  3018. msm_pcm_put_channel_rule_index),
  3019. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3020. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3021. msm_pcm_get_channel_rule_index,
  3022. msm_pcm_put_channel_rule_index),
  3023. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3024. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3025. msm_pcm_get_out_chs,
  3026. msm_pcm_put_out_chs),
  3027. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3028. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3029. msm_pcm_get_out_chs,
  3030. msm_pcm_put_out_chs),
  3031. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3032. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3033. msm_pcm_get_out_chs,
  3034. msm_pcm_put_out_chs),
  3035. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3036. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3037. msm_pcm_get_out_chs,
  3038. msm_pcm_put_out_chs),
  3039. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3040. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3041. msm_pcm_get_out_chs,
  3042. msm_pcm_put_out_chs),
  3043. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3044. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3045. msm_pcm_get_out_chs,
  3046. msm_pcm_put_out_chs),
  3047. {
  3048. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3049. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3050. .name = "MultiMedia1 Channel Mixer",
  3051. .info = msm_pcm_channel_mixer_info,
  3052. .get = msm_pcm_channel_mixer_get,
  3053. .put = msm_pcm_channel_mixer_put,
  3054. .private_value = (unsigned long)&(mm1_channel_mux)
  3055. },
  3056. {
  3057. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3058. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3059. .name = "MultiMedia2 Channel Mixer",
  3060. .info = msm_pcm_channel_mixer_info,
  3061. .get = msm_pcm_channel_mixer_get,
  3062. .put = msm_pcm_channel_mixer_put,
  3063. .private_value = (unsigned long)&(mm2_channel_mux)
  3064. },
  3065. {
  3066. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3067. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3068. .name = "MultiMedia3 Channel Mixer",
  3069. .info = msm_pcm_channel_mixer_info,
  3070. .get = msm_pcm_channel_mixer_get,
  3071. .put = msm_pcm_channel_mixer_put,
  3072. .private_value = (unsigned long)&(mm3_channel_mux)
  3073. },
  3074. {
  3075. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3076. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3077. .name = "MultiMedia4 Channel Mixer",
  3078. .info = msm_pcm_channel_mixer_info,
  3079. .get = msm_pcm_channel_mixer_get,
  3080. .put = msm_pcm_channel_mixer_put,
  3081. .private_value = (unsigned long)&(mm4_channel_mux)
  3082. },
  3083. {
  3084. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3085. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3086. .name = "MultiMedia1 Output Channel1",
  3087. .info = msm_pcm_channel_weight_info,
  3088. .get = msm_pcm_channel_weight_get,
  3089. .put = msm_pcm_channel_weight_put,
  3090. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3091. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3092. },
  3093. {
  3094. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3095. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3096. .name = "MultiMedia1 Output Channel2",
  3097. .info = msm_pcm_channel_weight_info,
  3098. .get = msm_pcm_channel_weight_get,
  3099. .put = msm_pcm_channel_weight_put,
  3100. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3101. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3102. },
  3103. {
  3104. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3105. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3106. .name = "MultiMedia1 Output Channel3",
  3107. .info = msm_pcm_channel_weight_info,
  3108. .get = msm_pcm_channel_weight_get,
  3109. .put = msm_pcm_channel_weight_put,
  3110. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3111. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3112. },
  3113. {
  3114. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3115. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3116. .name = "MultiMedia1 Output Channel4",
  3117. .info = msm_pcm_channel_weight_info,
  3118. .get = msm_pcm_channel_weight_get,
  3119. .put = msm_pcm_channel_weight_put,
  3120. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3121. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3122. },
  3123. {
  3124. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3125. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3126. .name = "MultiMedia1 Output Channel5",
  3127. .info = msm_pcm_channel_weight_info,
  3128. .get = msm_pcm_channel_weight_get,
  3129. .put = msm_pcm_channel_weight_put,
  3130. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3131. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3132. },
  3133. {
  3134. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3135. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3136. .name = "MultiMedia1 Output Channel6",
  3137. .info = msm_pcm_channel_weight_info,
  3138. .get = msm_pcm_channel_weight_get,
  3139. .put = msm_pcm_channel_weight_put,
  3140. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3141. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3142. },
  3143. {
  3144. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3145. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3146. .name = "MultiMedia1 Output Channel7",
  3147. .info = msm_pcm_channel_weight_info,
  3148. .get = msm_pcm_channel_weight_get,
  3149. .put = msm_pcm_channel_weight_put,
  3150. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3151. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3152. },
  3153. {
  3154. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3155. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3156. .name = "MultiMedia1 Output Channel8",
  3157. .info = msm_pcm_channel_weight_info,
  3158. .get = msm_pcm_channel_weight_get,
  3159. .put = msm_pcm_channel_weight_put,
  3160. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3161. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3162. },
  3163. {
  3164. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3165. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3166. .name = "MultiMedia2 Output Channel1",
  3167. .info = msm_pcm_channel_weight_info,
  3168. .get = msm_pcm_channel_weight_get,
  3169. .put = msm_pcm_channel_weight_put,
  3170. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3171. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3172. },
  3173. {
  3174. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3175. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3176. .name = "MultiMedia2 Output Channel2",
  3177. .info = msm_pcm_channel_weight_info,
  3178. .get = msm_pcm_channel_weight_get,
  3179. .put = msm_pcm_channel_weight_put,
  3180. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3181. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3182. },
  3183. {
  3184. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3185. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3186. .name = "MultiMedia2 Output Channel3",
  3187. .info = msm_pcm_channel_weight_info,
  3188. .get = msm_pcm_channel_weight_get,
  3189. .put = msm_pcm_channel_weight_put,
  3190. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3191. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3192. },
  3193. {
  3194. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3195. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3196. .name = "MultiMedia3 Output Channel1",
  3197. .info = msm_pcm_channel_weight_info,
  3198. .get = msm_pcm_channel_weight_get,
  3199. .put = msm_pcm_channel_weight_put,
  3200. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3201. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3202. },
  3203. {
  3204. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3205. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3206. .name = "MultiMedia3 Output Channel2",
  3207. .info = msm_pcm_channel_weight_info,
  3208. .get = msm_pcm_channel_weight_get,
  3209. .put = msm_pcm_channel_weight_put,
  3210. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3211. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3212. },
  3213. {
  3214. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3215. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3216. .name = "MultiMedia1 Channel1",
  3217. .info = msm_pcm_channel_input_be_info,
  3218. .get = msm_pcm_channel_input_be_get,
  3219. .put = msm_pcm_channel_input_be_put,
  3220. .private_value = (unsigned long)&(mm1_ch1_enum)
  3221. },
  3222. {
  3223. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3224. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3225. .name = "MultiMedia1 Channel2",
  3226. .info = msm_pcm_channel_input_be_info,
  3227. .get = msm_pcm_channel_input_be_get,
  3228. .put = msm_pcm_channel_input_be_put,
  3229. .private_value = (unsigned long)&(mm1_ch2_enum)
  3230. },
  3231. {
  3232. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3233. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3234. .name = "MultiMedia1 Channel3",
  3235. .info = msm_pcm_channel_input_be_info,
  3236. .get = msm_pcm_channel_input_be_get,
  3237. .put = msm_pcm_channel_input_be_put,
  3238. .private_value = (unsigned long)&(mm1_ch3_enum)
  3239. },
  3240. {
  3241. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3242. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3243. .name = "MultiMedia1 Channel4",
  3244. .info = msm_pcm_channel_input_be_info,
  3245. .get = msm_pcm_channel_input_be_get,
  3246. .put = msm_pcm_channel_input_be_put,
  3247. .private_value = (unsigned long)&(mm1_ch4_enum)
  3248. },
  3249. {
  3250. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3251. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3252. .name = "MultiMedia1 Channel5",
  3253. .info = msm_pcm_channel_input_be_info,
  3254. .get = msm_pcm_channel_input_be_get,
  3255. .put = msm_pcm_channel_input_be_put,
  3256. .private_value = (unsigned long)&(mm1_ch5_enum)
  3257. },
  3258. {
  3259. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3260. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3261. .name = "MultiMedia1 Channel6",
  3262. .info = msm_pcm_channel_input_be_info,
  3263. .get = msm_pcm_channel_input_be_get,
  3264. .put = msm_pcm_channel_input_be_put,
  3265. .private_value = (unsigned long)&(mm1_ch6_enum)
  3266. },
  3267. {
  3268. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3269. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3270. .name = "MultiMedia1 Channel7",
  3271. .info = msm_pcm_channel_input_be_info,
  3272. .get = msm_pcm_channel_input_be_get,
  3273. .put = msm_pcm_channel_input_be_put,
  3274. .private_value = (unsigned long)&(mm1_ch7_enum)
  3275. },
  3276. {
  3277. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3278. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3279. .name = "MultiMedia1 Channel8",
  3280. .info = msm_pcm_channel_input_be_info,
  3281. .get = msm_pcm_channel_input_be_get,
  3282. .put = msm_pcm_channel_input_be_put,
  3283. .private_value = (unsigned long)&(mm1_ch8_enum)
  3284. },
  3285. };
  3286. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3287. struct snd_ctl_elem_value *ucontrol)
  3288. {
  3289. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3290. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3291. ucontrol->value.integer.value[0]);
  3292. return 0;
  3293. }
  3294. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3295. struct snd_ctl_elem_value *ucontrol)
  3296. {
  3297. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3298. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3299. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3300. return 0;
  3301. }
  3302. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3303. "Four", "Five", "Six", "Seven", "Eight"};
  3304. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3305. struct snd_ctl_elem_value *ucontrol)
  3306. {
  3307. switch (msm_ec_ref_bit_format) {
  3308. case SNDRV_PCM_FORMAT_S24_LE:
  3309. ucontrol->value.integer.value[0] = 2;
  3310. break;
  3311. case SNDRV_PCM_FORMAT_S16_LE:
  3312. ucontrol->value.integer.value[0] = 1;
  3313. break;
  3314. default:
  3315. ucontrol->value.integer.value[0] = 0;
  3316. break;
  3317. }
  3318. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3319. __func__, ucontrol->value.integer.value[0]);
  3320. return 0;
  3321. }
  3322. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3323. struct snd_ctl_elem_value *ucontrol)
  3324. {
  3325. u16 bit_width = 0;
  3326. switch (ucontrol->value.integer.value[0]) {
  3327. case 2:
  3328. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3329. break;
  3330. case 1:
  3331. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3332. break;
  3333. default:
  3334. msm_ec_ref_bit_format = 0;
  3335. break;
  3336. }
  3337. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3338. bit_width = 16;
  3339. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3340. bit_width = 24;
  3341. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3342. __func__, msm_ec_ref_bit_format);
  3343. adm_ec_ref_rx_bit_width(bit_width);
  3344. return 0;
  3345. }
  3346. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3347. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3348. struct snd_ctl_elem_value *ucontrol)
  3349. {
  3350. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3351. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3352. __func__, ucontrol->value.integer.value[0]);
  3353. return 0;
  3354. }
  3355. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3356. struct snd_ctl_elem_value *ucontrol)
  3357. {
  3358. switch (ucontrol->value.integer.value[0]) {
  3359. case 0:
  3360. msm_ec_ref_sampling_rate = 0;
  3361. break;
  3362. case 1:
  3363. msm_ec_ref_sampling_rate = 8000;
  3364. break;
  3365. case 2:
  3366. msm_ec_ref_sampling_rate = 16000;
  3367. break;
  3368. case 3:
  3369. msm_ec_ref_sampling_rate = 32000;
  3370. break;
  3371. case 4:
  3372. msm_ec_ref_sampling_rate = 44100;
  3373. break;
  3374. case 5:
  3375. msm_ec_ref_sampling_rate = 48000;
  3376. break;
  3377. case 6:
  3378. msm_ec_ref_sampling_rate = 96000;
  3379. break;
  3380. case 7:
  3381. msm_ec_ref_sampling_rate = 192000;
  3382. break;
  3383. case 8:
  3384. msm_ec_ref_sampling_rate = 384000;
  3385. break;
  3386. default:
  3387. msm_ec_ref_sampling_rate = 48000;
  3388. break;
  3389. }
  3390. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3391. __func__, msm_ec_ref_sampling_rate);
  3392. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3393. return 0;
  3394. }
  3395. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3396. "32000", "44100", "48000", "96000", "192000", "384000"};
  3397. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3398. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3399. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3400. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3401. };
  3402. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3403. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3404. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3405. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3406. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3407. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3408. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3409. };
  3410. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3411. struct snd_ctl_elem_value *ucontrol)
  3412. {
  3413. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3414. mutex_lock(&routing_lock);
  3415. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3416. mutex_unlock(&routing_lock);
  3417. return 0;
  3418. }
  3419. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3420. struct snd_ctl_elem_value *ucontrol)
  3421. {
  3422. int ec_ref_port_id;
  3423. struct snd_soc_dapm_widget *widget =
  3424. snd_soc_dapm_kcontrol_widget(kcontrol);
  3425. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3426. struct snd_soc_dapm_update *update = NULL;
  3427. mutex_lock(&routing_lock);
  3428. switch (ucontrol->value.integer.value[0]) {
  3429. case 0:
  3430. msm_route_ec_ref_rx = 0;
  3431. ec_ref_port_id = AFE_PORT_INVALID;
  3432. break;
  3433. case 1:
  3434. msm_route_ec_ref_rx = 1;
  3435. ec_ref_port_id = SLIMBUS_0_RX;
  3436. break;
  3437. case 2:
  3438. msm_route_ec_ref_rx = 2;
  3439. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3440. break;
  3441. case 3:
  3442. msm_route_ec_ref_rx = 3;
  3443. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3444. break;
  3445. case 4:
  3446. msm_route_ec_ref_rx = 4;
  3447. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3448. break;
  3449. case 5:
  3450. msm_route_ec_ref_rx = 5;
  3451. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3452. break;
  3453. case 6:
  3454. msm_route_ec_ref_rx = 6;
  3455. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3456. break;
  3457. case 7:
  3458. msm_route_ec_ref_rx = 7;
  3459. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3460. break;
  3461. case 9:
  3462. msm_route_ec_ref_rx = 9;
  3463. ec_ref_port_id = SLIMBUS_5_RX;
  3464. break;
  3465. case 10:
  3466. msm_route_ec_ref_rx = 10;
  3467. ec_ref_port_id = SLIMBUS_1_TX;
  3468. break;
  3469. case 11:
  3470. msm_route_ec_ref_rx = 11;
  3471. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3472. break;
  3473. case 12:
  3474. msm_route_ec_ref_rx = 12;
  3475. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3476. break;
  3477. case 13:
  3478. msm_route_ec_ref_rx = 13;
  3479. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3480. break;
  3481. case 14:
  3482. msm_route_ec_ref_rx = 14;
  3483. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3484. break;
  3485. case 15:
  3486. msm_route_ec_ref_rx = 15;
  3487. ec_ref_port_id = SLIMBUS_6_RX;
  3488. break;
  3489. case 16:
  3490. msm_route_ec_ref_rx = 16;
  3491. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3492. break;
  3493. case 17:
  3494. msm_route_ec_ref_rx = 17;
  3495. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3496. break;
  3497. case 18:
  3498. msm_route_ec_ref_rx = 18;
  3499. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3500. break;
  3501. case 19:
  3502. msm_route_ec_ref_rx = 19;
  3503. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3504. break;
  3505. case 20:
  3506. msm_route_ec_ref_rx = 20;
  3507. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3508. break;
  3509. case 21:
  3510. msm_route_ec_ref_rx = 21;
  3511. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3512. break;
  3513. case 22:
  3514. msm_route_ec_ref_rx = 22;
  3515. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3516. break;
  3517. case 23:
  3518. msm_route_ec_ref_rx = 23;
  3519. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3520. break;
  3521. case 24:
  3522. msm_route_ec_ref_rx = 24;
  3523. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3524. break;
  3525. case 25:
  3526. msm_route_ec_ref_rx = 25;
  3527. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3528. break;
  3529. case 26:
  3530. msm_route_ec_ref_rx = 26;
  3531. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3532. break;
  3533. case 27:
  3534. msm_route_ec_ref_rx = 27;
  3535. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3536. break;
  3537. case 28:
  3538. msm_route_ec_ref_rx = 28;
  3539. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3540. break;
  3541. case 29:
  3542. msm_route_ec_ref_rx = 29;
  3543. ec_ref_port_id = SLIMBUS_7_RX;
  3544. break;
  3545. case 30:
  3546. msm_route_ec_ref_rx = 30;
  3547. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  3548. break;
  3549. case 31:
  3550. msm_route_ec_ref_rx = 31;
  3551. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  3552. break;
  3553. case 32:
  3554. msm_route_ec_ref_rx = 32;
  3555. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  3556. break;
  3557. case 33:
  3558. msm_route_ec_ref_rx = 33;
  3559. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  3560. break;
  3561. case 34:
  3562. msm_route_ec_ref_rx = 34;
  3563. ec_ref_port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  3564. break;
  3565. case 35:
  3566. msm_route_ec_ref_rx = 35;
  3567. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  3568. break;
  3569. case 36:
  3570. msm_route_ec_ref_rx = 36;
  3571. ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3572. break;
  3573. default:
  3574. msm_route_ec_ref_rx = 0; /* NONE */
  3575. pr_err("%s EC ref rx %ld not valid\n",
  3576. __func__, ucontrol->value.integer.value[0]);
  3577. ec_ref_port_id = AFE_PORT_INVALID;
  3578. break;
  3579. }
  3580. adm_ec_ref_rx_id(ec_ref_port_id);
  3581. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3582. __func__, msm_route_ec_ref_rx);
  3583. mutex_unlock(&routing_lock);
  3584. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3585. msm_route_ec_ref_rx, e, update);
  3586. return 0;
  3587. }
  3588. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3589. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3590. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3591. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3592. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3593. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3594. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3595. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3596. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  3597. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  3598. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  3599. };
  3600. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3601. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3602. };
  3603. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3604. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3605. msm_route_ec_ref_rx_enum[0],
  3606. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3607. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3608. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3609. msm_route_ec_ref_rx_enum[0],
  3610. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3611. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3612. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3613. msm_route_ec_ref_rx_enum[0],
  3614. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3615. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3616. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3617. msm_route_ec_ref_rx_enum[0],
  3618. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3619. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3620. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3621. msm_route_ec_ref_rx_enum[0],
  3622. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3623. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3624. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3625. msm_route_ec_ref_rx_enum[0],
  3626. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3627. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3628. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3629. msm_route_ec_ref_rx_enum[0],
  3630. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3631. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3632. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3633. msm_route_ec_ref_rx_enum[0],
  3634. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3635. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3636. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3637. msm_route_ec_ref_rx_enum[0],
  3638. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3639. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3640. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3641. msm_route_ec_ref_rx_enum[0],
  3642. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3643. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3644. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3645. msm_route_ec_ref_rx_enum[0],
  3646. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3647. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3648. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3649. msm_route_ec_ref_rx_enum[0],
  3650. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3651. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3652. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3653. msm_route_ec_ref_rx_enum[0],
  3654. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3655. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3656. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3657. msm_route_ec_ref_rx_enum[0],
  3658. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3659. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3660. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3661. msm_route_ec_ref_rx_enum[0],
  3662. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3663. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3664. struct snd_ctl_elem_value *ucontrol)
  3665. {
  3666. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3667. mutex_lock(&routing_lock);
  3668. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3669. mutex_unlock(&routing_lock);
  3670. return 0;
  3671. }
  3672. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3673. struct snd_ctl_elem_value *ucontrol)
  3674. {
  3675. struct snd_soc_dapm_widget *widget =
  3676. snd_soc_dapm_kcontrol_widget(kcontrol);
  3677. int mux = ucontrol->value.enumerated.item[0];
  3678. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3679. int ret = 1;
  3680. bool state = true;
  3681. uint16_t ext_ec_ref_port_id;
  3682. struct snd_soc_dapm_update *update = NULL;
  3683. if (mux >= e->items) {
  3684. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3685. return -EINVAL;
  3686. }
  3687. mutex_lock(&routing_lock);
  3688. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3689. switch (msm_route_ext_ec_ref) {
  3690. case EXT_EC_REF_PRI_MI2S_TX:
  3691. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3692. break;
  3693. case EXT_EC_REF_SEC_MI2S_TX:
  3694. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3695. break;
  3696. case EXT_EC_REF_TERT_MI2S_TX:
  3697. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3698. break;
  3699. case EXT_EC_REF_QUAT_MI2S_TX:
  3700. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3701. break;
  3702. case EXT_EC_REF_QUIN_MI2S_TX:
  3703. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3704. break;
  3705. case EXT_EC_REF_SLIM_1_TX:
  3706. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3707. break;
  3708. case EXT_EC_REF_SEC_TDM_TX:
  3709. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3710. break;
  3711. case EXT_EC_REF_NONE:
  3712. default:
  3713. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3714. state = false;
  3715. break;
  3716. }
  3717. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3718. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3719. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3720. mutex_unlock(&routing_lock);
  3721. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3722. update);
  3723. } else {
  3724. ret = -EINVAL;
  3725. mutex_unlock(&routing_lock);
  3726. }
  3727. return ret;
  3728. }
  3729. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3730. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3731. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3732. "SLIM_1_TX", "SEC_TDM_TX"};
  3733. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3734. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3735. };
  3736. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3737. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3738. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3739. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3740. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3741. MSM_BACKEND_DAI_PRI_I2S_RX,
  3742. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3743. msm_routing_put_audio_mixer),
  3744. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3745. MSM_BACKEND_DAI_PRI_I2S_RX,
  3746. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3747. msm_routing_put_audio_mixer),
  3748. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3749. MSM_BACKEND_DAI_PRI_I2S_RX,
  3750. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3751. msm_routing_put_audio_mixer),
  3752. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3753. MSM_BACKEND_DAI_PRI_I2S_RX,
  3754. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3755. msm_routing_put_audio_mixer),
  3756. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3757. MSM_BACKEND_DAI_PRI_I2S_RX,
  3758. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3759. msm_routing_put_audio_mixer),
  3760. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3761. MSM_BACKEND_DAI_PRI_I2S_RX,
  3762. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3763. msm_routing_put_audio_mixer),
  3764. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3765. MSM_BACKEND_DAI_PRI_I2S_RX,
  3766. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3767. msm_routing_put_audio_mixer),
  3768. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3769. MSM_BACKEND_DAI_PRI_I2S_RX,
  3770. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3771. msm_routing_put_audio_mixer),
  3772. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3773. MSM_BACKEND_DAI_PRI_I2S_RX,
  3774. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3775. msm_routing_put_audio_mixer),
  3776. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3777. MSM_BACKEND_DAI_PRI_I2S_RX,
  3778. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3779. msm_routing_put_audio_mixer),
  3780. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3781. MSM_BACKEND_DAI_PRI_I2S_RX,
  3782. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3783. msm_routing_put_audio_mixer),
  3784. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3785. MSM_BACKEND_DAI_PRI_I2S_RX,
  3786. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3787. msm_routing_put_audio_mixer),
  3788. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3789. MSM_BACKEND_DAI_PRI_I2S_RX,
  3790. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3791. msm_routing_put_audio_mixer),
  3792. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3793. MSM_BACKEND_DAI_PRI_I2S_RX,
  3794. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3795. msm_routing_put_audio_mixer),
  3796. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3797. MSM_BACKEND_DAI_PRI_I2S_RX,
  3798. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3799. msm_routing_put_audio_mixer),
  3800. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3801. MSM_BACKEND_DAI_PRI_I2S_RX,
  3802. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3803. msm_routing_put_audio_mixer),
  3804. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3805. MSM_BACKEND_DAI_PRI_I2S_RX,
  3806. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3807. msm_routing_put_audio_mixer),
  3808. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3809. MSM_BACKEND_DAI_PRI_I2S_RX,
  3810. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3811. msm_routing_put_audio_mixer),
  3812. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3813. MSM_BACKEND_DAI_PRI_I2S_RX,
  3814. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3815. msm_routing_put_audio_mixer),
  3816. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3817. MSM_BACKEND_DAI_PRI_I2S_RX,
  3818. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3819. msm_routing_put_audio_mixer),
  3820. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3821. MSM_BACKEND_DAI_PRI_I2S_RX,
  3822. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3823. msm_routing_put_audio_mixer),
  3824. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3825. MSM_BACKEND_DAI_PRI_I2S_RX,
  3826. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3827. msm_routing_put_audio_mixer),
  3828. };
  3829. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3830. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3831. MSM_BACKEND_DAI_SEC_I2S_RX,
  3832. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3833. msm_routing_put_audio_mixer),
  3834. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3835. MSM_BACKEND_DAI_SEC_I2S_RX,
  3836. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3837. msm_routing_put_audio_mixer),
  3838. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3839. MSM_BACKEND_DAI_SEC_I2S_RX,
  3840. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3841. msm_routing_put_audio_mixer),
  3842. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3843. MSM_BACKEND_DAI_SEC_I2S_RX,
  3844. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3845. msm_routing_put_audio_mixer),
  3846. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3847. MSM_BACKEND_DAI_SEC_I2S_RX,
  3848. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3849. msm_routing_put_audio_mixer),
  3850. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3851. MSM_BACKEND_DAI_SEC_I2S_RX,
  3852. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3853. msm_routing_put_audio_mixer),
  3854. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3855. MSM_BACKEND_DAI_SEC_I2S_RX,
  3856. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3857. msm_routing_put_audio_mixer),
  3858. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3859. MSM_BACKEND_DAI_SEC_I2S_RX,
  3860. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3861. msm_routing_put_audio_mixer),
  3862. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3863. MSM_BACKEND_DAI_SEC_I2S_RX,
  3864. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3865. msm_routing_put_audio_mixer),
  3866. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3867. MSM_BACKEND_DAI_SEC_I2S_RX,
  3868. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3869. msm_routing_put_audio_mixer),
  3870. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3871. MSM_BACKEND_DAI_SEC_I2S_RX,
  3872. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3873. msm_routing_put_audio_mixer),
  3874. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3875. MSM_BACKEND_DAI_SEC_I2S_RX,
  3876. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3877. msm_routing_put_audio_mixer),
  3878. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3879. MSM_BACKEND_DAI_SEC_I2S_RX,
  3880. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3881. msm_routing_put_audio_mixer),
  3882. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3883. MSM_BACKEND_DAI_SEC_I2S_RX,
  3884. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3885. msm_routing_put_audio_mixer),
  3886. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3887. MSM_BACKEND_DAI_SEC_I2S_RX,
  3888. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3889. msm_routing_put_audio_mixer),
  3890. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3891. MSM_BACKEND_DAI_SEC_I2S_RX,
  3892. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3893. msm_routing_put_audio_mixer),
  3894. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3895. MSM_BACKEND_DAI_SEC_I2S_RX,
  3896. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3897. msm_routing_put_audio_mixer),
  3898. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3899. MSM_BACKEND_DAI_SEC_I2S_RX,
  3900. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3901. msm_routing_put_audio_mixer),
  3902. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3903. MSM_BACKEND_DAI_SEC_I2S_RX,
  3904. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3905. msm_routing_put_audio_mixer),
  3906. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3907. MSM_BACKEND_DAI_SEC_I2S_RX,
  3908. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3909. msm_routing_put_audio_mixer),
  3910. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3911. MSM_BACKEND_DAI_SEC_I2S_RX,
  3912. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3913. msm_routing_put_audio_mixer),
  3914. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3915. MSM_BACKEND_DAI_SEC_I2S_RX,
  3916. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3917. msm_routing_put_audio_mixer),
  3918. };
  3919. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  3920. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3921. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3922. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3923. msm_routing_put_audio_mixer),
  3924. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3925. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3926. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3927. msm_routing_put_audio_mixer),
  3928. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3929. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3930. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3931. msm_routing_put_audio_mixer),
  3932. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3933. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3934. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3935. msm_routing_put_audio_mixer),
  3936. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3937. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3938. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3939. msm_routing_put_audio_mixer),
  3940. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3941. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3942. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3943. msm_routing_put_audio_mixer),
  3944. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3945. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3946. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3947. msm_routing_put_audio_mixer),
  3948. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3949. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3950. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3951. msm_routing_put_audio_mixer),
  3952. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3953. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3954. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3955. msm_routing_put_audio_mixer),
  3956. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3957. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3958. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3959. msm_routing_put_audio_mixer),
  3960. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3961. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3962. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3963. msm_routing_put_audio_mixer),
  3964. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3965. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3966. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3967. msm_routing_put_audio_mixer),
  3968. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3969. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3970. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3971. msm_routing_put_audio_mixer),
  3972. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3973. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3974. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3975. msm_routing_put_audio_mixer),
  3976. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3977. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3978. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3979. msm_routing_put_audio_mixer),
  3980. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3981. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3982. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3983. msm_routing_put_audio_mixer),
  3984. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3985. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3986. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3987. msm_routing_put_audio_mixer),
  3988. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3989. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3990. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3991. msm_routing_put_audio_mixer),
  3992. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3993. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3994. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3995. msm_routing_put_audio_mixer),
  3996. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3997. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3998. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3999. msm_routing_put_audio_mixer),
  4000. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4001. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4002. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4003. msm_routing_put_audio_mixer),
  4004. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4005. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4006. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4007. msm_routing_put_audio_mixer),
  4008. };
  4009. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  4010. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4011. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4012. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4013. msm_routing_put_audio_mixer),
  4014. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4015. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4016. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4017. msm_routing_put_audio_mixer),
  4018. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4019. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4020. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4021. msm_routing_put_audio_mixer),
  4022. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4023. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4024. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4025. msm_routing_put_audio_mixer),
  4026. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4027. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4028. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4029. msm_routing_put_audio_mixer),
  4030. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4031. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4032. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4033. msm_routing_put_audio_mixer),
  4034. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4035. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4036. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4037. msm_routing_put_audio_mixer),
  4038. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4039. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4040. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4041. msm_routing_put_audio_mixer),
  4042. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4043. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4044. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4045. msm_routing_put_audio_mixer),
  4046. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4047. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4048. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4049. msm_routing_put_audio_mixer),
  4050. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4051. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4052. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4053. msm_routing_put_audio_mixer),
  4054. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4055. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4056. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4057. msm_routing_put_audio_mixer),
  4058. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4059. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4060. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4061. msm_routing_put_audio_mixer),
  4062. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4063. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4064. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4065. msm_routing_put_audio_mixer),
  4066. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4067. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4068. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4069. msm_routing_put_audio_mixer),
  4070. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4071. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4072. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4073. msm_routing_put_audio_mixer),
  4074. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4075. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4076. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4077. msm_routing_put_audio_mixer),
  4078. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4079. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4080. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4081. msm_routing_put_audio_mixer),
  4082. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4083. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4084. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4085. msm_routing_put_audio_mixer),
  4086. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4087. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4088. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4089. msm_routing_put_audio_mixer),
  4090. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4091. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4092. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4093. msm_routing_put_audio_mixer),
  4094. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4095. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4096. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4097. msm_routing_put_audio_mixer),
  4098. };
  4099. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  4100. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4101. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4102. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4103. msm_routing_put_audio_mixer),
  4104. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4105. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4106. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4107. msm_routing_put_audio_mixer),
  4108. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4109. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4110. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4111. msm_routing_put_audio_mixer),
  4112. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4113. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4114. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4115. msm_routing_put_audio_mixer),
  4116. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4117. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4118. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4119. msm_routing_put_audio_mixer),
  4120. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4121. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4122. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4123. msm_routing_put_audio_mixer),
  4124. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4125. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4126. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4127. msm_routing_put_audio_mixer),
  4128. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4129. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4130. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4131. msm_routing_put_audio_mixer),
  4132. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4133. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4134. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4135. msm_routing_put_audio_mixer),
  4136. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4137. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4138. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4139. msm_routing_put_audio_mixer),
  4140. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4141. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4142. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4143. msm_routing_put_audio_mixer),
  4144. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4145. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4146. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4147. msm_routing_put_audio_mixer),
  4148. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4149. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4150. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4151. msm_routing_put_audio_mixer),
  4152. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4153. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4154. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4155. msm_routing_put_audio_mixer),
  4156. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4157. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4158. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4159. msm_routing_put_audio_mixer),
  4160. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4161. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4162. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4163. msm_routing_put_audio_mixer),
  4164. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4165. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4166. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4167. msm_routing_put_audio_mixer),
  4168. };
  4169. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  4170. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4171. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4172. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4173. msm_routing_put_audio_mixer),
  4174. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4175. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4176. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4177. msm_routing_put_audio_mixer),
  4178. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4179. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4180. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4181. msm_routing_put_audio_mixer),
  4182. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4183. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4184. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4185. msm_routing_put_audio_mixer),
  4186. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4187. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4188. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4189. msm_routing_put_audio_mixer),
  4190. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4191. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4192. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4193. msm_routing_put_audio_mixer),
  4194. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4195. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4196. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4197. msm_routing_put_audio_mixer),
  4198. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4199. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4200. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4201. msm_routing_put_audio_mixer),
  4202. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4203. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4204. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4205. msm_routing_put_audio_mixer),
  4206. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4207. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4208. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4209. msm_routing_put_audio_mixer),
  4210. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4211. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4212. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4213. msm_routing_put_audio_mixer),
  4214. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4215. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4216. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4217. msm_routing_put_audio_mixer),
  4218. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4219. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4220. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4221. msm_routing_put_audio_mixer),
  4222. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4223. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4224. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4225. msm_routing_put_audio_mixer),
  4226. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4227. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4228. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4229. msm_routing_put_audio_mixer),
  4230. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4231. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4232. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4233. msm_routing_put_audio_mixer),
  4234. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4235. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4236. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4237. msm_routing_put_audio_mixer),
  4238. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4239. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4240. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4241. msm_routing_put_audio_mixer),
  4242. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4243. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4244. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4245. msm_routing_put_audio_mixer),
  4246. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4247. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4248. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4249. msm_routing_put_audio_mixer),
  4250. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4251. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4252. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4253. msm_routing_put_audio_mixer),
  4254. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4255. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4256. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4257. msm_routing_put_audio_mixer),
  4258. };
  4259. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4260. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4261. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4262. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4263. msm_routing_put_audio_mixer),
  4264. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4265. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4266. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4267. msm_routing_put_audio_mixer),
  4268. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4269. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4270. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4271. msm_routing_put_audio_mixer),
  4272. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4273. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4274. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4275. msm_routing_put_audio_mixer),
  4276. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4277. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4278. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4279. msm_routing_put_audio_mixer),
  4280. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4281. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4282. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4283. msm_routing_put_audio_mixer),
  4284. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4285. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4286. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4287. msm_routing_put_audio_mixer),
  4288. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4289. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4290. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4291. msm_routing_put_audio_mixer),
  4292. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4293. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4294. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4295. msm_routing_put_audio_mixer),
  4296. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4297. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4298. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4299. msm_routing_put_audio_mixer),
  4300. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4301. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4302. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4303. msm_routing_put_audio_mixer),
  4304. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4305. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4306. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4307. msm_routing_put_audio_mixer),
  4308. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4309. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4310. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4311. msm_routing_put_audio_mixer),
  4312. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4313. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4314. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4315. msm_routing_put_audio_mixer),
  4316. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4317. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4318. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4319. msm_routing_put_audio_mixer),
  4320. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4321. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4322. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4323. msm_routing_put_audio_mixer),
  4324. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4325. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4326. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4327. msm_routing_put_audio_mixer),
  4328. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4329. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4330. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4331. msm_routing_put_audio_mixer),
  4332. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4333. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4334. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4335. msm_routing_put_audio_mixer),
  4336. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4337. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4338. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4339. msm_routing_put_audio_mixer),
  4340. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4341. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4342. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4343. msm_routing_put_audio_mixer),
  4344. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4345. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4346. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4347. msm_routing_put_audio_mixer),
  4348. };
  4349. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4350. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4351. MSM_BACKEND_DAI_MI2S_RX,
  4352. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4353. msm_routing_put_audio_mixer),
  4354. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4355. MSM_BACKEND_DAI_MI2S_RX,
  4356. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4357. msm_routing_put_audio_mixer),
  4358. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4359. MSM_BACKEND_DAI_MI2S_RX,
  4360. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4361. msm_routing_put_audio_mixer),
  4362. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4363. MSM_BACKEND_DAI_MI2S_RX,
  4364. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4365. msm_routing_put_audio_mixer),
  4366. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4367. MSM_BACKEND_DAI_MI2S_RX,
  4368. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4369. msm_routing_put_audio_mixer),
  4370. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4371. MSM_BACKEND_DAI_MI2S_RX,
  4372. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4373. msm_routing_put_audio_mixer),
  4374. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4375. MSM_BACKEND_DAI_MI2S_RX,
  4376. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4377. msm_routing_put_audio_mixer),
  4378. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4379. MSM_BACKEND_DAI_MI2S_RX,
  4380. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4381. msm_routing_put_audio_mixer),
  4382. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4383. MSM_BACKEND_DAI_MI2S_RX,
  4384. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4385. msm_routing_put_audio_mixer),
  4386. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4387. MSM_BACKEND_DAI_MI2S_RX,
  4388. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4389. msm_routing_put_audio_mixer),
  4390. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4391. MSM_BACKEND_DAI_MI2S_RX,
  4392. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4393. msm_routing_put_audio_mixer),
  4394. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4395. MSM_BACKEND_DAI_MI2S_RX,
  4396. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4397. msm_routing_put_audio_mixer),
  4398. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4399. MSM_BACKEND_DAI_MI2S_RX,
  4400. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4401. msm_routing_put_audio_mixer),
  4402. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4403. MSM_BACKEND_DAI_MI2S_RX,
  4404. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4405. msm_routing_put_audio_mixer),
  4406. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4407. MSM_BACKEND_DAI_MI2S_RX,
  4408. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4409. msm_routing_put_audio_mixer),
  4410. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4411. MSM_BACKEND_DAI_MI2S_RX,
  4412. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4413. msm_routing_put_audio_mixer),
  4414. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4415. MSM_BACKEND_DAI_MI2S_RX,
  4416. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4417. msm_routing_put_audio_mixer),
  4418. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4419. MSM_BACKEND_DAI_MI2S_RX,
  4420. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4421. msm_routing_put_audio_mixer),
  4422. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4423. MSM_BACKEND_DAI_MI2S_RX,
  4424. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4425. msm_routing_put_audio_mixer),
  4426. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4427. MSM_BACKEND_DAI_MI2S_RX,
  4428. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4429. msm_routing_put_audio_mixer),
  4430. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4431. MSM_BACKEND_DAI_MI2S_RX,
  4432. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4433. msm_routing_put_audio_mixer),
  4434. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4435. MSM_BACKEND_DAI_MI2S_RX,
  4436. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4437. msm_routing_put_audio_mixer),
  4438. };
  4439. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4440. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4441. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4442. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4443. msm_routing_put_audio_mixer),
  4444. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4445. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4446. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4447. msm_routing_put_audio_mixer),
  4448. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4449. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4450. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4451. msm_routing_put_audio_mixer),
  4452. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4453. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4454. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4455. msm_routing_put_audio_mixer),
  4456. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4457. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4458. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4459. msm_routing_put_audio_mixer),
  4460. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4461. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4462. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4463. msm_routing_put_audio_mixer),
  4464. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4465. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4466. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4467. msm_routing_put_audio_mixer),
  4468. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4469. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4470. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4471. msm_routing_put_audio_mixer),
  4472. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4473. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4474. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4475. msm_routing_put_audio_mixer),
  4476. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4477. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4478. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4479. msm_routing_put_audio_mixer),
  4480. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4481. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4482. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4483. msm_routing_put_audio_mixer),
  4484. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4485. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4486. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4487. msm_routing_put_audio_mixer),
  4488. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4489. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4490. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4491. msm_routing_put_audio_mixer),
  4492. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4493. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4494. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4495. msm_routing_put_audio_mixer),
  4496. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4497. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4498. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4499. msm_routing_put_audio_mixer),
  4500. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4501. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4502. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4503. msm_routing_put_audio_mixer),
  4504. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4505. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4506. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4507. msm_routing_put_audio_mixer),
  4508. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4509. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4510. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4511. msm_routing_put_audio_mixer),
  4512. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4513. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4514. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4515. msm_routing_put_audio_mixer),
  4516. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4517. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4518. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4519. msm_routing_put_audio_mixer),
  4520. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4521. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4522. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4523. msm_routing_put_audio_mixer),
  4524. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4525. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4526. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4527. msm_routing_put_audio_mixer),
  4528. };
  4529. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4530. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4531. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4532. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4533. msm_routing_put_audio_mixer),
  4534. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4535. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4536. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4537. msm_routing_put_audio_mixer),
  4538. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4539. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4540. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4541. msm_routing_put_audio_mixer),
  4542. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4543. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4544. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4545. msm_routing_put_audio_mixer),
  4546. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4547. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4548. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4549. msm_routing_put_audio_mixer),
  4550. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4551. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4552. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4553. msm_routing_put_audio_mixer),
  4554. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4555. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4556. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4557. msm_routing_put_audio_mixer),
  4558. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4559. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4560. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4561. msm_routing_put_audio_mixer),
  4562. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4563. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4564. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4565. msm_routing_put_audio_mixer),
  4566. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4567. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4568. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4569. msm_routing_put_audio_mixer),
  4570. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4571. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4572. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4573. msm_routing_put_audio_mixer),
  4574. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4575. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4576. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4577. msm_routing_put_audio_mixer),
  4578. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4579. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4580. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4581. msm_routing_put_audio_mixer),
  4582. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4583. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4584. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4585. msm_routing_put_audio_mixer),
  4586. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4587. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4588. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4589. msm_routing_put_audio_mixer),
  4590. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4591. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4592. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4593. msm_routing_put_audio_mixer),
  4594. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4595. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4596. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4597. msm_routing_put_audio_mixer),
  4598. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4599. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4600. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4601. msm_routing_put_audio_mixer),
  4602. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4603. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4604. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4605. msm_routing_put_audio_mixer),
  4606. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4607. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4608. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4609. msm_routing_put_audio_mixer),
  4610. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4611. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4612. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4613. msm_routing_put_audio_mixer),
  4614. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4615. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4616. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4617. msm_routing_put_audio_mixer),
  4618. };
  4619. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4620. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4621. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4622. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4623. msm_routing_put_audio_mixer),
  4624. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4625. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4626. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4627. msm_routing_put_audio_mixer),
  4628. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4629. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4630. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4631. msm_routing_put_audio_mixer),
  4632. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4633. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4634. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4635. msm_routing_put_audio_mixer),
  4636. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4637. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4638. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4639. msm_routing_put_audio_mixer),
  4640. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4641. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4642. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4643. msm_routing_put_audio_mixer),
  4644. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4645. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4646. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4647. msm_routing_put_audio_mixer),
  4648. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4649. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4650. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4651. msm_routing_put_audio_mixer),
  4652. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4653. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4654. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4655. msm_routing_put_audio_mixer),
  4656. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4657. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4658. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4659. msm_routing_put_audio_mixer),
  4660. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4661. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4662. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4663. msm_routing_put_audio_mixer),
  4664. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4665. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4666. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4667. msm_routing_put_audio_mixer),
  4668. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4669. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4670. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4671. msm_routing_put_audio_mixer),
  4672. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4673. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4674. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4675. msm_routing_put_audio_mixer),
  4676. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4677. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4678. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4679. msm_routing_put_audio_mixer),
  4680. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4681. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4682. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4683. msm_routing_put_audio_mixer),
  4684. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4685. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4686. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4687. msm_routing_put_audio_mixer),
  4688. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4689. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4690. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4691. msm_routing_put_audio_mixer),
  4692. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4693. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4694. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4695. msm_routing_put_audio_mixer),
  4696. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4697. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4698. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4699. msm_routing_put_audio_mixer),
  4700. };
  4701. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4702. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4703. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4704. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4705. msm_routing_put_audio_mixer),
  4706. };
  4707. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4708. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4709. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4710. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4711. msm_routing_put_audio_mixer),
  4712. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4713. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4714. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4715. msm_routing_put_audio_mixer),
  4716. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4717. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4718. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4719. msm_routing_put_audio_mixer),
  4720. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4721. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4722. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4723. msm_routing_put_audio_mixer),
  4724. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4725. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4726. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4727. msm_routing_put_audio_mixer),
  4728. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4729. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4730. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4731. msm_routing_put_audio_mixer),
  4732. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4733. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4734. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4735. msm_routing_put_audio_mixer),
  4736. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4737. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4738. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4739. msm_routing_put_audio_mixer),
  4740. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4741. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4742. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4743. msm_routing_put_audio_mixer),
  4744. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4745. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4746. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4747. msm_routing_put_audio_mixer),
  4748. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4749. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4750. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4751. msm_routing_put_audio_mixer),
  4752. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4753. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4754. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4755. msm_routing_put_audio_mixer),
  4756. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4757. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4758. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4759. msm_routing_put_audio_mixer),
  4760. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4761. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4762. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4763. msm_routing_put_audio_mixer),
  4764. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4765. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4766. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4767. msm_routing_put_audio_mixer),
  4768. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4769. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4770. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4771. msm_routing_put_audio_mixer),
  4772. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4773. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4774. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4775. msm_routing_put_audio_mixer),
  4776. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4777. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4778. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4779. msm_routing_put_audio_mixer),
  4780. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4781. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4782. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4783. msm_routing_put_audio_mixer),
  4784. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4785. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4786. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4787. msm_routing_put_audio_mixer),
  4788. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4789. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4790. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4791. msm_routing_put_audio_mixer),
  4792. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4793. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4794. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4795. msm_routing_put_audio_mixer),
  4796. };
  4797. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4798. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4799. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4800. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4801. msm_routing_put_audio_mixer),
  4802. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4803. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4804. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4805. msm_routing_put_audio_mixer),
  4806. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4807. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4808. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4809. msm_routing_put_audio_mixer),
  4810. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4811. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4812. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4813. msm_routing_put_audio_mixer),
  4814. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4815. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4816. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4817. msm_routing_put_audio_mixer),
  4818. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4819. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4820. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4821. msm_routing_put_audio_mixer),
  4822. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4823. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4824. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4825. msm_routing_put_audio_mixer),
  4826. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4827. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4828. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4829. msm_routing_put_audio_mixer),
  4830. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4831. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4832. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4833. msm_routing_put_audio_mixer),
  4834. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4835. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4836. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4837. msm_routing_put_audio_mixer),
  4838. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4839. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4840. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4841. msm_routing_put_audio_mixer),
  4842. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4843. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4844. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4845. msm_routing_put_audio_mixer),
  4846. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4847. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4848. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4849. msm_routing_put_audio_mixer),
  4850. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4851. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4852. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4853. msm_routing_put_audio_mixer),
  4854. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4855. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4856. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4857. msm_routing_put_audio_mixer),
  4858. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4859. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4860. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4861. msm_routing_put_audio_mixer),
  4862. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4863. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4864. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4865. msm_routing_put_audio_mixer),
  4866. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4867. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4868. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4869. msm_routing_put_audio_mixer),
  4870. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4871. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4872. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4873. msm_routing_put_audio_mixer),
  4874. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4875. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4876. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4877. msm_routing_put_audio_mixer),
  4878. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4879. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4880. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4881. msm_routing_put_audio_mixer),
  4882. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4883. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4884. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4885. msm_routing_put_audio_mixer),
  4886. };
  4887. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4888. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4889. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4890. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4891. msm_routing_put_audio_mixer),
  4892. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4893. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4894. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4895. msm_routing_put_audio_mixer),
  4896. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4897. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4898. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4899. msm_routing_put_audio_mixer),
  4900. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4901. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4902. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4903. msm_routing_put_audio_mixer),
  4904. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4905. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4906. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4907. msm_routing_put_audio_mixer),
  4908. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4909. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4910. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4911. msm_routing_put_audio_mixer),
  4912. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4913. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4914. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4915. msm_routing_put_audio_mixer),
  4916. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4917. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4918. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4919. msm_routing_put_audio_mixer),
  4920. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4921. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4922. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4923. msm_routing_put_audio_mixer),
  4924. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4925. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4926. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4927. msm_routing_put_audio_mixer),
  4928. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4929. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4930. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4931. msm_routing_put_audio_mixer),
  4932. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4933. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4934. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4935. msm_routing_put_audio_mixer),
  4936. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4937. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4938. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4939. msm_routing_put_audio_mixer),
  4940. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4941. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4942. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4943. msm_routing_put_audio_mixer),
  4944. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4945. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4946. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4947. msm_routing_put_audio_mixer),
  4948. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4949. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4950. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4951. msm_routing_put_audio_mixer),
  4952. };
  4953. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4954. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4955. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4956. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4957. msm_routing_put_audio_mixer),
  4958. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4959. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4960. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4961. msm_routing_put_audio_mixer),
  4962. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4963. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4964. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4965. msm_routing_put_audio_mixer),
  4966. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4967. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4968. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4969. msm_routing_put_audio_mixer),
  4970. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4971. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4972. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4973. msm_routing_put_audio_mixer),
  4974. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4975. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4976. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4977. msm_routing_put_audio_mixer),
  4978. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4979. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4980. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4981. msm_routing_put_audio_mixer),
  4982. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4983. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4984. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4985. msm_routing_put_audio_mixer),
  4986. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4987. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4988. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4989. msm_routing_put_audio_mixer),
  4990. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4991. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4992. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4993. msm_routing_put_audio_mixer),
  4994. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4995. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4996. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4997. msm_routing_put_audio_mixer),
  4998. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4999. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5000. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5001. msm_routing_put_audio_mixer),
  5002. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5003. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5004. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5005. msm_routing_put_audio_mixer),
  5006. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5007. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5008. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5009. msm_routing_put_audio_mixer),
  5010. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5011. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5012. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5013. msm_routing_put_audio_mixer),
  5014. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5015. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5016. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5017. msm_routing_put_audio_mixer),
  5018. };
  5019. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  5020. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5021. MSM_BACKEND_DAI_HDMI_RX,
  5022. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5023. msm_routing_put_audio_mixer),
  5024. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5025. MSM_BACKEND_DAI_HDMI_RX,
  5026. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5027. msm_routing_put_audio_mixer),
  5028. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5029. MSM_BACKEND_DAI_HDMI_RX,
  5030. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5031. msm_routing_put_audio_mixer),
  5032. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5033. MSM_BACKEND_DAI_HDMI_RX,
  5034. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5035. msm_routing_put_audio_mixer),
  5036. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5037. MSM_BACKEND_DAI_HDMI_RX,
  5038. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5039. msm_routing_put_audio_mixer),
  5040. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5041. MSM_BACKEND_DAI_HDMI_RX,
  5042. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5043. msm_routing_put_audio_mixer),
  5044. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5045. MSM_BACKEND_DAI_HDMI_RX,
  5046. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5047. msm_routing_put_audio_mixer),
  5048. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5049. MSM_BACKEND_DAI_HDMI_RX,
  5050. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5051. msm_routing_put_audio_mixer),
  5052. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5053. MSM_BACKEND_DAI_HDMI_RX,
  5054. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5055. msm_routing_put_audio_mixer),
  5056. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5057. MSM_BACKEND_DAI_HDMI_RX,
  5058. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5059. msm_routing_put_audio_mixer),
  5060. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5061. MSM_BACKEND_DAI_HDMI_RX,
  5062. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5063. msm_routing_put_audio_mixer),
  5064. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5065. MSM_BACKEND_DAI_HDMI_RX,
  5066. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5067. msm_routing_put_audio_mixer),
  5068. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5069. MSM_BACKEND_DAI_HDMI_RX,
  5070. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5071. msm_routing_put_audio_mixer),
  5072. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5073. MSM_BACKEND_DAI_HDMI_RX,
  5074. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5075. msm_routing_put_audio_mixer),
  5076. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5077. MSM_BACKEND_DAI_HDMI_RX,
  5078. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5079. msm_routing_put_audio_mixer),
  5080. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5081. MSM_BACKEND_DAI_HDMI_RX,
  5082. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5083. msm_routing_put_audio_mixer),
  5084. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5085. MSM_BACKEND_DAI_HDMI_RX,
  5086. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5087. msm_routing_put_audio_mixer),
  5088. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5089. MSM_BACKEND_DAI_HDMI_RX,
  5090. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5091. msm_routing_put_audio_mixer),
  5092. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5093. MSM_BACKEND_DAI_HDMI_RX,
  5094. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5095. msm_routing_put_audio_mixer),
  5096. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5097. MSM_BACKEND_DAI_HDMI_RX,
  5098. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5099. msm_routing_put_audio_mixer),
  5100. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5101. MSM_BACKEND_DAI_HDMI_RX,
  5102. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5103. msm_routing_put_audio_mixer),
  5104. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5105. MSM_BACKEND_DAI_HDMI_RX,
  5106. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5107. msm_routing_put_audio_mixer),
  5108. };
  5109. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  5110. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5111. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5112. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5113. msm_routing_put_audio_mixer),
  5114. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5115. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5116. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5117. msm_routing_put_audio_mixer),
  5118. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5119. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5120. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5121. msm_routing_put_audio_mixer),
  5122. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5123. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5124. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5125. msm_routing_put_audio_mixer),
  5126. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5127. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5128. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5129. msm_routing_put_audio_mixer),
  5130. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5131. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5132. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5133. msm_routing_put_audio_mixer),
  5134. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5135. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5136. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5137. msm_routing_put_audio_mixer),
  5138. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5139. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5140. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5141. msm_routing_put_audio_mixer),
  5142. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5143. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5144. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5145. msm_routing_put_audio_mixer),
  5146. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5147. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5148. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5149. msm_routing_put_audio_mixer),
  5150. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5151. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5152. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5153. msm_routing_put_audio_mixer),
  5154. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5155. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5156. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5157. msm_routing_put_audio_mixer),
  5158. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5159. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5160. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5161. msm_routing_put_audio_mixer),
  5162. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5163. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5164. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5165. msm_routing_put_audio_mixer),
  5166. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5167. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5168. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5169. msm_routing_put_audio_mixer),
  5170. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5171. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5172. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5173. msm_routing_put_audio_mixer),
  5174. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5175. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5176. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5177. msm_routing_put_audio_mixer),
  5178. };
  5179. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  5180. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5181. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5182. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5183. msm_routing_put_audio_mixer),
  5184. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5185. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5186. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5187. msm_routing_put_audio_mixer),
  5188. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5189. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5190. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5191. msm_routing_put_audio_mixer),
  5192. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5193. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5194. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5195. msm_routing_put_audio_mixer),
  5196. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5197. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5198. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5199. msm_routing_put_audio_mixer),
  5200. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5201. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5202. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5203. msm_routing_put_audio_mixer),
  5204. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5205. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5206. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5207. msm_routing_put_audio_mixer),
  5208. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5209. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5210. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5211. msm_routing_put_audio_mixer),
  5212. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5213. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5214. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5215. msm_routing_put_audio_mixer),
  5216. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5217. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5218. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5219. msm_routing_put_audio_mixer),
  5220. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5221. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5222. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5223. msm_routing_put_audio_mixer),
  5224. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5225. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5226. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5227. msm_routing_put_audio_mixer),
  5228. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5229. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5230. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5231. msm_routing_put_audio_mixer),
  5232. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5233. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5234. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5235. msm_routing_put_audio_mixer),
  5236. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5237. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5238. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5239. msm_routing_put_audio_mixer),
  5240. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5241. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5242. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5243. msm_routing_put_audio_mixer),
  5244. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5245. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5246. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5247. msm_routing_put_audio_mixer),
  5248. };
  5249. /* incall music delivery mixer */
  5250. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  5251. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5252. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5253. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5254. msm_routing_put_audio_mixer),
  5255. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5256. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5257. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5258. msm_routing_put_audio_mixer),
  5259. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5260. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5261. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5262. msm_routing_put_audio_mixer),
  5263. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5264. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5265. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5266. msm_routing_put_audio_mixer),
  5267. };
  5268. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  5269. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5270. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5271. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5272. msm_routing_put_audio_mixer),
  5273. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5274. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5275. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5276. msm_routing_put_audio_mixer),
  5277. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5278. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5279. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5280. msm_routing_put_audio_mixer),
  5281. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5282. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5283. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5284. msm_routing_put_audio_mixer),
  5285. };
  5286. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5287. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5288. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5289. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5290. msm_routing_put_audio_mixer),
  5291. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5292. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5293. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5294. msm_routing_put_audio_mixer),
  5295. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5296. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5297. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5298. msm_routing_put_audio_mixer),
  5299. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5300. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5301. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5302. msm_routing_put_audio_mixer),
  5303. };
  5304. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5305. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5306. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5307. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5308. msm_routing_put_audio_mixer),
  5309. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5310. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5311. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5312. msm_routing_put_audio_mixer),
  5313. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5314. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5315. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5316. msm_routing_put_audio_mixer),
  5317. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5318. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5319. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5320. msm_routing_put_audio_mixer),
  5321. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5322. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5323. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5324. msm_routing_put_audio_mixer),
  5325. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5326. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5327. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5328. msm_routing_put_audio_mixer),
  5329. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5330. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5331. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5332. msm_routing_put_audio_mixer),
  5333. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5334. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5335. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5336. msm_routing_put_audio_mixer),
  5337. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5338. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5339. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5340. msm_routing_put_audio_mixer),
  5341. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5342. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5343. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5344. msm_routing_put_audio_mixer),
  5345. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5346. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5347. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5348. msm_routing_put_audio_mixer),
  5349. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5350. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5351. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5352. msm_routing_put_audio_mixer),
  5353. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5354. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5355. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5356. msm_routing_put_audio_mixer),
  5357. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5358. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5359. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5360. msm_routing_put_audio_mixer),
  5361. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5362. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5363. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5364. msm_routing_put_audio_mixer),
  5365. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5366. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5367. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5368. msm_routing_put_audio_mixer),
  5369. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5370. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5371. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5372. msm_routing_put_audio_mixer),
  5373. };
  5374. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5375. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5376. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5377. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5378. msm_routing_put_audio_mixer),
  5379. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5380. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5381. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5382. msm_routing_put_audio_mixer),
  5383. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5384. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5385. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5386. msm_routing_put_audio_mixer),
  5387. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5388. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5389. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5390. msm_routing_put_audio_mixer),
  5391. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5392. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5393. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5394. msm_routing_put_audio_mixer),
  5395. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5396. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5397. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5398. msm_routing_put_audio_mixer),
  5399. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5400. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5401. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5402. msm_routing_put_audio_mixer),
  5403. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5404. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5405. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5406. msm_routing_put_audio_mixer),
  5407. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5408. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5409. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5410. msm_routing_put_audio_mixer),
  5411. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5412. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5413. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5414. msm_routing_put_audio_mixer),
  5415. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5416. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5417. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5418. msm_routing_put_audio_mixer),
  5419. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5420. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5421. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5422. msm_routing_put_audio_mixer),
  5423. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5424. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5425. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5426. msm_routing_put_audio_mixer),
  5427. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5428. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5429. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5430. msm_routing_put_audio_mixer),
  5431. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5432. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5433. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5434. msm_routing_put_audio_mixer),
  5435. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5436. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5437. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5438. msm_routing_put_audio_mixer),
  5439. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5440. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5441. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5442. msm_routing_put_audio_mixer),
  5443. };
  5444. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5445. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5446. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5447. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5448. msm_routing_put_audio_mixer),
  5449. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5450. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5451. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5452. msm_routing_put_audio_mixer),
  5453. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5454. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5455. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5456. msm_routing_put_audio_mixer),
  5457. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5458. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5459. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5460. msm_routing_put_audio_mixer),
  5461. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5462. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5463. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5464. msm_routing_put_audio_mixer),
  5465. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5466. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5467. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5468. msm_routing_put_audio_mixer),
  5469. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5470. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5471. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5472. msm_routing_put_audio_mixer),
  5473. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5474. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5475. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5476. msm_routing_put_audio_mixer),
  5477. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5478. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5479. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5480. msm_routing_put_audio_mixer),
  5481. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5482. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5483. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5484. msm_routing_put_audio_mixer),
  5485. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5486. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5487. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5488. msm_routing_put_audio_mixer),
  5489. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5490. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5491. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5492. msm_routing_put_audio_mixer),
  5493. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5494. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5495. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5496. msm_routing_put_audio_mixer),
  5497. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5498. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5499. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5500. msm_routing_put_audio_mixer),
  5501. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5502. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5503. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5504. msm_routing_put_audio_mixer),
  5505. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5506. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5507. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5508. msm_routing_put_audio_mixer),
  5509. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5510. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5511. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5512. msm_routing_put_audio_mixer),
  5513. };
  5514. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  5515. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5516. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5517. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5518. msm_routing_put_audio_mixer),
  5519. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5520. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5521. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5522. msm_routing_put_audio_mixer),
  5523. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5524. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5525. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5526. msm_routing_put_audio_mixer),
  5527. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5528. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5529. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5530. msm_routing_put_audio_mixer),
  5531. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5532. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5533. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5534. msm_routing_put_audio_mixer),
  5535. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5536. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5537. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5538. msm_routing_put_audio_mixer),
  5539. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5540. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5541. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5542. msm_routing_put_audio_mixer),
  5543. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5544. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5545. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5546. msm_routing_put_audio_mixer),
  5547. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5548. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5549. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5550. msm_routing_put_audio_mixer),
  5551. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5552. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5553. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5554. msm_routing_put_audio_mixer),
  5555. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5556. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5557. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5558. msm_routing_put_audio_mixer),
  5559. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5560. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5561. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5562. msm_routing_put_audio_mixer),
  5563. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5564. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5565. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5566. msm_routing_put_audio_mixer),
  5567. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5568. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5569. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5570. msm_routing_put_audio_mixer),
  5571. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5572. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5573. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5574. msm_routing_put_audio_mixer),
  5575. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5576. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5577. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5578. msm_routing_put_audio_mixer),
  5579. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5580. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5581. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5582. msm_routing_put_audio_mixer),
  5583. };
  5584. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  5585. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5586. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5587. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5588. msm_routing_put_audio_mixer),
  5589. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5590. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5591. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5592. msm_routing_put_audio_mixer),
  5593. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5594. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5595. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5596. msm_routing_put_audio_mixer),
  5597. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5598. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5599. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5600. msm_routing_put_audio_mixer),
  5601. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5602. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5603. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5604. msm_routing_put_audio_mixer),
  5605. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5606. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5607. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5608. msm_routing_put_audio_mixer),
  5609. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5610. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5611. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5612. msm_routing_put_audio_mixer),
  5613. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5614. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5615. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5616. msm_routing_put_audio_mixer),
  5617. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5618. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5619. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5620. msm_routing_put_audio_mixer),
  5621. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5622. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5623. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5624. msm_routing_put_audio_mixer),
  5625. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5626. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5627. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5628. msm_routing_put_audio_mixer),
  5629. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5630. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5631. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5632. msm_routing_put_audio_mixer),
  5633. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5634. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5635. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5636. msm_routing_put_audio_mixer),
  5637. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5638. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5639. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5640. msm_routing_put_audio_mixer),
  5641. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5642. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5643. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5644. msm_routing_put_audio_mixer),
  5645. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5646. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5647. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5648. msm_routing_put_audio_mixer),
  5649. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5650. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5651. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5652. msm_routing_put_audio_mixer),
  5653. };
  5654. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  5655. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5656. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5657. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5658. msm_routing_put_audio_mixer),
  5659. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5660. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5661. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5662. msm_routing_put_audio_mixer),
  5663. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5664. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5665. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5666. msm_routing_put_audio_mixer),
  5667. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5668. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5669. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5670. msm_routing_put_audio_mixer),
  5671. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5672. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5673. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5674. msm_routing_put_audio_mixer),
  5675. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5676. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5677. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5678. msm_routing_put_audio_mixer),
  5679. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5680. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5681. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5682. msm_routing_put_audio_mixer),
  5683. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5684. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5685. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5686. msm_routing_put_audio_mixer),
  5687. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5688. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5689. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5690. msm_routing_put_audio_mixer),
  5691. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5692. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5693. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5694. msm_routing_put_audio_mixer),
  5695. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5696. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5697. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5698. msm_routing_put_audio_mixer),
  5699. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5700. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5701. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5702. msm_routing_put_audio_mixer),
  5703. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5704. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5705. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5706. msm_routing_put_audio_mixer),
  5707. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5708. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5709. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5710. msm_routing_put_audio_mixer),
  5711. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5712. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5713. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5714. msm_routing_put_audio_mixer),
  5715. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5716. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5717. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5718. msm_routing_put_audio_mixer),
  5719. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5720. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5721. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5722. msm_routing_put_audio_mixer),
  5723. };
  5724. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  5725. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5726. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5727. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5728. msm_routing_put_audio_mixer),
  5729. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5730. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5731. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5732. msm_routing_put_audio_mixer),
  5733. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5734. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5735. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5736. msm_routing_put_audio_mixer),
  5737. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5738. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5739. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5740. msm_routing_put_audio_mixer),
  5741. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5742. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5743. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5744. msm_routing_put_audio_mixer),
  5745. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5746. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5747. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5748. msm_routing_put_audio_mixer),
  5749. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5750. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5751. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5752. msm_routing_put_audio_mixer),
  5753. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5754. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5755. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5756. msm_routing_put_audio_mixer),
  5757. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5758. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5759. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5760. msm_routing_put_audio_mixer),
  5761. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5762. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5763. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5764. msm_routing_put_audio_mixer),
  5765. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5766. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5767. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5768. msm_routing_put_audio_mixer),
  5769. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5770. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5771. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5772. msm_routing_put_audio_mixer),
  5773. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5774. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5775. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5776. msm_routing_put_audio_mixer),
  5777. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5778. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5779. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5780. msm_routing_put_audio_mixer),
  5781. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5782. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5783. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5784. msm_routing_put_audio_mixer),
  5785. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5786. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5787. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5788. msm_routing_put_audio_mixer),
  5789. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5790. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5791. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5792. msm_routing_put_audio_mixer),
  5793. };
  5794. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  5795. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5796. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5797. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5798. msm_routing_put_audio_mixer),
  5799. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5800. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5801. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5802. msm_routing_put_audio_mixer),
  5803. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5804. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5805. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5806. msm_routing_put_audio_mixer),
  5807. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5808. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5809. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5810. msm_routing_put_audio_mixer),
  5811. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5812. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5813. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5814. msm_routing_put_audio_mixer),
  5815. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5816. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5817. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5818. msm_routing_put_audio_mixer),
  5819. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5820. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5821. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5822. msm_routing_put_audio_mixer),
  5823. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5824. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5825. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5826. msm_routing_put_audio_mixer),
  5827. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5828. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5829. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5830. msm_routing_put_audio_mixer),
  5831. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5832. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5833. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5834. msm_routing_put_audio_mixer),
  5835. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5836. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5837. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5838. msm_routing_put_audio_mixer),
  5839. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5840. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5841. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5842. msm_routing_put_audio_mixer),
  5843. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5844. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5845. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5846. msm_routing_put_audio_mixer),
  5847. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5848. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5849. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5850. msm_routing_put_audio_mixer),
  5851. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5852. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5853. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5854. msm_routing_put_audio_mixer),
  5855. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5856. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5857. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5858. msm_routing_put_audio_mixer),
  5859. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5860. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5861. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5862. msm_routing_put_audio_mixer),
  5863. };
  5864. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  5865. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5866. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5867. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5868. msm_routing_put_audio_mixer),
  5869. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5870. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5871. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5872. msm_routing_put_audio_mixer),
  5873. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5874. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5875. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5876. msm_routing_put_audio_mixer),
  5877. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5878. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5879. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5880. msm_routing_put_audio_mixer),
  5881. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5882. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5883. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5884. msm_routing_put_audio_mixer),
  5885. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5886. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5887. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5888. msm_routing_put_audio_mixer),
  5889. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5890. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5891. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5892. msm_routing_put_audio_mixer),
  5893. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5894. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5895. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5896. msm_routing_put_audio_mixer),
  5897. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5898. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5899. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5900. msm_routing_put_audio_mixer),
  5901. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5902. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5903. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5904. msm_routing_put_audio_mixer),
  5905. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5906. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5907. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5908. msm_routing_put_audio_mixer),
  5909. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5910. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5911. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5912. msm_routing_put_audio_mixer),
  5913. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5914. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5915. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5916. msm_routing_put_audio_mixer),
  5917. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5918. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5919. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5920. msm_routing_put_audio_mixer),
  5921. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5922. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5923. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5924. msm_routing_put_audio_mixer),
  5925. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5926. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5927. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5928. msm_routing_put_audio_mixer),
  5929. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5930. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5931. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5932. msm_routing_put_audio_mixer),
  5933. };
  5934. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  5935. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5936. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5937. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5938. msm_routing_put_audio_mixer),
  5939. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5940. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5941. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5942. msm_routing_put_audio_mixer),
  5943. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5944. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5945. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5946. msm_routing_put_audio_mixer),
  5947. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5948. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5949. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5950. msm_routing_put_audio_mixer),
  5951. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5952. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5953. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5954. msm_routing_put_audio_mixer),
  5955. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5956. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5957. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5958. msm_routing_put_audio_mixer),
  5959. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5960. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5961. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5962. msm_routing_put_audio_mixer),
  5963. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5964. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5965. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5966. msm_routing_put_audio_mixer),
  5967. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5968. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5969. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5970. msm_routing_put_audio_mixer),
  5971. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5972. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5973. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5974. msm_routing_put_audio_mixer),
  5975. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5976. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5977. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5978. msm_routing_put_audio_mixer),
  5979. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5980. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5981. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5982. msm_routing_put_audio_mixer),
  5983. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5984. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5985. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5986. msm_routing_put_audio_mixer),
  5987. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5988. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5989. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5990. msm_routing_put_audio_mixer),
  5991. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5992. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5993. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5994. msm_routing_put_audio_mixer),
  5995. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5996. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5997. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5998. msm_routing_put_audio_mixer),
  5999. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6000. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6001. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6002. msm_routing_put_audio_mixer),
  6003. };
  6004. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  6005. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6006. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6007. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6008. msm_routing_put_audio_mixer),
  6009. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6010. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6011. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6012. msm_routing_put_audio_mixer),
  6013. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6014. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6015. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6016. msm_routing_put_audio_mixer),
  6017. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6018. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6019. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6020. msm_routing_put_audio_mixer),
  6021. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6022. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6023. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6024. msm_routing_put_audio_mixer),
  6025. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6026. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6027. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6028. msm_routing_put_audio_mixer),
  6029. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6030. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6031. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6032. msm_routing_put_audio_mixer),
  6033. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6034. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6035. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6036. msm_routing_put_audio_mixer),
  6037. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6038. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6039. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6040. msm_routing_put_audio_mixer),
  6041. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6042. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6043. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6044. msm_routing_put_audio_mixer),
  6045. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6046. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6047. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6048. msm_routing_put_audio_mixer),
  6049. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6050. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6051. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6052. msm_routing_put_audio_mixer),
  6053. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6054. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6055. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6056. msm_routing_put_audio_mixer),
  6057. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6058. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6059. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6060. msm_routing_put_audio_mixer),
  6061. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6062. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6063. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6064. msm_routing_put_audio_mixer),
  6065. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6066. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6067. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6068. msm_routing_put_audio_mixer),
  6069. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6070. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6071. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6072. msm_routing_put_audio_mixer),
  6073. };
  6074. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  6075. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6076. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6077. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6078. msm_routing_put_audio_mixer),
  6079. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6080. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6081. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6082. msm_routing_put_audio_mixer),
  6083. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6084. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6085. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6086. msm_routing_put_audio_mixer),
  6087. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6088. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6089. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6090. msm_routing_put_audio_mixer),
  6091. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6092. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6093. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6094. msm_routing_put_audio_mixer),
  6095. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6096. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6097. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6098. msm_routing_put_audio_mixer),
  6099. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6100. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6101. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6102. msm_routing_put_audio_mixer),
  6103. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6104. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6105. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6106. msm_routing_put_audio_mixer),
  6107. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6108. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6109. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6110. msm_routing_put_audio_mixer),
  6111. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6112. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6113. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6114. msm_routing_put_audio_mixer),
  6115. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6116. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6117. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6118. msm_routing_put_audio_mixer),
  6119. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6120. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6121. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6122. msm_routing_put_audio_mixer),
  6123. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6124. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6125. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6126. msm_routing_put_audio_mixer),
  6127. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6128. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6129. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6130. msm_routing_put_audio_mixer),
  6131. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6132. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6133. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6134. msm_routing_put_audio_mixer),
  6135. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6136. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6137. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6138. msm_routing_put_audio_mixer),
  6139. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6140. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6141. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6142. msm_routing_put_audio_mixer),
  6143. };
  6144. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  6145. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6146. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6147. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6148. msm_routing_put_audio_mixer),
  6149. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6150. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6151. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6152. msm_routing_put_audio_mixer),
  6153. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6154. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6155. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6156. msm_routing_put_audio_mixer),
  6157. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6158. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6159. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6160. msm_routing_put_audio_mixer),
  6161. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6162. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6163. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6164. msm_routing_put_audio_mixer),
  6165. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6166. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6167. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6168. msm_routing_put_audio_mixer),
  6169. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6170. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6171. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6172. msm_routing_put_audio_mixer),
  6173. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6174. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6175. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6176. msm_routing_put_audio_mixer),
  6177. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6178. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6179. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6180. msm_routing_put_audio_mixer),
  6181. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6182. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6183. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6184. msm_routing_put_audio_mixer),
  6185. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6186. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6187. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6188. msm_routing_put_audio_mixer),
  6189. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6190. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6191. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6192. msm_routing_put_audio_mixer),
  6193. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6194. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6195. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6196. msm_routing_put_audio_mixer),
  6197. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6198. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6199. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6200. msm_routing_put_audio_mixer),
  6201. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6202. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6203. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6204. msm_routing_put_audio_mixer),
  6205. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6206. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6207. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6208. msm_routing_put_audio_mixer),
  6209. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6210. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6211. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6212. msm_routing_put_audio_mixer),
  6213. };
  6214. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  6215. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6216. MSM_BACKEND_DAI_USB_RX,
  6217. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6218. msm_routing_put_audio_mixer),
  6219. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6220. MSM_BACKEND_DAI_USB_RX,
  6221. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6222. msm_routing_put_audio_mixer),
  6223. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6224. MSM_BACKEND_DAI_USB_RX,
  6225. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6226. msm_routing_put_audio_mixer),
  6227. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6228. MSM_BACKEND_DAI_USB_RX,
  6229. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6230. msm_routing_put_audio_mixer),
  6231. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6232. MSM_BACKEND_DAI_USB_RX,
  6233. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6234. msm_routing_put_audio_mixer),
  6235. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6236. MSM_BACKEND_DAI_USB_RX,
  6237. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6238. msm_routing_put_audio_mixer),
  6239. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6240. MSM_BACKEND_DAI_USB_RX,
  6241. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6242. msm_routing_put_audio_mixer),
  6243. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6244. MSM_BACKEND_DAI_USB_RX,
  6245. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6246. msm_routing_put_audio_mixer),
  6247. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6248. MSM_BACKEND_DAI_USB_RX,
  6249. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6250. msm_routing_put_audio_mixer),
  6251. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6252. MSM_BACKEND_DAI_USB_RX,
  6253. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6254. msm_routing_put_audio_mixer),
  6255. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6256. MSM_BACKEND_DAI_USB_RX,
  6257. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6258. msm_routing_put_audio_mixer),
  6259. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6260. MSM_BACKEND_DAI_USB_RX,
  6261. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6262. msm_routing_put_audio_mixer),
  6263. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6264. MSM_BACKEND_DAI_USB_RX,
  6265. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6266. msm_routing_put_audio_mixer),
  6267. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6268. MSM_BACKEND_DAI_USB_RX,
  6269. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6270. msm_routing_put_audio_mixer),
  6271. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6272. MSM_BACKEND_DAI_USB_RX,
  6273. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6274. msm_routing_put_audio_mixer),
  6275. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6276. MSM_BACKEND_DAI_USB_RX,
  6277. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6278. msm_routing_put_audio_mixer),
  6279. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6280. MSM_BACKEND_DAI_USB_RX,
  6281. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6282. msm_routing_put_audio_mixer),
  6283. };
  6284. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  6285. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6286. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6287. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6288. msm_routing_put_audio_mixer),
  6289. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6290. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6291. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6292. msm_routing_put_audio_mixer),
  6293. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6294. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6295. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6296. msm_routing_put_audio_mixer),
  6297. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6298. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6299. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6300. msm_routing_put_audio_mixer),
  6301. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6302. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6303. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6304. msm_routing_put_audio_mixer),
  6305. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6306. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6307. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6308. msm_routing_put_audio_mixer),
  6309. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6310. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6311. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6312. msm_routing_put_audio_mixer),
  6313. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6314. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6315. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6316. msm_routing_put_audio_mixer),
  6317. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6318. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6319. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6320. msm_routing_put_audio_mixer),
  6321. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6322. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6323. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6324. msm_routing_put_audio_mixer),
  6325. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6326. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6327. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6328. msm_routing_put_audio_mixer),
  6329. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6330. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6331. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6332. msm_routing_put_audio_mixer),
  6333. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6334. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6335. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6336. msm_routing_put_audio_mixer),
  6337. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6338. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6339. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6340. msm_routing_put_audio_mixer),
  6341. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6342. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6343. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6344. msm_routing_put_audio_mixer),
  6345. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6346. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6347. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6348. msm_routing_put_audio_mixer),
  6349. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6350. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6351. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6352. msm_routing_put_audio_mixer),
  6353. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6354. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6355. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6356. msm_routing_put_audio_mixer),
  6357. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6358. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6359. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6360. msm_routing_put_audio_mixer),
  6361. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6362. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6363. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6364. msm_routing_put_audio_mixer),
  6365. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6366. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6367. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6368. msm_routing_put_audio_mixer),
  6369. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6370. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6371. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6372. msm_routing_put_audio_mixer),
  6373. };
  6374. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  6375. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6376. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6377. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6378. msm_routing_put_audio_mixer),
  6379. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6380. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6381. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6382. msm_routing_put_audio_mixer),
  6383. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6384. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6385. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6386. msm_routing_put_audio_mixer),
  6387. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6388. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6389. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6390. msm_routing_put_audio_mixer),
  6391. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6392. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6393. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6394. msm_routing_put_audio_mixer),
  6395. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6396. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6397. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6398. msm_routing_put_audio_mixer),
  6399. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6400. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6401. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6402. msm_routing_put_audio_mixer),
  6403. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6404. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6405. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6406. msm_routing_put_audio_mixer),
  6407. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6408. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6409. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6410. msm_routing_put_audio_mixer),
  6411. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6412. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6413. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6414. msm_routing_put_audio_mixer),
  6415. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6416. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6417. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6418. msm_routing_put_audio_mixer),
  6419. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6420. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6421. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6422. msm_routing_put_audio_mixer),
  6423. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6424. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6425. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6426. msm_routing_put_audio_mixer),
  6427. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6428. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6429. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6430. msm_routing_put_audio_mixer),
  6431. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6432. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6433. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6434. msm_routing_put_audio_mixer),
  6435. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6436. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6437. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6438. msm_routing_put_audio_mixer),
  6439. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6440. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6441. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6442. msm_routing_put_audio_mixer),
  6443. };
  6444. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  6445. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6446. MSM_BACKEND_DAI_INT_FM_RX,
  6447. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6448. msm_routing_put_audio_mixer),
  6449. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6450. MSM_BACKEND_DAI_INT_FM_RX,
  6451. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6452. msm_routing_put_audio_mixer),
  6453. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6454. MSM_BACKEND_DAI_INT_FM_RX,
  6455. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6456. msm_routing_put_audio_mixer),
  6457. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6458. MSM_BACKEND_DAI_INT_FM_RX,
  6459. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6460. msm_routing_put_audio_mixer),
  6461. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6462. MSM_BACKEND_DAI_INT_FM_RX,
  6463. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6464. msm_routing_put_audio_mixer),
  6465. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6466. MSM_BACKEND_DAI_INT_FM_RX,
  6467. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6468. msm_routing_put_audio_mixer),
  6469. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6470. MSM_BACKEND_DAI_INT_FM_RX,
  6471. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6472. msm_routing_put_audio_mixer),
  6473. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6474. MSM_BACKEND_DAI_INT_FM_RX,
  6475. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6476. msm_routing_put_audio_mixer),
  6477. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6478. MSM_BACKEND_DAI_INT_FM_RX,
  6479. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6480. msm_routing_put_audio_mixer),
  6481. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6482. MSM_BACKEND_DAI_INT_FM_RX,
  6483. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6484. msm_routing_put_audio_mixer),
  6485. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6486. MSM_BACKEND_DAI_INT_FM_RX,
  6487. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6488. msm_routing_put_audio_mixer),
  6489. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6490. MSM_BACKEND_DAI_INT_FM_RX,
  6491. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6492. msm_routing_put_audio_mixer),
  6493. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6494. MSM_BACKEND_DAI_INT_FM_RX,
  6495. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6496. msm_routing_put_audio_mixer),
  6497. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6498. MSM_BACKEND_DAI_INT_FM_RX,
  6499. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6500. msm_routing_put_audio_mixer),
  6501. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6502. MSM_BACKEND_DAI_INT_FM_RX,
  6503. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6504. msm_routing_put_audio_mixer),
  6505. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6506. MSM_BACKEND_DAI_INT_FM_RX,
  6507. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6508. msm_routing_put_audio_mixer),
  6509. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6510. MSM_BACKEND_DAI_INT_FM_RX,
  6511. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6512. msm_routing_put_audio_mixer),
  6513. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6514. MSM_BACKEND_DAI_INT_FM_RX,
  6515. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6516. msm_routing_put_audio_mixer),
  6517. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6518. MSM_BACKEND_DAI_INT_FM_RX,
  6519. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6520. msm_routing_put_audio_mixer),
  6521. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6522. MSM_BACKEND_DAI_INT_FM_RX,
  6523. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6524. msm_routing_put_audio_mixer),
  6525. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6526. MSM_BACKEND_DAI_INT_FM_RX,
  6527. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6528. msm_routing_put_audio_mixer),
  6529. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6530. MSM_BACKEND_DAI_INT_FM_RX,
  6531. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6532. msm_routing_put_audio_mixer),
  6533. };
  6534. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  6535. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6536. MSM_BACKEND_DAI_AFE_PCM_RX,
  6537. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6538. msm_routing_put_audio_mixer),
  6539. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6540. MSM_BACKEND_DAI_AFE_PCM_RX,
  6541. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6542. msm_routing_put_audio_mixer),
  6543. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6544. MSM_BACKEND_DAI_AFE_PCM_RX,
  6545. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6546. msm_routing_put_audio_mixer),
  6547. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6548. MSM_BACKEND_DAI_AFE_PCM_RX,
  6549. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6550. msm_routing_put_audio_mixer),
  6551. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6552. MSM_BACKEND_DAI_AFE_PCM_RX,
  6553. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6554. msm_routing_put_audio_mixer),
  6555. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6556. MSM_BACKEND_DAI_AFE_PCM_RX,
  6557. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6558. msm_routing_put_audio_mixer),
  6559. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6560. MSM_BACKEND_DAI_AFE_PCM_RX,
  6561. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6562. msm_routing_put_audio_mixer),
  6563. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6564. MSM_BACKEND_DAI_AFE_PCM_RX,
  6565. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6566. msm_routing_put_audio_mixer),
  6567. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6568. MSM_BACKEND_DAI_AFE_PCM_RX,
  6569. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6570. msm_routing_put_audio_mixer),
  6571. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6572. MSM_BACKEND_DAI_AFE_PCM_RX,
  6573. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6574. msm_routing_put_audio_mixer),
  6575. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6576. MSM_BACKEND_DAI_AFE_PCM_RX,
  6577. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6578. msm_routing_put_audio_mixer),
  6579. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6580. MSM_BACKEND_DAI_AFE_PCM_RX,
  6581. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6582. msm_routing_put_audio_mixer),
  6583. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6584. MSM_BACKEND_DAI_AFE_PCM_RX,
  6585. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6586. msm_routing_put_audio_mixer),
  6587. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6588. MSM_BACKEND_DAI_AFE_PCM_RX,
  6589. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6590. msm_routing_put_audio_mixer),
  6591. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6592. MSM_BACKEND_DAI_AFE_PCM_RX,
  6593. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6594. msm_routing_put_audio_mixer),
  6595. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6596. MSM_BACKEND_DAI_AFE_PCM_RX,
  6597. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6598. msm_routing_put_audio_mixer),
  6599. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6600. MSM_BACKEND_DAI_AFE_PCM_RX,
  6601. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6602. msm_routing_put_audio_mixer),
  6603. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6604. MSM_BACKEND_DAI_AFE_PCM_RX,
  6605. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6606. msm_routing_put_audio_mixer),
  6607. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6608. MSM_BACKEND_DAI_AFE_PCM_RX,
  6609. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6610. msm_routing_put_audio_mixer),
  6611. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6612. MSM_BACKEND_DAI_AFE_PCM_RX,
  6613. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6614. msm_routing_put_audio_mixer),
  6615. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6616. MSM_BACKEND_DAI_AFE_PCM_RX,
  6617. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6618. msm_routing_put_audio_mixer),
  6619. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6620. MSM_BACKEND_DAI_AFE_PCM_RX,
  6621. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6622. msm_routing_put_audio_mixer),
  6623. };
  6624. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  6625. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6626. MSM_BACKEND_DAI_AUXPCM_RX,
  6627. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6628. msm_routing_put_audio_mixer),
  6629. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6630. MSM_BACKEND_DAI_AUXPCM_RX,
  6631. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6632. msm_routing_put_audio_mixer),
  6633. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6634. MSM_BACKEND_DAI_AUXPCM_RX,
  6635. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6636. msm_routing_put_audio_mixer),
  6637. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6638. MSM_BACKEND_DAI_AUXPCM_RX,
  6639. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6640. msm_routing_put_audio_mixer),
  6641. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6642. MSM_BACKEND_DAI_AUXPCM_RX,
  6643. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6644. msm_routing_put_audio_mixer),
  6645. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6646. MSM_BACKEND_DAI_AUXPCM_RX,
  6647. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6648. msm_routing_put_audio_mixer),
  6649. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6650. MSM_BACKEND_DAI_AUXPCM_RX,
  6651. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6652. msm_routing_put_audio_mixer),
  6653. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6654. MSM_BACKEND_DAI_AUXPCM_RX,
  6655. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6656. msm_routing_put_audio_mixer),
  6657. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6658. MSM_BACKEND_DAI_AUXPCM_RX,
  6659. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6660. msm_routing_put_audio_mixer),
  6661. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6662. MSM_BACKEND_DAI_AUXPCM_RX,
  6663. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6664. msm_routing_put_audio_mixer),
  6665. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6666. MSM_BACKEND_DAI_AUXPCM_RX,
  6667. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6668. msm_routing_put_audio_mixer),
  6669. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6670. MSM_BACKEND_DAI_AUXPCM_RX,
  6671. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6672. msm_routing_put_audio_mixer),
  6673. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6674. MSM_BACKEND_DAI_AUXPCM_RX,
  6675. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6676. msm_routing_put_audio_mixer),
  6677. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6678. MSM_BACKEND_DAI_AUXPCM_RX,
  6679. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6680. msm_routing_put_audio_mixer),
  6681. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6682. MSM_BACKEND_DAI_AUXPCM_RX,
  6683. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6684. msm_routing_put_audio_mixer),
  6685. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6686. MSM_BACKEND_DAI_AUXPCM_RX,
  6687. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6688. msm_routing_put_audio_mixer),
  6689. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6690. MSM_BACKEND_DAI_AUXPCM_RX,
  6691. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6692. msm_routing_put_audio_mixer),
  6693. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6694. MSM_BACKEND_DAI_AUXPCM_RX,
  6695. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6696. msm_routing_put_audio_mixer),
  6697. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6698. MSM_BACKEND_DAI_AUXPCM_RX,
  6699. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6700. msm_routing_put_audio_mixer),
  6701. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6702. MSM_BACKEND_DAI_AUXPCM_RX,
  6703. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6704. msm_routing_put_audio_mixer),
  6705. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6706. MSM_BACKEND_DAI_AUXPCM_RX,
  6707. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6708. msm_routing_put_audio_mixer),
  6709. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6710. MSM_BACKEND_DAI_AUXPCM_RX,
  6711. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6712. msm_routing_put_audio_mixer),
  6713. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6714. MSM_BACKEND_DAI_AUXPCM_RX,
  6715. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6716. msm_routing_put_audio_mixer),
  6717. };
  6718. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  6719. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6720. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6721. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6722. msm_routing_put_audio_mixer),
  6723. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6724. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6725. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6726. msm_routing_put_audio_mixer),
  6727. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6728. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6729. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6730. msm_routing_put_audio_mixer),
  6731. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6732. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6733. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6734. msm_routing_put_audio_mixer),
  6735. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6736. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6737. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6738. msm_routing_put_audio_mixer),
  6739. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6740. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6741. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6742. msm_routing_put_audio_mixer),
  6743. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6744. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6745. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6746. msm_routing_put_audio_mixer),
  6747. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6748. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6749. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6750. msm_routing_put_audio_mixer),
  6751. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6752. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6753. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6754. msm_routing_put_audio_mixer),
  6755. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6756. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6757. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6758. msm_routing_put_audio_mixer),
  6759. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6760. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6761. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6762. msm_routing_put_audio_mixer),
  6763. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6764. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6765. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6766. msm_routing_put_audio_mixer),
  6767. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6768. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6769. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6770. msm_routing_put_audio_mixer),
  6771. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6772. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6773. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6774. msm_routing_put_audio_mixer),
  6775. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6776. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6777. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6778. msm_routing_put_audio_mixer),
  6779. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6780. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6781. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6782. msm_routing_put_audio_mixer),
  6783. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6784. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6785. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6786. msm_routing_put_audio_mixer),
  6787. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6788. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6789. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6790. msm_routing_put_audio_mixer),
  6791. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6792. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6793. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6794. msm_routing_put_audio_mixer),
  6795. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6796. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6797. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6798. msm_routing_put_audio_mixer),
  6799. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6800. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6801. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6802. msm_routing_put_audio_mixer),
  6803. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6804. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6805. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6806. msm_routing_put_audio_mixer),
  6807. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6808. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6809. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6810. msm_routing_put_audio_mixer),
  6811. };
  6812. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  6813. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6814. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6815. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6816. msm_routing_put_audio_mixer),
  6817. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6818. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6819. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6820. msm_routing_put_audio_mixer),
  6821. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6822. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6823. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6824. msm_routing_put_audio_mixer),
  6825. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6826. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6827. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6828. msm_routing_put_audio_mixer),
  6829. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6830. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6831. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6832. msm_routing_put_audio_mixer),
  6833. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6834. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6835. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6836. msm_routing_put_audio_mixer),
  6837. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6838. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6839. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6840. msm_routing_put_audio_mixer),
  6841. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6842. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6843. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6844. msm_routing_put_audio_mixer),
  6845. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6846. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6847. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6848. msm_routing_put_audio_mixer),
  6849. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6850. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6851. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6852. msm_routing_put_audio_mixer),
  6853. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6854. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6855. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6856. msm_routing_put_audio_mixer),
  6857. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6858. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6859. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6860. msm_routing_put_audio_mixer),
  6861. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6862. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6863. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6864. msm_routing_put_audio_mixer),
  6865. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6866. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6867. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6868. msm_routing_put_audio_mixer),
  6869. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6870. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6871. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6872. msm_routing_put_audio_mixer),
  6873. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6874. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6875. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6876. msm_routing_put_audio_mixer),
  6877. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6878. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6879. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6880. msm_routing_put_audio_mixer),
  6881. };
  6882. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  6883. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6884. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6885. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6886. msm_routing_put_audio_mixer),
  6887. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6888. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6889. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6890. msm_routing_put_audio_mixer),
  6891. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6892. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6893. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6894. msm_routing_put_audio_mixer),
  6895. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6896. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6897. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6898. msm_routing_put_audio_mixer),
  6899. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6900. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6901. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6902. msm_routing_put_audio_mixer),
  6903. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6904. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6905. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6906. msm_routing_put_audio_mixer),
  6907. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6908. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6909. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6910. msm_routing_put_audio_mixer),
  6911. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6912. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6913. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6914. msm_routing_put_audio_mixer),
  6915. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6916. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6917. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6918. msm_routing_put_audio_mixer),
  6919. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6920. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6921. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6922. msm_routing_put_audio_mixer),
  6923. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6924. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6925. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6926. msm_routing_put_audio_mixer),
  6927. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6928. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6929. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6930. msm_routing_put_audio_mixer),
  6931. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6932. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6933. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6934. msm_routing_put_audio_mixer),
  6935. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6936. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6937. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6938. msm_routing_put_audio_mixer),
  6939. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6940. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6941. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6942. msm_routing_put_audio_mixer),
  6943. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6944. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6945. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6946. msm_routing_put_audio_mixer),
  6947. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6948. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6949. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6950. msm_routing_put_audio_mixer),
  6951. };
  6952. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  6953. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6954. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6955. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6956. msm_routing_put_audio_mixer),
  6957. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6958. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6959. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6960. msm_routing_put_audio_mixer),
  6961. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6962. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6963. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6964. msm_routing_put_audio_mixer),
  6965. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6966. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6967. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6968. msm_routing_put_audio_mixer),
  6969. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6970. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6971. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6972. msm_routing_put_audio_mixer),
  6973. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6974. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6975. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6976. msm_routing_put_audio_mixer),
  6977. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6978. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6979. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6980. msm_routing_put_audio_mixer),
  6981. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6982. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6983. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6984. msm_routing_put_audio_mixer),
  6985. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6986. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6987. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6988. msm_routing_put_audio_mixer),
  6989. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6990. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6991. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6992. msm_routing_put_audio_mixer),
  6993. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6994. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6995. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6996. msm_routing_put_audio_mixer),
  6997. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6998. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6999. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7000. msm_routing_put_audio_mixer),
  7001. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7002. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7003. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7004. msm_routing_put_audio_mixer),
  7005. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7006. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7007. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7008. msm_routing_put_audio_mixer),
  7009. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7010. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7011. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7012. msm_routing_put_audio_mixer),
  7013. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7014. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7015. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7016. msm_routing_put_audio_mixer),
  7017. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7018. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7019. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7020. msm_routing_put_audio_mixer),
  7021. };
  7022. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  7023. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7024. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7025. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7026. msm_routing_put_audio_mixer),
  7027. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7028. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7029. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7030. msm_routing_put_audio_mixer),
  7031. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7032. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7033. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7034. msm_routing_put_audio_mixer),
  7035. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7036. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7037. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7038. msm_routing_put_audio_mixer),
  7039. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7040. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7041. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7042. msm_routing_put_audio_mixer),
  7043. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7044. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7045. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7046. msm_routing_put_audio_mixer),
  7047. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7048. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7049. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7050. msm_routing_put_audio_mixer),
  7051. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7052. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7053. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7054. msm_routing_put_audio_mixer),
  7055. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7056. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7057. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7058. msm_routing_put_audio_mixer),
  7059. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7060. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7061. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7062. msm_routing_put_audio_mixer),
  7063. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7064. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7065. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7066. msm_routing_put_audio_mixer),
  7067. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7068. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7069. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7070. msm_routing_put_audio_mixer),
  7071. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7072. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7073. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7074. msm_routing_put_audio_mixer),
  7075. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7076. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7077. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7078. msm_routing_put_audio_mixer),
  7079. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7080. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7081. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7082. msm_routing_put_audio_mixer),
  7083. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7084. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7085. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7086. msm_routing_put_audio_mixer),
  7087. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7088. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7089. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7090. msm_routing_put_audio_mixer),
  7091. };
  7092. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  7093. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7094. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7095. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7096. msm_routing_put_audio_mixer),
  7097. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7098. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7099. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7100. msm_routing_put_audio_mixer),
  7101. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7102. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7103. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7104. msm_routing_put_audio_mixer),
  7105. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7106. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7107. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7108. msm_routing_put_audio_mixer),
  7109. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7110. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7111. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7112. msm_routing_put_audio_mixer),
  7113. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7114. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7115. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7116. msm_routing_put_audio_mixer),
  7117. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7118. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7119. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7120. msm_routing_put_audio_mixer),
  7121. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7122. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7123. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7124. msm_routing_put_audio_mixer),
  7125. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7126. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7127. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7128. msm_routing_put_audio_mixer),
  7129. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7130. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7131. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7132. msm_routing_put_audio_mixer),
  7133. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7134. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7135. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7136. msm_routing_put_audio_mixer),
  7137. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7138. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7139. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7140. msm_routing_put_audio_mixer),
  7141. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7142. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7143. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7144. msm_routing_put_audio_mixer),
  7145. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7146. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7147. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7148. msm_routing_put_audio_mixer),
  7149. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7150. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7151. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7152. msm_routing_put_audio_mixer),
  7153. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7154. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. };
  7162. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  7163. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7164. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7165. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7166. msm_routing_put_audio_mixer),
  7167. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7168. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7169. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7170. msm_routing_put_audio_mixer),
  7171. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7172. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7173. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7174. msm_routing_put_audio_mixer),
  7175. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7176. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7177. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7178. msm_routing_put_audio_mixer),
  7179. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7180. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7181. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7182. msm_routing_put_audio_mixer),
  7183. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7184. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7185. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7186. msm_routing_put_audio_mixer),
  7187. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7188. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7189. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7190. msm_routing_put_audio_mixer),
  7191. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7192. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7193. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7194. msm_routing_put_audio_mixer),
  7195. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7196. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7197. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7198. msm_routing_put_audio_mixer),
  7199. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7200. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7201. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7202. msm_routing_put_audio_mixer),
  7203. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7204. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7205. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7206. msm_routing_put_audio_mixer),
  7207. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7208. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7209. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7210. msm_routing_put_audio_mixer),
  7211. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7212. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7213. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7214. msm_routing_put_audio_mixer),
  7215. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7216. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7217. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7218. msm_routing_put_audio_mixer),
  7219. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7220. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7221. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7222. msm_routing_put_audio_mixer),
  7223. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7224. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7225. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7226. msm_routing_put_audio_mixer),
  7227. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7228. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7229. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7230. msm_routing_put_audio_mixer),
  7231. };
  7232. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  7233. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7234. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7235. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7236. msm_routing_put_audio_mixer),
  7237. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7238. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7239. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7240. msm_routing_put_audio_mixer),
  7241. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7242. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7243. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7244. msm_routing_put_audio_mixer),
  7245. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7246. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7247. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7248. msm_routing_put_audio_mixer),
  7249. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7250. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7251. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7252. msm_routing_put_audio_mixer),
  7253. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7254. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7255. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7256. msm_routing_put_audio_mixer),
  7257. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7258. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7259. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7260. msm_routing_put_audio_mixer),
  7261. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7262. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7263. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7264. msm_routing_put_audio_mixer),
  7265. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7266. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7267. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7268. msm_routing_put_audio_mixer),
  7269. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7270. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7271. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7272. msm_routing_put_audio_mixer),
  7273. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7274. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7275. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7276. msm_routing_put_audio_mixer),
  7277. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7278. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7279. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7280. msm_routing_put_audio_mixer),
  7281. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7282. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7283. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7284. msm_routing_put_audio_mixer),
  7285. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7286. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7287. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7288. msm_routing_put_audio_mixer),
  7289. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7290. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7291. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7292. msm_routing_put_audio_mixer),
  7293. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7294. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7295. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7296. msm_routing_put_audio_mixer),
  7297. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7298. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7299. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7300. msm_routing_put_audio_mixer),
  7301. };
  7302. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  7303. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7304. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7305. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7306. msm_routing_put_audio_mixer),
  7307. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7308. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7309. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7310. msm_routing_put_audio_mixer),
  7311. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7312. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7313. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7314. msm_routing_put_audio_mixer),
  7315. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7316. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7317. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7318. msm_routing_put_audio_mixer),
  7319. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7320. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7321. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7322. msm_routing_put_audio_mixer),
  7323. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7324. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7325. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7326. msm_routing_put_audio_mixer),
  7327. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7328. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7329. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7330. msm_routing_put_audio_mixer),
  7331. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7332. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7333. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7334. msm_routing_put_audio_mixer),
  7335. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7336. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7337. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7338. msm_routing_put_audio_mixer),
  7339. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7340. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7341. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7342. msm_routing_put_audio_mixer),
  7343. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7344. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7345. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7346. msm_routing_put_audio_mixer),
  7347. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7348. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7349. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7350. msm_routing_put_audio_mixer),
  7351. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7352. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7353. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7354. msm_routing_put_audio_mixer),
  7355. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7356. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7357. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7358. msm_routing_put_audio_mixer),
  7359. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7360. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7361. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7362. msm_routing_put_audio_mixer),
  7363. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7364. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7365. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7366. msm_routing_put_audio_mixer),
  7367. };
  7368. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  7369. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7370. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7371. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7372. msm_routing_put_audio_mixer),
  7373. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7374. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7375. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7376. msm_routing_put_audio_mixer),
  7377. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7378. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7379. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7380. msm_routing_put_audio_mixer),
  7381. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7382. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7383. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7384. msm_routing_put_audio_mixer),
  7385. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7386. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7387. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7388. msm_routing_put_audio_mixer),
  7389. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7390. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7391. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7392. msm_routing_put_audio_mixer),
  7393. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7394. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7395. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7396. msm_routing_put_audio_mixer),
  7397. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7398. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7399. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7400. msm_routing_put_audio_mixer),
  7401. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7402. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7403. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7404. msm_routing_put_audio_mixer),
  7405. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7406. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7407. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7408. msm_routing_put_audio_mixer),
  7409. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7410. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7411. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7412. msm_routing_put_audio_mixer),
  7413. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7414. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7415. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7416. msm_routing_put_audio_mixer),
  7417. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7418. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7419. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7420. msm_routing_put_audio_mixer),
  7421. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7422. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7423. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7424. msm_routing_put_audio_mixer),
  7425. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7426. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7427. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7428. msm_routing_put_audio_mixer),
  7429. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7430. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7431. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7432. msm_routing_put_audio_mixer),
  7433. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7434. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7435. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7436. msm_routing_put_audio_mixer),
  7437. };
  7438. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  7439. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7440. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7441. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7442. msm_routing_put_audio_mixer),
  7443. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7444. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7445. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7446. msm_routing_put_audio_mixer),
  7447. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7448. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7449. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7450. msm_routing_put_audio_mixer),
  7451. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7452. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7456. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7457. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7458. msm_routing_put_audio_mixer),
  7459. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7460. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7461. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7462. msm_routing_put_audio_mixer),
  7463. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7464. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7465. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7466. msm_routing_put_audio_mixer),
  7467. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7468. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7469. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7470. msm_routing_put_audio_mixer),
  7471. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7472. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7473. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7474. msm_routing_put_audio_mixer),
  7475. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7476. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7477. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7478. msm_routing_put_audio_mixer),
  7479. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7480. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7481. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7482. msm_routing_put_audio_mixer),
  7483. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7484. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7485. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7486. msm_routing_put_audio_mixer),
  7487. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7488. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7489. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7490. msm_routing_put_audio_mixer),
  7491. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7492. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7493. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7494. msm_routing_put_audio_mixer),
  7495. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7496. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7497. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7498. msm_routing_put_audio_mixer),
  7499. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7500. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7501. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7502. msm_routing_put_audio_mixer),
  7503. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7504. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7505. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7506. msm_routing_put_audio_mixer),
  7507. };
  7508. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  7509. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7510. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7511. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7512. msm_routing_put_audio_mixer),
  7513. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7514. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7515. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7516. msm_routing_put_audio_mixer),
  7517. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7518. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7519. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7520. msm_routing_put_audio_mixer),
  7521. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7522. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7523. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7524. msm_routing_put_audio_mixer),
  7525. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7526. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7527. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7528. msm_routing_put_audio_mixer),
  7529. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7530. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7531. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7532. msm_routing_put_audio_mixer),
  7533. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7534. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7535. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7536. msm_routing_put_audio_mixer),
  7537. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7538. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7539. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7540. msm_routing_put_audio_mixer),
  7541. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7542. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7543. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7544. msm_routing_put_audio_mixer),
  7545. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7546. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7547. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7548. msm_routing_put_audio_mixer),
  7549. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7550. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7551. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7552. msm_routing_put_audio_mixer),
  7553. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7554. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7555. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7556. msm_routing_put_audio_mixer),
  7557. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7558. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7559. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7560. msm_routing_put_audio_mixer),
  7561. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7562. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7563. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7564. msm_routing_put_audio_mixer),
  7565. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7566. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7567. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7568. msm_routing_put_audio_mixer),
  7569. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7570. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7571. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7572. msm_routing_put_audio_mixer),
  7573. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7574. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7575. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7576. msm_routing_put_audio_mixer),
  7577. };
  7578. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  7579. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7580. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7581. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7582. msm_routing_put_audio_mixer),
  7583. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7584. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7585. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7586. msm_routing_put_audio_mixer),
  7587. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7588. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7589. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7590. msm_routing_put_audio_mixer),
  7591. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7592. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7593. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7594. msm_routing_put_audio_mixer),
  7595. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7596. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7597. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7598. msm_routing_put_audio_mixer),
  7599. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7600. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7601. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7602. msm_routing_put_audio_mixer),
  7603. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7604. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7605. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7606. msm_routing_put_audio_mixer),
  7607. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7608. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7609. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7610. msm_routing_put_audio_mixer),
  7611. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7612. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7613. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7614. msm_routing_put_audio_mixer),
  7615. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7616. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7617. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7618. msm_routing_put_audio_mixer),
  7619. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7620. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7621. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7622. msm_routing_put_audio_mixer),
  7623. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7624. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7625. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7626. msm_routing_put_audio_mixer),
  7627. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7628. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7629. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7630. msm_routing_put_audio_mixer),
  7631. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7632. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7633. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7634. msm_routing_put_audio_mixer),
  7635. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7636. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7637. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7638. msm_routing_put_audio_mixer),
  7639. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7640. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7641. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7642. msm_routing_put_audio_mixer),
  7643. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7644. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7645. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7646. msm_routing_put_audio_mixer),
  7647. };
  7648. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  7649. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7650. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7651. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7652. msm_routing_put_audio_mixer),
  7653. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7654. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7655. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7656. msm_routing_put_audio_mixer),
  7657. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7658. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7659. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7660. msm_routing_put_audio_mixer),
  7661. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7662. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7663. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7664. msm_routing_put_audio_mixer),
  7665. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7666. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7667. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7668. msm_routing_put_audio_mixer),
  7669. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7670. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7671. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7672. msm_routing_put_audio_mixer),
  7673. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7674. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7675. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7676. msm_routing_put_audio_mixer),
  7677. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7678. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7679. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7680. msm_routing_put_audio_mixer),
  7681. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7682. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7683. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7684. msm_routing_put_audio_mixer),
  7685. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7686. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7687. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7688. msm_routing_put_audio_mixer),
  7689. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7690. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7691. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7692. msm_routing_put_audio_mixer),
  7693. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7694. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7695. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7696. msm_routing_put_audio_mixer),
  7697. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7698. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7699. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7700. msm_routing_put_audio_mixer),
  7701. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7702. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7703. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7704. msm_routing_put_audio_mixer),
  7705. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7706. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7707. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7708. msm_routing_put_audio_mixer),
  7709. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7710. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7711. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7712. msm_routing_put_audio_mixer),
  7713. };
  7714. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  7715. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7716. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7717. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7718. msm_routing_put_audio_mixer),
  7719. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7720. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7721. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7722. msm_routing_put_audio_mixer),
  7723. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7724. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7725. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7726. msm_routing_put_audio_mixer),
  7727. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7728. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7729. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7730. msm_routing_put_audio_mixer),
  7731. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7732. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7733. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7734. msm_routing_put_audio_mixer),
  7735. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7736. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7737. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7738. msm_routing_put_audio_mixer),
  7739. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7740. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7741. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7742. msm_routing_put_audio_mixer),
  7743. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7744. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7745. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7746. msm_routing_put_audio_mixer),
  7747. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7748. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7749. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7750. msm_routing_put_audio_mixer),
  7751. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7752. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7753. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7754. msm_routing_put_audio_mixer),
  7755. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7756. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7757. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7758. msm_routing_put_audio_mixer),
  7759. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7760. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7761. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7762. msm_routing_put_audio_mixer),
  7763. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7764. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7765. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7766. msm_routing_put_audio_mixer),
  7767. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7768. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7769. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7770. msm_routing_put_audio_mixer),
  7771. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7772. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7773. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7774. msm_routing_put_audio_mixer),
  7775. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7776. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7777. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7778. msm_routing_put_audio_mixer),
  7779. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7780. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7781. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7782. msm_routing_put_audio_mixer),
  7783. };
  7784. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  7785. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7786. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7787. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7788. msm_routing_put_audio_mixer),
  7789. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7790. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7791. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7792. msm_routing_put_audio_mixer),
  7793. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7794. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7795. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7796. msm_routing_put_audio_mixer),
  7797. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7798. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7799. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7800. msm_routing_put_audio_mixer),
  7801. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7802. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7803. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7804. msm_routing_put_audio_mixer),
  7805. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7806. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7807. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7808. msm_routing_put_audio_mixer),
  7809. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7810. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7811. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7812. msm_routing_put_audio_mixer),
  7813. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7814. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7815. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7816. msm_routing_put_audio_mixer),
  7817. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7818. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7819. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7820. msm_routing_put_audio_mixer),
  7821. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7822. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7823. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7824. msm_routing_put_audio_mixer),
  7825. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7826. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7827. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7828. msm_routing_put_audio_mixer),
  7829. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7830. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7831. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7832. msm_routing_put_audio_mixer),
  7833. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7834. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7835. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7836. msm_routing_put_audio_mixer),
  7837. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7838. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7839. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7840. msm_routing_put_audio_mixer),
  7841. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7842. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7843. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7844. msm_routing_put_audio_mixer),
  7845. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7846. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7847. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7848. msm_routing_put_audio_mixer),
  7849. };
  7850. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  7851. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7852. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7853. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7854. msm_routing_put_audio_mixer),
  7855. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7856. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7857. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7858. msm_routing_put_audio_mixer),
  7859. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7860. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7861. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7862. msm_routing_put_audio_mixer),
  7863. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7864. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7865. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7866. msm_routing_put_audio_mixer),
  7867. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7868. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7869. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7870. msm_routing_put_audio_mixer),
  7871. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7872. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7873. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7874. msm_routing_put_audio_mixer),
  7875. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7876. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7877. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7878. msm_routing_put_audio_mixer),
  7879. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7880. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7881. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7882. msm_routing_put_audio_mixer),
  7883. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7884. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7885. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7886. msm_routing_put_audio_mixer),
  7887. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7888. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7889. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7890. msm_routing_put_audio_mixer),
  7891. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7892. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7893. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7894. msm_routing_put_audio_mixer),
  7895. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7896. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7897. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7898. msm_routing_put_audio_mixer),
  7899. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7900. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7901. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7902. msm_routing_put_audio_mixer),
  7903. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7904. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7905. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7906. msm_routing_put_audio_mixer),
  7907. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7908. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7909. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7910. msm_routing_put_audio_mixer),
  7911. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7912. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7913. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7914. msm_routing_put_audio_mixer),
  7915. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7916. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7917. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7918. msm_routing_put_audio_mixer),
  7919. };
  7920. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  7921. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7922. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7923. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7924. msm_routing_put_audio_mixer),
  7925. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7926. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7927. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7928. msm_routing_put_audio_mixer),
  7929. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7930. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7931. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7932. msm_routing_put_audio_mixer),
  7933. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7934. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7935. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7936. msm_routing_put_audio_mixer),
  7937. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7938. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7939. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7940. msm_routing_put_audio_mixer),
  7941. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7942. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7943. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7944. msm_routing_put_audio_mixer),
  7945. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7946. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7947. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7948. msm_routing_put_audio_mixer),
  7949. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7950. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7951. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7952. msm_routing_put_audio_mixer),
  7953. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7954. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7955. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7956. msm_routing_put_audio_mixer),
  7957. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7958. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7959. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7960. msm_routing_put_audio_mixer),
  7961. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7962. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7963. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7964. msm_routing_put_audio_mixer),
  7965. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7966. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7967. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7968. msm_routing_put_audio_mixer),
  7969. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7970. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7971. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7972. msm_routing_put_audio_mixer),
  7973. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7974. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7975. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7976. msm_routing_put_audio_mixer),
  7977. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7978. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7979. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7980. msm_routing_put_audio_mixer),
  7981. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7982. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7983. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7984. msm_routing_put_audio_mixer),
  7985. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7986. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7987. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7988. msm_routing_put_audio_mixer),
  7989. };
  7990. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  7991. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7992. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7993. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7994. msm_routing_put_audio_mixer),
  7995. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7996. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7997. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7998. msm_routing_put_audio_mixer),
  7999. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8000. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8001. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8002. msm_routing_put_audio_mixer),
  8003. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8004. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8005. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8006. msm_routing_put_audio_mixer),
  8007. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8008. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8009. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8010. msm_routing_put_audio_mixer),
  8011. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8012. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8013. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8014. msm_routing_put_audio_mixer),
  8015. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8016. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8017. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8018. msm_routing_put_audio_mixer),
  8019. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8020. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8021. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8022. msm_routing_put_audio_mixer),
  8023. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8024. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8025. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8026. msm_routing_put_audio_mixer),
  8027. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8028. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8029. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8030. msm_routing_put_audio_mixer),
  8031. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8032. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8033. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8034. msm_routing_put_audio_mixer),
  8035. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8036. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8037. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8038. msm_routing_put_audio_mixer),
  8039. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8040. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8041. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8042. msm_routing_put_audio_mixer),
  8043. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8044. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8045. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8046. msm_routing_put_audio_mixer),
  8047. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8048. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8049. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8050. msm_routing_put_audio_mixer),
  8051. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8052. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8053. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8054. msm_routing_put_audio_mixer),
  8055. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8056. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8057. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8058. msm_routing_put_audio_mixer),
  8059. };
  8060. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  8061. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8062. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8063. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8064. msm_routing_put_audio_mixer),
  8065. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8066. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8067. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8068. msm_routing_put_audio_mixer),
  8069. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8070. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8071. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8072. msm_routing_put_audio_mixer),
  8073. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8074. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8075. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8076. msm_routing_put_audio_mixer),
  8077. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8078. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8079. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8080. msm_routing_put_audio_mixer),
  8081. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8082. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8083. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8084. msm_routing_put_audio_mixer),
  8085. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8086. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8087. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8088. msm_routing_put_audio_mixer),
  8089. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8090. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8091. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8092. msm_routing_put_audio_mixer),
  8093. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8094. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8095. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8096. msm_routing_put_audio_mixer),
  8097. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8098. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8099. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8100. msm_routing_put_audio_mixer),
  8101. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8102. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8103. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8104. msm_routing_put_audio_mixer),
  8105. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8106. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8107. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8108. msm_routing_put_audio_mixer),
  8109. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8110. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8111. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8112. msm_routing_put_audio_mixer),
  8113. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8114. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8115. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8116. msm_routing_put_audio_mixer),
  8117. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8118. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8119. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8120. msm_routing_put_audio_mixer),
  8121. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8122. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8123. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8124. msm_routing_put_audio_mixer),
  8125. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8126. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8127. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8128. msm_routing_put_audio_mixer),
  8129. };
  8130. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  8131. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8132. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8133. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8134. msm_routing_put_audio_mixer),
  8135. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8136. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8137. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8138. msm_routing_put_audio_mixer),
  8139. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8140. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8141. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8142. msm_routing_put_audio_mixer),
  8143. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8144. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8145. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8146. msm_routing_put_audio_mixer),
  8147. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8148. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8149. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8150. msm_routing_put_audio_mixer),
  8151. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8152. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8153. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8154. msm_routing_put_audio_mixer),
  8155. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8156. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8157. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8158. msm_routing_put_audio_mixer),
  8159. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8160. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8161. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8162. msm_routing_put_audio_mixer),
  8163. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8164. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8165. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8166. msm_routing_put_audio_mixer),
  8167. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8168. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8169. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8170. msm_routing_put_audio_mixer),
  8171. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8172. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8173. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8174. msm_routing_put_audio_mixer),
  8175. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8176. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8177. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8178. msm_routing_put_audio_mixer),
  8179. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8180. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8181. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8182. msm_routing_put_audio_mixer),
  8183. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8184. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8185. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8186. msm_routing_put_audio_mixer),
  8187. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8188. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8189. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8190. msm_routing_put_audio_mixer),
  8191. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8192. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8193. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8194. msm_routing_put_audio_mixer),
  8195. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8196. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8197. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8198. msm_routing_put_audio_mixer),
  8199. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8200. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8201. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8202. msm_routing_put_audio_mixer),
  8203. };
  8204. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  8205. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8206. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8207. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8208. msm_routing_put_audio_mixer),
  8209. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8210. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8211. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8212. msm_routing_put_audio_mixer),
  8213. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8214. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8215. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8216. msm_routing_put_audio_mixer),
  8217. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8218. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8219. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8220. msm_routing_put_audio_mixer),
  8221. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8222. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8223. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8224. msm_routing_put_audio_mixer),
  8225. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8226. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8227. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8228. msm_routing_put_audio_mixer),
  8229. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8230. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8231. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8232. msm_routing_put_audio_mixer),
  8233. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8234. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8235. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8236. msm_routing_put_audio_mixer),
  8237. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8238. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8239. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8240. msm_routing_put_audio_mixer),
  8241. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8242. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8243. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8244. msm_routing_put_audio_mixer),
  8245. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8246. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8247. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8248. msm_routing_put_audio_mixer),
  8249. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8250. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8251. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8252. msm_routing_put_audio_mixer),
  8253. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8254. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8255. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8256. msm_routing_put_audio_mixer),
  8257. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8258. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8259. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8260. msm_routing_put_audio_mixer),
  8261. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8262. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8263. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8264. msm_routing_put_audio_mixer),
  8265. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8266. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8267. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8268. msm_routing_put_audio_mixer),
  8269. };
  8270. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  8271. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8272. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8273. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8274. msm_routing_put_audio_mixer),
  8275. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8276. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8277. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8278. msm_routing_put_audio_mixer),
  8279. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8280. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8281. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8282. msm_routing_put_audio_mixer),
  8283. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8284. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8285. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8286. msm_routing_put_audio_mixer),
  8287. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8288. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8289. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8290. msm_routing_put_audio_mixer),
  8291. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8292. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8293. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8294. msm_routing_put_audio_mixer),
  8295. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8296. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8297. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8298. msm_routing_put_audio_mixer),
  8299. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8300. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8301. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8302. msm_routing_put_audio_mixer),
  8303. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8304. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8305. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8306. msm_routing_put_audio_mixer),
  8307. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8308. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8309. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8310. msm_routing_put_audio_mixer),
  8311. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8312. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8313. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8314. msm_routing_put_audio_mixer),
  8315. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8316. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8317. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8318. msm_routing_put_audio_mixer),
  8319. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8320. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8321. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8322. msm_routing_put_audio_mixer),
  8323. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8324. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8325. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8326. msm_routing_put_audio_mixer),
  8327. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8328. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8329. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8330. msm_routing_put_audio_mixer),
  8331. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8332. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8333. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8334. msm_routing_put_audio_mixer),
  8335. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8336. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8337. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8338. msm_routing_put_audio_mixer),
  8339. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8340. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8341. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8342. msm_routing_put_audio_mixer),
  8343. };
  8344. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  8345. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8346. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8347. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8348. msm_routing_put_audio_mixer),
  8349. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8350. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8351. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8352. msm_routing_put_audio_mixer),
  8353. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8354. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8355. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8356. msm_routing_put_audio_mixer),
  8357. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8358. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8359. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8360. msm_routing_put_audio_mixer),
  8361. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8362. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8363. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8364. msm_routing_put_audio_mixer),
  8365. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8366. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8367. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8368. msm_routing_put_audio_mixer),
  8369. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8370. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8371. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8372. msm_routing_put_audio_mixer),
  8373. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8374. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8375. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8376. msm_routing_put_audio_mixer),
  8377. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8378. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8379. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8380. msm_routing_put_audio_mixer),
  8381. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8382. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8383. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8384. msm_routing_put_audio_mixer),
  8385. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8386. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8387. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8388. msm_routing_put_audio_mixer),
  8389. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8390. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8391. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8392. msm_routing_put_audio_mixer),
  8393. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8394. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8395. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8396. msm_routing_put_audio_mixer),
  8397. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8398. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8399. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8400. msm_routing_put_audio_mixer),
  8401. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8402. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8403. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8404. msm_routing_put_audio_mixer),
  8405. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8406. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8407. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8408. msm_routing_put_audio_mixer),
  8409. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8410. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8411. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8412. msm_routing_put_audio_mixer),
  8413. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8414. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8415. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8416. msm_routing_put_audio_mixer),
  8417. };
  8418. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  8419. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8420. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8421. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8422. msm_routing_put_audio_mixer),
  8423. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8424. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8425. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8426. msm_routing_put_audio_mixer),
  8427. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8428. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8429. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8430. msm_routing_put_audio_mixer),
  8431. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8432. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8433. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8434. msm_routing_put_audio_mixer),
  8435. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8436. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8437. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8438. msm_routing_put_audio_mixer),
  8439. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8440. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8441. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8442. msm_routing_put_audio_mixer),
  8443. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8444. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8445. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8446. msm_routing_put_audio_mixer),
  8447. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8448. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8449. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8450. msm_routing_put_audio_mixer),
  8451. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8452. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8453. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8454. msm_routing_put_audio_mixer),
  8455. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8456. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8457. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8458. msm_routing_put_audio_mixer),
  8459. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8460. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8461. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8462. msm_routing_put_audio_mixer),
  8463. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8464. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8465. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8466. msm_routing_put_audio_mixer),
  8467. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8468. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8469. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8470. msm_routing_put_audio_mixer),
  8471. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8472. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8473. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8474. msm_routing_put_audio_mixer),
  8475. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8476. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8477. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8478. msm_routing_put_audio_mixer),
  8479. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8480. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8481. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8482. msm_routing_put_audio_mixer),
  8483. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8484. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8485. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8486. msm_routing_put_audio_mixer),
  8487. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8488. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8489. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8490. msm_routing_put_audio_mixer),
  8491. };
  8492. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  8493. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8494. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8495. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8496. msm_routing_put_audio_mixer),
  8497. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8498. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8499. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8500. msm_routing_put_audio_mixer),
  8501. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8502. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8503. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8504. msm_routing_put_audio_mixer),
  8505. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8506. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8507. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8508. msm_routing_put_audio_mixer),
  8509. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8510. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8511. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8512. msm_routing_put_audio_mixer),
  8513. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8514. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8515. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8516. msm_routing_put_audio_mixer),
  8517. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8518. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8519. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8520. msm_routing_put_audio_mixer),
  8521. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8522. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8523. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8524. msm_routing_put_audio_mixer),
  8525. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8526. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8527. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8528. msm_routing_put_audio_mixer),
  8529. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8530. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8531. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8532. msm_routing_put_audio_mixer),
  8533. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8534. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8535. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8536. msm_routing_put_audio_mixer),
  8537. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8538. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8539. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8540. msm_routing_put_audio_mixer),
  8541. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8542. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8543. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8544. msm_routing_put_audio_mixer),
  8545. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8546. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8547. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8548. msm_routing_put_audio_mixer),
  8549. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8550. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8551. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8552. msm_routing_put_audio_mixer),
  8553. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8554. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8555. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8556. msm_routing_put_audio_mixer),
  8557. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8558. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8559. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8560. msm_routing_put_audio_mixer),
  8561. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8562. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8563. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8564. msm_routing_put_audio_mixer),
  8565. };
  8566. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  8567. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8568. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8569. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8570. msm_routing_put_audio_mixer),
  8571. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8572. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8573. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8574. msm_routing_put_audio_mixer),
  8575. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8576. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8577. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8578. msm_routing_put_audio_mixer),
  8579. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8580. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8581. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8582. msm_routing_put_audio_mixer),
  8583. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8584. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8585. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8586. msm_routing_put_audio_mixer),
  8587. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8588. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8589. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8590. msm_routing_put_audio_mixer),
  8591. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8592. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8593. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8594. msm_routing_put_audio_mixer),
  8595. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8596. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8597. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8598. msm_routing_put_audio_mixer),
  8599. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8600. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8601. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8602. msm_routing_put_audio_mixer),
  8603. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8604. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8605. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8606. msm_routing_put_audio_mixer),
  8607. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8608. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8609. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8610. msm_routing_put_audio_mixer),
  8611. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8612. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8613. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8614. msm_routing_put_audio_mixer),
  8615. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8616. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8617. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8618. msm_routing_put_audio_mixer),
  8619. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8620. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8621. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8622. msm_routing_put_audio_mixer),
  8623. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8624. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8625. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8626. msm_routing_put_audio_mixer),
  8627. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8628. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8629. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8630. msm_routing_put_audio_mixer),
  8631. };
  8632. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  8633. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8634. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8635. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8636. msm_routing_put_audio_mixer),
  8637. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8638. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8639. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8640. msm_routing_put_audio_mixer),
  8641. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8642. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8643. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8644. msm_routing_put_audio_mixer),
  8645. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8646. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8647. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8648. msm_routing_put_audio_mixer),
  8649. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8650. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8651. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8652. msm_routing_put_audio_mixer),
  8653. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8654. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8655. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8656. msm_routing_put_audio_mixer),
  8657. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8658. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8659. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8660. msm_routing_put_audio_mixer),
  8661. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8662. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8663. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8664. msm_routing_put_audio_mixer),
  8665. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8666. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8667. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8668. msm_routing_put_audio_mixer),
  8669. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8670. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8671. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8672. msm_routing_put_audio_mixer),
  8673. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8674. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8675. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8676. msm_routing_put_audio_mixer),
  8677. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8678. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8679. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8680. msm_routing_put_audio_mixer),
  8681. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8682. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8683. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8684. msm_routing_put_audio_mixer),
  8685. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8686. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8687. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8688. msm_routing_put_audio_mixer),
  8689. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8690. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8691. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8692. msm_routing_put_audio_mixer),
  8693. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8694. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8695. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8696. msm_routing_put_audio_mixer),
  8697. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8698. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8699. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8700. msm_routing_put_audio_mixer),
  8701. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8702. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8703. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8704. msm_routing_put_audio_mixer),
  8705. };
  8706. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  8707. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8708. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8709. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8710. msm_routing_put_audio_mixer),
  8711. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8712. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8713. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8714. msm_routing_put_audio_mixer),
  8715. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8716. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8717. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8718. msm_routing_put_audio_mixer),
  8719. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8720. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8721. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8722. msm_routing_put_audio_mixer),
  8723. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8724. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8725. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8726. msm_routing_put_audio_mixer),
  8727. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8728. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8729. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8730. msm_routing_put_audio_mixer),
  8731. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8732. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8733. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8734. msm_routing_put_audio_mixer),
  8735. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8736. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8737. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8738. msm_routing_put_audio_mixer),
  8739. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8740. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8741. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8742. msm_routing_put_audio_mixer),
  8743. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8744. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8745. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8746. msm_routing_put_audio_mixer),
  8747. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8748. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8749. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8750. msm_routing_put_audio_mixer),
  8751. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8752. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8753. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8754. msm_routing_put_audio_mixer),
  8755. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8756. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8757. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8758. msm_routing_put_audio_mixer),
  8759. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8760. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8761. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8762. msm_routing_put_audio_mixer),
  8763. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8764. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8765. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8766. msm_routing_put_audio_mixer),
  8767. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8768. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8769. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8770. msm_routing_put_audio_mixer),
  8771. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8772. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8773. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8774. msm_routing_put_audio_mixer),
  8775. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8776. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8777. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8778. msm_routing_put_audio_mixer),
  8779. };
  8780. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  8781. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8782. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8783. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8784. msm_routing_put_audio_mixer),
  8785. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8786. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8787. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8788. msm_routing_put_audio_mixer),
  8789. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8790. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8791. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8792. msm_routing_put_audio_mixer),
  8793. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8794. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8795. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8796. msm_routing_put_audio_mixer),
  8797. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8798. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8799. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8800. msm_routing_put_audio_mixer),
  8801. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8802. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8803. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8804. msm_routing_put_audio_mixer),
  8805. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8806. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8807. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8808. msm_routing_put_audio_mixer),
  8809. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8810. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8811. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8812. msm_routing_put_audio_mixer),
  8813. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8814. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8815. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8816. msm_routing_put_audio_mixer),
  8817. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8818. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8819. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8820. msm_routing_put_audio_mixer),
  8821. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8822. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8823. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8824. msm_routing_put_audio_mixer),
  8825. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8826. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8827. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8828. msm_routing_put_audio_mixer),
  8829. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8830. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8831. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8832. msm_routing_put_audio_mixer),
  8833. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8834. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8835. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8836. msm_routing_put_audio_mixer),
  8837. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8838. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8839. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8840. msm_routing_put_audio_mixer),
  8841. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8842. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8843. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8844. msm_routing_put_audio_mixer),
  8845. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8846. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8847. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8848. msm_routing_put_audio_mixer),
  8849. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8850. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8851. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8852. msm_routing_put_audio_mixer),
  8853. };
  8854. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  8855. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  8856. MSM_BACKEND_DAI_PRI_I2S_TX,
  8857. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8858. msm_routing_put_audio_mixer),
  8859. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8860. MSM_BACKEND_DAI_MI2S_TX,
  8861. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8862. msm_routing_put_audio_mixer),
  8863. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8864. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8865. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8866. msm_routing_put_audio_mixer),
  8867. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8868. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8869. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8870. msm_routing_put_audio_mixer),
  8871. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8872. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8873. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8874. msm_routing_put_audio_mixer),
  8875. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8876. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8877. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8878. msm_routing_put_audio_mixer),
  8879. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8880. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8881. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8882. msm_routing_put_audio_mixer),
  8883. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8884. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8885. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8886. msm_routing_put_audio_mixer),
  8887. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8888. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8889. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8890. msm_routing_put_audio_mixer),
  8891. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8892. MSM_BACKEND_DAI_AUXPCM_TX,
  8893. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8894. msm_routing_put_audio_mixer),
  8895. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  8896. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8897. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8898. msm_routing_put_audio_mixer),
  8899. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8900. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8901. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8902. msm_routing_put_audio_mixer),
  8903. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8904. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8905. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8906. msm_routing_put_audio_mixer),
  8907. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  8908. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8909. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8910. msm_routing_put_audio_mixer),
  8911. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8912. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8913. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8914. msm_routing_put_audio_mixer),
  8915. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8916. MSM_BACKEND_DAI_INT_FM_TX,
  8917. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8918. msm_routing_put_audio_mixer),
  8919. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8920. MSM_BACKEND_DAI_AFE_PCM_TX,
  8921. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8922. msm_routing_put_audio_mixer),
  8923. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8924. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8925. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8926. msm_routing_put_audio_mixer),
  8927. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8928. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8929. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8930. msm_routing_put_audio_mixer),
  8931. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  8932. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  8933. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8934. msm_routing_put_audio_mixer),
  8935. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8936. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8937. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8938. msm_routing_put_audio_mixer),
  8939. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8940. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8941. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8942. msm_routing_put_audio_mixer),
  8943. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8944. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8945. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8946. msm_routing_put_audio_mixer),
  8947. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8948. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8949. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8950. msm_routing_put_audio_mixer),
  8951. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8952. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8953. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8954. msm_routing_put_audio_mixer),
  8955. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8956. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8957. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8958. msm_routing_put_audio_mixer),
  8959. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8960. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8961. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8962. msm_routing_put_audio_mixer),
  8963. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8964. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8965. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8966. msm_routing_put_audio_mixer),
  8967. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8968. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8969. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8970. msm_routing_put_audio_mixer),
  8971. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8972. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8973. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8974. msm_routing_put_audio_mixer),
  8975. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8976. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8977. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8978. msm_routing_put_audio_mixer),
  8979. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8980. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8981. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8982. msm_routing_put_audio_mixer),
  8983. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8984. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8985. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8986. msm_routing_put_audio_mixer),
  8987. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8988. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8989. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8990. msm_routing_put_audio_mixer),
  8991. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8992. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8993. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8994. msm_routing_put_audio_mixer),
  8995. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8996. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8997. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8998. msm_routing_put_audio_mixer),
  8999. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9000. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9001. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9002. msm_routing_put_audio_mixer),
  9003. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9004. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9005. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9006. msm_routing_put_audio_mixer),
  9007. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9008. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9009. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9010. msm_routing_put_audio_mixer),
  9011. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9012. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9013. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9014. msm_routing_put_audio_mixer),
  9015. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9016. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9017. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9018. msm_routing_put_audio_mixer),
  9019. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9020. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9021. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9022. msm_routing_put_audio_mixer),
  9023. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9024. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9025. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9026. msm_routing_put_audio_mixer),
  9027. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9028. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9029. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9030. msm_routing_put_audio_mixer),
  9031. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9032. MSM_BACKEND_DAI_USB_TX,
  9033. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9034. msm_routing_put_audio_mixer),
  9035. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9036. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9037. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9038. msm_routing_put_audio_mixer),
  9039. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9040. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9041. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9042. msm_routing_put_audio_mixer),
  9043. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9044. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9045. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9046. msm_routing_put_audio_mixer),
  9047. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9048. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9049. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9050. msm_routing_put_audio_mixer),
  9051. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9052. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9053. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9054. msm_routing_put_audio_mixer),
  9055. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9056. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9057. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9058. msm_routing_put_audio_mixer),
  9059. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9060. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9061. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9062. msm_routing_put_audio_mixer),
  9063. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9064. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9065. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9066. msm_routing_put_audio_mixer),
  9067. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9068. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9069. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9070. msm_routing_put_audio_mixer),
  9071. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9072. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9073. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9074. msm_routing_put_audio_mixer),
  9075. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9076. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9077. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9078. msm_routing_put_audio_mixer),
  9079. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9080. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9081. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9082. msm_routing_put_audio_mixer),
  9083. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9084. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9085. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9086. msm_routing_put_audio_mixer),
  9087. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9088. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9089. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9090. msm_routing_put_audio_mixer),
  9091. };
  9092. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  9093. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9094. MSM_BACKEND_DAI_INT_FM_TX,
  9095. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9096. msm_routing_put_audio_mixer),
  9097. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9098. MSM_BACKEND_DAI_MI2S_TX,
  9099. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9100. msm_routing_put_audio_mixer),
  9101. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9102. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9103. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9104. msm_routing_put_audio_mixer),
  9105. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9106. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9107. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9108. msm_routing_put_audio_mixer),
  9109. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9110. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9111. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9112. msm_routing_put_audio_mixer),
  9113. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9114. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9115. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9116. msm_routing_put_audio_mixer),
  9117. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9118. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9119. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9120. msm_routing_put_audio_mixer),
  9121. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9122. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9123. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9124. msm_routing_put_audio_mixer),
  9125. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9126. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9127. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9128. msm_routing_put_audio_mixer),
  9129. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9130. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9131. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9132. msm_routing_put_audio_mixer),
  9133. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  9134. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9135. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9136. msm_routing_put_audio_mixer),
  9137. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9138. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9139. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9140. msm_routing_put_audio_mixer),
  9141. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9142. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9143. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9144. msm_routing_put_audio_mixer),
  9145. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9146. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9147. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9148. msm_routing_put_audio_mixer),
  9149. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9150. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9151. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9152. msm_routing_put_audio_mixer),
  9153. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9154. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9155. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9156. msm_routing_put_audio_mixer),
  9157. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9158. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9159. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9160. msm_routing_put_audio_mixer),
  9161. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9162. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9163. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9164. msm_routing_put_audio_mixer),
  9165. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9166. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9167. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9168. msm_routing_put_audio_mixer),
  9169. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9170. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9171. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9172. msm_routing_put_audio_mixer),
  9173. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9174. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9175. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9176. msm_routing_put_audio_mixer),
  9177. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9178. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9179. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9180. msm_routing_put_audio_mixer),
  9181. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9182. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9183. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9184. msm_routing_put_audio_mixer),
  9185. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9186. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9187. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9188. msm_routing_put_audio_mixer),
  9189. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9190. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9191. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9192. msm_routing_put_audio_mixer),
  9193. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9194. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9195. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9196. msm_routing_put_audio_mixer),
  9197. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9198. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9199. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9200. msm_routing_put_audio_mixer),
  9201. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9202. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9203. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9204. msm_routing_put_audio_mixer),
  9205. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9206. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9207. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9208. msm_routing_put_audio_mixer),
  9209. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9210. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9211. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9212. msm_routing_put_audio_mixer),
  9213. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9214. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9215. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9216. msm_routing_put_audio_mixer),
  9217. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9218. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9219. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9220. msm_routing_put_audio_mixer),
  9221. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9222. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9223. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9224. msm_routing_put_audio_mixer),
  9225. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9226. MSM_BACKEND_DAI_USB_TX,
  9227. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9228. msm_routing_put_audio_mixer),
  9229. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9230. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9231. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9232. msm_routing_put_audio_mixer),
  9233. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9234. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9235. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9236. msm_routing_put_audio_mixer),
  9237. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9238. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9239. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9240. msm_routing_put_audio_mixer),
  9241. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9242. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9243. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9244. msm_routing_put_audio_mixer),
  9245. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9246. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9247. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9248. msm_routing_put_audio_mixer),
  9249. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9250. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9251. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9252. msm_routing_put_audio_mixer),
  9253. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9254. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9255. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9256. msm_routing_put_audio_mixer),
  9257. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9258. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9259. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9260. msm_routing_put_audio_mixer),
  9261. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9263. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9264. msm_routing_put_audio_mixer),
  9265. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9267. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9268. msm_routing_put_audio_mixer),
  9269. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9270. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9271. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9272. msm_routing_put_audio_mixer),
  9273. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9274. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9275. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9276. msm_routing_put_audio_mixer),
  9277. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9278. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9279. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9280. msm_routing_put_audio_mixer),
  9281. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9282. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9283. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9284. msm_routing_put_audio_mixer),
  9285. };
  9286. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  9287. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9288. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9289. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9290. msm_routing_put_audio_mixer),
  9291. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9292. MSM_BACKEND_DAI_INT_FM_TX,
  9293. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9294. msm_routing_put_audio_mixer),
  9295. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9296. MSM_BACKEND_DAI_MI2S_TX,
  9297. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9298. msm_routing_put_audio_mixer),
  9299. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9300. MSM_BACKEND_DAI_AFE_PCM_TX,
  9301. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9302. msm_routing_put_audio_mixer),
  9303. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9304. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9305. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9306. msm_routing_put_audio_mixer),
  9307. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9308. MSM_BACKEND_DAI_AUXPCM_TX,
  9309. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9310. msm_routing_put_audio_mixer),
  9311. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9312. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9313. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9314. msm_routing_put_audio_mixer),
  9315. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9316. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9317. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9318. msm_routing_put_audio_mixer),
  9319. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9320. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9321. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9322. msm_routing_put_audio_mixer),
  9323. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9324. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9325. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9326. msm_routing_put_audio_mixer),
  9327. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9328. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9329. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9330. msm_routing_put_audio_mixer),
  9331. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9332. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9333. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9334. msm_routing_put_audio_mixer),
  9335. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9336. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9337. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9338. msm_routing_put_audio_mixer),
  9339. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9340. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9341. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9342. msm_routing_put_audio_mixer),
  9343. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9344. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9345. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9346. msm_routing_put_audio_mixer),
  9347. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9348. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9349. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9350. msm_routing_put_audio_mixer),
  9351. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9352. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9353. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9354. msm_routing_put_audio_mixer),
  9355. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9356. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9357. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9358. msm_routing_put_audio_mixer),
  9359. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9360. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9361. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9362. msm_routing_put_audio_mixer),
  9363. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9364. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9365. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9366. msm_routing_put_audio_mixer),
  9367. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9368. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9369. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9370. msm_routing_put_audio_mixer),
  9371. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9372. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9373. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9374. msm_routing_put_audio_mixer),
  9375. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9376. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9377. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9378. msm_routing_put_audio_mixer),
  9379. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9380. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9381. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9382. msm_routing_put_audio_mixer),
  9383. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9384. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9385. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9386. msm_routing_put_audio_mixer),
  9387. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9388. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9389. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9390. msm_routing_put_audio_mixer),
  9391. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9392. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9393. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9394. msm_routing_put_audio_mixer),
  9395. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9396. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9397. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9398. msm_routing_put_audio_mixer),
  9399. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9400. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9401. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9402. msm_routing_put_audio_mixer),
  9403. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9404. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9405. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9406. msm_routing_put_audio_mixer),
  9407. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9408. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9409. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9410. msm_routing_put_audio_mixer),
  9411. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9412. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9413. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9414. msm_routing_put_audio_mixer),
  9415. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9416. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9417. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9418. msm_routing_put_audio_mixer),
  9419. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9420. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9421. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9422. msm_routing_put_audio_mixer),
  9423. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9424. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9425. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9426. msm_routing_put_audio_mixer),
  9427. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9428. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9429. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9430. msm_routing_put_audio_mixer),
  9431. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9432. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9433. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9434. msm_routing_put_audio_mixer),
  9435. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9436. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9437. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9438. msm_routing_put_audio_mixer),
  9439. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9440. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9441. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9442. msm_routing_put_audio_mixer),
  9443. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9444. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9445. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9446. msm_routing_put_audio_mixer),
  9447. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9448. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9449. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9450. msm_routing_put_audio_mixer),
  9451. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9452. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9453. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9454. msm_routing_put_audio_mixer),
  9455. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9456. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9457. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9458. msm_routing_put_audio_mixer),
  9459. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9460. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9461. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9462. msm_routing_put_audio_mixer),
  9463. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9464. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9465. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9466. msm_routing_put_audio_mixer),
  9467. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9468. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9469. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9470. msm_routing_put_audio_mixer),
  9471. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9472. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9473. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9474. msm_routing_put_audio_mixer),
  9475. };
  9476. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  9477. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9478. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9479. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9480. msm_routing_put_audio_mixer),
  9481. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9482. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9483. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9484. msm_routing_put_audio_mixer),
  9485. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9486. MSM_BACKEND_DAI_INT_FM_TX,
  9487. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9488. msm_routing_put_audio_mixer),
  9489. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9490. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9491. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9492. msm_routing_put_audio_mixer),
  9493. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9494. MSM_BACKEND_DAI_AFE_PCM_TX,
  9495. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9496. msm_routing_put_audio_mixer),
  9497. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9498. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9499. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9500. msm_routing_put_audio_mixer),
  9501. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9502. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9503. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9504. msm_routing_put_audio_mixer),
  9505. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9506. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9507. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9508. msm_routing_put_audio_mixer),
  9509. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9510. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9511. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9512. msm_routing_put_audio_mixer),
  9513. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9514. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9515. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9516. msm_routing_put_audio_mixer),
  9517. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9518. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9519. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9520. msm_routing_put_audio_mixer),
  9521. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9522. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9523. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9524. msm_routing_put_audio_mixer),
  9525. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9526. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9527. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9528. msm_routing_put_audio_mixer),
  9529. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9530. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9531. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9532. msm_routing_put_audio_mixer),
  9533. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9534. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9535. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9536. msm_routing_put_audio_mixer),
  9537. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9538. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9539. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9540. msm_routing_put_audio_mixer),
  9541. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9542. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9543. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9544. msm_routing_put_audio_mixer),
  9545. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9546. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9547. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9548. msm_routing_put_audio_mixer),
  9549. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9550. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9551. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9552. msm_routing_put_audio_mixer),
  9553. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9554. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9555. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9556. msm_routing_put_audio_mixer),
  9557. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9558. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9559. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9560. msm_routing_put_audio_mixer),
  9561. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9562. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9563. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9564. msm_routing_put_audio_mixer),
  9565. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9566. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9567. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9568. msm_routing_put_audio_mixer),
  9569. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9570. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9571. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9572. msm_routing_put_audio_mixer),
  9573. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9575. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9576. msm_routing_put_audio_mixer),
  9577. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9582. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9583. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9584. msm_routing_put_audio_mixer),
  9585. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9586. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9587. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9588. msm_routing_put_audio_mixer),
  9589. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9590. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9591. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9592. msm_routing_put_audio_mixer),
  9593. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9594. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9595. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9596. msm_routing_put_audio_mixer),
  9597. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9606. MSM_BACKEND_DAI_USB_TX,
  9607. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9608. msm_routing_put_audio_mixer),
  9609. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9610. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9611. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9612. msm_routing_put_audio_mixer),
  9613. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9614. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9615. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9616. msm_routing_put_audio_mixer),
  9617. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9618. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9619. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9620. msm_routing_put_audio_mixer),
  9621. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9622. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9623. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9624. msm_routing_put_audio_mixer),
  9625. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9626. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9627. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9628. msm_routing_put_audio_mixer),
  9629. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9630. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9631. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9632. msm_routing_put_audio_mixer),
  9633. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9634. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9635. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9636. msm_routing_put_audio_mixer),
  9637. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9638. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9639. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9640. msm_routing_put_audio_mixer),
  9641. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9642. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9643. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9644. msm_routing_put_audio_mixer),
  9645. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9646. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9647. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9648. msm_routing_put_audio_mixer),
  9649. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9650. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9651. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9652. msm_routing_put_audio_mixer),
  9653. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9654. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9655. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9656. msm_routing_put_audio_mixer),
  9657. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9658. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9659. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9660. msm_routing_put_audio_mixer),
  9661. };
  9662. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  9663. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9664. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9665. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9666. msm_routing_put_audio_mixer),
  9667. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9668. MSM_BACKEND_DAI_INT_FM_TX,
  9669. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9670. msm_routing_put_audio_mixer),
  9671. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9672. MSM_BACKEND_DAI_MI2S_TX,
  9673. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9674. msm_routing_put_audio_mixer),
  9675. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9676. MSM_BACKEND_DAI_AFE_PCM_TX,
  9677. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9678. msm_routing_put_audio_mixer),
  9679. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9680. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9681. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9682. msm_routing_put_audio_mixer),
  9683. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9684. MSM_BACKEND_DAI_AUXPCM_TX,
  9685. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9686. msm_routing_put_audio_mixer),
  9687. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9688. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9689. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9690. msm_routing_put_audio_mixer),
  9691. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9692. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9693. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9694. msm_routing_put_audio_mixer),
  9695. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9696. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9697. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9698. msm_routing_put_audio_mixer),
  9699. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9700. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9701. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9702. msm_routing_put_audio_mixer),
  9703. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9704. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9705. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9706. msm_routing_put_audio_mixer),
  9707. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9708. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9709. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9710. msm_routing_put_audio_mixer),
  9711. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9712. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9713. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9714. msm_routing_put_audio_mixer),
  9715. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9716. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9717. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9718. msm_routing_put_audio_mixer),
  9719. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9720. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9721. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9722. msm_routing_put_audio_mixer),
  9723. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9724. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9725. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9726. msm_routing_put_audio_mixer),
  9727. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9728. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9729. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9730. msm_routing_put_audio_mixer),
  9731. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9732. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9733. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9734. msm_routing_put_audio_mixer),
  9735. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9736. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9737. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9738. msm_routing_put_audio_mixer),
  9739. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9740. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9741. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9742. msm_routing_put_audio_mixer),
  9743. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9744. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9745. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9746. msm_routing_put_audio_mixer),
  9747. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9748. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9749. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9750. msm_routing_put_audio_mixer),
  9751. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9752. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9753. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9754. msm_routing_put_audio_mixer),
  9755. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9756. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9757. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9758. msm_routing_put_audio_mixer),
  9759. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9760. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9761. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9762. msm_routing_put_audio_mixer),
  9763. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9764. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9765. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9766. msm_routing_put_audio_mixer),
  9767. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9768. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9769. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9770. msm_routing_put_audio_mixer),
  9771. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9772. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9773. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9774. msm_routing_put_audio_mixer),
  9775. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9776. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9777. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9778. msm_routing_put_audio_mixer),
  9779. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9780. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9781. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9782. msm_routing_put_audio_mixer),
  9783. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9784. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9785. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9786. msm_routing_put_audio_mixer),
  9787. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9788. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9789. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9790. msm_routing_put_audio_mixer),
  9791. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9792. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9793. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9794. msm_routing_put_audio_mixer),
  9795. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9796. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9797. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9798. msm_routing_put_audio_mixer),
  9799. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9800. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9801. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9802. msm_routing_put_audio_mixer),
  9803. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9804. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9805. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9806. msm_routing_put_audio_mixer),
  9807. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9808. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9809. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9810. msm_routing_put_audio_mixer),
  9811. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9812. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9813. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9814. msm_routing_put_audio_mixer),
  9815. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9816. MSM_BACKEND_DAI_USB_TX,
  9817. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9818. msm_routing_put_audio_mixer),
  9819. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9820. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9821. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9822. msm_routing_put_audio_mixer),
  9823. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9824. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9825. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9826. msm_routing_put_audio_mixer),
  9827. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9828. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9829. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9830. msm_routing_put_audio_mixer),
  9831. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9832. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9833. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9834. msm_routing_put_audio_mixer),
  9835. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9836. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9837. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9838. msm_routing_put_audio_mixer),
  9839. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9840. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9841. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9842. msm_routing_put_audio_mixer),
  9843. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9844. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9845. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9846. msm_routing_put_audio_mixer),
  9847. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9848. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9849. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9850. msm_routing_put_audio_mixer),
  9851. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9852. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9853. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9854. msm_routing_put_audio_mixer),
  9855. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9856. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9857. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9858. msm_routing_put_audio_mixer),
  9859. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9860. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9861. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9862. msm_routing_put_audio_mixer),
  9863. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9864. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9865. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9866. msm_routing_put_audio_mixer),
  9867. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9868. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9869. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9870. msm_routing_put_audio_mixer),
  9871. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9872. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9873. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9874. msm_routing_put_audio_mixer),
  9875. };
  9876. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  9877. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9878. MSM_BACKEND_DAI_INT_FM_TX,
  9879. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9880. msm_routing_put_audio_mixer),
  9881. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9882. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9883. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9884. msm_routing_put_audio_mixer),
  9885. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9886. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9887. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9888. msm_routing_put_audio_mixer),
  9889. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9890. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9891. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9892. msm_routing_put_audio_mixer),
  9893. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9894. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9895. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9896. msm_routing_put_audio_mixer),
  9897. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9898. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9899. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9900. msm_routing_put_audio_mixer),
  9901. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9902. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9903. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9904. msm_routing_put_audio_mixer),
  9905. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9906. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9907. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9908. msm_routing_put_audio_mixer),
  9909. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9910. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9911. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9912. msm_routing_put_audio_mixer),
  9913. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9914. MSM_BACKEND_DAI_AUXPCM_TX,
  9915. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9916. msm_routing_put_audio_mixer),
  9917. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  9918. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9919. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9920. msm_routing_put_audio_mixer),
  9921. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9922. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9923. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9924. msm_routing_put_audio_mixer),
  9925. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9926. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9927. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9928. msm_routing_put_audio_mixer),
  9929. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9930. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9931. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9932. msm_routing_put_audio_mixer),
  9933. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9934. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9935. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9936. msm_routing_put_audio_mixer),
  9937. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9938. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9939. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9940. msm_routing_put_audio_mixer),
  9941. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9942. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9943. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9944. msm_routing_put_audio_mixer),
  9945. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9946. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9947. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9948. msm_routing_put_audio_mixer),
  9949. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9950. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9951. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9952. msm_routing_put_audio_mixer),
  9953. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9954. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9955. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9956. msm_routing_put_audio_mixer),
  9957. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9958. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9959. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9960. msm_routing_put_audio_mixer),
  9961. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9962. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9963. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9964. msm_routing_put_audio_mixer),
  9965. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9966. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9967. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9968. msm_routing_put_audio_mixer),
  9969. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9970. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9971. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9972. msm_routing_put_audio_mixer),
  9973. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9974. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9975. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9976. msm_routing_put_audio_mixer),
  9977. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9978. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9979. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9980. msm_routing_put_audio_mixer),
  9981. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9982. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9983. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9984. msm_routing_put_audio_mixer),
  9985. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9986. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9987. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9988. msm_routing_put_audio_mixer),
  9989. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9990. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9991. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9992. msm_routing_put_audio_mixer),
  9993. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9994. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9995. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9996. msm_routing_put_audio_mixer),
  9997. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9998. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9999. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10000. msm_routing_put_audio_mixer),
  10001. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10002. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10003. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10004. msm_routing_put_audio_mixer),
  10005. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10006. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10007. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10008. msm_routing_put_audio_mixer),
  10009. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10010. MSM_BACKEND_DAI_USB_TX,
  10011. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10012. msm_routing_put_audio_mixer),
  10013. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10014. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10015. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10016. msm_routing_put_audio_mixer),
  10017. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10018. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10019. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10020. msm_routing_put_audio_mixer),
  10021. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10022. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10023. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10024. msm_routing_put_audio_mixer),
  10025. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10026. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10027. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10028. msm_routing_put_audio_mixer),
  10029. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10030. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10031. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10032. msm_routing_put_audio_mixer),
  10033. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10034. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10035. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10036. msm_routing_put_audio_mixer),
  10037. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10038. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10039. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10040. msm_routing_put_audio_mixer),
  10041. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10042. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10043. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10044. msm_routing_put_audio_mixer),
  10045. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10046. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10047. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10048. msm_routing_put_audio_mixer),
  10049. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10050. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10051. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10052. msm_routing_put_audio_mixer),
  10053. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10054. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10055. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10056. msm_routing_put_audio_mixer),
  10057. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10058. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10059. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10060. msm_routing_put_audio_mixer),
  10061. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10062. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10063. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10064. msm_routing_put_audio_mixer),
  10065. };
  10066. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  10067. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10068. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10069. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10070. msm_routing_put_audio_mixer),
  10071. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10072. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10073. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10074. msm_routing_put_audio_mixer),
  10075. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10076. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10077. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10078. msm_routing_put_audio_mixer),
  10079. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10080. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10081. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10082. msm_routing_put_audio_mixer),
  10083. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10084. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10085. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10086. msm_routing_put_audio_mixer),
  10087. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10088. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10089. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10090. msm_routing_put_audio_mixer),
  10091. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10092. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10093. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10094. msm_routing_put_audio_mixer),
  10095. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10096. MSM_BACKEND_DAI_INT_FM_TX,
  10097. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10098. msm_routing_put_audio_mixer),
  10099. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10100. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10101. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10102. msm_routing_put_audio_mixer),
  10103. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10104. MSM_BACKEND_DAI_AFE_PCM_TX,
  10105. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10106. msm_routing_put_audio_mixer),
  10107. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10108. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10109. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10110. msm_routing_put_audio_mixer),
  10111. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10112. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10113. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10114. msm_routing_put_audio_mixer),
  10115. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10116. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10117. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10118. msm_routing_put_audio_mixer),
  10119. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10120. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10121. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10122. msm_routing_put_audio_mixer),
  10123. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10124. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10125. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10126. msm_routing_put_audio_mixer),
  10127. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10128. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10129. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10130. msm_routing_put_audio_mixer),
  10131. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10132. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10133. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10134. msm_routing_put_audio_mixer),
  10135. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10136. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10137. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10138. msm_routing_put_audio_mixer),
  10139. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10140. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10141. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10142. msm_routing_put_audio_mixer),
  10143. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10144. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10145. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10146. msm_routing_put_audio_mixer),
  10147. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10148. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10149. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10150. msm_routing_put_audio_mixer),
  10151. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10152. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10153. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10154. msm_routing_put_audio_mixer),
  10155. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10156. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10157. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10158. msm_routing_put_audio_mixer),
  10159. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10160. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10161. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10162. msm_routing_put_audio_mixer),
  10163. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10164. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10165. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10166. msm_routing_put_audio_mixer),
  10167. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10168. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10169. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10170. msm_routing_put_audio_mixer),
  10171. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10172. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10173. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10174. msm_routing_put_audio_mixer),
  10175. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10176. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10177. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10178. msm_routing_put_audio_mixer),
  10179. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10180. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10181. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10182. msm_routing_put_audio_mixer),
  10183. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10184. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10185. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10186. msm_routing_put_audio_mixer),
  10187. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10188. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10189. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10190. msm_routing_put_audio_mixer),
  10191. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10192. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10193. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10194. msm_routing_put_audio_mixer),
  10195. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10196. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10197. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10198. msm_routing_put_audio_mixer),
  10199. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10200. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10201. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10202. msm_routing_put_audio_mixer),
  10203. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10204. MSM_BACKEND_DAI_USB_TX,
  10205. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10206. msm_routing_put_audio_mixer),
  10207. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10208. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10209. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10210. msm_routing_put_audio_mixer),
  10211. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10212. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10213. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10214. msm_routing_put_audio_mixer),
  10215. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10216. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10217. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10218. msm_routing_put_audio_mixer),
  10219. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10220. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10221. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10222. msm_routing_put_audio_mixer),
  10223. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10224. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10225. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10226. msm_routing_put_audio_mixer),
  10227. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10228. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10229. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10230. msm_routing_put_audio_mixer),
  10231. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10232. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10233. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10234. msm_routing_put_audio_mixer),
  10235. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10236. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10237. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10238. msm_routing_put_audio_mixer),
  10239. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10240. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10241. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10242. msm_routing_put_audio_mixer),
  10243. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10244. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10245. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10246. msm_routing_put_audio_mixer),
  10247. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10248. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10249. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10250. msm_routing_put_audio_mixer),
  10251. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10252. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10253. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10254. msm_routing_put_audio_mixer),
  10255. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10256. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10257. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10258. msm_routing_put_audio_mixer),
  10259. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10260. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10261. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10262. msm_routing_put_audio_mixer),
  10263. };
  10264. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  10265. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10267. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10268. msm_routing_put_audio_mixer),
  10269. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10271. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10272. msm_routing_put_audio_mixer),
  10273. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10274. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10275. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10276. msm_routing_put_audio_mixer),
  10277. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10278. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10279. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10280. msm_routing_put_audio_mixer),
  10281. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10282. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10283. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10284. msm_routing_put_audio_mixer),
  10285. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10286. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10287. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10288. msm_routing_put_audio_mixer),
  10289. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10290. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10291. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10292. msm_routing_put_audio_mixer),
  10293. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10294. MSM_BACKEND_DAI_INT_FM_TX,
  10295. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10296. msm_routing_put_audio_mixer),
  10297. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10298. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10299. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10300. msm_routing_put_audio_mixer),
  10301. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10302. MSM_BACKEND_DAI_AFE_PCM_TX,
  10303. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10304. msm_routing_put_audio_mixer),
  10305. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10306. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10307. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10308. msm_routing_put_audio_mixer),
  10309. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10310. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10311. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10312. msm_routing_put_audio_mixer),
  10313. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10314. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10315. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10316. msm_routing_put_audio_mixer),
  10317. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10318. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10319. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10320. msm_routing_put_audio_mixer),
  10321. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10322. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10323. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10324. msm_routing_put_audio_mixer),
  10325. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10326. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10327. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10328. msm_routing_put_audio_mixer),
  10329. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10330. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10331. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10332. msm_routing_put_audio_mixer),
  10333. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10334. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10335. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10336. msm_routing_put_audio_mixer),
  10337. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10338. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10339. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10340. msm_routing_put_audio_mixer),
  10341. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10342. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10343. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10344. msm_routing_put_audio_mixer),
  10345. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10346. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10347. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10348. msm_routing_put_audio_mixer),
  10349. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10350. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10351. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10352. msm_routing_put_audio_mixer),
  10353. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10354. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10355. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10356. msm_routing_put_audio_mixer),
  10357. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10358. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10359. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10360. msm_routing_put_audio_mixer),
  10361. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10362. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10363. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10364. msm_routing_put_audio_mixer),
  10365. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10366. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10367. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10368. msm_routing_put_audio_mixer),
  10369. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10370. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10371. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10372. msm_routing_put_audio_mixer),
  10373. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10374. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10375. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10376. msm_routing_put_audio_mixer),
  10377. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10378. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10379. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10380. msm_routing_put_audio_mixer),
  10381. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10382. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10383. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10384. msm_routing_put_audio_mixer),
  10385. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10386. MSM_BACKEND_DAI_USB_TX,
  10387. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10388. msm_routing_put_audio_mixer),
  10389. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10390. MSM_BACKEND_DAI_MI2S_TX,
  10391. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10392. msm_routing_put_audio_mixer),
  10393. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10394. MSM_BACKEND_DAI_AUXPCM_TX,
  10395. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10396. msm_routing_put_audio_mixer),
  10397. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10398. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10399. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10400. msm_routing_put_audio_mixer),
  10401. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10402. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10403. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10404. msm_routing_put_audio_mixer),
  10405. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10406. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10407. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10408. msm_routing_put_audio_mixer),
  10409. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10410. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10411. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10412. msm_routing_put_audio_mixer),
  10413. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10414. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10415. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10416. msm_routing_put_audio_mixer),
  10417. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10418. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10419. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10420. msm_routing_put_audio_mixer),
  10421. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10422. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10423. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10424. msm_routing_put_audio_mixer),
  10425. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10427. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10428. msm_routing_get_audio_mixer,
  10429. msm_routing_put_audio_mixer),
  10430. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10431. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10432. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10433. msm_routing_get_audio_mixer,
  10434. msm_routing_put_audio_mixer),
  10435. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10436. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10437. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10438. msm_routing_get_audio_mixer,
  10439. msm_routing_put_audio_mixer),
  10440. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10441. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10442. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10443. msm_routing_get_audio_mixer,
  10444. msm_routing_put_audio_mixer),
  10445. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10446. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10447. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10448. msm_routing_get_audio_mixer,
  10449. msm_routing_put_audio_mixer),
  10450. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10451. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10452. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10453. msm_routing_get_audio_mixer,
  10454. msm_routing_put_audio_mixer),
  10455. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10456. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10457. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10458. msm_routing_put_audio_mixer),
  10459. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10460. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10461. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10462. msm_routing_put_audio_mixer),
  10463. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10464. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10465. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10466. msm_routing_put_audio_mixer),
  10467. };
  10468. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  10469. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10470. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10471. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10472. msm_routing_put_audio_mixer),
  10473. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10474. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10475. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10476. msm_routing_put_audio_mixer),
  10477. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10478. MSM_BACKEND_DAI_INT_FM_TX,
  10479. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10480. msm_routing_put_audio_mixer),
  10481. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10482. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10483. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10484. msm_routing_put_audio_mixer),
  10485. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10486. MSM_BACKEND_DAI_AFE_PCM_TX,
  10487. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10488. msm_routing_put_audio_mixer),
  10489. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10490. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10491. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10492. msm_routing_put_audio_mixer),
  10493. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10494. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10495. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10496. msm_routing_put_audio_mixer),
  10497. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10498. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10499. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10500. msm_routing_put_audio_mixer),
  10501. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10502. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10503. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10504. msm_routing_put_audio_mixer),
  10505. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10506. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10507. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10508. msm_routing_put_audio_mixer),
  10509. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10510. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10511. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10512. msm_routing_put_audio_mixer),
  10513. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10514. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10515. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10516. msm_routing_put_audio_mixer),
  10517. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10518. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10519. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10520. msm_routing_put_audio_mixer),
  10521. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10522. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10523. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10524. msm_routing_put_audio_mixer),
  10525. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10526. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10527. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10528. msm_routing_put_audio_mixer),
  10529. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10530. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10531. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10532. msm_routing_put_audio_mixer),
  10533. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10534. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10535. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10536. msm_routing_put_audio_mixer),
  10537. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10538. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10539. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10540. msm_routing_put_audio_mixer),
  10541. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10542. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10543. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10544. msm_routing_put_audio_mixer),
  10545. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10546. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10547. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10548. msm_routing_put_audio_mixer),
  10549. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10550. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10551. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10552. msm_routing_put_audio_mixer),
  10553. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10554. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10555. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10556. msm_routing_put_audio_mixer),
  10557. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10558. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10559. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10560. msm_routing_put_audio_mixer),
  10561. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10562. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10563. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10564. msm_routing_put_audio_mixer),
  10565. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10566. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10567. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10568. msm_routing_put_audio_mixer),
  10569. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10570. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10571. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10572. msm_routing_put_audio_mixer),
  10573. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10574. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10575. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10576. msm_routing_put_audio_mixer),
  10577. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10578. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10579. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10580. msm_routing_put_audio_mixer),
  10581. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10583. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10584. msm_routing_put_audio_mixer),
  10585. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10587. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10588. msm_routing_put_audio_mixer),
  10589. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10591. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10592. msm_routing_put_audio_mixer),
  10593. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10595. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10596. msm_routing_put_audio_mixer),
  10597. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10599. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10600. msm_routing_put_audio_mixer),
  10601. };
  10602. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  10603. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10604. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10605. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10606. msm_routing_put_audio_mixer),
  10607. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10608. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10609. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10610. msm_routing_put_audio_mixer),
  10611. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10612. MSM_BACKEND_DAI_INT_FM_TX,
  10613. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10614. msm_routing_put_audio_mixer),
  10615. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10616. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10617. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10618. msm_routing_put_audio_mixer),
  10619. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10620. MSM_BACKEND_DAI_AFE_PCM_TX,
  10621. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10622. msm_routing_put_audio_mixer),
  10623. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10624. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10625. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10626. msm_routing_put_audio_mixer),
  10627. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10628. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10629. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10630. msm_routing_put_audio_mixer),
  10631. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10632. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10633. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10634. msm_routing_put_audio_mixer),
  10635. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10636. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10637. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10638. msm_routing_put_audio_mixer),
  10639. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10640. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10641. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10642. msm_routing_put_audio_mixer),
  10643. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10644. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10645. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10646. msm_routing_put_audio_mixer),
  10647. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10648. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10649. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10650. msm_routing_put_audio_mixer),
  10651. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10652. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10653. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10654. msm_routing_put_audio_mixer),
  10655. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10656. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10657. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10658. msm_routing_put_audio_mixer),
  10659. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10660. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10661. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10662. msm_routing_put_audio_mixer),
  10663. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10664. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10665. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10666. msm_routing_put_audio_mixer),
  10667. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10668. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10669. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10670. msm_routing_put_audio_mixer),
  10671. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10672. MSM_BACKEND_DAI_USB_TX,
  10673. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10674. msm_routing_put_audio_mixer),
  10675. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10676. MSM_BACKEND_DAI_MI2S_TX,
  10677. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10678. msm_routing_put_audio_mixer),
  10679. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10680. MSM_BACKEND_DAI_AUXPCM_TX,
  10681. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10682. msm_routing_put_audio_mixer),
  10683. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10684. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10685. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10686. msm_routing_put_audio_mixer),
  10687. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10689. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10690. msm_routing_put_audio_mixer),
  10691. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10693. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10694. msm_routing_put_audio_mixer),
  10695. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10697. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10698. msm_routing_put_audio_mixer),
  10699. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10700. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10701. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10702. msm_routing_put_audio_mixer),
  10703. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10705. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10706. msm_routing_put_audio_mixer),
  10707. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10708. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10709. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10710. msm_routing_put_audio_mixer),
  10711. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10712. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10713. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10714. msm_routing_put_audio_mixer),
  10715. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10716. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10717. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10718. msm_routing_put_audio_mixer),
  10719. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10720. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10721. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10722. msm_routing_put_audio_mixer),
  10723. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10724. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10725. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10726. msm_routing_put_audio_mixer),
  10727. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10728. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10729. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10730. msm_routing_get_audio_mixer,
  10731. msm_routing_put_audio_mixer),
  10732. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10733. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10734. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10735. msm_routing_get_audio_mixer,
  10736. msm_routing_put_audio_mixer),
  10737. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10738. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10739. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10740. msm_routing_get_audio_mixer,
  10741. msm_routing_put_audio_mixer),
  10742. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10743. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10744. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10745. msm_routing_get_audio_mixer,
  10746. msm_routing_put_audio_mixer),
  10747. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10748. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10749. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10750. msm_routing_get_audio_mixer,
  10751. msm_routing_put_audio_mixer),
  10752. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10753. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10754. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10755. msm_routing_get_audio_mixer,
  10756. msm_routing_put_audio_mixer),
  10757. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10758. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10759. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10760. msm_routing_put_audio_mixer),
  10761. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10762. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10763. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10764. msm_routing_put_audio_mixer),
  10765. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10766. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10767. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10768. msm_routing_put_audio_mixer),
  10769. };
  10770. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  10771. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10772. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10773. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10774. msm_routing_put_audio_mixer),
  10775. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10776. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10777. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10778. msm_routing_put_audio_mixer),
  10779. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10780. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10781. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10782. msm_routing_put_audio_mixer),
  10783. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10784. MSM_BACKEND_DAI_INT_FM_TX,
  10785. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10786. msm_routing_put_audio_mixer),
  10787. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10788. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10789. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10790. msm_routing_put_audio_mixer),
  10791. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10792. MSM_BACKEND_DAI_AFE_PCM_TX,
  10793. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10794. msm_routing_put_audio_mixer),
  10795. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10796. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10797. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10798. msm_routing_put_audio_mixer),
  10799. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10800. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10801. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10802. msm_routing_put_audio_mixer),
  10803. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10804. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10805. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10806. msm_routing_put_audio_mixer),
  10807. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10808. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10809. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10810. msm_routing_put_audio_mixer),
  10811. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10812. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10813. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10814. msm_routing_put_audio_mixer),
  10815. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10816. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10817. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10818. msm_routing_put_audio_mixer),
  10819. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10820. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10821. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10822. msm_routing_put_audio_mixer),
  10823. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10824. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10825. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10826. msm_routing_put_audio_mixer),
  10827. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10828. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10829. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10830. msm_routing_put_audio_mixer),
  10831. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10832. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10833. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10834. msm_routing_get_audio_mixer,
  10835. msm_routing_put_audio_mixer),
  10836. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10837. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10838. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10839. msm_routing_get_audio_mixer,
  10840. msm_routing_put_audio_mixer),
  10841. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10842. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10843. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10844. msm_routing_get_audio_mixer,
  10845. msm_routing_put_audio_mixer),
  10846. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10847. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10848. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10849. msm_routing_get_audio_mixer,
  10850. msm_routing_put_audio_mixer),
  10851. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10853. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10854. msm_routing_get_audio_mixer,
  10855. msm_routing_put_audio_mixer),
  10856. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10857. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10858. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10859. msm_routing_get_audio_mixer,
  10860. msm_routing_put_audio_mixer),
  10861. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10862. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10863. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10864. msm_routing_put_audio_mixer),
  10865. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10866. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10867. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10868. msm_routing_put_audio_mixer),
  10869. };
  10870. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  10871. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10873. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10874. msm_routing_put_audio_mixer),
  10875. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10876. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10877. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10878. msm_routing_put_audio_mixer),
  10879. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10880. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10881. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10882. msm_routing_put_audio_mixer),
  10883. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10884. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10885. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10886. msm_routing_put_audio_mixer),
  10887. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10888. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10889. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10890. msm_routing_put_audio_mixer),
  10891. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10892. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10893. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10894. msm_routing_put_audio_mixer),
  10895. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10896. MSM_BACKEND_DAI_INT_FM_TX,
  10897. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10898. msm_routing_put_audio_mixer),
  10899. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10900. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10901. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10902. msm_routing_put_audio_mixer),
  10903. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10904. MSM_BACKEND_DAI_AFE_PCM_TX,
  10905. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10906. msm_routing_put_audio_mixer),
  10907. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10908. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10909. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10910. msm_routing_put_audio_mixer),
  10911. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10912. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10913. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10914. msm_routing_put_audio_mixer),
  10915. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10916. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10917. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10918. msm_routing_put_audio_mixer),
  10919. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10920. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10921. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10922. msm_routing_put_audio_mixer),
  10923. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10924. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10925. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10926. msm_routing_put_audio_mixer),
  10927. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10928. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10929. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10930. msm_routing_put_audio_mixer),
  10931. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10932. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10933. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10934. msm_routing_put_audio_mixer),
  10935. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10936. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10937. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10938. msm_routing_get_audio_mixer,
  10939. msm_routing_put_audio_mixer),
  10940. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10941. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10942. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10943. msm_routing_get_audio_mixer,
  10944. msm_routing_put_audio_mixer),
  10945. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10946. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10947. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10948. msm_routing_get_audio_mixer,
  10949. msm_routing_put_audio_mixer),
  10950. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10951. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10952. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10953. msm_routing_get_audio_mixer,
  10954. msm_routing_put_audio_mixer),
  10955. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10956. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10957. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10958. msm_routing_get_audio_mixer,
  10959. msm_routing_put_audio_mixer),
  10960. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10961. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10962. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10963. msm_routing_get_audio_mixer,
  10964. msm_routing_put_audio_mixer),
  10965. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10966. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10967. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10968. msm_routing_put_audio_mixer),
  10969. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10970. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10971. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10972. msm_routing_put_audio_mixer),
  10973. };
  10974. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  10975. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10976. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10977. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10978. msm_routing_put_audio_mixer),
  10979. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10980. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10981. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10982. msm_routing_put_audio_mixer),
  10983. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10984. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10985. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10986. msm_routing_put_audio_mixer),
  10987. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10988. MSM_BACKEND_DAI_INT_FM_TX,
  10989. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10990. msm_routing_put_audio_mixer),
  10991. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10992. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10993. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10994. msm_routing_put_audio_mixer),
  10995. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10996. MSM_BACKEND_DAI_AFE_PCM_TX,
  10997. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10998. msm_routing_put_audio_mixer),
  10999. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11000. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11001. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11002. msm_routing_put_audio_mixer),
  11003. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11004. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11005. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11006. msm_routing_put_audio_mixer),
  11007. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11008. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11009. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11010. msm_routing_put_audio_mixer),
  11011. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11012. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11013. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11014. msm_routing_put_audio_mixer),
  11015. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11016. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11017. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11018. msm_routing_put_audio_mixer),
  11019. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11020. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11021. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11022. msm_routing_put_audio_mixer),
  11023. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11024. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11025. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11026. msm_routing_put_audio_mixer),
  11027. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11028. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11029. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11030. msm_routing_put_audio_mixer),
  11031. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11032. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11033. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11034. msm_routing_put_audio_mixer),
  11035. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11036. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11037. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11038. msm_routing_get_audio_mixer,
  11039. msm_routing_put_audio_mixer),
  11040. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11041. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11042. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11043. msm_routing_get_audio_mixer,
  11044. msm_routing_put_audio_mixer),
  11045. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11046. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11047. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11048. msm_routing_get_audio_mixer,
  11049. msm_routing_put_audio_mixer),
  11050. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11051. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11052. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11053. msm_routing_get_audio_mixer,
  11054. msm_routing_put_audio_mixer),
  11055. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11056. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11057. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11058. msm_routing_get_audio_mixer,
  11059. msm_routing_put_audio_mixer),
  11060. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11061. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11062. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11063. msm_routing_get_audio_mixer,
  11064. msm_routing_put_audio_mixer),
  11065. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11066. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11067. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11068. msm_routing_put_audio_mixer),
  11069. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11070. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11071. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11072. msm_routing_put_audio_mixer),
  11073. };
  11074. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  11075. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11076. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11077. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11078. msm_routing_put_audio_mixer),
  11079. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11080. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11081. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11082. msm_routing_put_audio_mixer),
  11083. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11084. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11085. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11086. msm_routing_put_audio_mixer),
  11087. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11088. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11089. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11090. msm_routing_put_audio_mixer),
  11091. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11092. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11093. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11094. msm_routing_put_audio_mixer),
  11095. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11096. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11097. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11098. msm_routing_put_audio_mixer),
  11099. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11100. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11101. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11102. msm_routing_put_audio_mixer),
  11103. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11104. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11105. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11106. msm_routing_put_audio_mixer),
  11107. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11108. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11109. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11110. msm_routing_put_audio_mixer),
  11111. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11112. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11113. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11114. msm_routing_put_audio_mixer),
  11115. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11116. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11117. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11118. msm_routing_put_audio_mixer),
  11119. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11120. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11121. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11122. msm_routing_put_audio_mixer),
  11123. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11124. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11125. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11126. msm_routing_put_audio_mixer),
  11127. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11128. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11129. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11130. msm_routing_put_audio_mixer),
  11131. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11132. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11133. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11134. msm_routing_put_audio_mixer),
  11135. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11136. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11137. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11138. msm_routing_put_audio_mixer),
  11139. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11140. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11141. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11142. msm_routing_put_audio_mixer),
  11143. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11144. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11145. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11146. msm_routing_put_audio_mixer),
  11147. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11148. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11149. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11150. msm_routing_put_audio_mixer),
  11151. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11152. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11153. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11154. msm_routing_put_audio_mixer),
  11155. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11156. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11157. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11158. msm_routing_put_audio_mixer),
  11159. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11160. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11161. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11162. msm_routing_put_audio_mixer),
  11163. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11164. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11165. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11166. msm_routing_put_audio_mixer),
  11167. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11168. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11169. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11170. msm_routing_put_audio_mixer),
  11171. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11172. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11173. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11174. msm_routing_put_audio_mixer),
  11175. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11176. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11177. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11178. msm_routing_put_audio_mixer),
  11179. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11180. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11181. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11182. msm_routing_put_audio_mixer),
  11183. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11184. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11185. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11186. msm_routing_put_audio_mixer),
  11187. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11188. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11189. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11190. msm_routing_put_audio_mixer),
  11191. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11192. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11193. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11194. msm_routing_put_audio_mixer),
  11195. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11196. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11197. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11198. msm_routing_put_audio_mixer),
  11199. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11200. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11201. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11202. msm_routing_put_audio_mixer),
  11203. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11204. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11205. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11206. msm_routing_put_audio_mixer),
  11207. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11208. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11209. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11210. msm_routing_put_audio_mixer),
  11211. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11212. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11213. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11214. msm_routing_put_audio_mixer),
  11215. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11216. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11217. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11218. msm_routing_put_audio_mixer),
  11219. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11220. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11221. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11222. msm_routing_put_audio_mixer),
  11223. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11224. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11225. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11226. msm_routing_put_audio_mixer),
  11227. };
  11228. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  11229. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11230. MSM_BACKEND_DAI_AUXPCM_TX,
  11231. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11232. msm_routing_put_audio_mixer),
  11233. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11234. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11235. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11236. msm_routing_put_audio_mixer),
  11237. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11238. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11239. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11240. msm_routing_put_audio_mixer),
  11241. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11242. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11243. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11244. msm_routing_put_audio_mixer),
  11245. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11246. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11247. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11248. msm_routing_put_audio_mixer),
  11249. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11250. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11251. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11252. msm_routing_put_audio_mixer),
  11253. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11254. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11255. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11256. msm_routing_put_audio_mixer),
  11257. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11258. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11259. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11260. msm_routing_put_audio_mixer),
  11261. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11262. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11263. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11264. msm_routing_put_audio_mixer),
  11265. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11266. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11267. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11268. msm_routing_put_audio_mixer),
  11269. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11270. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11271. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11272. msm_routing_put_audio_mixer),
  11273. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11274. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11275. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11276. msm_routing_put_audio_mixer),
  11277. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11278. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11279. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11280. msm_routing_put_audio_mixer),
  11281. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11282. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11283. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11284. msm_routing_put_audio_mixer),
  11285. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11286. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11287. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11288. msm_routing_put_audio_mixer),
  11289. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11290. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11291. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11292. msm_routing_put_audio_mixer),
  11293. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11294. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11295. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11296. msm_routing_put_audio_mixer),
  11297. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11298. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11299. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11300. msm_routing_put_audio_mixer),
  11301. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11302. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11303. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11304. msm_routing_put_audio_mixer),
  11305. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11306. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11307. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11308. msm_routing_put_audio_mixer),
  11309. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11310. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11311. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11312. msm_routing_put_audio_mixer),
  11313. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11314. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11315. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11316. msm_routing_put_audio_mixer),
  11317. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11318. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11319. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11320. msm_routing_put_audio_mixer),
  11321. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11322. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11323. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11324. msm_routing_put_audio_mixer),
  11325. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11326. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11327. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11328. msm_routing_put_audio_mixer),
  11329. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11330. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11331. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11332. msm_routing_put_audio_mixer),
  11333. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11334. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11335. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11336. msm_routing_put_audio_mixer),
  11337. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11338. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11339. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11340. msm_routing_put_audio_mixer),
  11341. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11342. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11343. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11344. msm_routing_put_audio_mixer),
  11345. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11346. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11347. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11348. msm_routing_put_audio_mixer),
  11349. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11350. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11351. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11352. msm_routing_put_audio_mixer),
  11353. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11354. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11355. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11356. msm_routing_put_audio_mixer),
  11357. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11358. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11359. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11360. msm_routing_put_audio_mixer),
  11361. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11362. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11363. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11364. msm_routing_put_audio_mixer),
  11365. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11366. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11367. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11368. msm_routing_put_audio_mixer),
  11369. };
  11370. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  11371. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11372. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11373. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11374. msm_routing_put_audio_mixer),
  11375. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11376. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11377. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11378. msm_routing_put_audio_mixer),
  11379. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11380. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11381. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11382. msm_routing_put_audio_mixer),
  11383. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11384. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11385. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11386. msm_routing_put_audio_mixer),
  11387. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11388. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11389. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11390. msm_routing_put_audio_mixer),
  11391. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11392. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11393. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11394. msm_routing_put_audio_mixer),
  11395. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11396. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11397. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11398. msm_routing_put_audio_mixer),
  11399. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11400. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11401. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11402. msm_routing_put_audio_mixer),
  11403. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11404. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11405. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11406. msm_routing_put_audio_mixer),
  11407. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11408. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11409. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11410. msm_routing_put_audio_mixer),
  11411. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11412. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11413. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11414. msm_routing_put_audio_mixer),
  11415. };
  11416. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  11417. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11418. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11419. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11420. msm_routing_put_audio_mixer),
  11421. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11422. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11423. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11424. msm_routing_put_audio_mixer),
  11425. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11426. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11427. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11428. msm_routing_put_audio_mixer),
  11429. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11430. MSM_BACKEND_DAI_INT_FM_TX,
  11431. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11432. msm_routing_put_audio_mixer),
  11433. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11434. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11435. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11436. msm_routing_put_audio_mixer),
  11437. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11438. MSM_BACKEND_DAI_AFE_PCM_TX,
  11439. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11440. msm_routing_put_audio_mixer),
  11441. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11442. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11443. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11444. msm_routing_put_audio_mixer),
  11445. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11446. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11447. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11448. msm_routing_put_audio_mixer),
  11449. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11450. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11451. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11452. msm_routing_put_audio_mixer),
  11453. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11454. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11455. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11456. msm_routing_put_audio_mixer),
  11457. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11458. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11459. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11460. msm_routing_put_audio_mixer),
  11461. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11462. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11463. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11464. msm_routing_put_audio_mixer),
  11465. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11466. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11467. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11468. msm_routing_put_audio_mixer),
  11469. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11470. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11471. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11472. msm_routing_put_audio_mixer),
  11473. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11474. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11475. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11476. msm_routing_put_audio_mixer),
  11477. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11478. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11479. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11480. msm_routing_get_audio_mixer,
  11481. msm_routing_put_audio_mixer),
  11482. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11483. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11484. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11485. msm_routing_get_audio_mixer,
  11486. msm_routing_put_audio_mixer),
  11487. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11488. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11489. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11490. msm_routing_get_audio_mixer,
  11491. msm_routing_put_audio_mixer),
  11492. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11493. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11494. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11495. msm_routing_get_audio_mixer,
  11496. msm_routing_put_audio_mixer),
  11497. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11498. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11499. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11500. msm_routing_get_audio_mixer,
  11501. msm_routing_put_audio_mixer),
  11502. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11503. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11504. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11505. msm_routing_get_audio_mixer,
  11506. msm_routing_put_audio_mixer),
  11507. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11508. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11509. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11510. msm_routing_put_audio_mixer),
  11511. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11512. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11513. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11514. msm_routing_put_audio_mixer),
  11515. };
  11516. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  11517. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11518. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11519. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11520. msm_routing_put_audio_mixer),
  11521. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11522. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11523. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11524. msm_routing_put_audio_mixer),
  11525. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11526. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11527. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11528. msm_routing_put_audio_mixer),
  11529. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11530. MSM_BACKEND_DAI_INT_FM_TX,
  11531. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11532. msm_routing_put_audio_mixer),
  11533. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11534. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11535. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11536. msm_routing_put_audio_mixer),
  11537. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11538. MSM_BACKEND_DAI_AFE_PCM_TX,
  11539. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11540. msm_routing_put_audio_mixer),
  11541. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11542. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11543. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11544. msm_routing_put_audio_mixer),
  11545. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11546. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11547. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11548. msm_routing_put_audio_mixer),
  11549. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11550. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11551. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11552. msm_routing_put_audio_mixer),
  11553. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11554. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11555. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11556. msm_routing_put_audio_mixer),
  11557. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11558. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11559. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11560. msm_routing_put_audio_mixer),
  11561. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11562. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11563. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11564. msm_routing_put_audio_mixer),
  11565. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11566. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11567. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11568. msm_routing_put_audio_mixer),
  11569. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11570. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11571. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11572. msm_routing_put_audio_mixer),
  11573. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11574. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11575. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11576. msm_routing_put_audio_mixer),
  11577. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11578. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11579. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11580. msm_routing_get_audio_mixer,
  11581. msm_routing_put_audio_mixer),
  11582. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11583. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11584. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11585. msm_routing_get_audio_mixer,
  11586. msm_routing_put_audio_mixer),
  11587. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11588. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11589. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11590. msm_routing_get_audio_mixer,
  11591. msm_routing_put_audio_mixer),
  11592. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11593. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11594. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11595. msm_routing_get_audio_mixer,
  11596. msm_routing_put_audio_mixer),
  11597. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11598. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11599. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11600. msm_routing_get_audio_mixer,
  11601. msm_routing_put_audio_mixer),
  11602. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11603. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11604. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11605. msm_routing_get_audio_mixer,
  11606. msm_routing_put_audio_mixer),
  11607. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11608. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11609. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11610. msm_routing_put_audio_mixer),
  11611. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11612. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11613. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11614. msm_routing_put_audio_mixer),
  11615. };
  11616. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  11617. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11618. MSM_BACKEND_DAI_PRI_I2S_RX,
  11619. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11620. msm_routing_put_voice_mixer),
  11621. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11622. MSM_BACKEND_DAI_PRI_I2S_RX,
  11623. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11624. msm_routing_put_voice_mixer),
  11625. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11626. MSM_BACKEND_DAI_PRI_I2S_RX,
  11627. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11628. msm_routing_put_voice_mixer),
  11629. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11630. MSM_BACKEND_DAI_PRI_I2S_RX,
  11631. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11632. msm_routing_put_voice_mixer),
  11633. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11634. MSM_BACKEND_DAI_PRI_I2S_RX,
  11635. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11636. msm_routing_put_voice_mixer),
  11637. };
  11638. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  11639. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11640. MSM_BACKEND_DAI_SEC_I2S_RX,
  11641. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11642. msm_routing_put_voice_mixer),
  11643. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11644. MSM_BACKEND_DAI_SEC_I2S_RX,
  11645. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11646. msm_routing_put_voice_mixer),
  11647. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11648. MSM_BACKEND_DAI_SEC_I2S_RX,
  11649. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11650. msm_routing_put_voice_mixer),
  11651. };
  11652. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  11653. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11654. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11655. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11656. msm_routing_put_voice_mixer),
  11657. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11658. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11659. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11660. msm_routing_put_voice_mixer),
  11661. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11662. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11663. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11664. msm_routing_put_voice_mixer),
  11665. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11666. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11667. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11668. msm_routing_put_voice_mixer),
  11669. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11670. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11671. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11672. msm_routing_put_voice_mixer),
  11673. };
  11674. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  11675. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11676. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11677. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11678. msm_routing_put_voice_mixer),
  11679. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11680. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11681. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11682. msm_routing_put_voice_mixer),
  11683. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11684. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11685. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11686. msm_routing_put_voice_mixer),
  11687. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11688. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11689. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11690. msm_routing_put_voice_mixer),
  11691. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11692. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11693. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11694. msm_routing_put_voice_mixer),
  11695. };
  11696. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  11697. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11698. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11699. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11700. msm_routing_put_voice_mixer),
  11701. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11702. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11703. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11704. msm_routing_put_voice_mixer),
  11705. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11706. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11707. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11708. msm_routing_put_voice_mixer),
  11709. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11710. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11711. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11712. msm_routing_put_voice_mixer),
  11713. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11714. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11715. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11716. msm_routing_put_voice_mixer),
  11717. };
  11718. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  11719. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11720. MSM_BACKEND_DAI_USB_RX,
  11721. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11722. msm_routing_put_voice_mixer),
  11723. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11724. MSM_BACKEND_DAI_USB_RX,
  11725. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11726. msm_routing_put_voice_mixer),
  11727. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11728. MSM_BACKEND_DAI_USB_RX,
  11729. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11730. msm_routing_put_voice_mixer),
  11731. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11732. MSM_BACKEND_DAI_USB_RX,
  11733. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11734. msm_routing_put_voice_mixer),
  11735. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11736. MSM_BACKEND_DAI_USB_RX,
  11737. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11738. msm_routing_put_voice_mixer),
  11739. };
  11740. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  11741. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11742. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11743. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11744. msm_routing_put_voice_mixer),
  11745. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11746. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11747. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11748. msm_routing_put_voice_mixer),
  11749. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11750. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11751. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11752. msm_routing_put_voice_mixer),
  11753. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11754. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11755. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11756. msm_routing_put_voice_mixer),
  11757. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11758. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11759. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11760. msm_routing_put_voice_mixer),
  11761. };
  11762. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  11763. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11764. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11765. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11766. msm_routing_put_voice_mixer),
  11767. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11768. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11769. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11770. msm_routing_put_voice_mixer),
  11771. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11772. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11773. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11774. msm_routing_put_voice_mixer),
  11775. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11776. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11777. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11778. msm_routing_put_voice_mixer),
  11779. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11780. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11781. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11782. msm_routing_put_voice_mixer),
  11783. };
  11784. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  11785. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11786. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11787. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11788. msm_routing_put_voice_mixer),
  11789. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11790. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11791. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11792. msm_routing_put_voice_mixer),
  11793. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11794. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11795. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11796. msm_routing_put_voice_mixer),
  11797. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11798. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11799. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11800. msm_routing_put_voice_mixer),
  11801. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11802. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11803. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11804. msm_routing_put_voice_mixer),
  11805. };
  11806. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  11807. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11808. MSM_BACKEND_DAI_MI2S_RX,
  11809. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11810. msm_routing_put_voice_mixer),
  11811. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11812. MSM_BACKEND_DAI_MI2S_RX,
  11813. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11814. msm_routing_put_voice_mixer),
  11815. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11816. MSM_BACKEND_DAI_MI2S_RX,
  11817. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11818. msm_routing_put_voice_mixer),
  11819. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11820. MSM_BACKEND_DAI_MI2S_RX,
  11821. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11822. msm_routing_put_voice_mixer),
  11823. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11824. MSM_BACKEND_DAI_MI2S_RX,
  11825. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11826. msm_routing_put_voice_mixer),
  11827. };
  11828. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  11829. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11830. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11831. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11832. msm_routing_put_voice_mixer),
  11833. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11834. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11835. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11836. msm_routing_put_voice_mixer),
  11837. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11838. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11839. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11840. msm_routing_put_voice_mixer),
  11841. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11842. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11843. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11844. msm_routing_put_voice_mixer),
  11845. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11846. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11847. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11848. msm_routing_put_voice_mixer),
  11849. };
  11850. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  11851. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11852. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11853. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11854. msm_routing_put_voice_mixer),
  11855. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11856. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11857. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11858. msm_routing_put_voice_mixer),
  11859. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11860. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11861. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11862. msm_routing_put_voice_mixer),
  11863. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11864. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11865. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11866. msm_routing_put_voice_mixer),
  11867. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11868. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11869. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11870. msm_routing_put_voice_mixer),
  11871. };
  11872. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  11873. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11874. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11875. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11876. msm_routing_put_voice_mixer),
  11877. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11878. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11879. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11880. msm_routing_put_voice_mixer),
  11881. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11882. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11883. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11884. msm_routing_put_voice_mixer),
  11885. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11886. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11887. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11888. msm_routing_put_voice_mixer),
  11889. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11890. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11891. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11892. msm_routing_put_voice_mixer),
  11893. };
  11894. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  11895. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11896. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11897. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11898. msm_routing_put_voice_mixer),
  11899. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11900. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11901. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11902. msm_routing_put_voice_mixer),
  11903. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11904. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11905. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11906. msm_routing_put_voice_mixer),
  11907. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11908. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11909. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11910. msm_routing_put_voice_mixer),
  11911. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11912. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11913. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11914. msm_routing_put_voice_mixer),
  11915. };
  11916. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  11917. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11918. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11919. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11920. msm_routing_put_voice_mixer),
  11921. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11922. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11923. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11924. msm_routing_put_voice_mixer),
  11925. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11926. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11927. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11928. msm_routing_put_voice_mixer),
  11929. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11930. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11931. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11932. msm_routing_put_voice_mixer),
  11933. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11934. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11935. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11936. msm_routing_put_voice_mixer),
  11937. };
  11938. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  11939. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11940. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11941. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11942. msm_routing_put_voice_mixer),
  11943. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11944. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11945. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11946. msm_routing_put_voice_mixer),
  11947. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11948. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11949. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11950. msm_routing_put_voice_mixer),
  11951. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11952. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11953. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11954. msm_routing_put_voice_mixer),
  11955. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11956. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11957. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11958. msm_routing_put_voice_mixer),
  11959. };
  11960. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  11961. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11962. MSM_BACKEND_DAI_AFE_PCM_RX,
  11963. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11964. msm_routing_put_voice_mixer),
  11965. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11966. MSM_BACKEND_DAI_AFE_PCM_RX,
  11967. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11968. msm_routing_put_voice_mixer),
  11969. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11970. MSM_BACKEND_DAI_AFE_PCM_RX,
  11971. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11972. msm_routing_put_voice_mixer),
  11973. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11974. MSM_BACKEND_DAI_AFE_PCM_RX,
  11975. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11976. msm_routing_put_voice_mixer),
  11977. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11978. MSM_BACKEND_DAI_AFE_PCM_RX,
  11979. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11980. msm_routing_put_voice_mixer),
  11981. };
  11982. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  11983. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11984. MSM_BACKEND_DAI_AUXPCM_RX,
  11985. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11986. msm_routing_put_voice_mixer),
  11987. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11988. MSM_BACKEND_DAI_AUXPCM_RX,
  11989. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11990. msm_routing_put_voice_mixer),
  11991. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11992. MSM_BACKEND_DAI_AUXPCM_RX,
  11993. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11994. msm_routing_put_voice_mixer),
  11995. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11996. MSM_BACKEND_DAI_AUXPCM_RX,
  11997. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11998. msm_routing_put_voice_mixer),
  11999. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12000. MSM_BACKEND_DAI_AUXPCM_RX,
  12001. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12002. msm_routing_put_voice_mixer),
  12003. };
  12004. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  12005. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12006. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12007. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12008. msm_routing_put_voice_mixer),
  12009. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12010. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12011. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12012. msm_routing_put_voice_mixer),
  12013. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12014. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12015. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12016. msm_routing_put_voice_mixer),
  12017. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12018. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12019. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12020. msm_routing_put_voice_mixer),
  12021. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12022. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12023. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12024. msm_routing_put_voice_mixer),
  12025. };
  12026. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  12027. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12028. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12029. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12030. msm_routing_put_voice_mixer),
  12031. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12032. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12033. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12034. msm_routing_put_voice_mixer),
  12035. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12036. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12037. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12038. msm_routing_put_voice_mixer),
  12039. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12040. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12041. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12042. msm_routing_put_voice_mixer),
  12043. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12044. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12045. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12046. msm_routing_put_voice_mixer),
  12047. };
  12048. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  12049. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12050. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12051. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12052. msm_routing_put_voice_mixer),
  12053. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12054. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12055. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12056. msm_routing_put_voice_mixer),
  12057. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12058. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12059. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12060. msm_routing_put_voice_mixer),
  12061. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12062. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12063. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12064. msm_routing_put_voice_mixer),
  12065. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12066. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12067. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12068. msm_routing_put_voice_mixer),
  12069. };
  12070. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  12071. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12072. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12073. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12074. msm_routing_put_voice_mixer),
  12075. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12076. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12077. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12078. msm_routing_put_voice_mixer),
  12079. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12080. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12081. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12082. msm_routing_put_voice_mixer),
  12083. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12084. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12085. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12086. msm_routing_put_voice_mixer),
  12087. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12088. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12089. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12090. msm_routing_put_voice_mixer),
  12091. };
  12092. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  12093. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12094. MSM_BACKEND_DAI_HDMI_RX,
  12095. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12096. msm_routing_put_voice_mixer),
  12097. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12098. MSM_BACKEND_DAI_HDMI_RX,
  12099. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12100. msm_routing_put_voice_mixer),
  12101. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12102. MSM_BACKEND_DAI_HDMI_RX,
  12103. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12104. msm_routing_put_voice_mixer),
  12105. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12106. MSM_BACKEND_DAI_HDMI_RX,
  12107. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12108. msm_routing_put_voice_mixer),
  12109. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12110. MSM_BACKEND_DAI_HDMI_RX,
  12111. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12112. msm_routing_put_voice_mixer),
  12113. };
  12114. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  12115. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12116. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12117. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12118. msm_routing_put_voice_mixer),
  12119. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12120. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12121. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12122. msm_routing_put_voice_mixer),
  12123. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12124. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12125. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12126. msm_routing_put_voice_mixer),
  12127. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12128. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12129. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12130. msm_routing_put_voice_mixer),
  12131. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12132. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12133. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12134. msm_routing_put_voice_mixer),
  12135. };
  12136. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  12137. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12138. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12139. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12140. msm_routing_put_voice_mixer),
  12141. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12142. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12143. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12144. msm_routing_put_voice_mixer),
  12145. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12146. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12147. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12148. msm_routing_put_voice_mixer),
  12149. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12150. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12151. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12152. msm_routing_put_voice_mixer),
  12153. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12154. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12155. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12156. msm_routing_put_voice_mixer),
  12157. };
  12158. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  12159. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12160. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12161. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12162. msm_routing_put_voice_mixer),
  12163. };
  12164. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  12165. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12166. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12167. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12168. msm_routing_put_voice_mixer),
  12169. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12170. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12171. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12172. msm_routing_put_voice_mixer),
  12173. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12174. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12175. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12176. msm_routing_put_voice_mixer),
  12177. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12178. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12179. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12180. msm_routing_put_voice_mixer),
  12181. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12182. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12183. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12184. msm_routing_put_voice_mixer),
  12185. };
  12186. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  12187. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12188. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12189. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12190. msm_routing_put_voice_mixer),
  12191. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12192. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12193. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12194. msm_routing_put_voice_mixer),
  12195. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12196. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12197. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12198. msm_routing_put_voice_mixer),
  12199. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12200. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12201. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12202. msm_routing_put_voice_mixer),
  12203. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12204. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12205. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12206. msm_routing_put_voice_mixer),
  12207. };
  12208. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  12209. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12210. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12211. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12212. msm_routing_put_voice_mixer),
  12213. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12214. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12215. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12216. msm_routing_put_voice_mixer),
  12217. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12218. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12219. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12220. msm_routing_put_voice_mixer),
  12221. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12222. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12223. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12224. msm_routing_put_voice_mixer),
  12225. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12226. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12227. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12228. msm_routing_put_voice_mixer),
  12229. };
  12230. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  12231. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12232. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12233. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12234. msm_routing_put_voice_mixer),
  12235. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12236. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12237. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12238. msm_routing_put_voice_mixer),
  12239. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12240. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12241. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12242. msm_routing_put_voice_mixer),
  12243. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12244. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12245. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12246. msm_routing_put_voice_mixer),
  12247. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12248. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12249. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12250. msm_routing_put_voice_mixer),
  12251. };
  12252. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  12253. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12254. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12255. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12256. msm_routing_put_voice_mixer),
  12257. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12258. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12259. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12260. msm_routing_put_voice_mixer),
  12261. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12262. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12263. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12264. msm_routing_put_voice_mixer),
  12265. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12266. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12267. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12268. msm_routing_put_voice_mixer),
  12269. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12270. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12271. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12272. msm_routing_put_voice_mixer),
  12273. };
  12274. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  12275. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12276. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12277. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12278. msm_routing_put_voice_mixer),
  12279. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12280. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12281. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12282. msm_routing_put_voice_mixer),
  12283. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12284. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12285. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12286. msm_routing_put_voice_mixer),
  12287. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12288. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12289. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12290. msm_routing_put_voice_mixer),
  12291. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12292. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12293. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12294. msm_routing_put_voice_mixer),
  12295. };
  12296. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  12297. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12298. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12299. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12300. msm_routing_put_voice_mixer),
  12301. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12302. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12303. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12304. msm_routing_put_voice_mixer),
  12305. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12306. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12307. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12308. msm_routing_put_voice_mixer),
  12309. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12310. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12311. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12312. msm_routing_put_voice_mixer),
  12313. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12314. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12315. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12316. msm_routing_put_voice_mixer),
  12317. };
  12318. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  12319. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12320. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12321. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12322. msm_routing_put_voice_mixer),
  12323. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12324. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12325. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12326. msm_routing_put_voice_mixer),
  12327. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12328. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12329. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12330. msm_routing_put_voice_mixer),
  12331. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12332. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12333. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12334. msm_routing_put_voice_mixer),
  12335. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12336. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12337. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12338. msm_routing_put_voice_mixer),
  12339. };
  12340. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  12341. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12342. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12343. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12344. msm_routing_put_voice_mixer),
  12345. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12346. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12347. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12348. msm_routing_put_voice_mixer),
  12349. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12350. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12351. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12352. msm_routing_put_voice_mixer),
  12353. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12354. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12355. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12356. msm_routing_put_voice_mixer),
  12357. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12358. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12359. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12360. msm_routing_put_voice_mixer),
  12361. };
  12362. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  12363. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12364. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12365. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12366. msm_routing_put_voice_mixer),
  12367. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12368. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12369. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12370. msm_routing_put_voice_mixer),
  12371. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12372. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12373. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12374. msm_routing_put_voice_mixer),
  12375. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12376. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12377. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12378. msm_routing_put_voice_mixer),
  12379. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12380. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12381. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12382. msm_routing_put_voice_mixer),
  12383. };
  12384. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  12385. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12386. MSM_BACKEND_DAI_EXTPROC_RX,
  12387. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12388. msm_routing_put_voice_mixer),
  12389. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12390. MSM_BACKEND_DAI_EXTPROC_RX,
  12391. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12392. msm_routing_put_voice_mixer),
  12393. };
  12394. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  12395. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12396. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12397. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12398. msm_routing_put_voice_mixer),
  12399. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12400. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12401. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12402. msm_routing_put_voice_mixer),
  12403. };
  12404. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  12405. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12406. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12407. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12408. msm_routing_put_voice_mixer),
  12409. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12410. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12411. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12412. msm_routing_put_voice_mixer),
  12413. };
  12414. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  12415. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  12416. MSM_BACKEND_DAI_PRI_I2S_TX,
  12417. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12418. msm_routing_put_voice_mixer),
  12419. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  12420. MSM_BACKEND_DAI_MI2S_TX,
  12421. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12422. msm_routing_put_voice_mixer),
  12423. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  12424. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12425. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12426. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  12427. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12428. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12429. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  12430. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12431. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12432. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12433. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12434. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12435. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12436. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12437. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12438. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12439. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12440. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12441. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12442. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12443. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12444. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12445. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12446. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12447. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  12448. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12449. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12450. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  12451. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12452. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12453. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  12454. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12455. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12456. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  12457. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12458. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12459. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  12460. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12461. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12462. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  12463. MSM_BACKEND_DAI_USB_TX,
  12464. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12465. msm_routing_put_voice_mixer),
  12466. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  12467. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12468. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12469. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12470. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12471. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12472. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12473. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12474. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12475. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12476. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12477. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12478. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12479. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12480. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12481. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  12482. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  12483. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12484. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  12485. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  12486. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12487. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  12488. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  12489. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12490. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  12491. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  12492. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12493. };
  12494. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  12495. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  12496. MSM_BACKEND_DAI_PRI_I2S_TX,
  12497. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12498. msm_routing_put_voice_mixer),
  12499. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  12500. MSM_BACKEND_DAI_MI2S_TX,
  12501. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12502. msm_routing_put_voice_mixer),
  12503. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  12504. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12505. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12506. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  12507. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12508. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12509. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  12510. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12511. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12512. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12513. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12514. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12515. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12516. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12517. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12518. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12519. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12520. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12521. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12522. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12523. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12524. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12525. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12526. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12527. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  12528. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12529. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12530. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  12531. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12532. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12533. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  12534. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12535. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12536. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  12537. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12538. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12539. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  12540. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12541. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12542. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  12543. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12544. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12545. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12546. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12547. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12548. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12549. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12550. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12551. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12552. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12553. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12554. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12555. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12556. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12557. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  12558. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  12559. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12560. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  12561. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  12562. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12563. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  12564. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  12565. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12566. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  12567. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  12568. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12569. };
  12570. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  12571. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  12572. MSM_BACKEND_DAI_PRI_I2S_TX,
  12573. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12574. msm_routing_put_voice_mixer),
  12575. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  12576. MSM_BACKEND_DAI_MI2S_TX,
  12577. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12578. msm_routing_put_voice_mixer),
  12579. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  12580. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12581. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12582. msm_routing_put_voice_mixer),
  12583. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  12584. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12585. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12586. msm_routing_put_voice_mixer),
  12587. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  12588. MSM_BACKEND_DAI_AFE_PCM_TX,
  12589. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12590. msm_routing_put_voice_mixer),
  12591. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12592. MSM_BACKEND_DAI_AUXPCM_TX,
  12593. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12594. msm_routing_put_voice_mixer),
  12595. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12596. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12597. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12598. msm_routing_put_voice_mixer),
  12599. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12600. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12601. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12602. msm_routing_put_voice_mixer),
  12603. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12604. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12605. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12606. msm_routing_put_voice_mixer),
  12607. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12608. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12609. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12610. msm_routing_put_voice_mixer),
  12611. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  12612. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12613. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12614. msm_routing_put_voice_mixer),
  12615. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  12616. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12617. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12618. msm_routing_put_voice_mixer),
  12619. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  12620. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12621. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12622. msm_routing_put_voice_mixer),
  12623. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  12624. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12625. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12626. msm_routing_put_voice_mixer),
  12627. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  12628. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12629. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12630. msm_routing_put_voice_mixer),
  12631. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  12632. MSM_BACKEND_DAI_USB_TX,
  12633. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12634. msm_routing_put_voice_mixer),
  12635. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12636. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12637. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12638. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12639. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12640. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12641. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12642. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12643. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12644. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12645. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12646. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12647. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  12648. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  12649. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12650. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  12651. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  12652. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12653. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  12654. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  12655. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12656. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  12657. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  12658. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12659. };
  12660. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  12661. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12662. MSM_BACKEND_DAI_EXTPROC_TX,
  12663. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12664. msm_routing_put_voice_stub_mixer),
  12665. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12666. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12667. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12668. msm_routing_put_voice_stub_mixer),
  12669. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12670. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12671. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12672. msm_routing_put_voice_stub_mixer),
  12673. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12674. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12675. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12676. msm_routing_put_voice_stub_mixer),
  12677. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12678. MSM_BACKEND_DAI_MI2S_TX,
  12679. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12680. msm_routing_put_voice_stub_mixer),
  12681. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12682. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12683. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12684. msm_routing_put_voice_stub_mixer),
  12685. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12686. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12687. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12688. msm_routing_put_voice_stub_mixer),
  12689. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12690. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12691. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12692. msm_routing_put_voice_stub_mixer),
  12693. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12694. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12695. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12696. msm_routing_put_voice_stub_mixer),
  12697. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12698. MSM_BACKEND_DAI_AUXPCM_TX,
  12699. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12700. msm_routing_put_voice_stub_mixer),
  12701. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12702. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12703. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12704. msm_routing_put_voice_stub_mixer),
  12705. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12706. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12707. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12708. msm_routing_put_voice_stub_mixer),
  12709. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12710. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12711. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12712. msm_routing_put_voice_stub_mixer),
  12713. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12714. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12715. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12716. msm_routing_put_voice_stub_mixer),
  12717. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12718. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12719. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12720. msm_routing_put_voice_stub_mixer),
  12721. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12722. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12723. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12724. msm_routing_put_voice_stub_mixer),
  12725. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12726. MSM_BACKEND_DAI_AFE_PCM_TX,
  12727. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12728. msm_routing_put_voice_stub_mixer),
  12729. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12730. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12731. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12732. msm_routing_put_voice_stub_mixer),
  12733. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12734. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12735. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12736. msm_routing_put_voice_stub_mixer),
  12737. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12738. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  12739. 1, 0, msm_routing_get_voice_stub_mixer,
  12740. msm_routing_put_voice_stub_mixer),
  12741. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12742. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  12743. 1, 0, msm_routing_get_voice_stub_mixer,
  12744. msm_routing_put_voice_stub_mixer),
  12745. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12746. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  12747. 1, 0, msm_routing_get_voice_stub_mixer,
  12748. msm_routing_put_voice_stub_mixer),
  12749. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12750. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  12751. 1, 0, msm_routing_get_voice_stub_mixer,
  12752. msm_routing_put_voice_stub_mixer),
  12753. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12754. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  12755. 1, 0, msm_routing_get_voice_stub_mixer,
  12756. msm_routing_put_voice_stub_mixer),
  12757. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12758. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  12759. 1, 0, msm_routing_get_voice_stub_mixer,
  12760. msm_routing_put_voice_stub_mixer),
  12761. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12762. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  12763. 1, 0, msm_routing_get_voice_stub_mixer,
  12764. msm_routing_put_voice_stub_mixer),
  12765. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12766. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  12767. 1, 0, msm_routing_get_voice_stub_mixer,
  12768. msm_routing_put_voice_stub_mixer),
  12769. };
  12770. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  12771. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12772. MSM_BACKEND_DAI_EXTPROC_TX,
  12773. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12774. msm_routing_put_voice_stub_mixer),
  12775. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12776. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12777. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12778. msm_routing_put_voice_stub_mixer),
  12779. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12780. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12781. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12782. msm_routing_put_voice_stub_mixer),
  12783. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12784. MSM_BACKEND_DAI_AUXPCM_TX,
  12785. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12786. msm_routing_put_voice_stub_mixer),
  12787. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12788. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12789. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12790. msm_routing_put_voice_stub_mixer),
  12791. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12792. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12793. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12794. msm_routing_put_voice_stub_mixer),
  12795. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12796. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12797. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12798. msm_routing_put_voice_stub_mixer),
  12799. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12800. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12801. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12802. msm_routing_put_voice_stub_mixer),
  12803. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12804. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12805. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12806. msm_routing_put_voice_stub_mixer),
  12807. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12808. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12809. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12810. msm_routing_put_voice_stub_mixer),
  12811. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12812. MSM_BACKEND_DAI_AFE_PCM_TX,
  12813. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12814. msm_routing_put_voice_stub_mixer),
  12815. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12816. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12817. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12818. msm_routing_put_voice_stub_mixer),
  12819. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12820. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12821. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12822. msm_routing_put_voice_stub_mixer),
  12823. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12824. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12825. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12826. msm_routing_put_voice_stub_mixer),
  12827. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12828. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12829. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12830. msm_routing_put_voice_stub_mixer),
  12831. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12832. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  12833. 1, 0, msm_routing_get_voice_stub_mixer,
  12834. msm_routing_put_voice_stub_mixer),
  12835. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12836. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  12837. 1, 0, msm_routing_get_voice_stub_mixer,
  12838. msm_routing_put_voice_stub_mixer),
  12839. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12840. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  12841. 1, 0, msm_routing_get_voice_stub_mixer,
  12842. msm_routing_put_voice_stub_mixer),
  12843. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12844. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  12845. 1, 0, msm_routing_get_voice_stub_mixer,
  12846. msm_routing_put_voice_stub_mixer),
  12847. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12848. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  12849. 1, 0, msm_routing_get_voice_stub_mixer,
  12850. msm_routing_put_voice_stub_mixer),
  12851. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12852. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  12853. 1, 0, msm_routing_get_voice_stub_mixer,
  12854. msm_routing_put_voice_stub_mixer),
  12855. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12856. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  12857. 1, 0, msm_routing_get_voice_stub_mixer,
  12858. msm_routing_put_voice_stub_mixer),
  12859. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12860. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  12861. 1, 0, msm_routing_get_voice_stub_mixer,
  12862. msm_routing_put_voice_stub_mixer),
  12863. };
  12864. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  12865. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12866. MSM_BACKEND_DAI_EXTPROC_TX,
  12867. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12868. msm_routing_put_voice_stub_mixer),
  12869. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12870. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12871. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12872. msm_routing_put_voice_stub_mixer),
  12873. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12874. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12875. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12876. msm_routing_put_voice_stub_mixer),
  12877. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_AUXPCM_TX,
  12879. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12880. msm_routing_put_voice_stub_mixer),
  12881. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12882. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12883. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12884. msm_routing_put_voice_stub_mixer),
  12885. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12886. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12887. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12888. msm_routing_put_voice_stub_mixer),
  12889. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12890. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12891. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12892. msm_routing_put_voice_stub_mixer),
  12893. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12894. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12895. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12896. msm_routing_put_voice_stub_mixer),
  12897. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12899. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12900. msm_routing_put_voice_stub_mixer),
  12901. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12902. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12903. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12904. msm_routing_put_voice_stub_mixer),
  12905. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12906. MSM_BACKEND_DAI_AFE_PCM_TX,
  12907. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12908. msm_routing_put_voice_stub_mixer),
  12909. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12910. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12911. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12912. msm_routing_put_voice_stub_mixer),
  12913. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12914. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12915. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12916. msm_routing_put_voice_stub_mixer),
  12917. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12918. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12919. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12920. msm_routing_put_voice_stub_mixer),
  12921. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12922. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12923. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12924. msm_routing_put_voice_stub_mixer),
  12925. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12926. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  12927. 1, 0, msm_routing_get_voice_stub_mixer,
  12928. msm_routing_put_voice_stub_mixer),
  12929. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12930. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  12931. 1, 0, msm_routing_get_voice_stub_mixer,
  12932. msm_routing_put_voice_stub_mixer),
  12933. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12934. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  12935. 1, 0, msm_routing_get_voice_stub_mixer,
  12936. msm_routing_put_voice_stub_mixer),
  12937. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12938. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  12939. 1, 0, msm_routing_get_voice_stub_mixer,
  12940. msm_routing_put_voice_stub_mixer),
  12941. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12942. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  12943. 1, 0, msm_routing_get_voice_stub_mixer,
  12944. msm_routing_put_voice_stub_mixer),
  12945. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12946. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  12947. 1, 0, msm_routing_get_voice_stub_mixer,
  12948. msm_routing_put_voice_stub_mixer),
  12949. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12950. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  12951. 1, 0, msm_routing_get_voice_stub_mixer,
  12952. msm_routing_put_voice_stub_mixer),
  12953. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12954. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  12955. 1, 0, msm_routing_get_voice_stub_mixer,
  12956. msm_routing_put_voice_stub_mixer),
  12957. };
  12958. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  12959. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  12960. MSM_BACKEND_DAI_PRI_I2S_TX,
  12961. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12962. msm_routing_put_voice_mixer),
  12963. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  12964. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12965. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12966. msm_routing_put_voice_mixer),
  12967. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  12968. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12969. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  12970. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12971. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  12972. MSM_BACKEND_DAI_AFE_PCM_TX,
  12973. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12974. msm_routing_put_voice_mixer),
  12975. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12976. MSM_BACKEND_DAI_AUXPCM_TX,
  12977. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12978. msm_routing_put_voice_mixer),
  12979. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12980. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12981. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12982. msm_routing_put_voice_mixer),
  12983. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12984. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12985. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12986. msm_routing_put_voice_mixer),
  12987. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12988. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12989. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12990. msm_routing_put_voice_mixer),
  12991. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12992. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12993. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12994. msm_routing_put_voice_mixer),
  12995. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  12996. MSM_BACKEND_DAI_MI2S_TX,
  12997. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12998. msm_routing_put_voice_mixer),
  12999. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  13000. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13001. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13002. msm_routing_put_voice_mixer),
  13003. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  13004. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13005. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13006. msm_routing_put_voice_mixer),
  13007. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  13008. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13009. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13010. msm_routing_put_voice_mixer),
  13011. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  13012. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13013. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13014. msm_routing_put_voice_mixer),
  13015. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  13016. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13017. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13018. msm_routing_put_voice_mixer),
  13019. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  13020. MSM_BACKEND_DAI_USB_TX,
  13021. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13022. msm_routing_put_voice_mixer),
  13023. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  13024. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  13025. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13026. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  13027. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  13028. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13029. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  13030. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  13031. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13032. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  13033. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  13034. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13035. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  13036. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  13037. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13038. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  13039. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  13040. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13041. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  13042. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  13043. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13044. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  13045. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  13046. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13047. };
  13048. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  13049. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13050. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13051. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13052. msm_routing_put_port_mixer),
  13053. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13054. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13055. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13056. msm_routing_put_port_mixer),
  13057. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13058. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13059. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13060. msm_routing_put_port_mixer),
  13061. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13062. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13063. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13064. msm_routing_put_port_mixer),
  13065. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13066. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13067. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13068. msm_routing_put_port_mixer),
  13069. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13070. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13071. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13072. msm_routing_put_port_mixer),
  13073. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13074. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13075. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13076. msm_routing_put_port_mixer),
  13077. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13078. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13079. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13080. msm_routing_put_port_mixer),
  13081. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13082. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13083. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13084. msm_routing_put_port_mixer),
  13085. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13086. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13087. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13088. msm_routing_put_port_mixer),
  13089. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13090. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13091. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13092. msm_routing_put_port_mixer),
  13093. };
  13094. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  13095. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13096. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13097. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13098. msm_routing_put_port_mixer),
  13099. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13100. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13101. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13102. msm_routing_put_port_mixer),
  13103. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13104. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13105. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13106. msm_routing_put_port_mixer),
  13107. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13108. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13109. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13110. msm_routing_put_port_mixer),
  13111. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13112. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13113. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13114. msm_routing_put_port_mixer),
  13115. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13116. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13117. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13118. msm_routing_put_port_mixer),
  13119. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13120. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13121. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13122. msm_routing_put_port_mixer),
  13123. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13124. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13125. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13126. msm_routing_put_port_mixer),
  13127. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13128. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13129. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13130. msm_routing_put_port_mixer),
  13131. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13132. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13133. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13134. msm_routing_put_port_mixer),
  13135. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13136. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13137. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13138. msm_routing_put_port_mixer),
  13139. };
  13140. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  13141. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13142. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13143. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  13144. msm_routing_put_port_mixer),
  13145. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13146. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13147. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  13148. msm_routing_put_port_mixer),
  13149. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13150. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13151. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13152. msm_routing_put_port_mixer),
  13153. };
  13154. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  13155. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13156. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13157. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  13158. msm_routing_put_port_mixer),
  13159. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13160. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13161. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13162. msm_routing_put_port_mixer),
  13163. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13164. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13165. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13166. msm_routing_put_port_mixer),
  13167. };
  13168. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  13169. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13170. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13171. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13172. msm_routing_put_port_mixer),
  13173. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13174. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13175. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13176. msm_routing_put_port_mixer),
  13177. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13178. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13179. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13180. msm_routing_put_port_mixer),
  13181. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13182. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13183. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13184. msm_routing_put_port_mixer),
  13185. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13186. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13187. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13188. msm_routing_put_port_mixer),
  13189. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13190. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13191. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13192. msm_routing_put_port_mixer),
  13193. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13194. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13195. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13196. msm_routing_put_port_mixer),
  13197. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13198. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13199. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13200. msm_routing_put_port_mixer),
  13201. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13202. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13203. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13204. msm_routing_put_port_mixer),
  13205. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13206. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13207. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13208. msm_routing_put_port_mixer),
  13209. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13210. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13211. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13212. msm_routing_put_port_mixer),
  13213. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13214. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13215. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13216. msm_routing_put_port_mixer),
  13217. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13218. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13219. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13220. msm_routing_put_port_mixer),
  13221. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13222. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13223. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13224. msm_routing_put_port_mixer),
  13225. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13226. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13227. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13228. msm_routing_put_port_mixer),
  13229. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13230. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13231. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13232. msm_routing_put_port_mixer),
  13233. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13234. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13235. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13236. msm_routing_put_port_mixer),
  13237. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  13238. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13239. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13240. msm_routing_put_port_mixer),
  13241. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  13242. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13243. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13244. msm_routing_put_port_mixer),
  13245. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  13246. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13247. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13248. msm_routing_put_port_mixer),
  13249. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  13250. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13251. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13252. msm_routing_put_port_mixer),
  13253. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  13254. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13255. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13256. msm_routing_put_port_mixer),
  13257. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13258. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13259. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13260. msm_routing_put_port_mixer),
  13261. };
  13262. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  13263. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13264. MSM_BACKEND_DAI_AUXPCM_RX,
  13265. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13266. msm_routing_put_port_mixer),
  13267. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13268. MSM_BACKEND_DAI_AUXPCM_RX,
  13269. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13270. msm_routing_put_port_mixer),
  13271. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13272. MSM_BACKEND_DAI_AUXPCM_RX,
  13273. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13274. msm_routing_put_port_mixer),
  13275. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13276. MSM_BACKEND_DAI_AUXPCM_RX,
  13277. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13278. msm_routing_put_port_mixer),
  13279. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13280. MSM_BACKEND_DAI_AUXPCM_RX,
  13281. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  13282. msm_routing_put_port_mixer),
  13283. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13284. MSM_BACKEND_DAI_AUXPCM_RX,
  13285. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13286. msm_routing_put_port_mixer),
  13287. };
  13288. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  13289. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13290. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13291. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13292. msm_routing_put_port_mixer),
  13293. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13294. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13295. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13296. msm_routing_put_port_mixer),
  13297. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13298. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13299. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13300. msm_routing_put_port_mixer),
  13301. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13302. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13303. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13304. msm_routing_put_port_mixer),
  13305. };
  13306. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  13307. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13308. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13309. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13310. msm_routing_put_port_mixer),
  13311. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13312. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13313. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13314. msm_routing_put_port_mixer),
  13315. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13316. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13317. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13318. msm_routing_put_port_mixer),
  13319. };
  13320. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  13321. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13322. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13323. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13324. msm_routing_put_port_mixer),
  13325. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13326. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13327. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13328. msm_routing_put_port_mixer),
  13329. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13330. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13331. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13332. msm_routing_put_port_mixer),
  13333. };
  13334. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  13335. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13336. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13337. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13338. msm_routing_put_port_mixer),
  13339. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13340. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13341. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13342. msm_routing_put_port_mixer),
  13343. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13344. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13345. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13346. msm_routing_put_port_mixer),
  13347. };
  13348. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  13349. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13350. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13351. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13352. msm_routing_put_port_mixer),
  13353. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13354. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13355. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  13356. msm_routing_put_port_mixer),
  13357. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13358. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13359. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13360. msm_routing_put_port_mixer),
  13361. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13362. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13363. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13364. msm_routing_put_port_mixer),
  13365. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13366. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13367. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13368. msm_routing_put_port_mixer),
  13369. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13370. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13371. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13372. msm_routing_put_port_mixer),
  13373. };
  13374. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  13375. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  13376. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13377. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  13378. msm_routing_put_port_mixer),
  13379. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13380. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13381. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13382. msm_routing_put_port_mixer),
  13383. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  13384. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13385. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  13386. msm_routing_put_port_mixer),
  13387. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  13388. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13389. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  13390. msm_routing_put_port_mixer),
  13391. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  13392. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13393. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  13394. msm_routing_put_port_mixer),
  13395. };
  13396. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  13397. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13398. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13399. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13400. msm_routing_put_port_mixer),
  13401. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13402. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13403. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13404. msm_routing_put_port_mixer),
  13405. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13406. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13407. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13408. msm_routing_put_port_mixer),
  13409. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13410. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13411. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13412. msm_routing_put_port_mixer),
  13413. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13414. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13415. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13416. msm_routing_put_port_mixer),
  13417. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13418. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13419. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13420. msm_routing_put_port_mixer),
  13421. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13422. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13423. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13424. msm_routing_put_port_mixer),
  13425. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13426. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13427. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13428. msm_routing_put_port_mixer),
  13429. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13430. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13431. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13432. msm_routing_put_port_mixer),
  13433. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13434. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13435. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13436. msm_routing_put_port_mixer),
  13437. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13438. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13439. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13440. msm_routing_put_port_mixer),
  13441. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13442. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13443. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13444. msm_routing_put_port_mixer),
  13445. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13446. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13447. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13448. msm_routing_put_port_mixer),
  13449. };
  13450. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  13451. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13452. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13453. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13454. msm_routing_put_port_mixer),
  13455. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13456. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13457. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13458. msm_routing_put_port_mixer),
  13459. };
  13460. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  13461. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13462. MSM_BACKEND_DAI_AFE_PCM_RX,
  13463. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13464. msm_routing_put_port_mixer),
  13465. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13466. MSM_BACKEND_DAI_AFE_PCM_RX,
  13467. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13468. msm_routing_put_port_mixer),
  13469. };
  13470. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  13471. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_HDMI_RX,
  13473. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13474. msm_routing_put_port_mixer),
  13475. };
  13476. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  13477. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13478. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13479. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13480. msm_routing_put_port_mixer),
  13481. };
  13482. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  13483. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13484. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13485. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13486. msm_routing_put_port_mixer),
  13487. };
  13488. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  13489. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13490. MSM_BACKEND_DAI_SEC_I2S_RX,
  13491. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13492. msm_routing_put_port_mixer),
  13493. };
  13494. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  13495. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13496. MSM_BACKEND_DAI_MI2S_RX,
  13497. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13498. msm_routing_put_port_mixer),
  13499. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13500. MSM_BACKEND_DAI_MI2S_RX,
  13501. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13502. msm_routing_put_port_mixer),
  13503. };
  13504. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  13505. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13506. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13507. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13508. msm_routing_put_port_mixer),
  13509. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13510. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13511. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13512. msm_routing_put_port_mixer),
  13513. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13514. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13515. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13516. msm_routing_put_port_mixer),
  13517. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13518. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13519. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13520. msm_routing_put_port_mixer),
  13521. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13522. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13523. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13524. msm_routing_put_port_mixer),
  13525. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13526. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13527. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13528. msm_routing_put_port_mixer),
  13529. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13530. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13531. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13532. msm_routing_put_port_mixer),
  13533. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13534. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13535. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13536. msm_routing_put_port_mixer),
  13537. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13538. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13539. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13540. msm_routing_put_port_mixer),
  13541. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13542. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13543. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13544. msm_routing_put_port_mixer),
  13545. };
  13546. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  13547. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13548. MSM_BACKEND_DAI_USB_RX,
  13549. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  13550. msm_routing_put_port_mixer),
  13551. };
  13552. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  13553. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13554. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13555. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13556. msm_routing_put_port_mixer),
  13557. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13558. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13559. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13560. msm_routing_put_port_mixer),
  13561. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13562. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13563. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13564. msm_routing_put_port_mixer),
  13565. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13566. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13567. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13568. msm_routing_put_port_mixer),
  13569. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13570. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13571. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13572. msm_routing_put_port_mixer),
  13573. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13574. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13575. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13576. msm_routing_put_port_mixer),
  13577. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13578. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13579. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13580. msm_routing_put_port_mixer),
  13581. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13582. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13583. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13584. msm_routing_put_port_mixer),
  13585. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13586. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13587. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13588. msm_routing_put_port_mixer),
  13589. };
  13590. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  13591. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13592. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13593. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13594. msm_routing_put_port_mixer),
  13595. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13596. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13597. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13598. msm_routing_put_port_mixer),
  13599. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13600. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13601. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13602. msm_routing_put_port_mixer),
  13603. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13604. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13605. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13606. msm_routing_put_port_mixer),
  13607. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13608. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13609. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13610. msm_routing_put_port_mixer),
  13611. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13612. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13613. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13614. msm_routing_put_port_mixer),
  13615. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13616. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13617. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13618. msm_routing_put_port_mixer),
  13619. };
  13620. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  13621. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13622. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13623. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13624. msm_routing_get_port_mixer,
  13625. msm_routing_put_port_mixer),
  13626. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13627. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13628. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13629. msm_routing_get_port_mixer,
  13630. msm_routing_put_port_mixer),
  13631. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13632. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13633. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13634. msm_routing_get_port_mixer,
  13635. msm_routing_put_port_mixer),
  13636. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13637. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13638. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13639. msm_routing_get_port_mixer,
  13640. msm_routing_put_port_mixer),
  13641. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13642. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13643. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13644. msm_routing_get_port_mixer,
  13645. msm_routing_put_port_mixer),
  13646. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13647. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13648. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13649. msm_routing_get_port_mixer,
  13650. msm_routing_put_port_mixer),
  13651. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13652. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13653. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13654. msm_routing_get_port_mixer,
  13655. msm_routing_put_port_mixer),
  13656. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13657. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13658. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13659. msm_routing_get_port_mixer,
  13660. msm_routing_put_port_mixer),
  13661. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13662. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13663. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13664. msm_routing_get_port_mixer,
  13665. msm_routing_put_port_mixer),
  13666. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13667. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13668. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13669. msm_routing_get_port_mixer,
  13670. msm_routing_put_port_mixer),
  13671. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13672. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13673. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13674. msm_routing_get_port_mixer,
  13675. msm_routing_put_port_mixer),
  13676. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13677. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13678. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13679. msm_routing_get_port_mixer,
  13680. msm_routing_put_port_mixer),
  13681. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13682. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13683. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13684. msm_routing_get_port_mixer,
  13685. msm_routing_put_port_mixer),
  13686. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13687. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13688. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13689. msm_routing_get_port_mixer,
  13690. msm_routing_put_port_mixer),
  13691. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13692. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13693. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13694. msm_routing_get_port_mixer,
  13695. msm_routing_put_port_mixer),
  13696. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13697. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13698. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13699. msm_routing_get_port_mixer,
  13700. msm_routing_put_port_mixer),
  13701. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13702. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13703. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13704. msm_routing_get_port_mixer,
  13705. msm_routing_put_port_mixer),
  13706. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13707. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13708. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13709. msm_routing_get_port_mixer,
  13710. msm_routing_put_port_mixer),
  13711. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13712. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13713. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13714. msm_routing_get_port_mixer,
  13715. msm_routing_put_port_mixer),
  13716. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13717. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13718. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13719. msm_routing_get_port_mixer,
  13720. msm_routing_put_port_mixer),
  13721. };
  13722. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  13723. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13724. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13725. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13726. msm_routing_get_port_mixer,
  13727. msm_routing_put_port_mixer),
  13728. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13729. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13730. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13731. msm_routing_get_port_mixer,
  13732. msm_routing_put_port_mixer),
  13733. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13734. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13735. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13736. msm_routing_get_port_mixer,
  13737. msm_routing_put_port_mixer),
  13738. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13739. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13740. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13741. msm_routing_get_port_mixer,
  13742. msm_routing_put_port_mixer),
  13743. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13744. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13745. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13746. msm_routing_get_port_mixer,
  13747. msm_routing_put_port_mixer),
  13748. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13749. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13750. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13751. msm_routing_get_port_mixer,
  13752. msm_routing_put_port_mixer),
  13753. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13754. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13755. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13756. msm_routing_get_port_mixer,
  13757. msm_routing_put_port_mixer),
  13758. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13759. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13760. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13761. msm_routing_get_port_mixer,
  13762. msm_routing_put_port_mixer),
  13763. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13764. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13765. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13766. msm_routing_get_port_mixer,
  13767. msm_routing_put_port_mixer),
  13768. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13769. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13770. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13771. msm_routing_get_port_mixer,
  13772. msm_routing_put_port_mixer),
  13773. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13774. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13775. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13776. msm_routing_get_port_mixer,
  13777. msm_routing_put_port_mixer),
  13778. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13779. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13780. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13781. msm_routing_get_port_mixer,
  13782. msm_routing_put_port_mixer),
  13783. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13784. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13785. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13786. msm_routing_get_port_mixer,
  13787. msm_routing_put_port_mixer),
  13788. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13789. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13790. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13791. msm_routing_get_port_mixer,
  13792. msm_routing_put_port_mixer),
  13793. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13794. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13795. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13796. msm_routing_get_port_mixer,
  13797. msm_routing_put_port_mixer),
  13798. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13799. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13800. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13801. msm_routing_get_port_mixer,
  13802. msm_routing_put_port_mixer),
  13803. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13804. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13805. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13806. msm_routing_get_port_mixer,
  13807. msm_routing_put_port_mixer),
  13808. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13809. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13810. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13811. msm_routing_get_port_mixer,
  13812. msm_routing_put_port_mixer),
  13813. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13814. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13815. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13816. msm_routing_get_port_mixer,
  13817. msm_routing_put_port_mixer),
  13818. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13819. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13820. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13821. msm_routing_get_port_mixer,
  13822. msm_routing_put_port_mixer),
  13823. };
  13824. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  13825. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13826. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13827. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13828. msm_routing_get_port_mixer,
  13829. msm_routing_put_port_mixer),
  13830. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13831. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13832. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13833. msm_routing_get_port_mixer,
  13834. msm_routing_put_port_mixer),
  13835. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13836. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13837. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13838. msm_routing_get_port_mixer,
  13839. msm_routing_put_port_mixer),
  13840. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13841. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13842. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13843. msm_routing_get_port_mixer,
  13844. msm_routing_put_port_mixer),
  13845. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13846. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13847. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13848. msm_routing_get_port_mixer,
  13849. msm_routing_put_port_mixer),
  13850. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13851. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13852. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13853. msm_routing_get_port_mixer,
  13854. msm_routing_put_port_mixer),
  13855. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13856. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13857. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13858. msm_routing_get_port_mixer,
  13859. msm_routing_put_port_mixer),
  13860. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13861. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13862. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13863. msm_routing_get_port_mixer,
  13864. msm_routing_put_port_mixer),
  13865. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13866. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13867. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13868. msm_routing_get_port_mixer,
  13869. msm_routing_put_port_mixer),
  13870. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13871. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13872. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13873. msm_routing_get_port_mixer,
  13874. msm_routing_put_port_mixer),
  13875. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13876. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13877. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13878. msm_routing_get_port_mixer,
  13879. msm_routing_put_port_mixer),
  13880. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13881. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13882. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13883. msm_routing_get_port_mixer,
  13884. msm_routing_put_port_mixer),
  13885. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13886. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13887. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13888. msm_routing_get_port_mixer,
  13889. msm_routing_put_port_mixer),
  13890. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13891. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13892. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13893. msm_routing_get_port_mixer,
  13894. msm_routing_put_port_mixer),
  13895. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13896. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13897. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13898. msm_routing_get_port_mixer,
  13899. msm_routing_put_port_mixer),
  13900. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13901. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13902. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13903. msm_routing_get_port_mixer,
  13904. msm_routing_put_port_mixer),
  13905. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13906. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13907. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13908. msm_routing_get_port_mixer,
  13909. msm_routing_put_port_mixer),
  13910. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13911. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13912. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13913. msm_routing_get_port_mixer,
  13914. msm_routing_put_port_mixer),
  13915. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13916. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13917. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13918. msm_routing_get_port_mixer,
  13919. msm_routing_put_port_mixer),
  13920. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13921. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13922. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13923. msm_routing_get_port_mixer,
  13924. msm_routing_put_port_mixer),
  13925. };
  13926. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  13927. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13928. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13929. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13930. msm_routing_get_port_mixer,
  13931. msm_routing_put_port_mixer),
  13932. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13933. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13934. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13935. msm_routing_get_port_mixer,
  13936. msm_routing_put_port_mixer),
  13937. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13938. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13939. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13940. msm_routing_get_port_mixer,
  13941. msm_routing_put_port_mixer),
  13942. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13943. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13944. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13945. msm_routing_get_port_mixer,
  13946. msm_routing_put_port_mixer),
  13947. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13948. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13949. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13950. msm_routing_get_port_mixer,
  13951. msm_routing_put_port_mixer),
  13952. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13953. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13954. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13955. msm_routing_get_port_mixer,
  13956. msm_routing_put_port_mixer),
  13957. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13958. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13959. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13960. msm_routing_get_port_mixer,
  13961. msm_routing_put_port_mixer),
  13962. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13963. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13964. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13965. msm_routing_get_port_mixer,
  13966. msm_routing_put_port_mixer),
  13967. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13968. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13969. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13970. msm_routing_get_port_mixer,
  13971. msm_routing_put_port_mixer),
  13972. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13973. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13974. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13975. msm_routing_get_port_mixer,
  13976. msm_routing_put_port_mixer),
  13977. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13978. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13979. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13980. msm_routing_get_port_mixer,
  13981. msm_routing_put_port_mixer),
  13982. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13983. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13984. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13985. msm_routing_get_port_mixer,
  13986. msm_routing_put_port_mixer),
  13987. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13988. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13989. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13990. msm_routing_get_port_mixer,
  13991. msm_routing_put_port_mixer),
  13992. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13993. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13994. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13995. msm_routing_get_port_mixer,
  13996. msm_routing_put_port_mixer),
  13997. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13998. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13999. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14000. msm_routing_get_port_mixer,
  14001. msm_routing_put_port_mixer),
  14002. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14003. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14004. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14005. msm_routing_get_port_mixer,
  14006. msm_routing_put_port_mixer),
  14007. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14008. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14009. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14010. msm_routing_get_port_mixer,
  14011. msm_routing_put_port_mixer),
  14012. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14013. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14014. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14015. msm_routing_get_port_mixer,
  14016. msm_routing_put_port_mixer),
  14017. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14018. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14019. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14020. msm_routing_get_port_mixer,
  14021. msm_routing_put_port_mixer),
  14022. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14023. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14024. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14025. msm_routing_get_port_mixer,
  14026. msm_routing_put_port_mixer),
  14027. };
  14028. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  14029. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14030. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14031. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14032. msm_routing_get_port_mixer,
  14033. msm_routing_put_port_mixer),
  14034. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14035. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14036. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14037. msm_routing_get_port_mixer,
  14038. msm_routing_put_port_mixer),
  14039. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14040. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14041. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14042. msm_routing_get_port_mixer,
  14043. msm_routing_put_port_mixer),
  14044. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14045. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14046. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14047. msm_routing_get_port_mixer,
  14048. msm_routing_put_port_mixer),
  14049. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14050. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14051. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14052. msm_routing_get_port_mixer,
  14053. msm_routing_put_port_mixer),
  14054. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14055. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14056. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14057. msm_routing_get_port_mixer,
  14058. msm_routing_put_port_mixer),
  14059. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14060. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14061. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14062. msm_routing_get_port_mixer,
  14063. msm_routing_put_port_mixer),
  14064. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14065. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14066. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14067. msm_routing_get_port_mixer,
  14068. msm_routing_put_port_mixer),
  14069. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14070. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14071. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14072. msm_routing_get_port_mixer,
  14073. msm_routing_put_port_mixer),
  14074. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14075. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14076. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14077. msm_routing_get_port_mixer,
  14078. msm_routing_put_port_mixer),
  14079. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14080. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14081. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14082. msm_routing_get_port_mixer,
  14083. msm_routing_put_port_mixer),
  14084. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14085. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14086. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14087. msm_routing_get_port_mixer,
  14088. msm_routing_put_port_mixer),
  14089. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14090. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14091. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14092. msm_routing_get_port_mixer,
  14093. msm_routing_put_port_mixer),
  14094. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14095. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14096. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14097. msm_routing_get_port_mixer,
  14098. msm_routing_put_port_mixer),
  14099. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14100. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14101. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14102. msm_routing_get_port_mixer,
  14103. msm_routing_put_port_mixer),
  14104. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14105. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14106. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14107. msm_routing_get_port_mixer,
  14108. msm_routing_put_port_mixer),
  14109. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14110. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14111. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14112. msm_routing_get_port_mixer,
  14113. msm_routing_put_port_mixer),
  14114. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14115. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14116. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14117. msm_routing_get_port_mixer,
  14118. msm_routing_put_port_mixer),
  14119. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14120. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14121. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14122. msm_routing_get_port_mixer,
  14123. msm_routing_put_port_mixer),
  14124. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14125. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14126. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14127. msm_routing_get_port_mixer,
  14128. msm_routing_put_port_mixer),
  14129. };
  14130. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  14131. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14132. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14133. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14134. msm_routing_get_port_mixer,
  14135. msm_routing_put_port_mixer),
  14136. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14137. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14138. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14139. msm_routing_get_port_mixer,
  14140. msm_routing_put_port_mixer),
  14141. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14142. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14143. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14144. msm_routing_get_port_mixer,
  14145. msm_routing_put_port_mixer),
  14146. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14147. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14148. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14149. msm_routing_get_port_mixer,
  14150. msm_routing_put_port_mixer),
  14151. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14152. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14153. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14154. msm_routing_get_port_mixer,
  14155. msm_routing_put_port_mixer),
  14156. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14157. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14158. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14159. msm_routing_get_port_mixer,
  14160. msm_routing_put_port_mixer),
  14161. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14162. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14163. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14164. msm_routing_get_port_mixer,
  14165. msm_routing_put_port_mixer),
  14166. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14167. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14168. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14169. msm_routing_get_port_mixer,
  14170. msm_routing_put_port_mixer),
  14171. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14172. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14173. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14174. msm_routing_get_port_mixer,
  14175. msm_routing_put_port_mixer),
  14176. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14177. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14178. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14179. msm_routing_get_port_mixer,
  14180. msm_routing_put_port_mixer),
  14181. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14182. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14183. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14184. msm_routing_get_port_mixer,
  14185. msm_routing_put_port_mixer),
  14186. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14187. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14188. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14189. msm_routing_get_port_mixer,
  14190. msm_routing_put_port_mixer),
  14191. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14192. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14193. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14194. msm_routing_get_port_mixer,
  14195. msm_routing_put_port_mixer),
  14196. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14197. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14198. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14199. msm_routing_get_port_mixer,
  14200. msm_routing_put_port_mixer),
  14201. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14202. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14203. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14204. msm_routing_get_port_mixer,
  14205. msm_routing_put_port_mixer),
  14206. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14207. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14208. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14209. msm_routing_get_port_mixer,
  14210. msm_routing_put_port_mixer),
  14211. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14212. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14213. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14214. msm_routing_get_port_mixer,
  14215. msm_routing_put_port_mixer),
  14216. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14217. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14218. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14219. msm_routing_get_port_mixer,
  14220. msm_routing_put_port_mixer),
  14221. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14222. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14223. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14224. msm_routing_get_port_mixer,
  14225. msm_routing_put_port_mixer),
  14226. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14227. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14228. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14229. msm_routing_get_port_mixer,
  14230. msm_routing_put_port_mixer),
  14231. };
  14232. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  14233. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14234. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14235. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14236. msm_routing_get_port_mixer,
  14237. msm_routing_put_port_mixer),
  14238. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14239. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14240. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14241. msm_routing_get_port_mixer,
  14242. msm_routing_put_port_mixer),
  14243. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14244. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14245. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14246. msm_routing_get_port_mixer,
  14247. msm_routing_put_port_mixer),
  14248. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14249. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14250. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14251. msm_routing_get_port_mixer,
  14252. msm_routing_put_port_mixer),
  14253. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14254. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14255. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14256. msm_routing_get_port_mixer,
  14257. msm_routing_put_port_mixer),
  14258. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14259. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14260. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14261. msm_routing_get_port_mixer,
  14262. msm_routing_put_port_mixer),
  14263. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14264. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14265. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14266. msm_routing_get_port_mixer,
  14267. msm_routing_put_port_mixer),
  14268. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14269. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14270. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14271. msm_routing_get_port_mixer,
  14272. msm_routing_put_port_mixer),
  14273. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14274. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14275. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14276. msm_routing_get_port_mixer,
  14277. msm_routing_put_port_mixer),
  14278. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14279. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14280. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14281. msm_routing_get_port_mixer,
  14282. msm_routing_put_port_mixer),
  14283. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14284. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14285. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14286. msm_routing_get_port_mixer,
  14287. msm_routing_put_port_mixer),
  14288. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14289. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14290. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14291. msm_routing_get_port_mixer,
  14292. msm_routing_put_port_mixer),
  14293. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14294. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14295. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14296. msm_routing_get_port_mixer,
  14297. msm_routing_put_port_mixer),
  14298. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14299. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14300. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14301. msm_routing_get_port_mixer,
  14302. msm_routing_put_port_mixer),
  14303. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14304. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14305. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14306. msm_routing_get_port_mixer,
  14307. msm_routing_put_port_mixer),
  14308. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14309. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14310. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14311. msm_routing_get_port_mixer,
  14312. msm_routing_put_port_mixer),
  14313. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14314. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14315. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14316. msm_routing_get_port_mixer,
  14317. msm_routing_put_port_mixer),
  14318. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14319. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14320. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14321. msm_routing_get_port_mixer,
  14322. msm_routing_put_port_mixer),
  14323. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14324. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14325. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14326. msm_routing_get_port_mixer,
  14327. msm_routing_put_port_mixer),
  14328. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14329. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14330. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14331. msm_routing_get_port_mixer,
  14332. msm_routing_put_port_mixer),
  14333. };
  14334. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  14335. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14336. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14337. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14338. msm_routing_get_port_mixer,
  14339. msm_routing_put_port_mixer),
  14340. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14341. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14342. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14343. msm_routing_get_port_mixer,
  14344. msm_routing_put_port_mixer),
  14345. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14346. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14347. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14348. msm_routing_get_port_mixer,
  14349. msm_routing_put_port_mixer),
  14350. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14351. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14352. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14353. msm_routing_get_port_mixer,
  14354. msm_routing_put_port_mixer),
  14355. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14356. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14357. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14358. msm_routing_get_port_mixer,
  14359. msm_routing_put_port_mixer),
  14360. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14361. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14362. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14363. msm_routing_get_port_mixer,
  14364. msm_routing_put_port_mixer),
  14365. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14366. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14367. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14368. msm_routing_get_port_mixer,
  14369. msm_routing_put_port_mixer),
  14370. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14371. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14372. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14373. msm_routing_get_port_mixer,
  14374. msm_routing_put_port_mixer),
  14375. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14376. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14377. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14378. msm_routing_get_port_mixer,
  14379. msm_routing_put_port_mixer),
  14380. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14381. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14382. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14383. msm_routing_get_port_mixer,
  14384. msm_routing_put_port_mixer),
  14385. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14386. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14387. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14388. msm_routing_get_port_mixer,
  14389. msm_routing_put_port_mixer),
  14390. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14391. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14392. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14393. msm_routing_get_port_mixer,
  14394. msm_routing_put_port_mixer),
  14395. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14396. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14397. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14398. msm_routing_get_port_mixer,
  14399. msm_routing_put_port_mixer),
  14400. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14401. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14402. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14403. msm_routing_get_port_mixer,
  14404. msm_routing_put_port_mixer),
  14405. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14406. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14407. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14408. msm_routing_get_port_mixer,
  14409. msm_routing_put_port_mixer),
  14410. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14411. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14412. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14413. msm_routing_get_port_mixer,
  14414. msm_routing_put_port_mixer),
  14415. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14416. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14417. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14418. msm_routing_get_port_mixer,
  14419. msm_routing_put_port_mixer),
  14420. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14421. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14422. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14423. msm_routing_get_port_mixer,
  14424. msm_routing_put_port_mixer),
  14425. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14426. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14427. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14428. msm_routing_get_port_mixer,
  14429. msm_routing_put_port_mixer),
  14430. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14431. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14432. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14433. msm_routing_get_port_mixer,
  14434. msm_routing_put_port_mixer),
  14435. };
  14436. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  14437. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  14438. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  14439. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  14440. msm_routing_get_port_mixer,
  14441. msm_routing_put_port_mixer),
  14442. };
  14443. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  14444. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14445. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14446. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14447. msm_routing_get_port_mixer,
  14448. msm_routing_put_port_mixer),
  14449. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14450. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14451. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14452. msm_routing_get_port_mixer,
  14453. msm_routing_put_port_mixer),
  14454. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14455. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14456. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14457. msm_routing_get_port_mixer,
  14458. msm_routing_put_port_mixer),
  14459. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14460. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14461. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14462. msm_routing_get_port_mixer,
  14463. msm_routing_put_port_mixer),
  14464. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14465. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14466. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14467. msm_routing_get_port_mixer,
  14468. msm_routing_put_port_mixer),
  14469. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14470. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14471. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14472. msm_routing_get_port_mixer,
  14473. msm_routing_put_port_mixer),
  14474. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14475. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14476. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14477. msm_routing_get_port_mixer,
  14478. msm_routing_put_port_mixer),
  14479. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14480. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14481. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14482. msm_routing_get_port_mixer,
  14483. msm_routing_put_port_mixer),
  14484. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14485. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14486. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14487. msm_routing_get_port_mixer,
  14488. msm_routing_put_port_mixer),
  14489. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14490. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14491. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14492. msm_routing_get_port_mixer,
  14493. msm_routing_put_port_mixer),
  14494. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14495. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14496. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14497. msm_routing_get_port_mixer,
  14498. msm_routing_put_port_mixer),
  14499. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14500. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14501. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14502. msm_routing_get_port_mixer,
  14503. msm_routing_put_port_mixer),
  14504. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14505. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14506. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14507. msm_routing_get_port_mixer,
  14508. msm_routing_put_port_mixer),
  14509. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14510. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14511. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14512. msm_routing_get_port_mixer,
  14513. msm_routing_put_port_mixer),
  14514. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14515. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14516. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14517. msm_routing_get_port_mixer,
  14518. msm_routing_put_port_mixer),
  14519. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14520. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14521. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14522. msm_routing_get_port_mixer,
  14523. msm_routing_put_port_mixer),
  14524. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14525. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14526. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14527. msm_routing_get_port_mixer,
  14528. msm_routing_put_port_mixer),
  14529. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14530. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14531. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14532. msm_routing_get_port_mixer,
  14533. msm_routing_put_port_mixer),
  14534. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14535. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14536. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14537. msm_routing_get_port_mixer,
  14538. msm_routing_put_port_mixer),
  14539. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14540. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14541. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14542. msm_routing_get_port_mixer,
  14543. msm_routing_put_port_mixer),
  14544. };
  14545. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  14546. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14547. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14548. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14549. msm_routing_get_port_mixer,
  14550. msm_routing_put_port_mixer),
  14551. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14552. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14553. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14554. msm_routing_get_port_mixer,
  14555. msm_routing_put_port_mixer),
  14556. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14557. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14558. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14559. msm_routing_get_port_mixer,
  14560. msm_routing_put_port_mixer),
  14561. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14562. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14563. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14564. msm_routing_get_port_mixer,
  14565. msm_routing_put_port_mixer),
  14566. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14567. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14568. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14569. msm_routing_get_port_mixer,
  14570. msm_routing_put_port_mixer),
  14571. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14572. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14573. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14574. msm_routing_get_port_mixer,
  14575. msm_routing_put_port_mixer),
  14576. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14577. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14578. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14579. msm_routing_get_port_mixer,
  14580. msm_routing_put_port_mixer),
  14581. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14582. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14583. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14584. msm_routing_get_port_mixer,
  14585. msm_routing_put_port_mixer),
  14586. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14587. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14588. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14589. msm_routing_get_port_mixer,
  14590. msm_routing_put_port_mixer),
  14591. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14592. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14593. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14594. msm_routing_get_port_mixer,
  14595. msm_routing_put_port_mixer),
  14596. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14597. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14598. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14599. msm_routing_get_port_mixer,
  14600. msm_routing_put_port_mixer),
  14601. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14602. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14603. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14604. msm_routing_get_port_mixer,
  14605. msm_routing_put_port_mixer),
  14606. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14607. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14608. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14609. msm_routing_get_port_mixer,
  14610. msm_routing_put_port_mixer),
  14611. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14612. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14613. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14614. msm_routing_get_port_mixer,
  14615. msm_routing_put_port_mixer),
  14616. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14617. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14618. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14619. msm_routing_get_port_mixer,
  14620. msm_routing_put_port_mixer),
  14621. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14622. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14623. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14624. msm_routing_get_port_mixer,
  14625. msm_routing_put_port_mixer),
  14626. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14627. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14628. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14629. msm_routing_get_port_mixer,
  14630. msm_routing_put_port_mixer),
  14631. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14632. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14633. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14634. msm_routing_get_port_mixer,
  14635. msm_routing_put_port_mixer),
  14636. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14637. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14638. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14639. msm_routing_get_port_mixer,
  14640. msm_routing_put_port_mixer),
  14641. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14642. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14643. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14644. msm_routing_get_port_mixer,
  14645. msm_routing_put_port_mixer),
  14646. };
  14647. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  14648. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14649. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14650. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14651. msm_routing_get_port_mixer,
  14652. msm_routing_put_port_mixer),
  14653. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14654. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14655. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14656. msm_routing_get_port_mixer,
  14657. msm_routing_put_port_mixer),
  14658. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14659. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14660. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14661. msm_routing_get_port_mixer,
  14662. msm_routing_put_port_mixer),
  14663. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14664. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14665. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14666. msm_routing_get_port_mixer,
  14667. msm_routing_put_port_mixer),
  14668. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14669. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14670. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14671. msm_routing_get_port_mixer,
  14672. msm_routing_put_port_mixer),
  14673. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14674. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14675. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14676. msm_routing_get_port_mixer,
  14677. msm_routing_put_port_mixer),
  14678. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14679. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14680. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14681. msm_routing_get_port_mixer,
  14682. msm_routing_put_port_mixer),
  14683. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14684. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14685. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14686. msm_routing_get_port_mixer,
  14687. msm_routing_put_port_mixer),
  14688. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14689. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14690. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14691. msm_routing_get_port_mixer,
  14692. msm_routing_put_port_mixer),
  14693. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14694. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14695. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14696. msm_routing_get_port_mixer,
  14697. msm_routing_put_port_mixer),
  14698. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14699. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14700. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14701. msm_routing_get_port_mixer,
  14702. msm_routing_put_port_mixer),
  14703. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14704. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14705. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14706. msm_routing_get_port_mixer,
  14707. msm_routing_put_port_mixer),
  14708. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14709. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14710. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14711. msm_routing_get_port_mixer,
  14712. msm_routing_put_port_mixer),
  14713. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14714. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14715. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14716. msm_routing_get_port_mixer,
  14717. msm_routing_put_port_mixer),
  14718. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14719. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14720. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14721. msm_routing_get_port_mixer,
  14722. msm_routing_put_port_mixer),
  14723. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14724. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14725. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14726. msm_routing_get_port_mixer,
  14727. msm_routing_put_port_mixer),
  14728. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14729. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14730. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14731. msm_routing_get_port_mixer,
  14732. msm_routing_put_port_mixer),
  14733. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14734. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14735. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14736. msm_routing_get_port_mixer,
  14737. msm_routing_put_port_mixer),
  14738. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14739. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14740. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14741. msm_routing_get_port_mixer,
  14742. msm_routing_put_port_mixer),
  14743. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14744. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14745. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14746. msm_routing_get_port_mixer,
  14747. msm_routing_put_port_mixer),
  14748. };
  14749. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  14750. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14751. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14752. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14753. msm_routing_get_port_mixer,
  14754. msm_routing_put_port_mixer),
  14755. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14756. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14757. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14758. msm_routing_get_port_mixer,
  14759. msm_routing_put_port_mixer),
  14760. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14761. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14762. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14763. msm_routing_get_port_mixer,
  14764. msm_routing_put_port_mixer),
  14765. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14766. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14767. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14768. msm_routing_get_port_mixer,
  14769. msm_routing_put_port_mixer),
  14770. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14771. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14772. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14773. msm_routing_get_port_mixer,
  14774. msm_routing_put_port_mixer),
  14775. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14776. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14777. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14778. msm_routing_get_port_mixer,
  14779. msm_routing_put_port_mixer),
  14780. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14781. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14782. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14783. msm_routing_get_port_mixer,
  14784. msm_routing_put_port_mixer),
  14785. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14786. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14787. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14788. msm_routing_get_port_mixer,
  14789. msm_routing_put_port_mixer),
  14790. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14791. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14792. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14793. msm_routing_get_port_mixer,
  14794. msm_routing_put_port_mixer),
  14795. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14796. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14797. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14798. msm_routing_get_port_mixer,
  14799. msm_routing_put_port_mixer),
  14800. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14801. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14802. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14803. msm_routing_get_port_mixer,
  14804. msm_routing_put_port_mixer),
  14805. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14806. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14807. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14808. msm_routing_get_port_mixer,
  14809. msm_routing_put_port_mixer),
  14810. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14811. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14812. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14813. msm_routing_get_port_mixer,
  14814. msm_routing_put_port_mixer),
  14815. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14816. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14817. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14818. msm_routing_get_port_mixer,
  14819. msm_routing_put_port_mixer),
  14820. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14821. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14822. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14823. msm_routing_get_port_mixer,
  14824. msm_routing_put_port_mixer),
  14825. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14826. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14827. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14828. msm_routing_get_port_mixer,
  14829. msm_routing_put_port_mixer),
  14830. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14831. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14832. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14833. msm_routing_get_port_mixer,
  14834. msm_routing_put_port_mixer),
  14835. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14836. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14837. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14838. msm_routing_get_port_mixer,
  14839. msm_routing_put_port_mixer),
  14840. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14841. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14842. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14843. msm_routing_get_port_mixer,
  14844. msm_routing_put_port_mixer),
  14845. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14846. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14847. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14848. msm_routing_get_port_mixer,
  14849. msm_routing_put_port_mixer),
  14850. };
  14851. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  14852. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14853. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14854. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14855. msm_routing_get_port_mixer,
  14856. msm_routing_put_port_mixer),
  14857. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14858. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14859. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14860. msm_routing_get_port_mixer,
  14861. msm_routing_put_port_mixer),
  14862. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14863. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14864. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14865. msm_routing_get_port_mixer,
  14866. msm_routing_put_port_mixer),
  14867. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14868. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14869. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14870. msm_routing_get_port_mixer,
  14871. msm_routing_put_port_mixer),
  14872. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14873. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14874. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14875. msm_routing_get_port_mixer,
  14876. msm_routing_put_port_mixer),
  14877. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14878. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14879. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14880. msm_routing_get_port_mixer,
  14881. msm_routing_put_port_mixer),
  14882. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14883. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14884. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14885. msm_routing_get_port_mixer,
  14886. msm_routing_put_port_mixer),
  14887. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14888. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14889. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14890. msm_routing_get_port_mixer,
  14891. msm_routing_put_port_mixer),
  14892. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14893. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14894. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14895. msm_routing_get_port_mixer,
  14896. msm_routing_put_port_mixer),
  14897. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14898. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14899. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14900. msm_routing_get_port_mixer,
  14901. msm_routing_put_port_mixer),
  14902. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14903. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14904. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14905. msm_routing_get_port_mixer,
  14906. msm_routing_put_port_mixer),
  14907. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14908. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14909. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14910. msm_routing_get_port_mixer,
  14911. msm_routing_put_port_mixer),
  14912. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14913. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14914. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14915. msm_routing_get_port_mixer,
  14916. msm_routing_put_port_mixer),
  14917. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14918. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14919. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14920. msm_routing_get_port_mixer,
  14921. msm_routing_put_port_mixer),
  14922. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14923. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14924. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14925. msm_routing_get_port_mixer,
  14926. msm_routing_put_port_mixer),
  14927. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14928. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14929. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14930. msm_routing_get_port_mixer,
  14931. msm_routing_put_port_mixer),
  14932. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14933. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14934. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14935. msm_routing_get_port_mixer,
  14936. msm_routing_put_port_mixer),
  14937. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14938. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14939. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14940. msm_routing_get_port_mixer,
  14941. msm_routing_put_port_mixer),
  14942. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14943. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14944. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14945. msm_routing_get_port_mixer,
  14946. msm_routing_put_port_mixer),
  14947. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14948. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14949. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14950. msm_routing_get_port_mixer,
  14951. msm_routing_put_port_mixer),
  14952. };
  14953. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  14954. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14955. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14956. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14957. msm_routing_get_port_mixer,
  14958. msm_routing_put_port_mixer),
  14959. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14960. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14961. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14962. msm_routing_get_port_mixer,
  14963. msm_routing_put_port_mixer),
  14964. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14965. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14966. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14967. msm_routing_get_port_mixer,
  14968. msm_routing_put_port_mixer),
  14969. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14970. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14971. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14972. msm_routing_get_port_mixer,
  14973. msm_routing_put_port_mixer),
  14974. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14975. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14976. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14977. msm_routing_get_port_mixer,
  14978. msm_routing_put_port_mixer),
  14979. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14980. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14981. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14982. msm_routing_get_port_mixer,
  14983. msm_routing_put_port_mixer),
  14984. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14985. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14986. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14987. msm_routing_get_port_mixer,
  14988. msm_routing_put_port_mixer),
  14989. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14990. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14991. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14992. msm_routing_get_port_mixer,
  14993. msm_routing_put_port_mixer),
  14994. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14995. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14996. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14997. msm_routing_get_port_mixer,
  14998. msm_routing_put_port_mixer),
  14999. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15001. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15002. msm_routing_get_port_mixer,
  15003. msm_routing_put_port_mixer),
  15004. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15005. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15006. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15007. msm_routing_get_port_mixer,
  15008. msm_routing_put_port_mixer),
  15009. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15010. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15011. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15012. msm_routing_get_port_mixer,
  15013. msm_routing_put_port_mixer),
  15014. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15015. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15016. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15017. msm_routing_get_port_mixer,
  15018. msm_routing_put_port_mixer),
  15019. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15020. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15021. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15022. msm_routing_get_port_mixer,
  15023. msm_routing_put_port_mixer),
  15024. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15025. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15026. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15027. msm_routing_get_port_mixer,
  15028. msm_routing_put_port_mixer),
  15029. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15030. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15031. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15032. msm_routing_get_port_mixer,
  15033. msm_routing_put_port_mixer),
  15034. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15035. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15036. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15037. msm_routing_get_port_mixer,
  15038. msm_routing_put_port_mixer),
  15039. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15040. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15041. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15042. msm_routing_get_port_mixer,
  15043. msm_routing_put_port_mixer),
  15044. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15045. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15046. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15047. msm_routing_get_port_mixer,
  15048. msm_routing_put_port_mixer),
  15049. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15050. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15051. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15052. msm_routing_get_port_mixer,
  15053. msm_routing_put_port_mixer),
  15054. };
  15055. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  15056. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15057. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15058. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15059. msm_routing_get_port_mixer,
  15060. msm_routing_put_port_mixer),
  15061. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15062. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15063. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15064. msm_routing_get_port_mixer,
  15065. msm_routing_put_port_mixer),
  15066. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15067. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15068. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15069. msm_routing_get_port_mixer,
  15070. msm_routing_put_port_mixer),
  15071. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15072. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15073. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15074. msm_routing_get_port_mixer,
  15075. msm_routing_put_port_mixer),
  15076. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15077. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15078. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15079. msm_routing_get_port_mixer,
  15080. msm_routing_put_port_mixer),
  15081. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15082. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15083. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15084. msm_routing_get_port_mixer,
  15085. msm_routing_put_port_mixer),
  15086. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15087. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15088. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15089. msm_routing_get_port_mixer,
  15090. msm_routing_put_port_mixer),
  15091. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15092. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15093. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15094. msm_routing_get_port_mixer,
  15095. msm_routing_put_port_mixer),
  15096. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15097. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15098. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15099. msm_routing_get_port_mixer,
  15100. msm_routing_put_port_mixer),
  15101. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15102. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15103. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15104. msm_routing_get_port_mixer,
  15105. msm_routing_put_port_mixer),
  15106. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15107. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15108. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15109. msm_routing_get_port_mixer,
  15110. msm_routing_put_port_mixer),
  15111. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15112. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15113. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15114. msm_routing_get_port_mixer,
  15115. msm_routing_put_port_mixer),
  15116. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15117. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15118. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15119. msm_routing_get_port_mixer,
  15120. msm_routing_put_port_mixer),
  15121. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15122. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15123. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15124. msm_routing_get_port_mixer,
  15125. msm_routing_put_port_mixer),
  15126. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15127. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15128. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15129. msm_routing_get_port_mixer,
  15130. msm_routing_put_port_mixer),
  15131. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15132. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15133. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15134. msm_routing_get_port_mixer,
  15135. msm_routing_put_port_mixer),
  15136. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15137. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15138. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15139. msm_routing_get_port_mixer,
  15140. msm_routing_put_port_mixer),
  15141. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15142. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15143. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15144. msm_routing_get_port_mixer,
  15145. msm_routing_put_port_mixer),
  15146. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15147. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15148. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15149. msm_routing_get_port_mixer,
  15150. msm_routing_put_port_mixer),
  15151. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15152. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15153. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15154. msm_routing_get_port_mixer,
  15155. msm_routing_put_port_mixer),
  15156. };
  15157. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  15158. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15159. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15160. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15161. msm_routing_get_port_mixer,
  15162. msm_routing_put_port_mixer),
  15163. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15164. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15165. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15166. msm_routing_get_port_mixer,
  15167. msm_routing_put_port_mixer),
  15168. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15169. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15170. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15171. msm_routing_get_port_mixer,
  15172. msm_routing_put_port_mixer),
  15173. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15174. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15175. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15176. msm_routing_get_port_mixer,
  15177. msm_routing_put_port_mixer),
  15178. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15179. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15180. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15181. msm_routing_get_port_mixer,
  15182. msm_routing_put_port_mixer),
  15183. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15184. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15185. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15186. msm_routing_get_port_mixer,
  15187. msm_routing_put_port_mixer),
  15188. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15189. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15190. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15191. msm_routing_get_port_mixer,
  15192. msm_routing_put_port_mixer),
  15193. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15194. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15195. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15196. msm_routing_get_port_mixer,
  15197. msm_routing_put_port_mixer),
  15198. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15199. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15200. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15201. msm_routing_get_port_mixer,
  15202. msm_routing_put_port_mixer),
  15203. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15204. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15205. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15206. msm_routing_get_port_mixer,
  15207. msm_routing_put_port_mixer),
  15208. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15209. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15210. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15211. msm_routing_get_port_mixer,
  15212. msm_routing_put_port_mixer),
  15213. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15214. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15215. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15216. msm_routing_get_port_mixer,
  15217. msm_routing_put_port_mixer),
  15218. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15219. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15220. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15221. msm_routing_get_port_mixer,
  15222. msm_routing_put_port_mixer),
  15223. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15224. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15225. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15226. msm_routing_get_port_mixer,
  15227. msm_routing_put_port_mixer),
  15228. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15229. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15230. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15231. msm_routing_get_port_mixer,
  15232. msm_routing_put_port_mixer),
  15233. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15234. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15235. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15236. msm_routing_get_port_mixer,
  15237. msm_routing_put_port_mixer),
  15238. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15239. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15240. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15241. msm_routing_get_port_mixer,
  15242. msm_routing_put_port_mixer),
  15243. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15244. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15245. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15246. msm_routing_get_port_mixer,
  15247. msm_routing_put_port_mixer),
  15248. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15249. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15250. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15251. msm_routing_get_port_mixer,
  15252. msm_routing_put_port_mixer),
  15253. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15254. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15255. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15256. msm_routing_get_port_mixer,
  15257. msm_routing_put_port_mixer),
  15258. };
  15259. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  15260. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15261. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15262. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15263. msm_routing_get_port_mixer,
  15264. msm_routing_put_port_mixer),
  15265. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15266. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15267. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15268. msm_routing_get_port_mixer,
  15269. msm_routing_put_port_mixer),
  15270. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15271. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15272. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15273. msm_routing_get_port_mixer,
  15274. msm_routing_put_port_mixer),
  15275. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15276. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15277. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15278. msm_routing_get_port_mixer,
  15279. msm_routing_put_port_mixer),
  15280. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15281. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15282. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15283. msm_routing_get_port_mixer,
  15284. msm_routing_put_port_mixer),
  15285. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15286. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15287. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15288. msm_routing_get_port_mixer,
  15289. msm_routing_put_port_mixer),
  15290. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15291. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15292. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15293. msm_routing_get_port_mixer,
  15294. msm_routing_put_port_mixer),
  15295. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15296. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15297. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15298. msm_routing_get_port_mixer,
  15299. msm_routing_put_port_mixer),
  15300. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15301. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15302. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15303. msm_routing_get_port_mixer,
  15304. msm_routing_put_port_mixer),
  15305. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15306. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15307. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15308. msm_routing_get_port_mixer,
  15309. msm_routing_put_port_mixer),
  15310. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15311. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15312. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15313. msm_routing_get_port_mixer,
  15314. msm_routing_put_port_mixer),
  15315. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15316. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15317. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15318. msm_routing_get_port_mixer,
  15319. msm_routing_put_port_mixer),
  15320. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15321. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15322. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15323. msm_routing_get_port_mixer,
  15324. msm_routing_put_port_mixer),
  15325. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15326. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15327. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15328. msm_routing_get_port_mixer,
  15329. msm_routing_put_port_mixer),
  15330. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15331. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15332. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15333. msm_routing_get_port_mixer,
  15334. msm_routing_put_port_mixer),
  15335. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15336. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15337. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15338. msm_routing_get_port_mixer,
  15339. msm_routing_put_port_mixer),
  15340. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15341. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15342. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15343. msm_routing_get_port_mixer,
  15344. msm_routing_put_port_mixer),
  15345. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15346. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15347. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15348. msm_routing_get_port_mixer,
  15349. msm_routing_put_port_mixer),
  15350. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15351. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15352. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15353. msm_routing_get_port_mixer,
  15354. msm_routing_put_port_mixer),
  15355. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15356. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15357. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15358. msm_routing_get_port_mixer,
  15359. msm_routing_put_port_mixer),
  15360. };
  15361. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  15362. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15363. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15364. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15365. msm_routing_get_port_mixer,
  15366. msm_routing_put_port_mixer),
  15367. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15368. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15369. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15370. msm_routing_get_port_mixer,
  15371. msm_routing_put_port_mixer),
  15372. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15373. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15374. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15375. msm_routing_get_port_mixer,
  15376. msm_routing_put_port_mixer),
  15377. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15378. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15379. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15380. msm_routing_get_port_mixer,
  15381. msm_routing_put_port_mixer),
  15382. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15383. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15384. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15385. msm_routing_get_port_mixer,
  15386. msm_routing_put_port_mixer),
  15387. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15388. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15389. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15390. msm_routing_get_port_mixer,
  15391. msm_routing_put_port_mixer),
  15392. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15393. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15394. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15395. msm_routing_get_port_mixer,
  15396. msm_routing_put_port_mixer),
  15397. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15398. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15399. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15400. msm_routing_get_port_mixer,
  15401. msm_routing_put_port_mixer),
  15402. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15403. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15404. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15405. msm_routing_get_port_mixer,
  15406. msm_routing_put_port_mixer),
  15407. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15408. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15409. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15410. msm_routing_get_port_mixer,
  15411. msm_routing_put_port_mixer),
  15412. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15413. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15414. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15415. msm_routing_get_port_mixer,
  15416. msm_routing_put_port_mixer),
  15417. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15418. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15419. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15420. msm_routing_get_port_mixer,
  15421. msm_routing_put_port_mixer),
  15422. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15423. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15424. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15425. msm_routing_get_port_mixer,
  15426. msm_routing_put_port_mixer),
  15427. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15428. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15429. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15430. msm_routing_get_port_mixer,
  15431. msm_routing_put_port_mixer),
  15432. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15433. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15434. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15435. msm_routing_get_port_mixer,
  15436. msm_routing_put_port_mixer),
  15437. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15438. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15439. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15440. msm_routing_get_port_mixer,
  15441. msm_routing_put_port_mixer),
  15442. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15443. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15444. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15445. msm_routing_get_port_mixer,
  15446. msm_routing_put_port_mixer),
  15447. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15448. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15449. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15450. msm_routing_get_port_mixer,
  15451. msm_routing_put_port_mixer),
  15452. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15453. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15454. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15455. msm_routing_get_port_mixer,
  15456. msm_routing_put_port_mixer),
  15457. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15458. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15459. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15460. msm_routing_get_port_mixer,
  15461. msm_routing_put_port_mixer),
  15462. };
  15463. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  15464. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15465. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15466. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15467. msm_routing_get_port_mixer,
  15468. msm_routing_put_port_mixer),
  15469. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15470. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15471. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15472. msm_routing_get_port_mixer,
  15473. msm_routing_put_port_mixer),
  15474. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15475. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15476. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15477. msm_routing_get_port_mixer,
  15478. msm_routing_put_port_mixer),
  15479. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15480. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15481. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15482. msm_routing_get_port_mixer,
  15483. msm_routing_put_port_mixer),
  15484. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15485. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15486. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15487. msm_routing_get_port_mixer,
  15488. msm_routing_put_port_mixer),
  15489. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15490. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15491. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15492. msm_routing_get_port_mixer,
  15493. msm_routing_put_port_mixer),
  15494. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15495. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15496. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15497. msm_routing_get_port_mixer,
  15498. msm_routing_put_port_mixer),
  15499. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15500. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15501. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15502. msm_routing_get_port_mixer,
  15503. msm_routing_put_port_mixer),
  15504. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15505. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15506. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15507. msm_routing_get_port_mixer,
  15508. msm_routing_put_port_mixer),
  15509. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15510. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15511. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15512. msm_routing_get_port_mixer,
  15513. msm_routing_put_port_mixer),
  15514. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15515. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15516. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15517. msm_routing_get_port_mixer,
  15518. msm_routing_put_port_mixer),
  15519. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15520. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15521. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15522. msm_routing_get_port_mixer,
  15523. msm_routing_put_port_mixer),
  15524. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15525. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15526. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15527. msm_routing_get_port_mixer,
  15528. msm_routing_put_port_mixer),
  15529. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15530. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15531. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15532. msm_routing_get_port_mixer,
  15533. msm_routing_put_port_mixer),
  15534. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15535. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15536. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15537. msm_routing_get_port_mixer,
  15538. msm_routing_put_port_mixer),
  15539. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15540. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15541. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15542. msm_routing_get_port_mixer,
  15543. msm_routing_put_port_mixer),
  15544. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15545. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15546. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15547. msm_routing_get_port_mixer,
  15548. msm_routing_put_port_mixer),
  15549. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15550. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15551. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15552. msm_routing_get_port_mixer,
  15553. msm_routing_put_port_mixer),
  15554. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15555. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15556. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15557. msm_routing_get_port_mixer,
  15558. msm_routing_put_port_mixer),
  15559. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15560. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15561. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15562. msm_routing_get_port_mixer,
  15563. msm_routing_put_port_mixer),
  15564. };
  15565. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  15566. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15567. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15568. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15569. msm_routing_get_port_mixer,
  15570. msm_routing_put_port_mixer),
  15571. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15572. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15573. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15574. msm_routing_get_port_mixer,
  15575. msm_routing_put_port_mixer),
  15576. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15577. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15578. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15579. msm_routing_get_port_mixer,
  15580. msm_routing_put_port_mixer),
  15581. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15582. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15583. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15584. msm_routing_get_port_mixer,
  15585. msm_routing_put_port_mixer),
  15586. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15587. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15588. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15589. msm_routing_get_port_mixer,
  15590. msm_routing_put_port_mixer),
  15591. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15592. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15593. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15594. msm_routing_get_port_mixer,
  15595. msm_routing_put_port_mixer),
  15596. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15597. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15598. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15599. msm_routing_get_port_mixer,
  15600. msm_routing_put_port_mixer),
  15601. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15602. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15603. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15604. msm_routing_get_port_mixer,
  15605. msm_routing_put_port_mixer),
  15606. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15607. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15608. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15609. msm_routing_get_port_mixer,
  15610. msm_routing_put_port_mixer),
  15611. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15612. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15613. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15614. msm_routing_get_port_mixer,
  15615. msm_routing_put_port_mixer),
  15616. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15617. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15618. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15619. msm_routing_get_port_mixer,
  15620. msm_routing_put_port_mixer),
  15621. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15622. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15623. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15624. msm_routing_get_port_mixer,
  15625. msm_routing_put_port_mixer),
  15626. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15627. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15628. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15629. msm_routing_get_port_mixer,
  15630. msm_routing_put_port_mixer),
  15631. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15632. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15633. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15634. msm_routing_get_port_mixer,
  15635. msm_routing_put_port_mixer),
  15636. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15637. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15638. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15639. msm_routing_get_port_mixer,
  15640. msm_routing_put_port_mixer),
  15641. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15642. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15643. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15644. msm_routing_get_port_mixer,
  15645. msm_routing_put_port_mixer),
  15646. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15647. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15648. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15649. msm_routing_get_port_mixer,
  15650. msm_routing_put_port_mixer),
  15651. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15652. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15653. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15654. msm_routing_get_port_mixer,
  15655. msm_routing_put_port_mixer),
  15656. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15657. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15658. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15659. msm_routing_get_port_mixer,
  15660. msm_routing_put_port_mixer),
  15661. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15662. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15663. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15664. msm_routing_get_port_mixer,
  15665. msm_routing_put_port_mixer),
  15666. };
  15667. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  15668. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15669. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15670. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15671. msm_routing_put_port_mixer),
  15672. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15673. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15674. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15675. msm_routing_put_port_mixer),
  15676. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15677. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15678. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15679. msm_routing_put_port_mixer),
  15680. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15681. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15682. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15683. msm_routing_put_port_mixer),
  15684. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15685. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15686. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15687. msm_routing_put_port_mixer),
  15688. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15689. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15690. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15691. msm_routing_put_port_mixer),
  15692. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15693. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15694. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15695. msm_routing_put_port_mixer),
  15696. };
  15697. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  15698. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15699. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15700. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15701. msm_routing_put_port_mixer),
  15702. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15703. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15704. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15705. msm_routing_put_port_mixer),
  15706. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15707. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15708. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15709. msm_routing_put_port_mixer),
  15710. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15711. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15712. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15713. msm_routing_put_port_mixer),
  15714. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15715. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15716. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15717. msm_routing_put_port_mixer),
  15718. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15719. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15720. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15721. msm_routing_put_port_mixer),
  15722. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15723. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15724. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15725. msm_routing_put_port_mixer),
  15726. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15727. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15728. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15729. msm_routing_put_port_mixer),
  15730. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15731. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15732. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15733. msm_routing_put_port_mixer),
  15734. };
  15735. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  15736. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15737. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15738. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15739. msm_routing_put_listen_mixer),
  15740. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15741. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15742. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15743. msm_routing_put_listen_mixer),
  15744. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15745. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15746. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15747. msm_routing_put_listen_mixer),
  15748. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15749. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15750. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15751. msm_routing_put_listen_mixer),
  15752. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15753. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15754. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15755. msm_routing_put_listen_mixer),
  15756. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15757. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15758. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15759. msm_routing_put_listen_mixer),
  15760. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15761. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15762. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15763. msm_routing_put_listen_mixer),
  15764. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15765. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15766. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15767. msm_routing_put_listen_mixer),
  15768. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15769. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15770. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15771. msm_routing_put_listen_mixer),
  15772. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15773. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15774. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15775. msm_routing_put_listen_mixer),
  15776. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15777. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15778. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15779. msm_routing_put_listen_mixer),
  15780. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15781. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15782. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15783. msm_routing_put_listen_mixer),
  15784. };
  15785. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  15786. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15787. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15788. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15789. msm_routing_put_listen_mixer),
  15790. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  15791. SND_SOC_NOPM,
  15792. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15793. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15794. msm_routing_put_listen_mixer),
  15795. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15796. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15797. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15798. msm_routing_put_listen_mixer),
  15799. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15800. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15801. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15802. msm_routing_put_listen_mixer),
  15803. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15804. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15805. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15806. msm_routing_put_listen_mixer),
  15807. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15808. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15809. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15810. msm_routing_put_listen_mixer),
  15811. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15812. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15813. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15814. msm_routing_put_listen_mixer),
  15815. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15816. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15817. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15818. msm_routing_put_listen_mixer),
  15819. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15820. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15821. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15822. msm_routing_put_listen_mixer),
  15823. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15824. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15825. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15826. msm_routing_put_listen_mixer),
  15827. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15828. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15829. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15830. msm_routing_put_listen_mixer),
  15831. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15832. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15833. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15834. msm_routing_put_listen_mixer),
  15835. };
  15836. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  15837. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15838. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15839. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15840. msm_routing_put_listen_mixer),
  15841. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15842. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15843. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15844. msm_routing_put_listen_mixer),
  15845. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15846. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15847. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15848. msm_routing_put_listen_mixer),
  15849. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15850. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15851. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15852. msm_routing_put_listen_mixer),
  15853. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15854. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15855. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15856. msm_routing_put_listen_mixer),
  15857. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15858. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15859. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15860. msm_routing_put_listen_mixer),
  15861. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15862. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15863. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15864. msm_routing_put_listen_mixer),
  15865. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15866. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15867. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15868. msm_routing_put_listen_mixer),
  15869. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15870. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15871. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15872. msm_routing_put_listen_mixer),
  15873. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15874. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15875. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15876. msm_routing_put_listen_mixer),
  15877. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15878. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15879. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15880. msm_routing_put_listen_mixer),
  15881. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15882. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15883. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15884. msm_routing_put_listen_mixer),
  15885. };
  15886. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  15887. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15888. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15889. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15890. msm_routing_put_listen_mixer),
  15891. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15892. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15893. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15894. msm_routing_put_listen_mixer),
  15895. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15896. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15897. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15898. msm_routing_put_listen_mixer),
  15899. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15900. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15901. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15902. msm_routing_put_listen_mixer),
  15903. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15904. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15905. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15906. msm_routing_put_listen_mixer),
  15907. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15908. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15909. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15910. msm_routing_put_listen_mixer),
  15911. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15912. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15913. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15914. msm_routing_put_listen_mixer),
  15915. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15916. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15917. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15918. msm_routing_put_listen_mixer),
  15919. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15920. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15921. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15922. msm_routing_put_listen_mixer),
  15923. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15924. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15925. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15926. msm_routing_put_listen_mixer),
  15927. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15928. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15929. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15930. msm_routing_put_listen_mixer),
  15931. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15932. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15933. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15934. msm_routing_put_listen_mixer),
  15935. };
  15936. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  15937. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15938. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15939. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15940. msm_routing_put_listen_mixer),
  15941. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15942. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15943. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15944. msm_routing_put_listen_mixer),
  15945. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15946. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15947. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15948. msm_routing_put_listen_mixer),
  15949. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15950. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15951. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15952. msm_routing_put_listen_mixer),
  15953. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15954. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15955. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15956. msm_routing_put_listen_mixer),
  15957. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15958. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15959. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15960. msm_routing_put_listen_mixer),
  15961. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15962. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15963. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15964. msm_routing_put_listen_mixer),
  15965. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15966. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15967. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15968. msm_routing_put_listen_mixer),
  15969. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15970. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15971. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15972. msm_routing_put_listen_mixer),
  15973. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15974. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15975. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15976. msm_routing_put_listen_mixer),
  15977. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15978. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15979. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15980. msm_routing_put_listen_mixer),
  15981. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15982. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15983. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15984. msm_routing_put_listen_mixer),
  15985. };
  15986. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  15987. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15988. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15989. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15990. msm_routing_put_listen_mixer),
  15991. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15992. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15993. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15994. msm_routing_put_listen_mixer),
  15995. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15996. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15997. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15998. msm_routing_put_listen_mixer),
  15999. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16000. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16001. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16002. msm_routing_put_listen_mixer),
  16003. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16004. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16005. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16006. msm_routing_put_listen_mixer),
  16007. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16008. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16009. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16010. msm_routing_put_listen_mixer),
  16011. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16012. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16013. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16014. msm_routing_put_listen_mixer),
  16015. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16016. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16017. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16018. msm_routing_put_listen_mixer),
  16019. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16020. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16021. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16022. msm_routing_put_listen_mixer),
  16023. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16024. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16025. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16026. msm_routing_put_listen_mixer),
  16027. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16028. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16029. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16030. msm_routing_put_listen_mixer),
  16031. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16032. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16033. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16034. msm_routing_put_listen_mixer),
  16035. };
  16036. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  16037. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16038. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16039. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16040. msm_routing_put_listen_mixer),
  16041. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16042. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16043. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16044. msm_routing_put_listen_mixer),
  16045. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16046. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16047. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16048. msm_routing_put_listen_mixer),
  16049. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16050. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16051. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16052. msm_routing_put_listen_mixer),
  16053. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16054. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16055. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16056. msm_routing_put_listen_mixer),
  16057. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16058. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16059. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16060. msm_routing_put_listen_mixer),
  16061. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16062. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16063. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16064. msm_routing_put_listen_mixer),
  16065. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16066. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16067. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16068. msm_routing_put_listen_mixer),
  16069. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16070. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16071. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16072. msm_routing_put_listen_mixer),
  16073. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16074. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16075. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16076. msm_routing_put_listen_mixer),
  16077. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16078. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16079. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16080. msm_routing_put_listen_mixer),
  16081. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16082. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16083. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16084. msm_routing_put_listen_mixer),
  16085. };
  16086. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  16087. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16088. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16089. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16090. msm_routing_put_listen_mixer),
  16091. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16092. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16093. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16094. msm_routing_put_listen_mixer),
  16095. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16096. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16097. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16098. msm_routing_put_listen_mixer),
  16099. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16100. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16101. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16102. msm_routing_put_listen_mixer),
  16103. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16104. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16105. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16106. msm_routing_put_listen_mixer),
  16107. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16108. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16109. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16110. msm_routing_put_listen_mixer),
  16111. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16112. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16113. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16114. msm_routing_put_listen_mixer),
  16115. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16116. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16117. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16118. msm_routing_put_listen_mixer),
  16119. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16120. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16121. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16122. msm_routing_put_listen_mixer),
  16123. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16124. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16125. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16126. msm_routing_put_listen_mixer),
  16127. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16128. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16129. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16130. msm_routing_put_listen_mixer),
  16131. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16132. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16133. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16134. msm_routing_put_listen_mixer),
  16135. };
  16136. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  16137. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16138. 0, 1, 0, msm_routing_get_switch_mixer,
  16139. msm_routing_put_switch_mixer);
  16140. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  16141. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16142. 0, 1, 0, msm_routing_get_switch_mixer,
  16143. msm_routing_put_switch_mixer);
  16144. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  16145. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16146. 0, 1, 0, msm_routing_get_switch_mixer,
  16147. msm_routing_put_switch_mixer);
  16148. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  16149. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16150. 0, 1, 0, msm_routing_get_switch_mixer,
  16151. msm_routing_put_switch_mixer);
  16152. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  16153. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16154. 0, 1, 0, msm_routing_get_switch_mixer,
  16155. msm_routing_put_switch_mixer);
  16156. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  16157. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16158. 0, 1, 0, msm_routing_get_switch_mixer,
  16159. msm_routing_put_switch_mixer);
  16160. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  16161. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16162. 0, 1, 0, msm_routing_get_switch_mixer,
  16163. msm_routing_put_switch_mixer);
  16164. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  16165. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16166. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  16167. msm_routing_put_fm_pcmrx_switch_mixer);
  16168. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  16169. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16170. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  16171. msm_routing_put_int0_mi2s_switch_mixer);
  16172. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  16173. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16174. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  16175. msm_routing_put_int4_mi2s_switch_mixer);
  16176. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  16177. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16178. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  16179. msm_routing_put_pri_mi2s_switch_mixer);
  16180. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  16181. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16182. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  16183. msm_routing_put_sec_mi2s_switch_mixer);
  16184. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  16185. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16186. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  16187. msm_routing_put_tert_mi2s_switch_mixer);
  16188. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  16189. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16190. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  16191. msm_routing_put_quat_mi2s_switch_mixer);
  16192. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  16193. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16194. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  16195. msm_routing_put_quin_mi2s_switch_mixer);
  16196. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  16197. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16198. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16199. msm_routing_put_hfp_switch_mixer);
  16200. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  16201. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16202. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16203. msm_routing_put_hfp_switch_mixer);
  16204. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  16205. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16206. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16207. msm_routing_put_hfp_switch_mixer);
  16208. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  16209. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16210. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16211. msm_routing_put_hfp_switch_mixer);
  16212. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  16213. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16214. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  16215. msm_routing_put_usb_switch_mixer);
  16216. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  16217. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16218. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  16219. msm_routing_a2dp_switch_mixer_put);
  16220. static const struct soc_enum lsm_port_enum =
  16221. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  16222. static const char * const lsm_func_text[] = {
  16223. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  16224. };
  16225. static const struct soc_enum lsm_func_enum =
  16226. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  16227. static const struct snd_kcontrol_new lsm_controls[] = {
  16228. /* kcontrol of lsm_function */
  16229. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16230. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16231. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16232. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16233. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16234. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16235. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16236. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16237. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16238. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16239. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16240. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16241. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16242. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16243. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16244. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16245. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16246. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16247. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16248. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16249. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16250. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16251. /* kcontrol of lsm_port */
  16252. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  16253. msm_routing_lsm_port_get,
  16254. msm_routing_lsm_port_put),
  16255. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  16256. msm_routing_lsm_port_get,
  16257. msm_routing_lsm_port_put),
  16258. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  16259. msm_routing_lsm_port_get,
  16260. msm_routing_lsm_port_put),
  16261. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  16262. msm_routing_lsm_port_get,
  16263. msm_routing_lsm_port_put),
  16264. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  16265. msm_routing_lsm_port_get,
  16266. msm_routing_lsm_port_put),
  16267. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  16268. msm_routing_lsm_port_get,
  16269. msm_routing_lsm_port_put),
  16270. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  16271. msm_routing_lsm_port_get,
  16272. msm_routing_lsm_port_put),
  16273. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  16274. msm_routing_lsm_port_get,
  16275. msm_routing_lsm_port_put),
  16276. };
  16277. static const char * const aanc_slim_0_rx_text[] = {
  16278. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  16279. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  16280. };
  16281. static const struct soc_enum aanc_slim_0_rx_enum =
  16282. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  16283. aanc_slim_0_rx_text);
  16284. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  16285. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  16286. msm_routing_slim_0_rx_aanc_mux_get,
  16287. msm_routing_slim_0_rx_aanc_mux_put)
  16288. };
  16289. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  16290. struct snd_ctl_elem_value *ucontrol)
  16291. {
  16292. ucontrol->value.integer.value[0] = aanc_level;
  16293. return 0;
  16294. }
  16295. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  16296. struct snd_ctl_elem_value *ucontrol)
  16297. {
  16298. int ret = 0;
  16299. mutex_lock(&routing_lock);
  16300. aanc_level = ucontrol->value.integer.value[0];
  16301. pr_debug("%s: value: %ld\n",
  16302. __func__, ucontrol->value.integer.value[0]);
  16303. ret = afe_set_aanc_noise_level(aanc_level);
  16304. mutex_unlock(&routing_lock);
  16305. return ret;
  16306. }
  16307. static const struct snd_kcontrol_new aanc_noise_level[] = {
  16308. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  16309. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  16310. };
  16311. static int msm_routing_get_stereo_to_custom_stereo_control(
  16312. struct snd_kcontrol *kcontrol,
  16313. struct snd_ctl_elem_value *ucontrol)
  16314. {
  16315. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  16316. return 0;
  16317. }
  16318. static int msm_routing_put_stereo_to_custom_stereo_control(
  16319. struct snd_kcontrol *kcontrol,
  16320. struct snd_ctl_elem_value *ucontrol)
  16321. {
  16322. int flag = 0, i = 0, rc = 0, idx = 0;
  16323. int be_index = 0, port_id, topo_id;
  16324. unsigned int session_id = 0;
  16325. uint16_t op_FL_ip_FL_weight = 0;
  16326. uint16_t op_FL_ip_FR_weight = 0;
  16327. uint16_t op_FR_ip_FL_weight = 0;
  16328. uint16_t op_FR_ip_FR_weight = 0;
  16329. flag = ucontrol->value.integer.value[0];
  16330. pr_debug("%s E flag %d\n", __func__, flag);
  16331. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  16332. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  16333. __func__, is_custom_stereo_on, flag);
  16334. return 0;
  16335. }
  16336. is_custom_stereo_on = flag ? true : false;
  16337. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  16338. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  16339. port_id = msm_bedais[be_index].port_id;
  16340. if (!msm_bedais[be_index].active)
  16341. continue;
  16342. if ((port_id != SLIMBUS_0_RX) &&
  16343. (port_id != RT_PROXY_PORT_001_RX) &&
  16344. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  16345. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  16346. continue;
  16347. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  16348. MSM_FRONTEND_DAI_MM_SIZE) {
  16349. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  16350. LEGACY_PCM_MODE)
  16351. goto skip_send_custom_stereo;
  16352. session_id =
  16353. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  16354. if (is_custom_stereo_on) {
  16355. op_FL_ip_FL_weight =
  16356. Q14_GAIN_ZERO_POINT_FIVE;
  16357. op_FL_ip_FR_weight =
  16358. Q14_GAIN_ZERO_POINT_FIVE;
  16359. op_FR_ip_FL_weight =
  16360. Q14_GAIN_ZERO_POINT_FIVE;
  16361. op_FR_ip_FR_weight =
  16362. Q14_GAIN_ZERO_POINT_FIVE;
  16363. } else {
  16364. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  16365. op_FL_ip_FR_weight = 0;
  16366. op_FR_ip_FL_weight = 0;
  16367. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  16368. }
  16369. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16370. unsigned long copp =
  16371. session_copp_map[i]
  16372. [SESSION_TYPE_RX][be_index];
  16373. if (!test_bit(idx, &copp))
  16374. goto skip_send_custom_stereo;
  16375. topo_id = adm_get_topology_for_port_copp_idx(
  16376. msm_bedais[be_index].port_id, idx);
  16377. if (topo_id < 0)
  16378. pr_debug("%s:Err:custom stereo topo %d",
  16379. __func__, topo_id);
  16380. pr_debug("idx %d\n", idx);
  16381. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  16382. rc = msm_ds2_dap_set_custom_stereo_onoff
  16383. (msm_bedais[be_index].port_id,
  16384. idx, is_custom_stereo_on);
  16385. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  16386. rc = dolby_dap_set_custom_stereo_onoff(
  16387. msm_bedais[be_index].port_id,
  16388. idx, is_custom_stereo_on);
  16389. else
  16390. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  16391. (msm_bedais[be_index].port_id,
  16392. idx, session_id,
  16393. op_FL_ip_FL_weight,
  16394. op_FL_ip_FR_weight,
  16395. op_FR_ip_FL_weight,
  16396. op_FR_ip_FR_weight);
  16397. if (rc < 0)
  16398. skip_send_custom_stereo:
  16399. pr_err("%s: err setting custom stereo\n",
  16400. __func__);
  16401. }
  16402. }
  16403. }
  16404. return 0;
  16405. }
  16406. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  16407. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  16408. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  16409. msm_routing_put_stereo_to_custom_stereo_control),
  16410. };
  16411. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  16412. struct snd_ctl_elem_value *ucontrol)
  16413. {
  16414. return 0;
  16415. }
  16416. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  16417. struct snd_ctl_elem_value *ucontrol)
  16418. {
  16419. int i = 0, j;
  16420. int num_app_types = ucontrol->value.integer.value[i++];
  16421. pr_debug("%s\n", __func__);
  16422. memset(app_type_cfg, 0, MAX_APP_TYPES*
  16423. sizeof(struct msm_pcm_routing_app_type_data));
  16424. if (num_app_types > MAX_APP_TYPES) {
  16425. pr_err("%s: number of app types exceed the max supported\n",
  16426. __func__);
  16427. return -EINVAL;
  16428. }
  16429. for (j = 0; j < num_app_types; j++) {
  16430. app_type_cfg[j].app_type =
  16431. ucontrol->value.integer.value[i++];
  16432. app_type_cfg[j].sample_rate =
  16433. ucontrol->value.integer.value[i++];
  16434. app_type_cfg[j].bit_width =
  16435. ucontrol->value.integer.value[i++];
  16436. }
  16437. return 0;
  16438. }
  16439. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  16440. struct snd_ctl_elem_value *ucontrol)
  16441. {
  16442. int j, fe_id, be_id, port_type;
  16443. int ret = 0;
  16444. unsigned long copp;
  16445. struct msm_pcm_routing_bdai_data *bedai;
  16446. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  16447. SESSION_TYPE_RX;
  16448. int app_type = ucontrol->value.integer.value[1];
  16449. int gain = (ucontrol->value.integer.value[2] +
  16450. ucontrol->value.integer.value[3])/2;
  16451. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  16452. MSM_AFE_PORT_TYPE_TX;
  16453. mutex_lock(&routing_lock);
  16454. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  16455. if (is_be_dai_extproc(be_id))
  16456. continue;
  16457. bedai = &msm_bedais[be_id];
  16458. if (afe_get_port_type(bedai->port_id) != port_type)
  16459. continue;
  16460. if (!bedai->active)
  16461. continue;
  16462. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  16463. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  16464. continue;
  16465. if (app_type !=
  16466. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  16467. continue;
  16468. copp = session_copp_map[fe_id][dir][be_id];
  16469. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  16470. if (!test_bit(j, &copp))
  16471. continue;
  16472. ret |= adm_set_volume(bedai->port_id, j, gain);
  16473. }
  16474. }
  16475. }
  16476. mutex_unlock(&routing_lock);
  16477. return ret ? -EINVAL : 0;
  16478. }
  16479. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  16480. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  16481. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  16482. msm_routing_put_app_type_cfg_control),
  16483. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  16484. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  16485. };
  16486. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  16487. struct snd_ctl_elem_value *ucontrol)
  16488. {
  16489. int copp_idx, fe_id, be_id, port_type;
  16490. int ret = 0;
  16491. unsigned long copp;
  16492. struct msm_pcm_routing_bdai_data *bedai;
  16493. u8 *packed_params = NULL;
  16494. struct param_hdr_v3 param_hdr;
  16495. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  16496. sizeof(uint32_t));
  16497. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  16498. SESSION_TYPE_RX;
  16499. int app_type = ucontrol->value.integer.value[1];
  16500. int module_id = ucontrol->value.integer.value[2];
  16501. int instance_id = ucontrol->value.integer.value[3];
  16502. int param_id = ucontrol->value.integer.value[4];
  16503. int param_value = ucontrol->value.integer.value[5];
  16504. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  16505. MSM_AFE_PORT_TYPE_TX;
  16506. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  16507. __func__, app_type, module_id,
  16508. instance_id, param_id, param_value);
  16509. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  16510. if (!packed_params)
  16511. return -ENOMEM;
  16512. memset(&param_hdr, 0, sizeof(param_hdr));
  16513. param_hdr.module_id = module_id;
  16514. param_hdr.instance_id = instance_id;
  16515. param_hdr.param_id = param_id;
  16516. param_hdr.param_size = sizeof(uint32_t);
  16517. packed_param_size = 0;
  16518. mutex_lock(&routing_lock);
  16519. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  16520. if (is_be_dai_extproc(be_id))
  16521. continue;
  16522. bedai = &msm_bedais[be_id];
  16523. if (afe_get_port_type(bedai->port_id) != port_type)
  16524. continue;
  16525. if (!bedai->active)
  16526. continue;
  16527. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  16528. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  16529. continue;
  16530. if (app_type !=
  16531. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  16532. continue;
  16533. copp = session_copp_map[fe_id][dir][be_id];
  16534. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  16535. copp_idx++) {
  16536. if (!test_bit(copp_idx, &copp))
  16537. continue;
  16538. ret = q6common_pack_pp_params(packed_params,
  16539. &param_hdr,
  16540. (u8 *) &param_value,
  16541. &packed_param_size);
  16542. if (ret) {
  16543. pr_err("%s: Failed to pack params, error %d\n",
  16544. __func__, ret);
  16545. goto done;
  16546. }
  16547. ret = adm_set_pp_params(bedai->port_id,
  16548. copp_idx, NULL,
  16549. packed_params,
  16550. packed_param_size);
  16551. if (ret) {
  16552. pr_err("%s: Setting param failed with err=%d\n",
  16553. __func__, ret);
  16554. ret = -EINVAL;
  16555. goto done;
  16556. }
  16557. }
  16558. }
  16559. }
  16560. done:
  16561. mutex_unlock(&routing_lock);
  16562. kfree(packed_params);
  16563. return ret;
  16564. }
  16565. static const struct snd_kcontrol_new module_cfg_controls[] = {
  16566. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  16567. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  16568. };
  16569. static int msm_routing_get_lsm_app_type_cfg_control(
  16570. struct snd_kcontrol *kcontrol,
  16571. struct snd_ctl_elem_value *ucontrol)
  16572. {
  16573. int shift = ((struct soc_multi_mixer_control *)
  16574. kcontrol->private_value)->shift;
  16575. int i = 0, j = 0;
  16576. ucontrol->value.integer.value[i] = num_app_cfg_types;
  16577. for (j = 0; j < num_app_cfg_types; ++j) {
  16578. ucontrol->value.integer.value[++i] =
  16579. lsm_app_type_cfg[j].app_type;
  16580. ucontrol->value.integer.value[++i] =
  16581. lsm_app_type_cfg[j].sample_rate;
  16582. ucontrol->value.integer.value[++i] =
  16583. lsm_app_type_cfg[j].bit_width;
  16584. if (shift == 1)
  16585. ucontrol->value.integer.value[++i] =
  16586. lsm_app_type_cfg[j].num_out_channels;
  16587. }
  16588. return 0;
  16589. }
  16590. static int msm_routing_put_lsm_app_type_cfg_control(
  16591. struct snd_kcontrol *kcontrol,
  16592. struct snd_ctl_elem_value *ucontrol)
  16593. {
  16594. int shift = ((struct soc_multi_mixer_control *)
  16595. kcontrol->private_value)->shift;
  16596. int i = 0, j;
  16597. num_app_cfg_types = ucontrol->value.integer.value[i++];
  16598. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  16599. sizeof(struct msm_pcm_routing_app_type_data));
  16600. if (num_app_cfg_types > MAX_APP_TYPES) {
  16601. pr_err("%s: number of app types exceed the max supported\n",
  16602. __func__);
  16603. return -EINVAL;
  16604. }
  16605. for (j = 0; j < num_app_cfg_types; j++) {
  16606. lsm_app_type_cfg[j].app_type =
  16607. ucontrol->value.integer.value[i++];
  16608. lsm_app_type_cfg[j].sample_rate =
  16609. ucontrol->value.integer.value[i++];
  16610. lsm_app_type_cfg[j].bit_width =
  16611. ucontrol->value.integer.value[i++];
  16612. /* Shift of 1 indicates this is V2 mixer control */
  16613. if (shift == 1)
  16614. lsm_app_type_cfg[j].num_out_channels =
  16615. ucontrol->value.integer.value[i++];
  16616. }
  16617. return 0;
  16618. }
  16619. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  16620. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  16621. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  16622. msm_routing_put_lsm_app_type_cfg_control),
  16623. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  16624. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  16625. msm_routing_put_lsm_app_type_cfg_control),
  16626. };
  16627. static int msm_routing_get_use_ds1_or_ds2_control(
  16628. struct snd_kcontrol *kcontrol,
  16629. struct snd_ctl_elem_value *ucontrol)
  16630. {
  16631. ucontrol->value.integer.value[0] = is_ds2_on;
  16632. return 0;
  16633. }
  16634. static int msm_routing_put_use_ds1_or_ds2_control(
  16635. struct snd_kcontrol *kcontrol,
  16636. struct snd_ctl_elem_value *ucontrol)
  16637. {
  16638. is_ds2_on = ucontrol->value.integer.value[0];
  16639. return 0;
  16640. }
  16641. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  16642. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  16643. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  16644. msm_routing_put_use_ds1_or_ds2_control),
  16645. };
  16646. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  16647. struct snd_ctl_elem_value *ucontrol) {
  16648. int rc = 0;
  16649. int be_idx = 0;
  16650. char *param_value;
  16651. int *update_param_value;
  16652. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  16653. struct param_hdr_v3 param_hdr;
  16654. param_value = kzalloc(param_size, GFP_KERNEL);
  16655. if (!param_value)
  16656. return -ENOMEM;
  16657. memset(&param_hdr, 0, sizeof(param_hdr));
  16658. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  16659. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  16660. break;
  16661. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  16662. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  16663. param_hdr.instance_id = INSTANCE_ID_0;
  16664. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  16665. param_hdr.param_size = param_size;
  16666. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  16667. NULL, &param_hdr, (u8 *) param_value);
  16668. if (rc) {
  16669. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  16670. kfree(param_value);
  16671. return -EINVAL;
  16672. }
  16673. update_param_value = (int *)param_value;
  16674. ucontrol->value.integer.value[0] = update_param_value[0];
  16675. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  16676. __func__, update_param_value[0]);
  16677. }
  16678. kfree(param_value);
  16679. return 0;
  16680. }
  16681. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  16682. struct snd_ctl_elem_value *ucontrol)
  16683. {
  16684. voc_session_id = ucontrol->value.integer.value[0];
  16685. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  16686. return 0;
  16687. }
  16688. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  16689. struct snd_ctl_elem_value *ucontrol)
  16690. {
  16691. ucontrol->value.integer.value[0] = voc_session_id;
  16692. return 0;
  16693. }
  16694. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  16695. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  16696. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  16697. msm_voc_session_id_put),
  16698. };
  16699. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  16700. struct snd_ctl_elem_info *uinfo)
  16701. {
  16702. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16703. uinfo->count = sizeof(struct sound_focus_param);
  16704. return 0;
  16705. }
  16706. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  16707. struct snd_ctl_elem_value *ucontrol)
  16708. {
  16709. int ret = 0;
  16710. struct sound_focus_param soundFocusData;
  16711. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16712. sizeof(struct sound_focus_param));
  16713. ret = voc_set_sound_focus(soundFocusData);
  16714. if (ret) {
  16715. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16716. __func__, ret);
  16717. ret = -EINVAL;
  16718. }
  16719. return ret;
  16720. }
  16721. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  16722. struct snd_ctl_elem_value *ucontrol)
  16723. {
  16724. int ret = 0;
  16725. struct sound_focus_param soundFocusData;
  16726. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  16727. ret = voc_get_sound_focus(&soundFocusData);
  16728. if (ret) {
  16729. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  16730. __func__, ret);
  16731. ret = -EINVAL;
  16732. goto done;
  16733. }
  16734. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16735. sizeof(struct sound_focus_param));
  16736. done:
  16737. return ret;
  16738. }
  16739. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  16740. struct snd_ctl_elem_info *uinfo)
  16741. {
  16742. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16743. uinfo->count = sizeof(struct source_tracking_param);
  16744. return 0;
  16745. }
  16746. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  16747. struct snd_ctl_elem_value *ucontrol)
  16748. {
  16749. int ret = 0;
  16750. struct source_tracking_param sourceTrackingData;
  16751. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  16752. ret = voc_get_source_tracking(&sourceTrackingData);
  16753. if (ret) {
  16754. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  16755. __func__, ret);
  16756. ret = -EINVAL;
  16757. goto done;
  16758. }
  16759. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  16760. sizeof(struct source_tracking_param));
  16761. done:
  16762. return ret;
  16763. }
  16764. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  16765. int *copp_idx)
  16766. {
  16767. int i, idx, be_idx;
  16768. int ret = 0;
  16769. unsigned long copp;
  16770. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  16771. ret = q6audio_validate_port(port_id);
  16772. if (ret < 0) {
  16773. pr_err("%s: port validation failed id 0x%x ret %d\n",
  16774. __func__, port_id, ret);
  16775. ret = -EINVAL;
  16776. goto done;
  16777. }
  16778. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  16779. if (msm_bedais[be_idx].port_id == port_id)
  16780. break;
  16781. }
  16782. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  16783. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  16784. ret = -EINVAL;
  16785. goto done;
  16786. }
  16787. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  16788. MSM_FRONTEND_DAI_MM_SIZE) {
  16789. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16790. copp = session_copp_map[i]
  16791. [session_type][be_idx];
  16792. if (test_bit(idx, &copp))
  16793. break;
  16794. }
  16795. if (idx >= MAX_COPPS_PER_PORT)
  16796. continue;
  16797. else
  16798. break;
  16799. }
  16800. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  16801. pr_debug("%s: Invalid FE, exiting\n", __func__);
  16802. ret = -EINVAL;
  16803. goto done;
  16804. }
  16805. *copp_idx = idx;
  16806. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  16807. done:
  16808. return ret;
  16809. }
  16810. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  16811. const char *prefix, int *port_id)
  16812. {
  16813. int ret = 0;
  16814. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  16815. /*
  16816. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  16817. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  16818. * and compare the string with the backend name to derive the port id.
  16819. */
  16820. if (!strcmp(kcontrol->id.name + strlen(prefix),
  16821. "SLIMBUS_0")) {
  16822. *port_id = SLIMBUS_0_TX;
  16823. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16824. "TERT_MI2S")) {
  16825. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  16826. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16827. "INT3_MI2S")) {
  16828. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  16829. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16830. "VA_CDC_DMA_TX_0")) {
  16831. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  16832. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16833. "TX_CDC_DMA_TX_3")) {
  16834. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  16835. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16836. "QUIN_TDM_TX_0")) {
  16837. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  16838. } else {
  16839. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  16840. __func__, kcontrol->id.name);
  16841. ret = -EINVAL;
  16842. goto done;
  16843. }
  16844. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  16845. __func__, kcontrol->id.name, *port_id);
  16846. done:
  16847. return ret;
  16848. }
  16849. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  16850. struct snd_ctl_elem_value *ucontrol)
  16851. {
  16852. int ret = 0;
  16853. struct sound_focus_param soundFocusData;
  16854. int port_id, copp_idx;
  16855. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16856. "Sound Focus Audio Tx ", &port_id);
  16857. if (ret != 0) {
  16858. pr_err("%s: Error in deriving port id, err=%d\n",
  16859. __func__, ret);
  16860. ret = -EINVAL;
  16861. goto done;
  16862. }
  16863. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16864. &copp_idx);
  16865. if (ret) {
  16866. pr_err("%s: Could not get copp idx for port_id=%d\n",
  16867. __func__, port_id);
  16868. ret = -EINVAL;
  16869. goto done;
  16870. }
  16871. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16872. sizeof(struct sound_focus_param));
  16873. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  16874. if (ret) {
  16875. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16876. __func__, ret);
  16877. ret = -EINVAL;
  16878. goto done;
  16879. }
  16880. done:
  16881. return ret;
  16882. }
  16883. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  16884. struct snd_ctl_elem_value *ucontrol)
  16885. {
  16886. int ret = 0;
  16887. struct sound_focus_param soundFocusData;
  16888. int port_id, copp_idx;
  16889. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16890. "Sound Focus Audio Tx ", &port_id);
  16891. if (ret) {
  16892. pr_err("%s: Error in deriving port id, err=%d\n",
  16893. __func__, ret);
  16894. ret = -EINVAL;
  16895. goto done;
  16896. }
  16897. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16898. &copp_idx);
  16899. if (ret) {
  16900. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  16901. __func__, port_id);
  16902. ret = -EINVAL;
  16903. goto done;
  16904. }
  16905. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  16906. if (ret) {
  16907. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  16908. __func__, ret);
  16909. ret = -EINVAL;
  16910. goto done;
  16911. }
  16912. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16913. sizeof(struct sound_focus_param));
  16914. done:
  16915. return ret;
  16916. }
  16917. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  16918. struct snd_ctl_elem_value *ucontrol)
  16919. {
  16920. int ret = 0;
  16921. struct source_tracking_param sourceTrackingData;
  16922. int port_id, copp_idx;
  16923. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16924. "Source Tracking Audio Tx ", &port_id);
  16925. if (ret) {
  16926. pr_err("%s: Error in deriving port id, err=%d\n",
  16927. __func__, ret);
  16928. ret = -EINVAL;
  16929. goto done;
  16930. }
  16931. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16932. &copp_idx);
  16933. if (ret) {
  16934. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  16935. __func__, port_id);
  16936. ret = -EINVAL;
  16937. goto done;
  16938. }
  16939. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  16940. if (ret) {
  16941. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  16942. __func__, ret);
  16943. ret = -EINVAL;
  16944. goto done;
  16945. }
  16946. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  16947. sizeof(struct source_tracking_param));
  16948. done:
  16949. return ret;
  16950. }
  16951. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  16952. {
  16953. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16954. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16955. .name = "Sound Focus Voice Tx SLIMBUS_0",
  16956. .info = msm_sound_focus_info,
  16957. .get = msm_voice_sound_focus_get,
  16958. .put = msm_voice_sound_focus_put,
  16959. },
  16960. {
  16961. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16962. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16963. .name = "Source Tracking Voice Tx SLIMBUS_0",
  16964. .info = msm_source_tracking_info,
  16965. .get = msm_voice_source_tracking_get,
  16966. },
  16967. {
  16968. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16969. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16970. .name = "Sound Focus Audio Tx SLIMBUS_0",
  16971. .info = msm_sound_focus_info,
  16972. .get = msm_audio_sound_focus_get,
  16973. .put = msm_audio_sound_focus_put,
  16974. },
  16975. {
  16976. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16977. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16978. .name = "Source Tracking Audio Tx SLIMBUS_0",
  16979. .info = msm_source_tracking_info,
  16980. .get = msm_audio_source_tracking_get,
  16981. },
  16982. {
  16983. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16984. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16985. .name = "Sound Focus Voice Tx TERT_MI2S",
  16986. .info = msm_sound_focus_info,
  16987. .get = msm_voice_sound_focus_get,
  16988. .put = msm_voice_sound_focus_put,
  16989. },
  16990. {
  16991. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16992. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16993. .name = "Source Tracking Voice Tx TERT_MI2S",
  16994. .info = msm_source_tracking_info,
  16995. .get = msm_voice_source_tracking_get,
  16996. },
  16997. {
  16998. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16999. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17000. .name = "Sound Focus Audio Tx TERT_MI2S",
  17001. .info = msm_sound_focus_info,
  17002. .get = msm_audio_sound_focus_get,
  17003. .put = msm_audio_sound_focus_put,
  17004. },
  17005. {
  17006. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17007. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17008. .name = "Source Tracking Audio Tx TERT_MI2S",
  17009. .info = msm_source_tracking_info,
  17010. .get = msm_audio_source_tracking_get,
  17011. },
  17012. {
  17013. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17014. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17015. .name = "Sound Focus Voice Tx INT3_MI2S",
  17016. .info = msm_sound_focus_info,
  17017. .get = msm_voice_sound_focus_get,
  17018. .put = msm_voice_sound_focus_put,
  17019. },
  17020. {
  17021. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17022. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17023. .name = "Source Tracking Voice Tx INT3_MI2S",
  17024. .info = msm_source_tracking_info,
  17025. .get = msm_voice_source_tracking_get,
  17026. },
  17027. {
  17028. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17029. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17030. .name = "Sound Focus Audio Tx INT3_MI2S",
  17031. .info = msm_sound_focus_info,
  17032. .get = msm_audio_sound_focus_get,
  17033. .put = msm_audio_sound_focus_put,
  17034. },
  17035. {
  17036. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17037. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17038. .name = "Source Tracking Audio Tx INT3_MI2S",
  17039. .info = msm_source_tracking_info,
  17040. .get = msm_audio_source_tracking_get,
  17041. },
  17042. {
  17043. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17044. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17045. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  17046. .info = msm_sound_focus_info,
  17047. .get = msm_voice_sound_focus_get,
  17048. .put = msm_voice_sound_focus_put,
  17049. },
  17050. {
  17051. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17052. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17053. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  17054. .info = msm_source_tracking_info,
  17055. .get = msm_voice_source_tracking_get,
  17056. },
  17057. {
  17058. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17059. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17060. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  17061. .info = msm_sound_focus_info,
  17062. .get = msm_audio_sound_focus_get,
  17063. .put = msm_audio_sound_focus_put,
  17064. },
  17065. {
  17066. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17067. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17068. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  17069. .info = msm_source_tracking_info,
  17070. .get = msm_audio_source_tracking_get,
  17071. },
  17072. {
  17073. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17074. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17075. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  17076. .info = msm_sound_focus_info,
  17077. .get = msm_voice_sound_focus_get,
  17078. .put = msm_voice_sound_focus_put,
  17079. },
  17080. {
  17081. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17082. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17083. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  17084. .info = msm_source_tracking_info,
  17085. .get = msm_voice_source_tracking_get,
  17086. },
  17087. {
  17088. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17089. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17090. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  17091. .info = msm_sound_focus_info,
  17092. .get = msm_audio_sound_focus_get,
  17093. .put = msm_audio_sound_focus_put,
  17094. },
  17095. {
  17096. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17097. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17098. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  17099. .info = msm_source_tracking_info,
  17100. .get = msm_audio_source_tracking_get,
  17101. },
  17102. {
  17103. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17104. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17105. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  17106. .info = msm_sound_focus_info,
  17107. .get = msm_voice_sound_focus_get,
  17108. .put = msm_voice_sound_focus_put,
  17109. },
  17110. {
  17111. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17112. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17113. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  17114. .info = msm_source_tracking_info,
  17115. .get = msm_voice_source_tracking_get,
  17116. },
  17117. {
  17118. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17119. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17120. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  17121. .info = msm_sound_focus_info,
  17122. .get = msm_audio_sound_focus_get,
  17123. .put = msm_audio_sound_focus_put,
  17124. },
  17125. {
  17126. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17127. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17128. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  17129. .info = msm_source_tracking_info,
  17130. .get = msm_audio_source_tracking_get,
  17131. },
  17132. };
  17133. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  17134. struct snd_ctl_elem_value *ucontrol)
  17135. {
  17136. int ret = 0;
  17137. int item;
  17138. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  17139. pr_debug("%s item is %d\n", __func__,
  17140. ucontrol->value.enumerated.item[0]);
  17141. mutex_lock(&routing_lock);
  17142. item = ucontrol->value.enumerated.item[0];
  17143. if (item < e->items) {
  17144. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  17145. __func__, e->shift_l, e->values[item]);
  17146. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  17147. e->values[item] < MSM_BACKEND_DAI_MAX)
  17148. /* Enable feedback TX path */
  17149. ret = afe_spk_prot_feed_back_cfg(
  17150. msm_bedais[e->values[item]].port_id,
  17151. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  17152. else {
  17153. pr_debug("%s values are out of range item %d\n",
  17154. __func__, e->values[item]);
  17155. /* Disable feedback TX path */
  17156. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  17157. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  17158. else
  17159. ret = -EINVAL;
  17160. }
  17161. } else {
  17162. pr_err("%s item value is out of range item\n", __func__);
  17163. ret = -EINVAL;
  17164. }
  17165. mutex_unlock(&routing_lock);
  17166. return ret;
  17167. }
  17168. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  17169. struct snd_ctl_elem_value *ucontrol)
  17170. {
  17171. int ret = 0;
  17172. int item;
  17173. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  17174. pr_debug("%s item is %d\n", __func__,
  17175. ucontrol->value.enumerated.item[0]);
  17176. mutex_lock(&routing_lock);
  17177. item = ucontrol->value.enumerated.item[0];
  17178. if (item < e->items) {
  17179. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  17180. __func__, e->shift_l, e->values[item]);
  17181. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  17182. e->values[item] < MSM_BACKEND_DAI_MAX)
  17183. /* Enable feedback TX path */
  17184. ret = afe_spk_prot_feed_back_cfg(
  17185. msm_bedais[e->values[item]].port_id,
  17186. msm_bedais[e->shift_l].port_id,
  17187. 1, 1, 1);
  17188. else {
  17189. pr_debug("%s values are out of range item %d\n",
  17190. __func__, e->values[item]);
  17191. /* Disable feedback TX path */
  17192. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  17193. ret = afe_spk_prot_feed_back_cfg(0,
  17194. 0, 0, 0, 0);
  17195. else
  17196. ret = -EINVAL;
  17197. }
  17198. } else {
  17199. pr_err("%s item value is out of range item\n", __func__);
  17200. ret = -EINVAL;
  17201. }
  17202. mutex_unlock(&routing_lock);
  17203. return ret;
  17204. }
  17205. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  17206. struct snd_ctl_elem_value *ucontrol)
  17207. {
  17208. pr_debug("%s\n", __func__);
  17209. return 0;
  17210. }
  17211. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  17212. struct snd_ctl_elem_value *ucontrol)
  17213. {
  17214. pr_debug("%s\n", __func__);
  17215. ucontrol->value.enumerated.item[0] = 0;
  17216. return 0;
  17217. }
  17218. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  17219. "ZERO", "SLIM4_TX"
  17220. };
  17221. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  17222. "ZERO", "SLIM4_TX"
  17223. };
  17224. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  17225. "ZERO", "WSA_CDC_DMA_TX_0"
  17226. };
  17227. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  17228. "ZERO", "WSA_CDC_DMA_TX_0"
  17229. };
  17230. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  17231. "ZERO", "SENARY_TX"
  17232. };
  17233. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  17234. "ZERO", "INT5_MI2S_TX"
  17235. };
  17236. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  17237. "ZERO", "INT5_MI2S_TX"
  17238. };
  17239. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  17240. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  17241. };
  17242. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  17243. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  17244. };
  17245. static const int const wsa_rx_0_vi_fb_tx_lch_value[] = {
  17246. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  17247. };
  17248. static const int const wsa_rx_0_vi_fb_tx_rch_value[] = {
  17249. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  17250. };
  17251. static const int const mi2s_rx_vi_fb_tx_value[] = {
  17252. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  17253. };
  17254. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  17255. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  17256. };
  17257. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  17258. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  17259. };
  17260. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  17261. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  17262. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  17263. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  17264. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  17265. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  17266. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  17267. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  17268. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  17269. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  17270. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  17271. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  17272. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  17273. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  17274. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  17275. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  17276. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  17277. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  17278. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  17279. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  17280. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  17281. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  17282. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  17283. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  17284. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  17285. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  17286. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  17287. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  17288. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  17289. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  17290. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  17291. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  17292. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  17293. spkr_prot_put_vi_lch_port);
  17294. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  17295. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  17296. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  17297. spkr_prot_put_vi_rch_port);
  17298. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  17299. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  17300. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  17301. spkr_prot_put_vi_lch_port);
  17302. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  17303. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  17304. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  17305. spkr_prot_put_vi_rch_port);
  17306. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  17307. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  17308. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  17309. spkr_prot_put_vi_lch_port);
  17310. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  17311. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  17312. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  17313. spkr_prot_put_vi_lch_port);
  17314. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  17315. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  17316. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  17317. spkr_prot_put_vi_rch_port);
  17318. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  17319. /* Frontend AIF */
  17320. /* Widget name equals to Front-End DAI name<Need confirmation>,
  17321. * Stream name must contains substring of front-end dai name
  17322. */
  17323. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  17324. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  17325. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  17326. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  17327. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  17328. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  17329. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  17330. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  17331. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  17332. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  17333. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  17334. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  17335. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  17336. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  17337. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  17338. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  17339. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  17340. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  17341. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  17342. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  17343. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  17344. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  17345. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  17346. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  17347. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  17348. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  17349. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  17350. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  17351. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  17352. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  17353. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  17354. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  17355. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  17356. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  17357. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  17358. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  17359. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  17360. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  17361. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  17362. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  17363. "VoiceMMode1 Playback", 0, 0, 0, 0),
  17364. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  17365. "VoiceMMode1 Capture", 0, 0, 0, 0),
  17366. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  17367. "VoiceMMode2 Playback", 0, 0, 0, 0),
  17368. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  17369. "VoiceMMode2 Capture", 0, 0, 0, 0),
  17370. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  17371. 0, 0, 0, 0),
  17372. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  17373. 0, 0, 0, 0),
  17374. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  17375. 0, 0, 0, 0),
  17376. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  17377. 0, 0, 0, 0),
  17378. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  17379. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  17380. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  17381. 0, 0, 0, 0),
  17382. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  17383. 0, 0, 0, 0),
  17384. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  17385. 0, 0, 0, 0),
  17386. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  17387. 0, 0, 0, 0),
  17388. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  17389. 0, 0, 0, 0),
  17390. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  17391. 0, 0, 0, 0),
  17392. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  17393. 0, 0, 0, 0),
  17394. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  17395. 0, 0, 0, 0),
  17396. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  17397. 0, 0, 0, 0),
  17398. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  17399. 0, 0, 0, 0),
  17400. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  17401. 0, 0, 0, 0),
  17402. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  17403. 0, 0, 0, 0),
  17404. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  17405. 0, 0, 0, 0),
  17406. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  17407. 0, 0, 0, 0),
  17408. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  17409. 0, 0, 0, 0),
  17410. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  17411. 0, 0, 0, 0),
  17412. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  17413. 0, 0, 0, 0),
  17414. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  17415. 0, 0, 0, 0),
  17416. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  17417. 0, 0, 0, 0),
  17418. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  17419. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  17420. 0, 0, 0, 0),
  17421. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  17422. "INT0 MI2S_RX Hostless Playback",
  17423. 0, 0, 0, 0),
  17424. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  17425. "INT4 MI2S_RX Hostless Playback",
  17426. 0, 0, 0, 0),
  17427. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  17428. "Primary MI2S_RX Hostless Playback",
  17429. 0, 0, 0, 0),
  17430. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  17431. "Secondary MI2S_RX Hostless Playback",
  17432. 0, 0, 0, 0),
  17433. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  17434. "Tertiary MI2S_RX Hostless Playback",
  17435. 0, 0, 0, 0),
  17436. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  17437. "Quaternary MI2S_RX Hostless Playback",
  17438. 0, 0, 0, 0),
  17439. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  17440. "Quinary MI2S_RX Hostless Playback",
  17441. 0, 0, 0, 0),
  17442. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  17443. 0, 0, 0, 0),
  17444. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  17445. 0, 0, 0, 0),
  17446. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  17447. 0, 0, 0, 0),
  17448. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  17449. 0, 0, 0, 0),
  17450. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  17451. 0, 0, 0, 0),
  17452. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  17453. "INT3 MI2S_TX Hostless Capture",
  17454. 0, 0, 0, 0),
  17455. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  17456. "Tertiary MI2S_TX Hostless Capture",
  17457. 0, 0, 0, 0),
  17458. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  17459. "Secondary MI2S_TX Hostless Capture",
  17460. 0, 0, 0, 0),
  17461. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  17462. "Primary MI2S_TX Hostless Capture",
  17463. 0, 0, 0, 0),
  17464. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  17465. 0, 0, 0, 0),
  17466. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  17467. 0, 0, 0, 0),
  17468. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  17469. "Quaternary MI2S_TX Hostless Capture",
  17470. 0, 0, 0, 0),
  17471. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  17472. "Quinary MI2S_TX Hostless Capture",
  17473. 0, 0, 0, 0),
  17474. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  17475. "Primary TDM0 Hostless Playback",
  17476. 0, 0, 0, 0),
  17477. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  17478. "Primary TDM0 Hostless Capture",
  17479. 0, 0, 0, 0),
  17480. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  17481. "Primary TDM1 Hostless Playback",
  17482. 0, 0, 0, 0),
  17483. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  17484. "Primary TDM1 Hostless Capture",
  17485. 0, 0, 0, 0),
  17486. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  17487. "Primary TDM2 Hostless Playback",
  17488. 0, 0, 0, 0),
  17489. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  17490. "Primary TDM2 Hostless Capture",
  17491. 0, 0, 0, 0),
  17492. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  17493. "Primary TDM3 Hostless Playback",
  17494. 0, 0, 0, 0),
  17495. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  17496. "Primary TDM3 Hostless Capture",
  17497. 0, 0, 0, 0),
  17498. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  17499. "Primary TDM4 Hostless Playback",
  17500. 0, 0, 0, 0),
  17501. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  17502. "Primary TDM4 Hostless Capture",
  17503. 0, 0, 0, 0),
  17504. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  17505. "Primary TDM5 Hostless Playback",
  17506. 0, 0, 0, 0),
  17507. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  17508. "Primary TDM5 Hostless Capture",
  17509. 0, 0, 0, 0),
  17510. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  17511. "Primary TDM6 Hostless Playback",
  17512. 0, 0, 0, 0),
  17513. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  17514. "Primary TDM6 Hostless Capture",
  17515. 0, 0, 0, 0),
  17516. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  17517. "Primary TDM7 Hostless Playback",
  17518. 0, 0, 0, 0),
  17519. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  17520. "Primary TDM7 Hostless Capture",
  17521. 0, 0, 0, 0),
  17522. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  17523. "Secondary TDM0 Hostless Playback",
  17524. 0, 0, 0, 0),
  17525. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  17526. "Secondary TDM0 Hostless Capture",
  17527. 0, 0, 0, 0),
  17528. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  17529. "Secondary TDM1 Hostless Playback",
  17530. 0, 0, 0, 0),
  17531. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  17532. "Secondary TDM1 Hostless Capture",
  17533. 0, 0, 0, 0),
  17534. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  17535. "Secondary TDM2 Hostless Playback",
  17536. 0, 0, 0, 0),
  17537. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  17538. "Secondary TDM2 Hostless Capture",
  17539. 0, 0, 0, 0),
  17540. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  17541. "Secondary TDM3 Hostless Playback",
  17542. 0, 0, 0, 0),
  17543. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  17544. "Secondary TDM3 Hostless Capture",
  17545. 0, 0, 0, 0),
  17546. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  17547. "Secondary TDM4 Hostless Playback",
  17548. 0, 0, 0, 0),
  17549. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  17550. "Secondary TDM4 Hostless Capture",
  17551. 0, 0, 0, 0),
  17552. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  17553. "Secondary TDM5 Hostless Playback",
  17554. 0, 0, 0, 0),
  17555. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  17556. "Secondary TDM5 Hostless Capture",
  17557. 0, 0, 0, 0),
  17558. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  17559. "Secondary TDM6 Hostless Playback",
  17560. 0, 0, 0, 0),
  17561. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  17562. "Secondary TDM6 Hostless Capture",
  17563. 0, 0, 0, 0),
  17564. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  17565. "Secondary TDM7 Hostless Playback",
  17566. 0, 0, 0, 0),
  17567. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  17568. "Secondary TDM7 Hostless Capture",
  17569. 0, 0, 0, 0),
  17570. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  17571. "Tertiary TDM0 Hostless Playback",
  17572. 0, 0, 0, 0),
  17573. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  17574. "Tertiary TDM0 Hostless Capture",
  17575. 0, 0, 0, 0),
  17576. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  17577. "Tertiary TDM1 Hostless Playback",
  17578. 0, 0, 0, 0),
  17579. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  17580. "Tertiary TDM1 Hostless Capture",
  17581. 0, 0, 0, 0),
  17582. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  17583. "Tertiary TDM2 Hostless Playback",
  17584. 0, 0, 0, 0),
  17585. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  17586. "Tertiary TDM2 Hostless Capture",
  17587. 0, 0, 0, 0),
  17588. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  17589. "Tertiary TDM3 Hostless Playback",
  17590. 0, 0, 0, 0),
  17591. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  17592. "Tertiary TDM3 Hostless Capture",
  17593. 0, 0, 0, 0),
  17594. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  17595. "Tertiary TDM4 Hostless Playback",
  17596. 0, 0, 0, 0),
  17597. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  17598. "Tertiary TDM4 Hostless Capture",
  17599. 0, 0, 0, 0),
  17600. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  17601. "Tertiary TDM5 Hostless Playback",
  17602. 0, 0, 0, 0),
  17603. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  17604. "Tertiary TDM5 Hostless Capture",
  17605. 0, 0, 0, 0),
  17606. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  17607. "Tertiary TDM6 Hostless Playback",
  17608. 0, 0, 0, 0),
  17609. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  17610. "Tertiary TDM6 Hostless Capture",
  17611. 0, 0, 0, 0),
  17612. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  17613. "Tertiary TDM7 Hostless Playback",
  17614. 0, 0, 0, 0),
  17615. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  17616. "Tertiary TDM7 Hostless Capture",
  17617. 0, 0, 0, 0),
  17618. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  17619. "Quaternary TDM0 Hostless Playback",
  17620. 0, 0, 0, 0),
  17621. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  17622. "Quaternary TDM0 Hostless Capture",
  17623. 0, 0, 0, 0),
  17624. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  17625. "Quaternary TDM1 Hostless Playback",
  17626. 0, 0, 0, 0),
  17627. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  17628. "Quaternary TDM1 Hostless Capture",
  17629. 0, 0, 0, 0),
  17630. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  17631. "Quaternary TDM2 Hostless Playback",
  17632. 0, 0, 0, 0),
  17633. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  17634. "Quaternary TDM2 Hostless Capture",
  17635. 0, 0, 0, 0),
  17636. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  17637. "Quaternary TDM3 Hostless Playback",
  17638. 0, 0, 0, 0),
  17639. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  17640. "Quaternary TDM3 Hostless Capture",
  17641. 0, 0, 0, 0),
  17642. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  17643. "Quaternary TDM4 Hostless Playback",
  17644. 0, 0, 0, 0),
  17645. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  17646. "Quaternary TDM4 Hostless Capture",
  17647. 0, 0, 0, 0),
  17648. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  17649. "Quaternary TDM5 Hostless Playback",
  17650. 0, 0, 0, 0),
  17651. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  17652. "Quaternary TDM5 Hostless Capture",
  17653. 0, 0, 0, 0),
  17654. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  17655. "Quaternary TDM6 Hostless Playback",
  17656. 0, 0, 0, 0),
  17657. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  17658. "Quaternary TDM6 Hostless Capture",
  17659. 0, 0, 0, 0),
  17660. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  17661. "Quaternary TDM7 Hostless Playback",
  17662. 0, 0, 0, 0),
  17663. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  17664. "Quaternary TDM7 Hostless Capture",
  17665. 0, 0, 0, 0),
  17666. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  17667. "Quinary TDM0 Hostless Playback",
  17668. 0, 0, 0, 0),
  17669. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  17670. "Quinary TDM0 Hostless Capture",
  17671. 0, 0, 0, 0),
  17672. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  17673. "Quinary TDM1 Hostless Playback",
  17674. 0, 0, 0, 0),
  17675. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  17676. "Quinary TDM1 Hostless Capture",
  17677. 0, 0, 0, 0),
  17678. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  17679. "Quinary TDM2 Hostless Playback",
  17680. 0, 0, 0, 0),
  17681. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  17682. "Quinary TDM2 Hostless Capture",
  17683. 0, 0, 0, 0),
  17684. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  17685. "Quinary TDM3 Hostless Playback",
  17686. 0, 0, 0, 0),
  17687. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  17688. "Quinary TDM3 Hostless Capture",
  17689. 0, 0, 0, 0),
  17690. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  17691. "Quinary TDM4 Hostless Playback",
  17692. 0, 0, 0, 0),
  17693. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  17694. "Quinary TDM4 Hostless Capture",
  17695. 0, 0, 0, 0),
  17696. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  17697. "Quinary TDM5 Hostless Playback",
  17698. 0, 0, 0, 0),
  17699. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  17700. "Quinary TDM5 Hostless Capture",
  17701. 0, 0, 0, 0),
  17702. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  17703. "Quinary TDM6 Hostless Playback",
  17704. 0, 0, 0, 0),
  17705. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  17706. "Quinary TDM6 Hostless Capture",
  17707. 0, 0, 0, 0),
  17708. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  17709. "Quinary TDM7 Hostless Playback",
  17710. 0, 0, 0, 0),
  17711. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  17712. "Quinary TDM7 Hostless Capture",
  17713. 0, 0, 0, 0),
  17714. /* LSM */
  17715. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  17716. 0, 0, 0, 0),
  17717. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  17718. 0, 0, 0, 0),
  17719. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  17720. 0, 0, 0, 0),
  17721. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  17722. 0, 0, 0, 0),
  17723. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  17724. 0, 0, 0, 0),
  17725. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  17726. 0, 0, 0, 0),
  17727. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  17728. 0, 0, 0, 0),
  17729. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  17730. 0, 0, 0, 0),
  17731. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  17732. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  17733. /* Backend AIF */
  17734. /* Stream name equals to backend dai link stream name */
  17735. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  17736. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  17737. 0, 0, 0, 0),
  17738. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  17739. 0, 0, 0, 0),
  17740. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  17741. 0, 0, 0, 0),
  17742. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  17743. 0, 0, 0, 0),
  17744. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  17745. 0, 0, 0, 0),
  17746. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  17747. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  17748. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  17749. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  17750. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  17751. 0, 0, 0, 0),
  17752. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  17753. 0, 0, 0, 0),
  17754. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  17755. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  17756. 0, 0, 0, 0),
  17757. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  17758. 0, 0, 0, 0),
  17759. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  17760. 0, 0, 0, 0),
  17761. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  17762. "Secondary MI2S Playback SD1",
  17763. 0, 0, 0, 0),
  17764. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  17765. 0, 0, 0, 0),
  17766. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  17767. 0, 0, 0, 0),
  17768. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  17769. 0, 0, 0, 0),
  17770. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  17771. 0, 0, 0, 0),
  17772. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  17773. 0, 0, 0, 0),
  17774. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  17775. 0, 0, 0, 0),
  17776. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  17777. 0, 0, 0, 0),
  17778. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  17779. 0, 0, 0, 0),
  17780. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  17781. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  17782. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  17783. 0, 0, 0, 0),
  17784. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  17785. 0, 0, 0, 0),
  17786. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  17787. 0, 0, 0, 0),
  17788. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  17789. 0, 0, 0, 0),
  17790. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  17791. 0, 0, 0, 0),
  17792. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  17793. 0, 0, 0, 0),
  17794. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  17795. 0, 0, 0, 0),
  17796. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  17797. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  17798. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  17799. 0, 0, 0, 0),
  17800. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  17801. 0, 0, 0, 0),
  17802. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  17803. 0, 0, 0, 0),
  17804. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  17805. 0, 0, 0, 0),
  17806. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  17807. 0, 0, 0, 0),
  17808. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  17809. 0, 0, 0, 0),
  17810. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  17811. 0, 0, 0, 0),
  17812. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  17813. 0, 0, 0, 0),
  17814. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  17815. 0, 0, 0, 0),
  17816. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  17817. 0, 0, 0, 0),
  17818. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  17819. 0, 0, 0, 0),
  17820. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  17821. 0, 0, 0, 0),
  17822. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  17823. 0, 0, 0, 0),
  17824. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  17825. 0, 0, 0, 0),
  17826. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  17827. 0, 0, 0, 0),
  17828. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  17829. 0, 0, 0, 0),
  17830. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  17831. 0, 0, 0, 0),
  17832. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  17833. 0, 0, 0, 0),
  17834. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  17835. 0, 0, 0, 0),
  17836. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  17837. 0, 0, 0, 0),
  17838. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  17839. 0, 0, 0, 0),
  17840. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  17841. 0, 0, 0, 0),
  17842. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  17843. 0, 0, 0, 0),
  17844. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  17845. 0, 0, 0, 0),
  17846. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  17847. 0, 0, 0, 0),
  17848. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  17849. 0, 0, 0, 0),
  17850. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  17851. 0, 0, 0, 0),
  17852. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  17853. 0, 0, 0, 0),
  17854. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  17855. 0, 0, 0, 0),
  17856. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  17857. 0, 0, 0, 0),
  17858. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  17859. 0, 0, 0, 0),
  17860. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  17861. 0, 0, 0, 0),
  17862. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  17863. 0, 0, 0, 0),
  17864. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  17865. 0, 0, 0, 0),
  17866. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  17867. 0, 0, 0, 0),
  17868. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  17869. 0, 0, 0, 0),
  17870. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  17871. 0, 0, 0, 0),
  17872. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  17873. 0, 0, 0, 0),
  17874. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  17875. 0, 0, 0, 0),
  17876. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  17877. 0, 0, 0, 0),
  17878. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  17879. 0, 0, 0, 0),
  17880. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  17881. 0, 0, 0, 0),
  17882. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  17883. 0, 0, 0, 0),
  17884. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  17885. 0, 0, 0, 0),
  17886. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  17887. 0, 0, 0, 0),
  17888. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  17889. 0, 0, 0, 0),
  17890. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  17891. 0, 0, 0, 0),
  17892. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  17893. 0, 0, 0, 0),
  17894. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  17895. 0, 0, 0, 0),
  17896. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  17897. 0, 0, 0, 0),
  17898. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  17899. 0, 0, 0, 0),
  17900. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  17901. 0, 0, 0, 0),
  17902. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  17903. 0, 0, 0, 0),
  17904. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  17905. 0, 0, 0, 0),
  17906. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  17907. 0, 0, 0, 0),
  17908. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  17909. 0, 0, 0, 0),
  17910. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  17911. 0, 0, 0, 0),
  17912. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  17913. 0, 0, 0, 0),
  17914. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  17915. 0, 0, 0, 0),
  17916. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  17917. 0, 0, 0, 0),
  17918. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  17919. 0, 0, 0, 0),
  17920. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  17921. 0, 0, 0, 0),
  17922. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  17923. 0, 0, 0, 0),
  17924. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  17925. 0, 0, 0, 0),
  17926. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  17927. 0, 0, 0, 0),
  17928. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  17929. 0, 0, 0, 0),
  17930. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  17931. 0, 0, 0, 0),
  17932. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  17933. 0, 0, 0, 0),
  17934. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  17935. 0, 0, 0, 0),
  17936. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  17937. 0, 0, 0, 0),
  17938. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  17939. 0, 0, 0, 0),
  17940. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  17941. 0, 0, 0, 0),
  17942. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  17943. 0, 0, 0, 0),
  17944. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  17945. 0, 0, 0, 0),
  17946. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  17947. 0, 0, 0, 0),
  17948. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  17949. 0, 0, 0, 0),
  17950. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  17951. 0, 0, 0, 0),
  17952. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  17953. 0, 0, 0, 0),
  17954. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  17955. 0, 0, 0, 0),
  17956. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  17957. 0, 0, 0, 0),
  17958. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  17959. 0, 0, 0, 0),
  17960. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  17961. 0, 0, 0, 0),
  17962. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  17963. 0, 0, 0, 0),
  17964. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  17965. 0, 0, 0, 0),
  17966. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  17967. 0, 0, 0, 0),
  17968. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  17969. 0, 0, 0, 0),
  17970. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  17971. 0, 0, 0, 0),
  17972. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  17973. 0, 0, 0, 0),
  17974. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  17975. 0, 0, 0, 0),
  17976. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  17977. 0, 0, 0, 0),
  17978. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  17979. 0, 0, 0, 0),
  17980. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  17981. 0, 0, 0, 0),
  17982. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  17983. 0, 0, 0, 0),
  17984. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  17985. 0, 0, 0, 0),
  17986. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  17987. 0, 0, 0, 0),
  17988. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  17989. 0, 0, 0, 0),
  17990. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  17991. 0, 0, 0, 0),
  17992. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  17993. 0, 0, 0, 0),
  17994. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  17995. 0, 0, 0, 0),
  17996. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  17997. 0, 0, 0, 0),
  17998. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  17999. 0, 0, 0, 0),
  18000. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  18001. 0, 0, 0, 0),
  18002. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  18003. 0, 0, 0, 0),
  18004. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  18005. 0, 0, 0, 0),
  18006. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  18007. 0, 0, 0, 0),
  18008. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  18009. 0, 0, 0, 0),
  18010. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  18011. 0, 0, 0, 0),
  18012. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  18013. 0, 0, 0, 0),
  18014. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  18015. 0, 0, 0, 0),
  18016. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  18017. 0, 0, 0, 0),
  18018. /* incall */
  18019. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  18020. 0, 0, 0, 0),
  18021. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  18022. 0, 0, 0, 0),
  18023. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  18024. 0, 0, 0, 0),
  18025. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  18026. 0, 0, 0, 0),
  18027. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  18028. 0, 0, 0, 0),
  18029. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  18030. 0, 0, 0, 0),
  18031. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  18032. 0, 0, 0, 0),
  18033. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  18034. 0, 0, 0, 0),
  18035. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  18036. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  18037. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  18038. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  18039. 0, 0, 0, 0),
  18040. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  18041. 0, 0, 0, 0),
  18042. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  18043. 0, 0, 0, 0),
  18044. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  18045. 0, 0, 0, 0),
  18046. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  18047. 0, 0, 0, 0),
  18048. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  18049. 0, 0, 0, 0),
  18050. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  18051. 0, 0, 0, 0),
  18052. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  18053. 0, 0, 0, 0),
  18054. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  18055. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  18056. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  18057. 0, 0, 0, 0),
  18058. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  18059. 0, 0, 0, 0),
  18060. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  18061. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  18062. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  18063. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  18064. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  18065. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  18066. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  18067. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  18068. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  18069. /* In- call recording */
  18070. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  18071. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  18072. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  18073. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  18074. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  18075. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  18076. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  18077. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  18078. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  18079. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  18080. /* Switch Definitions */
  18081. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  18082. &slim_fm_switch_mixer_controls),
  18083. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  18084. &slim1_fm_switch_mixer_controls),
  18085. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  18086. &slim3_fm_switch_mixer_controls),
  18087. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  18088. &slim4_fm_switch_mixer_controls),
  18089. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  18090. &slim6_fm_switch_mixer_controls),
  18091. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18092. &pcm_rx_switch_mixer_controls),
  18093. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18094. &int0_mi2s_rx_switch_mixer_controls),
  18095. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18096. &int4_mi2s_rx_switch_mixer_controls),
  18097. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18098. &pri_mi2s_rx_switch_mixer_controls),
  18099. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18100. &sec_mi2s_rx_switch_mixer_controls),
  18101. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18102. &tert_mi2s_rx_switch_mixer_controls),
  18103. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18104. &quat_mi2s_rx_switch_mixer_controls),
  18105. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18106. &quin_mi2s_rx_switch_mixer_controls),
  18107. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  18108. &hfp_pri_aux_switch_mixer_controls),
  18109. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  18110. &hfp_aux_switch_mixer_controls),
  18111. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  18112. &hfp_int_switch_mixer_controls),
  18113. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  18114. &hfp_slim7_switch_mixer_controls),
  18115. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  18116. &usb_switch_mixer_controls),
  18117. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  18118. &a2dp_slim7_switch_mixer_controls),
  18119. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  18120. &cdc_dma_wsa_switch_mixer_controls),
  18121. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  18122. &cdc_dma_rx_switch_mixer_controls),
  18123. /* Mixer definitions */
  18124. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18125. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  18126. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18127. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  18128. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18129. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  18130. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18131. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  18132. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18133. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  18134. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18135. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  18136. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18137. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  18138. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  18139. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  18140. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  18141. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  18142. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  18143. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  18144. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18145. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  18146. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18147. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  18148. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18149. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  18150. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18151. quaternary_mi2s_rx_mixer_controls,
  18152. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  18153. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18154. tertiary_mi2s_rx_mixer_controls,
  18155. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  18156. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18157. secondary_mi2s_rx_mixer_controls,
  18158. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  18159. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18160. secondary_mi2s_rx2_mixer_controls,
  18161. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  18162. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18163. primary_mi2s_rx_mixer_controls,
  18164. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  18165. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18166. int0_mi2s_rx_mixer_controls,
  18167. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  18168. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18169. int4_mi2s_rx_mixer_controls,
  18170. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  18171. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18172. quinary_mi2s_rx_mixer_controls,
  18173. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  18174. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18175. pri_tdm_rx_0_mixer_controls,
  18176. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  18177. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18178. pri_tdm_rx_1_mixer_controls,
  18179. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  18180. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18181. pri_tdm_rx_2_mixer_controls,
  18182. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  18183. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18184. pri_tdm_rx_3_mixer_controls,
  18185. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  18186. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18187. pri_tdm_tx_0_mixer_controls,
  18188. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  18189. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18190. sec_tdm_rx_0_mixer_controls,
  18191. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  18192. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18193. sec_tdm_rx_1_mixer_controls,
  18194. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  18195. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18196. sec_tdm_rx_2_mixer_controls,
  18197. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  18198. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18199. sec_tdm_rx_3_mixer_controls,
  18200. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  18201. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18202. sec_tdm_tx_0_mixer_controls,
  18203. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  18204. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18205. tert_tdm_rx_0_mixer_controls,
  18206. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  18207. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18208. tert_tdm_tx_0_mixer_controls,
  18209. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  18210. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18211. tert_tdm_rx_1_mixer_controls,
  18212. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  18213. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18214. tert_tdm_rx_2_mixer_controls,
  18215. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  18216. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18217. tert_tdm_rx_3_mixer_controls,
  18218. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  18219. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18220. tert_tdm_rx_4_mixer_controls,
  18221. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  18222. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18223. quat_tdm_rx_0_mixer_controls,
  18224. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  18225. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18226. quat_tdm_tx_0_mixer_controls,
  18227. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  18228. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18229. quat_tdm_rx_1_mixer_controls,
  18230. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  18231. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18232. quat_tdm_rx_2_mixer_controls,
  18233. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  18234. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18235. quat_tdm_rx_3_mixer_controls,
  18236. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  18237. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18238. quin_tdm_rx_0_mixer_controls,
  18239. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  18240. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18241. quin_tdm_tx_0_mixer_controls,
  18242. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  18243. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18244. quin_tdm_rx_1_mixer_controls,
  18245. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  18246. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18247. quin_tdm_rx_2_mixer_controls,
  18248. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  18249. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18250. quin_tdm_rx_3_mixer_controls,
  18251. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  18252. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18253. wsa_cdc_dma_rx_0_mixer_controls,
  18254. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  18255. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18256. wsa_cdc_dma_rx_1_mixer_controls,
  18257. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  18258. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18259. rx_cdc_dma_rx_0_mixer_controls,
  18260. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  18261. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18262. rx_cdc_dma_rx_1_mixer_controls,
  18263. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  18264. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18265. rx_cdc_dma_rx_2_mixer_controls,
  18266. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  18267. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18268. rx_cdc_dma_rx_3_mixer_controls,
  18269. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  18270. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18271. rx_cdc_dma_rx_4_mixer_controls,
  18272. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  18273. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18274. rx_cdc_dma_rx_5_mixer_controls,
  18275. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  18276. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18277. rx_cdc_dma_rx_6_mixer_controls,
  18278. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  18279. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18280. rx_cdc_dma_rx_7_mixer_controls,
  18281. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  18282. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  18283. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  18284. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  18285. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  18286. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  18287. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  18288. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  18289. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  18290. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  18291. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  18292. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  18293. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  18294. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  18295. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  18296. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  18297. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  18298. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  18299. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  18300. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  18301. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  18302. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  18303. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  18304. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  18305. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  18306. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  18307. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  18308. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  18309. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  18310. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  18311. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  18312. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  18313. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  18314. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  18315. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  18316. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  18317. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  18318. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18319. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  18320. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18321. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  18322. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18323. tert_auxpcm_rx_mixer_controls,
  18324. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  18325. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18326. quat_auxpcm_rx_mixer_controls,
  18327. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  18328. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18329. quin_auxpcm_rx_mixer_controls,
  18330. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  18331. /* incall */
  18332. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  18333. incall_music_delivery_mixer_controls,
  18334. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  18335. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18336. incall_music2_delivery_mixer_controls,
  18337. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  18338. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18339. slimbus_4_rx_mixer_controls,
  18340. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  18341. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18342. slimbus_6_rx_mixer_controls,
  18343. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  18344. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18345. usb_audio_rx_mixer_controls,
  18346. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  18347. /* Voice Mixer */
  18348. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  18349. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  18350. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  18351. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  18352. SND_SOC_NOPM, 0, 0,
  18353. sec_i2s_rx_voice_mixer_controls,
  18354. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  18355. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  18356. SND_SOC_NOPM, 0, 0,
  18357. sec_mi2s_rx_voice_mixer_controls,
  18358. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  18359. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  18360. SND_SOC_NOPM, 0, 0,
  18361. slimbus_rx_voice_mixer_controls,
  18362. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  18363. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  18364. SND_SOC_NOPM, 0, 0,
  18365. bt_sco_rx_voice_mixer_controls,
  18366. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  18367. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  18368. SND_SOC_NOPM, 0, 0,
  18369. afe_pcm_rx_voice_mixer_controls,
  18370. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  18371. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  18372. SND_SOC_NOPM, 0, 0,
  18373. aux_pcm_rx_voice_mixer_controls,
  18374. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  18375. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  18376. SND_SOC_NOPM, 0, 0,
  18377. sec_aux_pcm_rx_voice_mixer_controls,
  18378. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  18379. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  18380. SND_SOC_NOPM, 0, 0,
  18381. tert_aux_pcm_rx_voice_mixer_controls,
  18382. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  18383. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  18384. SND_SOC_NOPM, 0, 0,
  18385. quat_aux_pcm_rx_voice_mixer_controls,
  18386. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  18387. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  18388. SND_SOC_NOPM, 0, 0,
  18389. quin_aux_pcm_rx_voice_mixer_controls,
  18390. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  18391. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  18392. SND_SOC_NOPM, 0, 0,
  18393. hdmi_rx_voice_mixer_controls,
  18394. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  18395. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  18396. SND_SOC_NOPM, 0, 0,
  18397. mi2s_rx_voice_mixer_controls,
  18398. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  18399. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  18400. SND_SOC_NOPM, 0, 0,
  18401. pri_mi2s_rx_voice_mixer_controls,
  18402. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  18403. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  18404. SND_SOC_NOPM, 0, 0,
  18405. int0_mi2s_rx_voice_mixer_controls,
  18406. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  18407. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  18408. SND_SOC_NOPM, 0, 0,
  18409. int4_mi2s_rx_voice_mixer_controls,
  18410. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  18411. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  18412. SND_SOC_NOPM, 0, 0,
  18413. tert_mi2s_rx_voice_mixer_controls,
  18414. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  18415. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  18416. SND_SOC_NOPM, 0, 0,
  18417. quat_mi2s_rx_voice_mixer_controls,
  18418. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  18419. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  18420. SND_SOC_NOPM, 0, 0,
  18421. quin_mi2s_rx_voice_mixer_controls,
  18422. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  18423. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  18424. SND_SOC_NOPM, 0, 0,
  18425. quat_tdm_rx_2_voice_mixer_controls,
  18426. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  18427. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  18428. SND_SOC_NOPM, 0, 0,
  18429. wsa_cdc_dma_rx_0_voice_mixer_controls,
  18430. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  18431. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  18432. SND_SOC_NOPM, 0, 0,
  18433. rx_cdc_dma_rx_0_voice_mixer_controls,
  18434. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  18435. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  18436. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  18437. ARRAY_SIZE(tx_voip_mixer_controls)),
  18438. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  18439. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  18440. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  18441. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  18442. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  18443. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  18444. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18445. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  18446. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18447. int_bt_a2dp_rx_mixer_controls,
  18448. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  18449. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18450. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  18451. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18452. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  18453. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18454. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  18455. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18456. tx_voice2_stub_mixer_controls,
  18457. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  18458. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18459. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  18460. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  18461. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  18462. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  18463. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  18464. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18465. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  18466. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  18467. SND_SOC_NOPM, 0, 0,
  18468. slimbus_6_rx_voice_mixer_controls,
  18469. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  18470. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18471. slimbus_7_rx_voice_mixer_controls,
  18472. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  18473. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18474. slimbus_8_rx_voice_mixer_controls,
  18475. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  18476. /* port mixer */
  18477. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  18478. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  18479. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  18480. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  18481. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  18482. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  18483. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  18484. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  18485. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  18486. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  18487. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  18488. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  18489. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  18490. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  18491. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  18492. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  18493. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  18494. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  18495. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18496. sbus_1_rx_port_mixer_controls,
  18497. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  18498. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18499. bt_sco_rx_port_mixer_controls,
  18500. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  18501. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  18502. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  18503. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  18504. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  18505. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  18506. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  18507. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  18508. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  18509. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  18510. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  18511. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  18512. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  18513. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  18514. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  18515. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  18516. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  18517. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  18518. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  18519. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  18520. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  18521. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  18522. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18523. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  18524. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18525. primary_mi2s_rx_port_mixer_controls,
  18526. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  18527. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18528. sec_mi2s_rx_port_mixer_controls,
  18529. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  18530. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18531. tert_mi2s_rx_port_mixer_controls,
  18532. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  18533. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18534. quat_mi2s_rx_port_mixer_controls,
  18535. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  18536. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18537. quin_mi2s_rx_port_mixer_controls,
  18538. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  18539. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18540. pri_tdm_rx_0_port_mixer_controls,
  18541. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  18542. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18543. pri_tdm_rx_1_port_mixer_controls,
  18544. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  18545. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18546. pri_tdm_rx_2_port_mixer_controls,
  18547. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  18548. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18549. pri_tdm_rx_3_port_mixer_controls,
  18550. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  18551. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18552. sec_tdm_rx_0_port_mixer_controls,
  18553. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  18554. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18555. sec_tdm_rx_1_port_mixer_controls,
  18556. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  18557. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18558. sec_tdm_rx_2_port_mixer_controls,
  18559. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  18560. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18561. sec_tdm_rx_3_port_mixer_controls,
  18562. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  18563. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  18564. sec_tdm_rx_7_port_mixer_controls,
  18565. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  18566. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18567. tert_tdm_rx_0_port_mixer_controls,
  18568. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  18569. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18570. tert_tdm_rx_1_port_mixer_controls,
  18571. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  18572. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18573. tert_tdm_rx_2_port_mixer_controls,
  18574. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  18575. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18576. tert_tdm_rx_3_port_mixer_controls,
  18577. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  18578. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18579. quat_tdm_rx_0_port_mixer_controls,
  18580. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  18581. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18582. quat_tdm_rx_1_port_mixer_controls,
  18583. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  18584. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18585. quat_tdm_rx_2_port_mixer_controls,
  18586. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  18587. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18588. quat_tdm_rx_3_port_mixer_controls,
  18589. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  18590. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18591. quin_tdm_rx_0_port_mixer_controls,
  18592. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  18593. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18594. quin_tdm_rx_1_port_mixer_controls,
  18595. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  18596. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18597. quin_tdm_rx_2_port_mixer_controls,
  18598. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  18599. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18600. quin_tdm_rx_3_port_mixer_controls,
  18601. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  18602. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18603. int0_mi2s_rx_port_mixer_controls,
  18604. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  18605. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18606. int4_mi2s_rx_port_mixer_controls,
  18607. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  18608. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18609. wsa_cdc_dma_rx_0_port_mixer_controls,
  18610. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  18611. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18612. rx_cdc_dma_rx_0_port_mixer_controls,
  18613. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  18614. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  18615. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  18616. ARRAY_SIZE(tx_qchat_mixer_controls)),
  18617. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  18618. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  18619. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  18620. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  18621. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  18622. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  18623. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  18624. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  18625. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  18626. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  18627. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  18628. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  18629. /* lsm mixer definitions */
  18630. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  18631. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  18632. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  18633. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  18634. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  18635. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  18636. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  18637. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  18638. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  18639. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  18640. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  18641. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  18642. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  18643. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  18644. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  18645. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  18646. /* Virtual Pins to force backends ON atm */
  18647. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  18648. SND_SOC_DAPM_INPUT("BE_IN"),
  18649. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  18650. &slim0_rx_vi_fb_lch_mux),
  18651. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  18652. &slim0_rx_vi_fb_rch_mux),
  18653. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  18654. &wsa_rx_0_vi_fb_lch_mux),
  18655. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  18656. &wsa_rx_0_vi_fb_rch_mux),
  18657. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  18658. &mi2s_rx_vi_fb_mux),
  18659. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  18660. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  18661. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  18662. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  18663. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  18664. &voc_ext_ec_mux),
  18665. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  18666. &ext_ec_ref_mux_ul1),
  18667. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  18668. &ext_ec_ref_mux_ul2),
  18669. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  18670. &ext_ec_ref_mux_ul3),
  18671. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  18672. &ext_ec_ref_mux_ul4),
  18673. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  18674. &ext_ec_ref_mux_ul5),
  18675. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  18676. &ext_ec_ref_mux_ul6),
  18677. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  18678. &ext_ec_ref_mux_ul8),
  18679. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  18680. &ext_ec_ref_mux_ul9),
  18681. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  18682. &ext_ec_ref_mux_ul10),
  18683. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  18684. &ext_ec_ref_mux_ul16),
  18685. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  18686. &ext_ec_ref_mux_ul17),
  18687. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  18688. &ext_ec_ref_mux_ul18),
  18689. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  18690. &ext_ec_ref_mux_ul19),
  18691. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  18692. &ext_ec_ref_mux_ul28),
  18693. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  18694. &ext_ec_ref_mux_ul29),
  18695. };
  18696. static const struct snd_soc_dapm_route intercon[] = {
  18697. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18698. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18699. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18700. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18701. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18702. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18703. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18704. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18705. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18706. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18707. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18708. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18709. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18710. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18711. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18712. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18713. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18714. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  18715. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18716. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18717. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18718. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18719. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18720. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18721. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18722. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18723. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18724. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18725. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18726. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18727. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18728. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18729. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18730. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18731. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18732. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  18733. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18734. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18735. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18736. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18737. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18738. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18739. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18740. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18741. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18742. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18743. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18744. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18745. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18746. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18747. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18748. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18749. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18750. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  18751. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18752. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18753. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18754. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18755. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18756. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18757. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18758. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18759. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18760. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18761. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18762. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18763. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18764. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18765. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18766. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18767. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18768. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  18769. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18770. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18771. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18772. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18773. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18774. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18775. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18776. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18777. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18778. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18779. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18780. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18781. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18782. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18783. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18784. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18785. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18786. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  18787. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18788. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18789. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18790. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18791. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18792. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18793. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18794. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18795. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18796. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18797. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18798. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18799. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18800. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18801. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18802. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18803. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18804. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  18805. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18806. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18807. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18808. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18809. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18810. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18811. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18812. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18813. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18814. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18815. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18816. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18817. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18818. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18819. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18820. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18821. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18822. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  18823. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18824. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18825. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18826. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18827. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18828. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18829. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18830. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18831. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18832. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18833. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18834. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18835. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18836. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18837. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18838. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18839. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18840. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  18841. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18842. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18843. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18844. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18845. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18846. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18847. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18848. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18849. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18850. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18851. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18852. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18853. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18854. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18855. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18856. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18857. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18858. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  18859. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18860. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18861. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18862. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18863. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18864. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18865. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18866. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18867. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18868. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18869. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18870. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18871. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18872. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18873. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18874. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18875. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18876. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  18877. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18878. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18879. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18880. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18881. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18882. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18883. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18884. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18885. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18886. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18887. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18888. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18889. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18890. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18891. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18892. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18893. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18894. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  18895. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18896. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18897. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18898. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18899. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18900. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18901. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18902. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18903. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18904. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18905. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18906. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18907. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18908. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18909. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18910. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18911. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18912. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  18913. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18914. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18915. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18916. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18917. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18918. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18919. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18920. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18921. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18922. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18923. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18924. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18925. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18926. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18927. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18928. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18929. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18930. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  18931. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18932. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18933. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18934. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18935. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18936. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18937. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18938. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18939. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18940. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18941. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18942. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18943. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18944. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18945. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18946. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18947. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18948. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  18949. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18950. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18951. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18952. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18953. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18954. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18955. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18956. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18957. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18958. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18959. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18960. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18961. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18962. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18963. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18964. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18965. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18966. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  18967. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  18968. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  18969. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  18970. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  18971. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  18972. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  18973. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  18974. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  18975. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  18976. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  18977. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  18978. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  18979. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  18980. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  18981. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  18982. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  18983. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  18984. {"HDMI", NULL, "HDMI Mixer"},
  18985. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  18986. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  18987. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  18988. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  18989. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  18990. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  18991. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  18992. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  18993. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  18994. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  18995. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  18996. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  18997. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  18998. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  18999. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  19000. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  19001. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  19002. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  19003. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  19004. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  19005. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  19006. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  19007. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  19008. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  19009. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  19010. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  19011. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  19012. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  19013. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  19014. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  19015. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  19016. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  19017. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  19018. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  19019. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  19020. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  19021. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19022. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19023. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19024. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19025. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19026. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19027. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19028. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19029. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19030. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19031. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19032. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19033. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19034. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19035. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19036. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19037. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19038. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  19039. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19040. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19041. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19042. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19043. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19044. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19045. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19046. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19047. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19048. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19049. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19050. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19051. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19052. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19053. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19054. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19055. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19056. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  19057. /* incall */
  19058. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  19059. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  19060. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  19061. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  19062. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  19063. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19064. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19065. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19066. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19067. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  19068. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19069. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19070. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19071. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19072. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  19073. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19074. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19075. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19076. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19077. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19078. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19079. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19080. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19081. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19082. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19083. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19084. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19085. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19086. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19087. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19088. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19089. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19090. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  19091. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19092. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19093. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19094. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19095. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19096. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19097. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19098. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19099. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19100. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19101. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19102. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19103. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19104. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19105. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19106. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19107. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19108. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  19109. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19110. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19111. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19112. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19113. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19114. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19115. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19116. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19117. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19118. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19119. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19120. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19121. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19122. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19123. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19124. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19125. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19126. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  19127. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19128. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19129. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19130. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19131. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19132. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19133. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19134. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19135. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19136. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19137. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19138. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19139. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19140. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19141. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19142. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19143. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19144. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  19145. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19146. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19147. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19148. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19149. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19150. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19151. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  19152. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19153. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19154. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19155. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19156. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19157. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19158. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19159. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19160. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19161. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19162. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19163. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19164. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19165. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19166. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19167. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19168. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19169. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19170. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19171. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19172. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19173. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19174. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19175. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19176. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19177. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19178. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19179. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19180. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19181. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19182. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19183. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19184. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19185. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19186. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19187. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19188. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19189. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19190. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19191. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19192. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19193. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19194. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19195. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19196. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19197. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19198. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19199. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19200. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19201. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19202. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19203. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19204. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19205. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19206. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19207. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19208. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19209. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19210. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19211. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19212. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19213. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19214. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  19215. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19216. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19217. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19218. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19219. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19220. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19221. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19222. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19223. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19224. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19225. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19226. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19227. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19228. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19229. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19230. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19231. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  19232. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19233. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19234. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19235. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19236. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19237. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19238. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19239. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19240. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19241. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19242. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19243. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19244. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19245. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19246. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19247. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  19248. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19249. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19250. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19251. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19252. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19253. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19254. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19255. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19256. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19257. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19258. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19259. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19260. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19261. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19262. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19263. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  19264. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19265. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  19266. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19267. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19268. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19269. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19270. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19271. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19272. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19273. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19274. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19275. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19276. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19277. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19278. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19279. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19280. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19281. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19282. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19283. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19284. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  19285. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19286. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19287. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19288. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19289. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19290. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19291. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19292. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19293. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19294. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19295. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19296. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19297. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19298. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19299. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19300. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  19301. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19302. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19303. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19304. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19305. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19306. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19307. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19308. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19309. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19310. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19311. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19312. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19313. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19314. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19315. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19316. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  19317. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19318. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19319. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19320. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19321. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19322. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19323. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19324. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19325. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19326. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19327. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19328. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19329. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19330. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19331. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19332. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19333. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19334. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  19335. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19336. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19337. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19338. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19339. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19340. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19341. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19342. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19343. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19344. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19345. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19346. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19347. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19348. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19349. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19350. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19351. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19352. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  19353. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19354. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19355. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19356. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19357. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19358. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19359. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19360. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19361. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19362. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19363. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19364. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19365. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19366. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19367. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19368. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19369. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19370. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  19371. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19372. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19373. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19374. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19375. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19376. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19377. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19378. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19379. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19380. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19381. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19382. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19383. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19384. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19385. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19386. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19387. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19388. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  19389. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19390. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19391. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19392. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19393. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19394. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19395. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19396. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19397. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19398. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19399. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19400. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19401. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19402. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19403. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19404. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19405. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19406. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  19407. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19408. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19409. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19410. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19411. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19412. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19413. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19414. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19415. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19416. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19417. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19418. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19419. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19420. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19421. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19422. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19423. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  19424. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19425. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19426. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19427. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19428. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19429. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19430. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19431. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19432. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19433. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19434. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19435. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19436. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19437. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19438. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19439. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19440. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19441. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  19442. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19443. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19444. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19445. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19446. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19447. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19448. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19449. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19450. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19451. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19452. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19453. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19454. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19455. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19456. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19457. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19458. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19459. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  19460. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19461. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19462. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19463. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19464. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19465. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19466. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19467. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19468. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19469. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19470. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19471. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19472. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19473. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19474. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19475. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19476. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19477. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  19478. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19479. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19480. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19481. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19482. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19483. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19484. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19485. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19486. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19487. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19488. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19489. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19490. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19491. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19492. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19493. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19494. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19495. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  19496. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19497. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19498. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19499. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19500. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19501. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19502. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19503. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19504. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19505. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19506. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19507. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19508. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19509. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19510. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19511. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19512. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  19513. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19514. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19515. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19516. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19517. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19518. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19519. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19520. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19521. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19522. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19523. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19524. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19525. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19526. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19527. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19528. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19529. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19530. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  19531. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19532. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19533. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19534. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19535. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19536. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19537. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19538. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19539. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19540. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19541. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19542. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19543. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19544. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19545. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19546. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19547. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  19548. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19549. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19550. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19551. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19552. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19553. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19554. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19555. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19556. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19557. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19558. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19559. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19560. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19561. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19562. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19563. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19564. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19565. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  19566. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19567. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19568. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19569. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19570. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19571. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19572. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19573. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19574. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19575. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19576. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19577. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19578. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19579. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19580. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19581. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19582. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19583. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  19584. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19585. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19586. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19587. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19588. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19589. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19590. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19591. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19592. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19593. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19594. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19595. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19596. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19597. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19598. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19599. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19600. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19601. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  19602. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19603. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19604. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19605. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19606. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19607. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19608. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19609. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19610. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19611. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19612. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19613. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19614. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19615. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19616. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19617. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19618. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19619. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  19620. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19621. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19622. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19623. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19624. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19625. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19626. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19627. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19628. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19629. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19630. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19631. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19632. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19633. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19634. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19635. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19636. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19637. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19638. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  19639. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19640. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19641. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19642. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19643. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19644. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19645. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19646. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19647. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19648. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19649. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19650. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19651. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19652. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19653. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19654. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19655. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  19656. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19657. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19658. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19659. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19660. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19661. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19662. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19663. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19664. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19665. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19666. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19667. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19668. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19669. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19670. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19671. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19672. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19673. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19674. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  19675. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19676. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19677. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19678. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19679. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19680. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19681. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19682. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19683. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19684. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19685. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19686. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19687. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19688. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19689. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19690. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19691. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19692. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19693. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  19694. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19695. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19696. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19697. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19698. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19699. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19700. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19701. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19702. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19703. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19704. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19705. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19706. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19707. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19708. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19709. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19710. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19711. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19712. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  19713. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19714. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19715. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19716. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19717. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19718. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19719. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19720. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19721. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19722. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19723. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19724. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19725. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19726. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19727. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19728. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19729. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19730. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19731. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  19732. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19733. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19734. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19735. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19736. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19737. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19738. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19739. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19740. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19741. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19742. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19743. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19744. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19745. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19746. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19747. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19748. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  19749. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19750. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19751. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19752. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19753. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19754. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19755. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19756. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19757. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19758. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19759. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19760. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19761. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19762. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19763. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19764. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19765. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19766. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19767. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  19768. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19769. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19770. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19771. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19772. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19773. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19774. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19775. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19776. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19777. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19778. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19779. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19780. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19781. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19782. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19783. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19784. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19785. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19786. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  19787. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19788. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19789. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19790. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19791. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19792. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19793. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19794. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19795. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19796. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19797. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19798. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19799. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19800. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19801. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19802. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19803. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19804. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19805. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  19806. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  19807. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  19808. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  19809. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  19810. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  19811. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  19812. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  19813. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19814. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19815. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19816. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19817. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19818. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19819. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19820. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19821. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19822. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19823. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19824. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19825. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19826. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19827. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19828. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19829. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19830. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19831. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19832. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19833. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19834. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19835. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  19836. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19837. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19838. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19839. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  19840. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19841. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19842. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19843. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19844. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  19845. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  19846. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  19847. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19848. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19849. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19850. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19851. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19852. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19853. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19854. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19855. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19856. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19857. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19858. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19859. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19860. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19861. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19862. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19863. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19864. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19865. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19866. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19867. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19868. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19869. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19870. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19871. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19872. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19873. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19874. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19875. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19876. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19877. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19878. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19879. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19880. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19881. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19882. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19883. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19884. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19885. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19886. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19887. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19888. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19889. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19890. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19891. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19892. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19893. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19894. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19895. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19896. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19897. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19898. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19899. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19900. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19901. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19902. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19903. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19904. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19905. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19906. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19907. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19908. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19909. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19910. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19911. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19912. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19913. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19914. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19915. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19916. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19917. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19918. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19919. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19920. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19921. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19922. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19923. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19924. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19925. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19926. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19927. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19928. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19929. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19930. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19931. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19932. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19933. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19934. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19935. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19936. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19937. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19938. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19939. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19940. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19941. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19942. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19943. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19944. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19945. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19946. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19947. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19948. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19949. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19950. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19951. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19952. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19953. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19954. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19955. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19956. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19957. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19958. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19959. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19960. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19961. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19962. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19963. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19964. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19965. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19966. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19967. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19968. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19969. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19970. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19971. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19972. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19973. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19974. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19975. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19976. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19977. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19978. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19979. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19980. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19981. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19982. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19983. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19984. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19985. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19986. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19987. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19988. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19989. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19990. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19991. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19992. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19993. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19994. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19995. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19996. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19997. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19998. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19999. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20000. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20001. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20002. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20003. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20004. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20005. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20006. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20007. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20008. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20009. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20010. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20011. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20012. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20013. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20014. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20015. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20016. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20017. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20018. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20019. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20020. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20021. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20022. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20023. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20024. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20025. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20026. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20027. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20028. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20029. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20030. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20031. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20032. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20033. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20034. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20035. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20036. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20037. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20038. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20039. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20040. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20041. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20042. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20043. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20044. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20045. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20046. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20047. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20048. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20049. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20050. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20051. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20052. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20053. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20054. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20055. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20056. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20057. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20058. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20059. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20060. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20061. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20062. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20063. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20064. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20065. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20066. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20067. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20068. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20069. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20070. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20071. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20072. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20073. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20074. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20075. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20076. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20077. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20078. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20079. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20080. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20081. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20082. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20083. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20084. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20085. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20086. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20087. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20088. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20089. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20090. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20091. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20092. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20093. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20094. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20095. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20096. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20097. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20098. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20099. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20100. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20101. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20102. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20103. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20104. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20105. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20106. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20107. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20108. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20109. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20110. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20111. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20112. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20113. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20114. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20115. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20116. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20117. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20118. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20119. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20120. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20121. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20122. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20123. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20124. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20125. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20126. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20127. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20128. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20129. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20130. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20131. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20132. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20133. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20134. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20135. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20136. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20137. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20138. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20139. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20140. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20141. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20142. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20143. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20144. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20145. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20146. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20147. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20148. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20149. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20150. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20151. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20152. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20153. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20154. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20155. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20156. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20157. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20158. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20159. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20160. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20161. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20162. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20163. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20164. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20165. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20166. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20167. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20168. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20169. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20170. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20171. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20172. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20173. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20174. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20175. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20176. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20177. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20178. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20179. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20180. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20181. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20182. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20183. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20184. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20185. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20186. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20187. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20188. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20189. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20190. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20191. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20192. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20193. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20194. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20195. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20196. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20197. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20198. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20199. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20200. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20201. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20202. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20203. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20204. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20205. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20206. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20207. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20208. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20209. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20210. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20211. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20212. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20213. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20214. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20215. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20216. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20217. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20218. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20219. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20220. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20221. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20222. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20223. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  20224. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20225. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  20226. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20227. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20228. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20229. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20230. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20231. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20232. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20233. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20234. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20235. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20236. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20237. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20238. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20239. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20240. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20241. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20242. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20243. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20244. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20245. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20246. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20247. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20248. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20249. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20250. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20251. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20252. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20253. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20254. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20255. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20256. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20257. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20258. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20259. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20260. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20261. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20262. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20263. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20264. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20265. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20266. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20267. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20268. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20269. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20270. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20271. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20272. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20273. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20274. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20275. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20276. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20277. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20278. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20279. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20280. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20281. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20282. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20283. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20284. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20285. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20286. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20287. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20288. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20289. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20290. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20291. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20292. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20293. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20294. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20295. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20296. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20297. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20298. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20299. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20300. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20301. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20302. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20303. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20304. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20305. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20306. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20307. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20308. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20309. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20310. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20311. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20312. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20313. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20314. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20315. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20316. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  20317. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  20318. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20319. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20320. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20321. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20322. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20323. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20324. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20325. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20326. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20327. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20328. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20329. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20330. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20331. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20332. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20333. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20334. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  20335. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  20336. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20337. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20338. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20339. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20340. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20341. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20342. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20343. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20344. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20345. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20346. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20347. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20348. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20349. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20350. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20351. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20352. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  20353. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20354. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20355. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20356. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20357. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20358. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20359. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20360. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20361. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20362. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20363. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20364. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20365. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20366. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20367. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20368. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20369. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  20370. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20371. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20372. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20373. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20374. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20375. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20376. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20377. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20378. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20379. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20380. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20381. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20382. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20383. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20384. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20385. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20386. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20387. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20388. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20389. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20390. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20391. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20392. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20393. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20394. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20395. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20396. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20397. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20398. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20399. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20400. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20401. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20402. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20403. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20404. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20405. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  20406. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20407. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  20408. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  20409. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  20410. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  20411. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  20412. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  20413. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  20414. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  20415. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  20416. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  20417. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  20418. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  20419. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  20420. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  20421. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  20422. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  20423. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  20424. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20425. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20426. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20427. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20428. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20429. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20430. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20431. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20432. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20433. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20434. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20435. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20436. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20437. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20438. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20439. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20440. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  20441. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  20442. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20443. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20444. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20445. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20446. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20447. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20448. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20449. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20450. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20451. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20452. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20453. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20454. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20455. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20456. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20457. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20458. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  20459. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  20460. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20461. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20462. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20463. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20464. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20465. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20466. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20467. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20468. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20469. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20470. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20471. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20472. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20473. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20474. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20475. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20476. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  20477. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20478. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20479. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20480. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20481. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20482. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20483. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20484. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20485. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20486. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20487. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20488. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20489. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20490. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20491. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20492. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20493. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  20494. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20495. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20496. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20497. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20498. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20499. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20500. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20501. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20502. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20503. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20504. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20505. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20506. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20507. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20508. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20509. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20510. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  20511. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20512. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20513. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20514. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20515. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20516. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  20517. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20518. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20519. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20520. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  20521. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20522. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20523. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20524. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20525. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20526. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  20527. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20528. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20529. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20530. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20531. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20532. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  20533. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20534. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20535. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20536. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20537. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20538. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  20539. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20540. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20541. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20542. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20543. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20544. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  20545. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20546. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20547. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20548. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20549. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20550. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  20551. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  20552. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20553. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20554. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20555. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20556. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  20557. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20558. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20559. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20560. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20561. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20562. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  20563. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20564. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20565. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20566. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20567. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20568. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  20569. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20570. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20571. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20572. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20573. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20574. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  20575. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20576. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20577. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20578. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20579. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20580. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  20581. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20582. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20583. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20584. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20585. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20586. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  20587. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20588. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20589. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20590. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20591. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20592. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  20593. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20594. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20595. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20596. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20597. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20598. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  20599. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20600. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20601. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20602. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20603. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20604. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  20605. {"HDMI", NULL, "HDMI_DL_HL"},
  20606. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20607. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20608. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20609. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20610. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20611. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  20612. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20613. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20614. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20615. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20616. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20617. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  20618. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20619. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20620. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20621. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20622. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20623. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  20624. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20625. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20626. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20627. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20628. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20629. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  20630. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20631. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20632. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20633. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20634. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20635. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  20636. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20637. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20638. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20639. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20640. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  20641. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20642. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20643. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20644. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20645. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  20646. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20647. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  20648. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20649. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20650. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  20651. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20652. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20653. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  20654. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20655. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20656. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20657. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20658. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20659. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20660. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  20661. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  20662. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  20663. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  20664. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20665. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20666. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20667. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20668. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20669. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20670. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  20671. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  20672. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  20673. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20674. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  20675. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20676. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20677. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20678. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20679. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20680. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20681. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20682. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20683. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20684. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20685. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20686. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20687. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20688. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20689. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20690. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20691. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20692. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20693. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20694. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20695. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20696. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20697. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20698. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20699. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20700. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20701. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20702. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20703. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20704. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20705. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20706. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20707. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20708. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20709. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20710. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  20711. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  20712. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  20713. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20714. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  20715. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20716. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20717. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20718. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20719. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20720. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20721. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20722. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20723. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20724. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20725. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20726. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20727. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20728. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20729. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20730. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20731. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20732. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20733. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20734. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20735. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20736. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20737. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20738. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20739. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20740. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20741. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20742. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20743. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20744. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20745. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20746. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20747. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20748. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20749. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  20750. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  20751. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  20752. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  20753. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  20754. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  20755. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  20756. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  20757. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  20758. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  20759. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  20760. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  20761. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  20762. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  20763. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  20764. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  20765. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  20766. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  20767. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  20768. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  20769. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  20770. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  20771. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  20772. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  20773. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  20774. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  20775. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  20776. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  20777. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  20778. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  20779. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  20780. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  20781. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  20782. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  20783. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  20784. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  20785. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  20786. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  20787. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  20788. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  20789. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  20790. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  20791. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  20792. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  20793. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  20794. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  20795. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  20796. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  20797. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  20798. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  20799. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  20800. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  20801. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  20802. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  20803. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  20804. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  20805. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  20806. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  20807. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  20808. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  20809. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  20810. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  20811. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  20812. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  20813. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  20814. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  20815. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  20816. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  20817. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  20818. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  20819. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  20820. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  20821. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  20822. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  20823. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  20824. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  20825. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  20826. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  20827. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  20828. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  20829. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  20830. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  20831. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  20832. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  20833. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  20834. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  20835. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  20836. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  20837. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  20838. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  20839. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  20840. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  20841. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  20842. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  20843. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  20844. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  20845. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  20846. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  20847. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  20848. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20849. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20850. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20851. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20852. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20853. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20854. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20855. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20856. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20857. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20858. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20859. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20860. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  20861. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20862. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20863. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20864. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20865. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20866. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20867. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20868. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20869. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20870. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20871. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20872. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20873. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  20874. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20875. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20876. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20877. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20878. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20879. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20880. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20881. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20882. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20883. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20884. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20885. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20886. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  20887. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20888. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20889. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20890. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20891. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20892. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20893. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20894. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20895. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20896. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20897. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20898. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20899. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  20900. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20901. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20902. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20903. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20904. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20905. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20906. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20907. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20908. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20909. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20910. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20911. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20912. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  20913. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20914. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20915. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20916. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20917. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20918. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20919. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20920. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20921. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20922. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20923. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  20924. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20925. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20926. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20927. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20928. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20929. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20930. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20931. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20932. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20933. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20934. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  20935. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20936. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20937. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20938. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20939. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20940. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20941. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20942. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20943. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20944. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20945. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  20946. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  20947. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  20948. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  20949. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  20950. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  20951. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  20952. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  20953. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  20954. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  20955. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  20956. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  20957. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  20958. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  20959. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  20960. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  20961. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  20962. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  20963. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  20964. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  20965. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  20966. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  20967. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  20968. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  20969. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  20970. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  20971. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  20972. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  20973. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  20974. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  20975. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  20976. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  20977. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  20978. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  20979. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  20980. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  20981. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  20982. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  20983. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  20984. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  20985. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  20986. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  20987. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  20988. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  20989. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  20990. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  20991. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  20992. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  20993. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  20994. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  20995. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  20996. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  20997. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  20998. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  20999. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  21000. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  21001. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  21002. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  21003. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  21004. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  21005. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  21006. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  21007. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  21008. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  21009. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  21010. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  21011. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  21012. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  21013. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  21014. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  21015. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  21016. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  21017. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  21018. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  21019. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  21020. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  21021. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  21022. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  21023. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  21024. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  21025. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  21026. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  21027. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  21028. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  21029. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  21030. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  21031. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  21032. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  21033. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  21034. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  21035. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  21036. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  21037. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  21038. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  21039. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  21040. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  21041. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  21042. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  21043. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  21044. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  21045. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  21046. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  21047. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  21048. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  21049. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  21050. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  21051. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  21052. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21053. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21054. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21055. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21056. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21057. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21058. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21059. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21060. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21061. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21062. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21063. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21064. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21065. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21066. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21067. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21068. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21069. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21070. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21071. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21072. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  21073. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21074. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21075. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21076. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21077. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21078. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21079. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21080. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21081. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21082. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21083. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21084. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21085. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21086. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21087. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21088. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21089. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21090. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21091. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21092. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21093. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  21094. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21095. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21096. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21097. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21098. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21099. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21100. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21101. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21102. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21103. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21104. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21105. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21106. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21107. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21108. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21109. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21110. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21111. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21112. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21113. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21114. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  21115. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21116. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21117. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21118. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21119. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21120. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21121. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21122. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21123. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21124. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21125. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21126. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21127. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21128. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21129. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21130. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21131. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21132. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21133. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21134. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21135. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  21136. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21137. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21138. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21139. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21140. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21141. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21142. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21143. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21144. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21145. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21146. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21147. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21148. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21149. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21150. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21151. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21152. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21153. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21154. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21155. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21156. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  21157. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21158. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21159. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21160. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21161. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21162. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21163. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21164. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21165. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21166. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21167. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21168. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21169. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21170. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21171. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21172. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21173. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21174. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21175. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21176. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21177. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  21178. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21179. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21180. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21181. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21182. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21183. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21184. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21185. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21186. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21187. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21188. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21189. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21190. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21191. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21192. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21193. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21194. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21195. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21196. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21197. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21198. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  21199. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21200. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21201. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21202. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21203. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21204. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21205. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21206. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21207. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21208. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21209. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21210. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21211. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21212. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21213. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21214. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21215. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21216. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21217. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21218. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21219. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  21220. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  21221. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  21222. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21223. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21224. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21225. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21226. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21227. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21228. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21229. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21230. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21231. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21232. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21233. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21234. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21235. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21236. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21237. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21238. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21239. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21240. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21241. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21242. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  21243. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21244. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21245. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21246. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21247. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21248. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21249. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21250. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21251. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21252. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21253. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21254. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21255. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21256. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21257. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21258. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21259. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21260. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21261. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21262. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21263. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  21264. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21265. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21266. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21267. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21268. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21269. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21270. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21271. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21272. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21273. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21274. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21275. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21276. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21277. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21278. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21279. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21280. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21281. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21282. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21283. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21284. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  21285. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21286. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21287. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21288. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21289. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21290. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21291. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21292. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21293. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21294. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21295. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21296. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21297. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21298. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21299. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21300. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21301. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21302. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21303. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21304. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21305. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  21306. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21307. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21308. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21309. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21310. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21311. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21312. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21313. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21314. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21315. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21316. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21317. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21318. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21319. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21320. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21321. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21322. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21323. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21324. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21325. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21326. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  21327. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21328. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21329. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21330. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21331. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21332. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21333. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21334. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21335. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21336. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21337. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21338. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21339. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21340. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21341. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21342. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21343. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21344. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21345. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21346. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21347. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  21348. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21349. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21350. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21351. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21352. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21353. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21354. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21355. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21356. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21357. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21358. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21359. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21360. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21361. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21362. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21363. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21364. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21365. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21366. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21367. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21368. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  21369. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21370. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21371. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21372. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21373. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21374. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21375. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21376. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21377. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21378. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21379. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21380. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21381. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21382. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21383. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21384. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21385. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21386. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21387. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21388. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21389. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  21390. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21391. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21392. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21393. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21394. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21395. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21396. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21397. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21398. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21399. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21400. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21401. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21402. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21403. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21404. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21405. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21406. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21407. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21408. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21409. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21410. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  21411. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21412. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21413. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21414. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21415. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21416. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21417. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21418. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21419. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21420. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21421. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21422. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21423. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21424. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21425. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21426. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21427. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21428. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21429. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21430. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21431. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  21432. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21433. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21434. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21435. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21436. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21437. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21438. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21439. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21440. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21441. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21442. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21443. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21444. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21445. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21446. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21447. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21448. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21449. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21450. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21451. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21452. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  21453. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21454. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21455. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21456. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21457. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21458. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21459. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21460. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21461. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21462. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21463. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21464. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21465. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21466. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21467. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21468. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21469. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21470. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21471. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21472. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21473. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  21474. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21475. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21476. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21477. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21478. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21479. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21480. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21481. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21482. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21483. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21484. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21485. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  21486. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21487. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21488. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21489. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21490. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21491. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21492. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21493. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21494. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21495. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21496. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21497. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  21498. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21499. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21500. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21501. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21502. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21503. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21504. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21505. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21506. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21507. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21508. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21509. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21510. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21511. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21512. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21513. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21514. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21515. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21516. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21517. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21518. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21519. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21520. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21521. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  21522. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21523. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21524. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  21525. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  21526. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  21527. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  21528. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  21529. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  21530. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21531. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21532. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21533. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21534. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21535. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21536. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  21537. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21538. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21539. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21540. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21541. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  21542. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21543. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21544. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21545. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  21546. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21547. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21548. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21549. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  21550. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21551. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21552. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21553. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  21554. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21555. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21556. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21557. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21558. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21559. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21560. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21561. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21562. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21563. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  21564. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21565. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21566. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21567. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21568. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21569. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21570. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21571. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21572. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21573. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  21574. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21575. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21576. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21577. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21578. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21579. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21580. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21581. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21582. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21583. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21584. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21585. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  21586. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21587. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21588. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21589. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21590. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21591. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21592. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21593. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21594. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21595. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21596. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21597. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  21598. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21599. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21600. {"STUB_RX", NULL, "STUB_RX Mixer"},
  21601. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21602. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21603. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  21604. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21605. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21606. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  21607. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21608. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21609. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21610. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21611. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21612. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  21613. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21614. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21615. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21616. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21617. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21618. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  21619. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21620. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21621. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21622. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  21623. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21624. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21625. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  21626. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  21627. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21628. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  21629. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  21630. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  21631. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  21632. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21633. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21634. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21635. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21636. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21637. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21638. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21639. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21640. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21641. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21642. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21643. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21644. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21645. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  21646. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21647. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  21648. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21649. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  21650. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  21651. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  21652. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21653. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  21654. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21655. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21656. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  21657. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21658. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21659. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21660. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21661. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21662. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21663. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21664. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21665. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21666. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21667. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  21668. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21669. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21670. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21671. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21672. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21673. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21674. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21675. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21676. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21677. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  21678. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21679. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21680. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21681. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21682. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21683. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21684. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21685. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  21686. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21687. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21688. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21689. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21690. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21691. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21692. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21693. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21694. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21695. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  21696. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21697. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21698. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21699. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21700. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21701. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21702. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21703. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  21704. /* Backend Enablement */
  21705. {"BE_OUT", NULL, "PRI_I2S_RX"},
  21706. {"BE_OUT", NULL, "SEC_I2S_RX"},
  21707. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  21708. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  21709. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  21710. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21711. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  21712. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  21713. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  21714. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  21715. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  21716. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  21717. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  21718. {"BE_OUT", NULL, "HDMI"},
  21719. {"BE_OUT", NULL, "DISPLAY_PORT"},
  21720. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  21721. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  21722. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  21723. {"BE_OUT", NULL, "MI2S_RX"},
  21724. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  21725. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  21726. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  21727. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  21728. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  21729. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  21730. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  21731. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  21732. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  21733. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  21734. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  21735. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  21736. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  21737. {"BE_OUT", NULL, "INT_FM_RX"},
  21738. {"BE_OUT", NULL, "PCM_RX"},
  21739. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21740. {"BE_OUT", NULL, "AUX_PCM_RX"},
  21741. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  21742. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  21743. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  21744. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  21745. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  21746. {"BE_OUT", NULL, "INT_FM_RX"},
  21747. {"BE_OUT", NULL, "PCM_RX"},
  21748. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21749. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  21750. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  21751. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  21752. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  21753. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  21754. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  21755. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  21756. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  21757. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  21758. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  21759. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  21760. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  21761. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  21762. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  21763. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  21764. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  21765. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  21766. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  21767. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  21768. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  21769. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  21770. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  21771. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  21772. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  21773. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  21774. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  21775. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  21776. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  21777. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  21778. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  21779. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  21780. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  21781. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  21782. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  21783. {"PRI_I2S_TX", NULL, "BE_IN"},
  21784. {"MI2S_TX", NULL, "BE_IN"},
  21785. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  21786. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  21787. {"PRI_MI2S_TX", NULL, "BE_IN"},
  21788. {"TERT_MI2S_TX", NULL, "BE_IN"},
  21789. {"INT0_MI2S_TX", NULL, "BE_IN"},
  21790. {"INT2_MI2S_TX", NULL, "BE_IN"},
  21791. {"INT3_MI2S_TX", NULL, "BE_IN"},
  21792. {"INT4_MI2S_TX", NULL, "BE_IN"},
  21793. {"INT5_MI2S_TX", NULL, "BE_IN"},
  21794. {"SEC_MI2S_TX", NULL, "BE_IN"},
  21795. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  21796. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  21797. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  21798. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  21799. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  21800. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  21801. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  21802. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  21803. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  21804. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  21805. {"USB_AUDIO_TX", NULL, "BE_IN" },
  21806. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  21807. {"INT_FM_TX", NULL, "BE_IN"},
  21808. {"PCM_TX", NULL, "BE_IN"},
  21809. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21810. {"BE_OUT", NULL, "STUB_RX"},
  21811. {"STUB_TX", NULL, "BE_IN"},
  21812. {"STUB_1_TX", NULL, "BE_IN"},
  21813. {"BE_OUT", NULL, "AUX_PCM_RX"},
  21814. {"AUX_PCM_TX", NULL, "BE_IN"},
  21815. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  21816. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  21817. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  21818. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  21819. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  21820. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  21821. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  21822. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  21823. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21824. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21825. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  21826. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  21827. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  21828. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  21829. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  21830. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  21831. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  21832. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  21833. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  21834. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  21835. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  21836. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  21837. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  21838. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  21839. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  21840. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  21841. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  21842. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  21843. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  21844. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  21845. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  21846. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  21847. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  21848. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  21849. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  21850. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  21851. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  21852. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  21853. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  21854. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  21855. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  21856. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  21857. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  21858. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  21859. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  21860. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  21861. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  21862. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  21863. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  21864. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  21865. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  21866. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  21867. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  21868. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  21869. };
  21870. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  21871. struct snd_pcm_hw_params *params)
  21872. {
  21873. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21874. unsigned int be_id = rtd->dai_link->id;
  21875. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21876. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21877. return -EINVAL;
  21878. }
  21879. mutex_lock(&routing_lock);
  21880. msm_bedais[be_id].sample_rate = params_rate(params);
  21881. msm_bedais[be_id].channel = params_channels(params);
  21882. msm_bedais[be_id].format = params_format(params);
  21883. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  21884. __func__, msm_bedais[be_id].sample_rate,
  21885. msm_bedais[be_id].format, be_id);
  21886. mutex_unlock(&routing_lock);
  21887. return 0;
  21888. }
  21889. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  21890. {
  21891. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21892. unsigned int be_id = rtd->dai_link->id;
  21893. int i, session_type, path_type, topology;
  21894. struct msm_pcm_routing_bdai_data *bedai;
  21895. struct msm_pcm_routing_fdai_data *fdai;
  21896. pr_debug("%s: substream->pcm->id:%s\n",
  21897. __func__, substream->pcm->id);
  21898. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21899. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21900. return -EINVAL;
  21901. }
  21902. bedai = &msm_bedais[be_id];
  21903. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  21904. 0 : 1);
  21905. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  21906. path_type = ADM_PATH_PLAYBACK;
  21907. else
  21908. path_type = ADM_PATH_LIVE_REC;
  21909. mutex_lock(&routing_lock);
  21910. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  21911. if (!is_mm_lsm_fe_id(i))
  21912. continue;
  21913. fdai = &fe_dai_map[i][session_type];
  21914. if (fdai->strm_id != INVALID_SESSION) {
  21915. int idx;
  21916. int port_id;
  21917. unsigned long copp =
  21918. session_copp_map[i][session_type][be_id];
  21919. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  21920. if (test_bit(idx, &copp))
  21921. break;
  21922. if (idx >= MAX_COPPS_PER_PORT) {
  21923. pr_debug("%s: copp idx is invalid, exiting\n",
  21924. __func__);
  21925. continue;
  21926. }
  21927. fdai->be_srate = bedai->sample_rate;
  21928. port_id = bedai->port_id;
  21929. topology = adm_get_topology_for_port_copp_idx(port_id,
  21930. idx);
  21931. msm_routing_unload_topology(topology);
  21932. adm_close(bedai->port_id, fdai->perf_mode, idx);
  21933. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  21934. __func__, copp, i, session_type, be_id,
  21935. topology);
  21936. clear_bit(idx,
  21937. &session_copp_map[i][session_type][be_id]);
  21938. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  21939. (fdai->passthr_mode == LEGACY_PCM))
  21940. msm_pcm_routing_deinit_pp(bedai->port_id,
  21941. topology);
  21942. }
  21943. }
  21944. bedai->active = 0;
  21945. bedai->sample_rate = 0;
  21946. bedai->channel = 0;
  21947. mutex_unlock(&routing_lock);
  21948. return 0;
  21949. }
  21950. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  21951. {
  21952. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21953. unsigned int be_id = rtd->dai_link->id;
  21954. int i, path_type, topology;
  21955. int session_type = INVALID_SESSION;
  21956. struct msm_pcm_routing_bdai_data *bedai;
  21957. u32 channels, sample_rate;
  21958. uint16_t bits_per_sample = 16, voc_path_type;
  21959. struct msm_pcm_routing_fdai_data *fdai;
  21960. u32 session_id;
  21961. struct media_format_info voc_be_media_format;
  21962. bool is_lsm;
  21963. pr_debug("%s: substream->pcm->id:%s\n",
  21964. __func__, substream->pcm->id);
  21965. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21966. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21967. return -EINVAL;
  21968. }
  21969. bedai = &msm_bedais[be_id];
  21970. mutex_lock(&routing_lock);
  21971. if (bedai->active == 1)
  21972. goto done; /* Ignore prepare if back-end already active */
  21973. /* AFE port is not active at this point. However, still
  21974. * go ahead setting active flag under the notion that
  21975. * QDSP6 is able to handle ADM starting before AFE port
  21976. * is started.
  21977. */
  21978. bedai->active = 1;
  21979. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  21980. if (!(is_mm_lsm_fe_id(i) &&
  21981. route_check_fe_id_adm_support(i)))
  21982. continue;
  21983. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  21984. SESSION_TYPE_RX : SESSION_TYPE_TX;
  21985. fdai = &fe_dai_map[i][session_type];
  21986. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  21987. if (fdai->passthr_mode != LEGACY_PCM)
  21988. path_type = ADM_PATH_COMPRESSED_RX;
  21989. else
  21990. path_type = ADM_PATH_PLAYBACK;
  21991. } else {
  21992. if ((fdai->passthr_mode != LEGACY_PCM) &&
  21993. (fdai->passthr_mode != LISTEN))
  21994. path_type = ADM_PATH_COMPRESSED_TX;
  21995. else
  21996. path_type = ADM_PATH_LIVE_REC;
  21997. }
  21998. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  21999. (i <= MSM_FRONTEND_DAI_LSM8);
  22000. if (fdai->strm_id != INVALID_SESSION) {
  22001. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  22002. if (session_type == SESSION_TYPE_TX &&
  22003. fdai->be_srate &&
  22004. (fdai->be_srate != bedai->sample_rate)) {
  22005. pr_debug("%s: flush strm %d diff BE rates\n",
  22006. __func__,
  22007. fdai->strm_id);
  22008. if (fdai->event_info.event_func)
  22009. fdai->event_info.event_func(
  22010. MSM_PCM_RT_EVT_BUF_RECFG,
  22011. fdai->event_info.priv_data);
  22012. fdai->be_srate = 0; /* might not need it */
  22013. }
  22014. bits_per_sample = msm_routing_get_bit_width(
  22015. bedai->format);
  22016. app_type =
  22017. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  22018. if (app_type && is_lsm) {
  22019. app_type_idx =
  22020. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  22021. sample_rate =
  22022. fe_dai_app_type_cfg[i][session_type][be_id]
  22023. .sample_rate;
  22024. bits_per_sample =
  22025. lsm_app_type_cfg[app_type_idx].bit_width;
  22026. } else if (app_type) {
  22027. app_type_idx =
  22028. msm_pcm_routing_get_app_type_idx(app_type);
  22029. sample_rate =
  22030. fe_dai_app_type_cfg[i][session_type]
  22031. [be_id].sample_rate;
  22032. bits_per_sample =
  22033. app_type_cfg[app_type_idx].bit_width;
  22034. } else
  22035. sample_rate = bedai->sample_rate;
  22036. /*
  22037. * check if ADM needs to be configured with different
  22038. * channel mapping than backend
  22039. */
  22040. if (!bedai->adm_override_ch)
  22041. channels = bedai->channel;
  22042. else
  22043. channels = bedai->adm_override_ch;
  22044. acdb_dev_id =
  22045. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  22046. topology = msm_routing_get_adm_topology(i, session_type,
  22047. be_id);
  22048. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  22049. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  22050. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  22051. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  22052. copp_idx = adm_open(bedai->port_id, path_type,
  22053. sample_rate, channels, topology,
  22054. fdai->perf_mode, bits_per_sample,
  22055. app_type, acdb_dev_id);
  22056. if ((copp_idx < 0) ||
  22057. (copp_idx >= MAX_COPPS_PER_PORT)) {
  22058. pr_err("%s: adm open failed\n", __func__);
  22059. mutex_unlock(&routing_lock);
  22060. return -EINVAL;
  22061. }
  22062. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  22063. __func__, i, session_type, be_id);
  22064. set_bit(copp_idx,
  22065. &session_copp_map[i][session_type][be_id]);
  22066. if (msm_is_resample_needed(
  22067. sample_rate,
  22068. bedai->sample_rate))
  22069. adm_copp_mfc_cfg(
  22070. bedai->port_id, copp_idx,
  22071. bedai->sample_rate);
  22072. msm_pcm_routing_build_matrix(i, session_type, path_type,
  22073. fdai->perf_mode, fdai->passthr_mode);
  22074. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  22075. (fdai->passthr_mode == LEGACY_PCM))
  22076. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  22077. topology, channels);
  22078. }
  22079. }
  22080. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  22081. session_id = msm_pcm_routing_get_voc_sessionid(i);
  22082. if (session_id) {
  22083. pr_debug("%s voice session_id: 0x%x\n", __func__,
  22084. session_id);
  22085. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  22086. voc_path_type = RX_PATH;
  22087. else
  22088. voc_path_type = TX_PATH;
  22089. voc_set_route_flag(session_id, voc_path_type, 1);
  22090. memset(&voc_be_media_format, 0,
  22091. sizeof(struct media_format_info));
  22092. voc_be_media_format.port_id = bedai->port_id;
  22093. voc_be_media_format.num_channels = bedai->channel;
  22094. voc_be_media_format.sample_rate = bedai->sample_rate;
  22095. voc_be_media_format.bits_per_sample = bedai->format;
  22096. /* Defaulting this to 1 for voice call usecases */
  22097. voc_be_media_format.channel_mapping[0] = 1;
  22098. voc_set_device_config(session_id, voc_path_type,
  22099. &voc_be_media_format);
  22100. if (voc_get_route_flag(session_id, RX_PATH) &&
  22101. voc_get_route_flag(session_id, TX_PATH))
  22102. voc_enable_device(session_id);
  22103. }
  22104. }
  22105. /* Check if backend is an external ec ref port and set as needed */
  22106. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  22107. memset(&voc_be_media_format, 0,
  22108. sizeof(struct media_format_info));
  22109. /* Get format info for ec ref port from msm_bedais[] */
  22110. voc_be_media_format.port_id = bedai->port_id;
  22111. voc_be_media_format.num_channels = bedai->channel;
  22112. voc_be_media_format.bits_per_sample = bedai->format;
  22113. voc_be_media_format.sample_rate = bedai->sample_rate;
  22114. /* Defaulting this to 1 for voice call usecases */
  22115. voc_be_media_format.channel_mapping[0] = 1;
  22116. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  22117. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  22118. __func__, voc_be_media_format.port_id,
  22119. voc_be_media_format.num_channels,
  22120. voc_be_media_format.bits_per_sample,
  22121. voc_be_media_format.sample_rate);
  22122. }
  22123. done:
  22124. mutex_unlock(&routing_lock);
  22125. return 0;
  22126. }
  22127. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  22128. int fe_id)
  22129. {
  22130. int index, topo_id, be_idx;
  22131. unsigned long pp_config = 0;
  22132. bool mute_on;
  22133. int latency, session_type;
  22134. bool compr_passthr_mode = true;
  22135. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  22136. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  22137. pr_err("%s: Device pp params on invalid port %d\n",
  22138. __func__, port_id);
  22139. return -EINVAL;
  22140. }
  22141. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22142. if (port_id == msm_bedais[be_idx].port_id)
  22143. break;
  22144. }
  22145. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22146. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  22147. return -EINVAL;
  22148. }
  22149. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  22150. if (msm_bedais_pp_params[index].port_id == port_id)
  22151. break;
  22152. }
  22153. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  22154. pr_err("%s: Invalid backend pp params index %d\n",
  22155. __func__, index);
  22156. return -EINVAL;
  22157. }
  22158. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  22159. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  22160. pr_err("%s: Invalid passthrough topology 0x%x\n",
  22161. __func__, topo_id);
  22162. return -EINVAL;
  22163. }
  22164. session_type =
  22165. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  22166. SESSION_TYPE_RX : SESSION_TYPE_TX;
  22167. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  22168. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  22169. compr_passthr_mode = false;
  22170. pp_config = msm_bedais_pp_params[index].pp_params_config;
  22171. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  22172. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  22173. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  22174. mute_on = msm_bedais_pp_params[index].mute_on;
  22175. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22176. adm_send_compressed_device_mute(port_id,
  22177. copp_idx,
  22178. mute_on);
  22179. }
  22180. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  22181. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  22182. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  22183. &pp_config);
  22184. latency = msm_bedais_pp_params[index].latency;
  22185. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22186. adm_send_compressed_device_latency(port_id,
  22187. copp_idx,
  22188. latency);
  22189. }
  22190. return 0;
  22191. }
  22192. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  22193. {
  22194. uint32_t topology = NULL_COPP_TOPOLOGY;
  22195. void *cal_info = NULL;
  22196. uint32_t size = 0;
  22197. /* Retrieve cal_info size from cal data*/
  22198. size = data_size - sizeof(struct audio_cal_type_basic);
  22199. cal_info = kzalloc(size, GFP_KERNEL);
  22200. if (!cal_info)
  22201. goto done;
  22202. memcpy(cal_info,
  22203. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  22204. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  22205. kfree(cal_info);
  22206. cal_info = NULL;
  22207. done:
  22208. pr_debug("%s: Using topology %d\n", __func__, topology);
  22209. return topology;
  22210. }
  22211. static void msm_routing_load_topology(size_t data_size, void *data)
  22212. {
  22213. uint32_t topology_id;
  22214. int ret = -EINVAL;
  22215. topology_id = msm_routing_get_topology(data_size, data);
  22216. if (topology_id != NULL_COPP_TOPOLOGY)
  22217. ret = q6core_load_unload_topo_modules(topology_id,
  22218. CORE_LOAD_TOPOLOGY);
  22219. if (ret < 0)
  22220. pr_debug("%s %d load topology failed\n",
  22221. __func__, topology_id);
  22222. }
  22223. static void msm_routing_unload_topology(uint32_t topology_id)
  22224. {
  22225. int ret = -EINVAL;
  22226. if (topology_id != NULL_COPP_TOPOLOGY)
  22227. ret = q6core_load_unload_topo_modules(topology_id,
  22228. CORE_UNLOAD_TOPOLOGY);
  22229. if (ret < 0)
  22230. pr_debug("%s %d unload topology failed\n",
  22231. __func__, topology_id);
  22232. }
  22233. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  22234. struct snd_ctl_elem_value *ucontrol)
  22235. {
  22236. int pp_id = ucontrol->value.integer.value[0];
  22237. int port_id = 0;
  22238. int index, be_idx, i, topo_id, idx;
  22239. bool mute;
  22240. int latency, session_type;
  22241. bool compr_passthr_mode = true;
  22242. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  22243. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22244. port_id = msm_bedais[be_idx].port_id;
  22245. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  22246. break;
  22247. }
  22248. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22249. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  22250. return -EINVAL;
  22251. }
  22252. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  22253. if (msm_bedais_pp_params[index].port_id == port_id)
  22254. break;
  22255. }
  22256. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  22257. pr_err("%s: Invalid pp params backend index %d\n",
  22258. __func__, index);
  22259. return -EINVAL;
  22260. }
  22261. session_type =
  22262. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  22263. SESSION_TYPE_RX : SESSION_TYPE_TX;
  22264. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  22265. MSM_FRONTEND_DAI_MM_SIZE) {
  22266. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  22267. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  22268. compr_passthr_mode = false;
  22269. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22270. unsigned long copp =
  22271. session_copp_map[i]
  22272. [SESSION_TYPE_RX][be_idx];
  22273. if (!test_bit(idx, &copp))
  22274. continue;
  22275. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  22276. idx);
  22277. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  22278. continue;
  22279. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  22280. __func__, port_id, copp, msm_bedais[be_idx].active,
  22281. fe_dai_map[i][session_type].passthr_mode);
  22282. switch (pp_id) {
  22283. case ADM_PP_PARAM_MUTE_ID:
  22284. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  22285. mute = ucontrol->value.integer.value[1] ? true : false;
  22286. msm_bedais_pp_params[index].mute_on = mute;
  22287. set_bit(ADM_PP_PARAM_MUTE_BIT,
  22288. &msm_bedais_pp_params[index].pp_params_config);
  22289. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22290. adm_send_compressed_device_mute(port_id,
  22291. idx, mute);
  22292. break;
  22293. case ADM_PP_PARAM_LATENCY_ID:
  22294. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  22295. msm_bedais_pp_params[index].latency =
  22296. ucontrol->value.integer.value[1];
  22297. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  22298. &msm_bedais_pp_params[index].pp_params_config);
  22299. latency = msm_bedais_pp_params[index].latency =
  22300. ucontrol->value.integer.value[1];
  22301. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22302. adm_send_compressed_device_latency(port_id,
  22303. idx, latency);
  22304. break;
  22305. default:
  22306. pr_info("%s, device pp param %d not supported\n",
  22307. __func__, pp_id);
  22308. break;
  22309. }
  22310. }
  22311. }
  22312. return 0;
  22313. }
  22314. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  22315. struct snd_ctl_elem_value *ucontrol)
  22316. {
  22317. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  22318. return 0;
  22319. }
  22320. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  22321. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  22322. 0, 3, msm_routing_get_device_pp_params_mixer,
  22323. msm_routing_put_device_pp_params_mixer),
  22324. };
  22325. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  22326. struct snd_ctl_elem_value *ucontrol)
  22327. {
  22328. ucontrol->value.integer.value[0] =
  22329. core_get_license_status(ASM_MEDIA_FMT_APTX);
  22330. pr_debug("%s: status %ld\n", __func__,
  22331. ucontrol->value.integer.value[0]);
  22332. return 0;
  22333. }
  22334. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  22335. struct snd_ctl_elem_value *ucontrol)
  22336. {
  22337. int32_t status = 0;
  22338. status = core_set_license(ucontrol->value.integer.value[0],
  22339. APTX_CLASSIC_DEC_LICENSE_ID);
  22340. pr_debug("%s: status %d\n", __func__, status);
  22341. return status;
  22342. }
  22343. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  22344. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  22345. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  22346. msm_aptx_dec_license_control_put),
  22347. };
  22348. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  22349. struct snd_ctl_elem_info *uinfo)
  22350. {
  22351. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22352. uinfo->count = sizeof(be_dai_name_table);
  22353. return 0;
  22354. }
  22355. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  22356. unsigned int __user *bytes,
  22357. unsigned int size)
  22358. {
  22359. int i;
  22360. int ret = 0;
  22361. if (size < sizeof(be_dai_name_table)) {
  22362. pr_err("%s: invalid size %d requested, returning\n",
  22363. __func__, size);
  22364. ret = -EINVAL;
  22365. goto done;
  22366. }
  22367. /*
  22368. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  22369. * needed when adding new backends
  22370. */
  22371. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  22372. be_dai_name_table[i].be_id = i;
  22373. strlcpy(be_dai_name_table[i].be_name,
  22374. msm_bedais[i].name,
  22375. LPASS_BE_NAME_MAX_LENGTH);
  22376. }
  22377. ret = copy_to_user(bytes, &be_dai_name_table,
  22378. sizeof(be_dai_name_table));
  22379. if (ret) {
  22380. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  22381. ret = -EFAULT;
  22382. }
  22383. done:
  22384. return ret;
  22385. }
  22386. static const struct snd_kcontrol_new
  22387. msm_routing_be_dai_name_table_mixer_controls[] = {
  22388. {
  22389. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  22390. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  22391. .info = msm_routing_be_dai_name_table_info,
  22392. .name = "Backend DAI Name Table",
  22393. .tlv.c = snd_soc_bytes_tlv_callback,
  22394. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  22395. .max = sizeof(be_dai_name_table),
  22396. .get = msm_routing_be_dai_name_table_tlv_get,
  22397. }
  22398. },
  22399. };
  22400. static int msm_routing_stereo_channel_reverse_control_get(
  22401. struct snd_kcontrol *kcontrol,
  22402. struct snd_ctl_elem_value *ucontrol)
  22403. {
  22404. ucontrol->value.integer.value[0] = swap_ch;
  22405. pr_debug("%s: Swap channel value: %ld\n", __func__,
  22406. ucontrol->value.integer.value[0]);
  22407. return 0;
  22408. }
  22409. static int msm_routing_stereo_channel_reverse_control_put(
  22410. struct snd_kcontrol *kcontrol,
  22411. struct snd_ctl_elem_value *ucontrol)
  22412. {
  22413. int i, idx, be_index, port_id;
  22414. int ret = 0;
  22415. unsigned long copp;
  22416. pr_debug("%s Swap channel value:%ld\n", __func__,
  22417. ucontrol->value.integer.value[0]);
  22418. swap_ch = ucontrol->value.integer.value[0];
  22419. mutex_lock(&routing_lock);
  22420. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  22421. port_id = msm_bedais[be_index].port_id;
  22422. if (!msm_bedais[be_index].active)
  22423. continue;
  22424. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  22425. MSM_FRONTEND_DAI_MM_SIZE) {
  22426. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  22427. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22428. if (!test_bit(idx, &copp))
  22429. continue;
  22430. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  22431. __func__, port_id, idx);
  22432. ret = adm_swap_speaker_channels(
  22433. port_id, idx,
  22434. msm_bedais[be_index].sample_rate,
  22435. swap_ch);
  22436. if (ret) {
  22437. pr_err("%s:Swap_channel failed, err=%d\n",
  22438. __func__, ret);
  22439. goto done;
  22440. }
  22441. }
  22442. }
  22443. }
  22444. done:
  22445. mutex_unlock(&routing_lock);
  22446. return ret;
  22447. }
  22448. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  22449. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  22450. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  22451. msm_routing_stereo_channel_reverse_control_put),
  22452. };
  22453. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  22454. struct snd_ctl_elem_info *uinfo)
  22455. {
  22456. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  22457. uinfo->count = 1;
  22458. return 0;
  22459. }
  22460. static int msm_routing_instance_id_support_put(
  22461. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  22462. {
  22463. bool supported = ucontrol->value.integer.value[0] ? true : false;
  22464. q6common_update_instance_id_support(supported);
  22465. return 0;
  22466. }
  22467. static int msm_routing_instance_id_support_get(
  22468. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  22469. {
  22470. bool supported = false;
  22471. supported = q6common_is_instance_id_supported();
  22472. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  22473. return 0;
  22474. }
  22475. static const struct snd_kcontrol_new
  22476. msm_routing_feature_support_mixer_controls[] = {
  22477. {
  22478. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  22479. SNDRV_CTL_ELEM_ACCESS_WRITE,
  22480. .info = msm_routing_instance_id_support_info,
  22481. .name = "Instance ID Support",
  22482. .put = msm_routing_instance_id_support_put,
  22483. .get = msm_routing_instance_id_support_get,
  22484. },
  22485. };
  22486. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  22487. .hw_params = msm_pcm_routing_hw_params,
  22488. .close = msm_pcm_routing_close,
  22489. .prepare = msm_pcm_routing_prepare,
  22490. };
  22491. /* Not used but frame seems to require it */
  22492. static int msm_routing_probe(struct snd_soc_platform *platform)
  22493. {
  22494. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  22495. ARRAY_SIZE(msm_qdsp6_widgets));
  22496. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  22497. ARRAY_SIZE(intercon));
  22498. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  22499. snd_soc_add_platform_controls(platform, lsm_controls,
  22500. ARRAY_SIZE(lsm_controls));
  22501. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  22502. ARRAY_SIZE(aanc_slim_0_rx_mux));
  22503. snd_soc_add_platform_controls(platform, aanc_noise_level,
  22504. ARRAY_SIZE(aanc_noise_level));
  22505. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  22506. ARRAY_SIZE(msm_voc_session_controls));
  22507. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  22508. ARRAY_SIZE(app_type_cfg_controls));
  22509. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  22510. ARRAY_SIZE(lsm_app_type_cfg_controls));
  22511. snd_soc_add_platform_controls(platform, module_cfg_controls,
  22512. ARRAY_SIZE(module_cfg_controls));
  22513. snd_soc_add_platform_controls(platform,
  22514. stereo_to_custom_stereo_controls,
  22515. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  22516. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  22517. ARRAY_SIZE(ec_ref_param_controls));
  22518. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  22519. ARRAY_SIZE(channel_mixer_controls));
  22520. msm_qti_pp_add_controls(platform);
  22521. msm_dts_srs_tm_add_controls(platform);
  22522. msm_dolby_dap_add_controls(platform);
  22523. snd_soc_add_platform_controls(platform,
  22524. use_ds1_or_ds2_controls,
  22525. ARRAY_SIZE(use_ds1_or_ds2_controls));
  22526. snd_soc_add_platform_controls(platform,
  22527. device_pp_params_mixer_controls,
  22528. ARRAY_SIZE(device_pp_params_mixer_controls));
  22529. snd_soc_add_platform_controls(platform,
  22530. msm_routing_be_dai_name_table_mixer_controls,
  22531. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  22532. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  22533. ARRAY_SIZE(msm_source_tracking_controls));
  22534. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  22535. ARRAY_SIZE(adm_channel_config_controls));
  22536. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  22537. ARRAY_SIZE(aptx_dec_license_controls));
  22538. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  22539. ARRAY_SIZE(stereo_channel_reverse_control));
  22540. snd_soc_add_platform_controls(
  22541. platform, msm_routing_feature_support_mixer_controls,
  22542. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  22543. return 0;
  22544. }
  22545. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  22546. {
  22547. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  22548. }
  22549. void msm_routing_pcm_free(struct snd_pcm *pcm)
  22550. {
  22551. msm_pcm_routing_hwdep_free(pcm);
  22552. }
  22553. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  22554. .ops = &msm_routing_pcm_ops,
  22555. .probe = msm_routing_probe,
  22556. .pcm_new = msm_routing_pcm_new,
  22557. .pcm_free = msm_routing_pcm_free,
  22558. };
  22559. static int msm_routing_pcm_probe(struct platform_device *pdev)
  22560. {
  22561. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  22562. return snd_soc_register_platform(&pdev->dev,
  22563. &msm_soc_routing_platform);
  22564. }
  22565. static int msm_routing_pcm_remove(struct platform_device *pdev)
  22566. {
  22567. snd_soc_unregister_platform(&pdev->dev);
  22568. return 0;
  22569. }
  22570. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  22571. {.compatible = "qcom,msm-pcm-routing"},
  22572. {}
  22573. };
  22574. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  22575. static struct platform_driver msm_routing_pcm_driver = {
  22576. .driver = {
  22577. .name = "msm-pcm-routing",
  22578. .owner = THIS_MODULE,
  22579. .of_match_table = msm_pcm_routing_dt_match,
  22580. },
  22581. .probe = msm_routing_pcm_probe,
  22582. .remove = msm_routing_pcm_remove,
  22583. };
  22584. int msm_routing_check_backend_enabled(int fedai_id)
  22585. {
  22586. int i;
  22587. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  22588. /* bad ID assigned in machine driver */
  22589. pr_err("%s: bad MM ID\n", __func__);
  22590. return 0;
  22591. }
  22592. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  22593. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  22594. return msm_bedais[i].active;
  22595. }
  22596. return 0;
  22597. }
  22598. static int get_cal_type_index(int32_t cal_type)
  22599. {
  22600. int ret = -EINVAL;
  22601. switch (cal_type) {
  22602. case ADM_TOPOLOGY_CAL_TYPE:
  22603. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  22604. break;
  22605. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  22606. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  22607. break;
  22608. default:
  22609. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  22610. }
  22611. return ret;
  22612. }
  22613. static int msm_routing_set_cal(int32_t cal_type,
  22614. size_t data_size, void *data)
  22615. {
  22616. int ret = 0;
  22617. int cal_index;
  22618. pr_debug("%s\n", __func__);
  22619. cal_index = get_cal_type_index(cal_type);
  22620. if (cal_index < 0) {
  22621. pr_err("%s: Could not get cal index %d\n",
  22622. __func__, cal_index);
  22623. ret = -EINVAL;
  22624. goto done;
  22625. }
  22626. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  22627. if (ret < 0) {
  22628. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  22629. __func__, ret, cal_type);
  22630. ret = -EINVAL;
  22631. goto done;
  22632. }
  22633. /* Pre-load if it is ADM topology */
  22634. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  22635. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  22636. msm_routing_load_topology(data_size, data);
  22637. }
  22638. done:
  22639. return ret;
  22640. }
  22641. static void msm_routing_delete_cal_data(void)
  22642. {
  22643. pr_debug("%s\n", __func__);
  22644. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  22645. }
  22646. static int msm_routing_init_cal_data(void)
  22647. {
  22648. int ret = 0;
  22649. struct cal_type_info cal_type_info[] = {
  22650. {{ADM_TOPOLOGY_CAL_TYPE,
  22651. {NULL, NULL, NULL,
  22652. msm_routing_set_cal, NULL, NULL} },
  22653. {NULL, NULL, cal_utils_match_buf_num} },
  22654. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  22655. {NULL, NULL, NULL,
  22656. msm_routing_set_cal, NULL, NULL} },
  22657. {NULL, NULL, cal_utils_match_buf_num} },
  22658. };
  22659. pr_debug("%s\n", __func__);
  22660. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  22661. &cal_type_info[0]);
  22662. if (ret < 0) {
  22663. pr_err("%s: could not create cal type!\n",
  22664. __func__);
  22665. ret = -EINVAL;
  22666. goto err;
  22667. }
  22668. return ret;
  22669. err:
  22670. msm_routing_delete_cal_data();
  22671. return ret;
  22672. }
  22673. int __init msm_soc_routing_platform_init(void)
  22674. {
  22675. mutex_init(&routing_lock);
  22676. if (msm_routing_init_cal_data())
  22677. pr_err("%s: could not init cal data!\n", __func__);
  22678. afe_set_routing_callback(
  22679. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  22680. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  22681. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  22682. return platform_driver_register(&msm_routing_pcm_driver);
  22683. }
  22684. void msm_soc_routing_platform_exit(void)
  22685. {
  22686. msm_routing_delete_cal_data();
  22687. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  22688. mutex_destroy(&routing_lock);
  22689. platform_driver_unregister(&msm_routing_pcm_driver);
  22690. }
  22691. MODULE_DESCRIPTION("MSM routing platform driver");
  22692. MODULE_LICENSE("GPL v2");