msm-pcm-routing-v2.c 900 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806
  1. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/err.h>
  14. #include <linux/module.h>
  15. #include <linux/moduleparam.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/bitops.h>
  18. #include <linux/mutex.h>
  19. #include <linux/of_device.h>
  20. #include <linux/slab.h>
  21. #include <sound/core.h>
  22. #include <sound/soc.h>
  23. #include <sound/soc-dapm.h>
  24. #include <sound/pcm.h>
  25. #include <sound/initval.h>
  26. #include <sound/control.h>
  27. #include <sound/tlv.h>
  28. #include <sound/asound.h>
  29. #include <sound/pcm_params.h>
  30. #include <sound/hwdep.h>
  31. #include <sound/audio_effects.h>
  32. #include <dsp/msm-dts-srs-tm-config.h>
  33. #include <dsp/q6voice.h>
  34. #include <dsp/q6adm-v2.h>
  35. #include <dsp/q6asm-v2.h>
  36. #include <dsp/q6afe-v2.h>
  37. #include <dsp/q6lsm.h>
  38. #include <dsp/q6core.h>
  39. #include <dsp/q6common.h>
  40. #include <dsp/audio_cal_utils.h>
  41. #include "msm-pcm-routing-v2.h"
  42. #include "msm-pcm-routing-devdep.h"
  43. #include "msm-qti-pp-config.h"
  44. #include "msm-dolby-dap-config.h"
  45. #include "msm-ds2-dap-config.h"
  46. #ifndef CONFIG_DOLBY_DAP
  47. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  48. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  49. #endif
  50. #ifndef CONFIG_DOLBY_DS2
  51. #undef DS2_ADM_COPP_TOPOLOGY_ID
  52. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  53. #endif
  54. static struct mutex routing_lock;
  55. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  56. static int fm_switch_enable;
  57. static int hfp_switch_enable;
  58. static int a2dp_switch_enable;
  59. static int int0_mi2s_switch_enable;
  60. static int int4_mi2s_switch_enable;
  61. static int pri_mi2s_switch_enable;
  62. static int sec_mi2s_switch_enable;
  63. static int tert_mi2s_switch_enable;
  64. static int quat_mi2s_switch_enable;
  65. static int quin_mi2s_switch_enable;
  66. static int fm_pcmrx_switch_enable;
  67. static int usb_switch_enable;
  68. static int lsm_port_index;
  69. static int slim0_rx_aanc_fb_port;
  70. static int msm_route_ec_ref_rx;
  71. static int msm_ec_ref_ch = 4;
  72. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  73. static int msm_ec_ref_sampling_rate = 48000;
  74. static uint32_t voc_session_id = ALL_SESSION_VSID;
  75. static int msm_route_ext_ec_ref;
  76. static bool is_custom_stereo_on;
  77. static bool is_ds2_on;
  78. static bool swap_ch;
  79. static int aanc_level;
  80. #define WEIGHT_0_DB 0x4000
  81. /* all the FEs which can support channel mixer */
  82. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  83. /* input BE for each FE */
  84. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  85. enum {
  86. MADNONE,
  87. MADAUDIO,
  88. MADBEACON,
  89. MADULTRASOUND,
  90. MADSWAUDIO,
  91. };
  92. #define ADM_LSM_PORT_INDEX 9
  93. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  94. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  95. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  96. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  97. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  98. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  99. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  100. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  101. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  102. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  103. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  104. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  105. #define LSM_FUNCTION_TEXT "LSM Function"
  106. static const char * const lsm_port_text[] = {
  107. "None",
  108. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  109. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  110. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  111. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT
  112. };
  113. struct msm_pcm_route_bdai_pp_params {
  114. u16 port_id; /* AFE port ID */
  115. unsigned long pp_params_config;
  116. bool mute_on;
  117. int latency;
  118. };
  119. static struct msm_pcm_route_bdai_pp_params
  120. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  121. {HDMI_RX, 0, 0, 0},
  122. {DISPLAY_PORT_RX, 0, 0, 0},
  123. };
  124. /*
  125. * The be_dai_name_table is passed to HAL so that it can specify the
  126. * BE ID for the BE it wants to enable based on the name. Thus there
  127. * is a matching table and structure in HAL that need to be updated
  128. * if any changes to these are made.
  129. */
  130. struct msm_pcm_route_bdai_name {
  131. unsigned int be_id;
  132. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  133. };
  134. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  135. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  136. int fe_id);
  137. static void msm_routing_load_topology(size_t data_size, void *data);
  138. static void msm_routing_unload_topology(uint32_t topology_id);
  139. static int msm_routing_get_bit_width(unsigned int format)
  140. {
  141. int bit_width;
  142. switch (format) {
  143. case SNDRV_PCM_FORMAT_S32_LE:
  144. bit_width = 32;
  145. break;
  146. case SNDRV_PCM_FORMAT_S24_LE:
  147. case SNDRV_PCM_FORMAT_S24_3LE:
  148. bit_width = 24;
  149. break;
  150. case SNDRV_PCM_FORMAT_S16_LE:
  151. default:
  152. bit_width = 16;
  153. }
  154. return bit_width;
  155. }
  156. static bool msm_is_resample_needed(int input_sr, int output_sr)
  157. {
  158. bool rc = false;
  159. if (input_sr != output_sr)
  160. rc = true;
  161. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  162. (rc ? "oh yes" : "not really"),
  163. input_sr, output_sr);
  164. return rc;
  165. }
  166. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  167. int channels)
  168. {
  169. int rc = 0;
  170. switch (topology) {
  171. case SRS_TRUMEDIA_TOPOLOGY_ID:
  172. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  173. msm_dts_srs_tm_init(port_id, copp_idx);
  174. break;
  175. case DS2_ADM_COPP_TOPOLOGY_ID:
  176. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  177. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  178. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  179. is_custom_stereo_on);
  180. if (rc < 0)
  181. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  182. __func__, topology, port_id,
  183. is_custom_stereo_on, rc);
  184. break;
  185. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  186. if (is_ds2_on) {
  187. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  188. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  189. is_custom_stereo_on);
  190. if (rc < 0)
  191. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  192. __func__, topology, port_id, rc);
  193. } else {
  194. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  195. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  196. is_custom_stereo_on);
  197. if (rc < 0)
  198. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  199. __func__, topology, port_id, rc);
  200. }
  201. break;
  202. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  203. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  204. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  205. if (rc < 0)
  206. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  207. __func__, topology, port_id, copp_idx, rc);
  208. break;
  209. default:
  210. /* custom topology specific feature param handlers */
  211. break;
  212. }
  213. }
  214. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  215. {
  216. switch (topology) {
  217. case SRS_TRUMEDIA_TOPOLOGY_ID:
  218. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  219. msm_dts_srs_tm_deinit(port_id);
  220. break;
  221. case DS2_ADM_COPP_TOPOLOGY_ID:
  222. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  223. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  224. msm_ds2_dap_deinit(port_id);
  225. break;
  226. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  227. if (is_ds2_on) {
  228. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  229. msm_ds2_dap_deinit(port_id);
  230. } else {
  231. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  232. msm_dolby_dap_deinit(port_id);
  233. }
  234. break;
  235. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  236. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  237. msm_qti_pp_asphere_deinit(port_id);
  238. break;
  239. default:
  240. /* custom topology specific feature deinit handlers */
  241. break;
  242. }
  243. }
  244. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  245. int path_type, int perf_mode)
  246. {
  247. int itr = 0, rc = 0;
  248. if ((path_type == ADM_PATH_PLAYBACK) &&
  249. (perf_mode == LEGACY_PCM_MODE) &&
  250. is_custom_stereo_on) {
  251. for (itr = 0; itr < payload.num_copps; itr++) {
  252. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  253. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  254. continue;
  255. }
  256. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  257. payload.port_id[itr],
  258. payload.copp_idx[itr],
  259. payload.session_id,
  260. Q14_GAIN_ZERO_POINT_FIVE,
  261. Q14_GAIN_ZERO_POINT_FIVE,
  262. Q14_GAIN_ZERO_POINT_FIVE,
  263. Q14_GAIN_ZERO_POINT_FIVE);
  264. if (rc < 0)
  265. pr_err("%s: err setting custom stereo\n",
  266. __func__);
  267. }
  268. }
  269. }
  270. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  271. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  272. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_RX},
  273. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_TX},
  274. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_RX},
  275. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_TX},
  276. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_HDMI},
  277. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_RX},
  278. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_TX},
  279. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_RX},
  280. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_TX},
  281. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  282. LPASS_BE_AFE_PCM_RX},
  283. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  284. LPASS_BE_AFE_PCM_TX},
  285. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  286. LPASS_BE_AUXPCM_RX},
  287. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  288. LPASS_BE_AUXPCM_TX},
  289. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  290. LPASS_BE_VOICE_PLAYBACK_TX},
  291. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  292. LPASS_BE_VOICE2_PLAYBACK_TX},
  293. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  294. LPASS_BE_INCALL_RECORD_RX},
  295. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  296. LPASS_BE_INCALL_RECORD_TX},
  297. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_RX},
  298. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_TX},
  299. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SEC_I2S_RX},
  300. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_RX},
  301. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_TX},
  302. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_RX},
  303. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_TX},
  304. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_RX},
  305. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_TX},
  306. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_RX},
  307. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_TX},
  308. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_RX},
  309. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_TX},
  310. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_RX},
  311. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_TX},
  312. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_RX},
  313. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_TX},
  314. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_RX},
  315. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_TX},
  316. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_RX},
  317. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_TX},
  318. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_1_TX},
  319. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  320. LPASS_BE_QUAT_MI2S_RX},
  321. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  322. LPASS_BE_QUAT_MI2S_TX},
  323. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  324. LPASS_BE_SEC_MI2S_RX},
  325. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  326. LPASS_BE_SEC_MI2S_TX},
  327. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  328. LPASS_BE_PRI_MI2S_RX},
  329. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  330. LPASS_BE_PRI_MI2S_TX},
  331. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  332. LPASS_BE_TERT_MI2S_RX},
  333. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  334. LPASS_BE_TERT_MI2S_TX},
  335. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  336. LPASS_BE_AUDIO_I2S_RX},
  337. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  338. LPASS_BE_SEC_AUXPCM_RX},
  339. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  340. LPASS_BE_SEC_AUXPCM_TX},
  341. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  342. LPASS_BE_PRI_SPDIF_RX},
  343. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  344. LPASS_BE_SEC_MI2S_RX_SD1},
  345. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  346. LPASS_BE_QUIN_MI2S_RX},
  347. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  348. LPASS_BE_QUIN_MI2S_TX},
  349. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  350. LPASS_BE_SENARY_MI2S_TX},
  351. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  352. LPASS_BE_PRI_TDM_RX_0},
  353. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  354. LPASS_BE_PRI_TDM_TX_0},
  355. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  356. LPASS_BE_PRI_TDM_RX_1},
  357. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  358. LPASS_BE_PRI_TDM_TX_1},
  359. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  360. LPASS_BE_PRI_TDM_RX_2},
  361. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  362. LPASS_BE_PRI_TDM_TX_2},
  363. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  364. LPASS_BE_PRI_TDM_RX_3},
  365. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  366. LPASS_BE_PRI_TDM_TX_3},
  367. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  368. LPASS_BE_PRI_TDM_RX_4},
  369. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  370. LPASS_BE_PRI_TDM_TX_4},
  371. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  372. LPASS_BE_PRI_TDM_RX_5},
  373. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  374. LPASS_BE_PRI_TDM_TX_5},
  375. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  376. LPASS_BE_PRI_TDM_RX_6},
  377. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  378. LPASS_BE_PRI_TDM_TX_6},
  379. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  380. LPASS_BE_PRI_TDM_RX_7},
  381. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  382. LPASS_BE_PRI_TDM_TX_7},
  383. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  384. LPASS_BE_SEC_TDM_RX_0},
  385. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  386. LPASS_BE_SEC_TDM_TX_0},
  387. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  388. LPASS_BE_SEC_TDM_RX_1},
  389. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  390. LPASS_BE_SEC_TDM_TX_1},
  391. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  392. LPASS_BE_SEC_TDM_RX_2},
  393. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  394. LPASS_BE_SEC_TDM_TX_2},
  395. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  396. LPASS_BE_SEC_TDM_RX_3},
  397. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  398. LPASS_BE_SEC_TDM_TX_3},
  399. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  400. LPASS_BE_SEC_TDM_RX_4},
  401. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  402. LPASS_BE_SEC_TDM_TX_4},
  403. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  404. LPASS_BE_SEC_TDM_RX_5},
  405. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  406. LPASS_BE_SEC_TDM_TX_5},
  407. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  408. LPASS_BE_SEC_TDM_RX_6},
  409. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  410. LPASS_BE_SEC_TDM_TX_6},
  411. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  412. LPASS_BE_SEC_TDM_RX_7},
  413. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  414. LPASS_BE_SEC_TDM_TX_7},
  415. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  416. LPASS_BE_TERT_TDM_RX_0},
  417. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  418. LPASS_BE_TERT_TDM_TX_0},
  419. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  420. LPASS_BE_TERT_TDM_RX_1},
  421. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  422. LPASS_BE_TERT_TDM_TX_1},
  423. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  424. LPASS_BE_TERT_TDM_RX_2},
  425. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  426. LPASS_BE_TERT_TDM_TX_2},
  427. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  428. LPASS_BE_TERT_TDM_RX_3},
  429. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  430. LPASS_BE_TERT_TDM_TX_3},
  431. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  432. LPASS_BE_TERT_TDM_RX_4},
  433. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  434. LPASS_BE_TERT_TDM_TX_4},
  435. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  436. LPASS_BE_TERT_TDM_RX_5},
  437. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  438. LPASS_BE_TERT_TDM_TX_5},
  439. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  440. LPASS_BE_TERT_TDM_RX_6},
  441. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  442. LPASS_BE_TERT_TDM_TX_6},
  443. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  444. LPASS_BE_TERT_TDM_RX_7},
  445. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  446. LPASS_BE_TERT_TDM_TX_7},
  447. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  448. LPASS_BE_QUAT_TDM_RX_0},
  449. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  450. LPASS_BE_QUAT_TDM_TX_0},
  451. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  452. LPASS_BE_QUAT_TDM_RX_1},
  453. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  454. LPASS_BE_QUAT_TDM_TX_1},
  455. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  456. LPASS_BE_QUAT_TDM_RX_2},
  457. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  458. LPASS_BE_QUAT_TDM_TX_2},
  459. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  460. LPASS_BE_QUAT_TDM_RX_3},
  461. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  462. LPASS_BE_QUAT_TDM_TX_3},
  463. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  464. LPASS_BE_QUAT_TDM_RX_4},
  465. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  466. LPASS_BE_QUAT_TDM_TX_4},
  467. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  468. LPASS_BE_QUAT_TDM_RX_5},
  469. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  470. LPASS_BE_QUAT_TDM_TX_5},
  471. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  472. LPASS_BE_QUAT_TDM_RX_6},
  473. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  474. LPASS_BE_QUAT_TDM_TX_6},
  475. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  476. LPASS_BE_QUAT_TDM_RX_7},
  477. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  478. LPASS_BE_QUAT_TDM_TX_7},
  479. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  480. LPASS_BE_QUIN_TDM_RX_0},
  481. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  482. LPASS_BE_QUIN_TDM_TX_0},
  483. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  484. LPASS_BE_QUIN_TDM_RX_1},
  485. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  486. LPASS_BE_QUIN_TDM_TX_1},
  487. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  488. LPASS_BE_QUIN_TDM_RX_2},
  489. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  490. LPASS_BE_QUIN_TDM_TX_2},
  491. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  492. LPASS_BE_QUIN_TDM_RX_3},
  493. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  494. LPASS_BE_QUIN_TDM_TX_3},
  495. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  496. LPASS_BE_QUIN_TDM_RX_4},
  497. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  498. LPASS_BE_QUIN_TDM_TX_4},
  499. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  500. LPASS_BE_QUIN_TDM_RX_5},
  501. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  502. LPASS_BE_QUIN_TDM_TX_5},
  503. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  504. LPASS_BE_QUIN_TDM_RX_6},
  505. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  506. LPASS_BE_QUIN_TDM_TX_6},
  507. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  508. LPASS_BE_QUIN_TDM_RX_7},
  509. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  510. LPASS_BE_QUIN_TDM_TX_7},
  511. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  512. LPASS_BE_INT_BT_A2DP_RX},
  513. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  514. LPASS_BE_USB_AUDIO_RX},
  515. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  516. LPASS_BE_USB_AUDIO_TX},
  517. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  518. LPASS_BE_DISPLAY_PORT},
  519. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  520. LPASS_BE_DISPLAY_PORT1},
  521. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  522. LPASS_BE_TERT_AUXPCM_RX},
  523. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  524. LPASS_BE_TERT_AUXPCM_TX},
  525. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  526. LPASS_BE_QUAT_AUXPCM_RX},
  527. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  528. LPASS_BE_QUAT_AUXPCM_TX},
  529. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  530. LPASS_BE_QUIN_AUXPCM_RX},
  531. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  532. LPASS_BE_QUIN_AUXPCM_TX},
  533. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  534. LPASS_BE_INT0_MI2S_RX},
  535. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  536. LPASS_BE_INT0_MI2S_TX},
  537. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  538. LPASS_BE_INT1_MI2S_RX},
  539. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  540. LPASS_BE_INT1_MI2S_TX},
  541. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  542. LPASS_BE_INT2_MI2S_RX},
  543. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  544. LPASS_BE_INT2_MI2S_TX},
  545. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  546. LPASS_BE_INT3_MI2S_RX},
  547. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  548. LPASS_BE_INT3_MI2S_TX},
  549. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  550. LPASS_BE_INT4_MI2S_RX},
  551. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  552. LPASS_BE_INT4_MI2S_TX},
  553. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  554. LPASS_BE_INT5_MI2S_RX},
  555. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  556. LPASS_BE_INT5_MI2S_TX},
  557. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  558. LPASS_BE_INT6_MI2S_RX},
  559. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  560. LPASS_BE_INT6_MI2S_TX},
  561. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  562. LPASS_BE_WSA_CDC_DMA_RX_0},
  563. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  564. LPASS_BE_WSA_CDC_DMA_TX_0},
  565. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  566. LPASS_BE_WSA_CDC_DMA_RX_1},
  567. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  568. LPASS_BE_WSA_CDC_DMA_TX_1},
  569. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  570. LPASS_BE_WSA_CDC_DMA_TX_2},
  571. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  572. LPASS_BE_VA_CDC_DMA_TX_0},
  573. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  574. LPASS_BE_VA_CDC_DMA_TX_1},
  575. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  576. LPASS_BE_RX_CDC_DMA_RX_0},
  577. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  578. LPASS_BE_TX_CDC_DMA_TX_0},
  579. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  580. LPASS_BE_RX_CDC_DMA_RX_1},
  581. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  582. LPASS_BE_TX_CDC_DMA_TX_1},
  583. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  584. LPASS_BE_RX_CDC_DMA_RX_2},
  585. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  586. LPASS_BE_TX_CDC_DMA_TX_2},
  587. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  588. LPASS_BE_RX_CDC_DMA_RX_3},
  589. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  590. LPASS_BE_TX_CDC_DMA_TX_3},
  591. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  592. LPASS_BE_RX_CDC_DMA_RX_4},
  593. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  594. LPASS_BE_TX_CDC_DMA_TX_4},
  595. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  596. LPASS_BE_RX_CDC_DMA_RX_5},
  597. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  598. LPASS_BE_TX_CDC_DMA_TX_5},
  599. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  600. LPASS_BE_RX_CDC_DMA_RX_6},
  601. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  602. LPASS_BE_RX_CDC_DMA_RX_7},
  603. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  604. LPASS_BE_PRI_SPDIF_TX},
  605. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  606. LPASS_BE_SEC_SPDIF_RX},
  607. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  608. LPASS_BE_SEC_SPDIF_TX},
  609. };
  610. /* Track ASM playback & capture sessions of DAI
  611. * Track LSM listen sessions
  612. */
  613. static struct msm_pcm_routing_fdai_data
  614. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  615. /* MULTIMEDIA1 */
  616. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  617. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  618. /* MULTIMEDIA2 */
  619. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  620. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  621. /* MULTIMEDIA3 */
  622. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  623. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  624. /* MULTIMEDIA4 */
  625. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  626. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  627. /* MULTIMEDIA5 */
  628. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  629. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  630. /* MULTIMEDIA6 */
  631. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  632. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  633. /* MULTIMEDIA7*/
  634. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  635. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  636. /* MULTIMEDIA8 */
  637. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  638. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  639. /* MULTIMEDIA9 */
  640. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  641. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  642. /* MULTIMEDIA10 */
  643. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  644. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  645. /* MULTIMEDIA11 */
  646. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  647. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  648. /* MULTIMEDIA12 */
  649. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  650. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  651. /* MULTIMEDIA13 */
  652. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  653. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  654. /* MULTIMEDIA14 */
  655. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  656. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  657. /* MULTIMEDIA15 */
  658. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  659. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  660. /* MULTIMEDIA16 */
  661. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  662. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  663. /* MULTIMEDIA17 */
  664. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  665. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  666. /* MULTIMEDIA18 */
  667. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  668. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  669. /* MULTIMEDIA19 */
  670. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  671. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  672. /* MULTIMEDIA20 */
  673. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  674. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  675. /* MULTIMEDIA28 */
  676. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  677. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  678. /* MULTIMEDIA29 */
  679. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  680. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  681. /* VOIP */
  682. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  683. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  684. /* AFE_RX */
  685. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  686. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  687. /* AFE_TX */
  688. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  689. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  690. /* VOICE_STUB */
  691. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  692. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  693. /* DTMF_RX */
  694. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  695. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  696. /* QCHAT */
  697. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  698. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  699. /* VOLTE_STUB */
  700. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  701. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  702. /* LSM1 */
  703. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  704. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  705. /* LSM2 */
  706. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  707. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  708. /* LSM3 */
  709. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  710. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  711. /* LSM4 */
  712. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  713. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  714. /* LSM5 */
  715. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  716. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  717. /* LSM6 */
  718. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  719. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  720. /* LSM7 */
  721. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  722. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  723. /* LSM8 */
  724. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  725. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  726. /* VOICE2_STUB */
  727. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  728. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  729. /* VOICEMMODE1 */
  730. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  731. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  732. /* VOICEMMODE2 */
  733. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  734. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  735. };
  736. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  737. [MSM_BACKEND_DAI_MAX];
  738. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  739. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  740. static struct msm_pcm_stream_app_type_cfg
  741. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  742. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  743. /* The caller of this should aqcuire routing lock */
  744. void msm_pcm_routing_get_bedai_info(int be_idx,
  745. struct msm_pcm_routing_bdai_data *be_dai)
  746. {
  747. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  748. memcpy(be_dai, &msm_bedais[be_idx],
  749. sizeof(struct msm_pcm_routing_bdai_data));
  750. }
  751. /* The caller of this should aqcuire routing lock */
  752. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  753. struct msm_pcm_routing_fdai_data *fe_dai)
  754. {
  755. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  756. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  757. sizeof(struct msm_pcm_routing_fdai_data));
  758. }
  759. void msm_pcm_routing_acquire_lock(void)
  760. {
  761. mutex_lock(&routing_lock);
  762. }
  763. void msm_pcm_routing_release_lock(void)
  764. {
  765. mutex_unlock(&routing_lock);
  766. }
  767. static int msm_pcm_routing_get_app_type_idx(int app_type)
  768. {
  769. int idx;
  770. pr_debug("%s: app_type: %d\n", __func__, app_type);
  771. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  772. if (app_type_cfg[idx].app_type == app_type)
  773. return idx;
  774. }
  775. pr_info("%s: App type not available, fallback to default\n", __func__);
  776. return 0;
  777. }
  778. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  779. {
  780. int idx;
  781. pr_debug("%s: app_type: %d\n", __func__, app_type);
  782. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  783. if (lsm_app_type_cfg[idx].app_type == app_type)
  784. return idx;
  785. }
  786. pr_debug("%s: App type not available, fallback to default\n", __func__);
  787. return 0;
  788. }
  789. static bool is_mm_lsm_fe_id(int fe_id)
  790. {
  791. bool rc = true;
  792. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  793. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  794. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  795. rc = false;
  796. }
  797. return rc;
  798. }
  799. /*
  800. * msm_pcm_routing_send_chmix_cfg:
  801. * send the channel mixer command to mix the input channels
  802. * into output channels.
  803. *
  804. * @fe_id: front end id
  805. * @ip_channel_cnt: input channel count
  806. * @op_channel_cnt: output channel count
  807. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  808. * @session_type: indicates session is of type TX or RX
  809. * @stream_type: indicates either Audio or Listen stream type
  810. */
  811. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  812. int op_channel_cnt, int *ch_wght_coeff,
  813. int session_type, int stream_type)
  814. {
  815. int rc = 0, idx = 0;
  816. int be_index = 0, port_id;
  817. unsigned int session_id = 0;
  818. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  819. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  820. stream_type);
  821. if (!is_mm_lsm_fe_id(fe_id)) {
  822. /* bad ID assigned in machine driver */
  823. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  824. return -EINVAL;
  825. }
  826. if (ch_wght_coeff == NULL) {
  827. pr_err("%s: Null channel weightage coefficients passed\n",
  828. __func__);
  829. return -EINVAL;
  830. }
  831. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  832. port_id = msm_bedais[be_index].port_id;
  833. if (!msm_bedais[be_index].active ||
  834. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  835. continue;
  836. session_id = fe_dai_map[fe_id][session_type].strm_id;
  837. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  838. unsigned long copp =
  839. session_copp_map[fe_id][session_type][be_index];
  840. if (!test_bit(idx, &copp))
  841. continue;
  842. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  843. session_id, ip_channel_cnt,
  844. op_channel_cnt, ch_wght_coeff,
  845. session_type, stream_type);
  846. if (rc < 0)
  847. pr_err("%s: err setting channel mix config\n",
  848. __func__);
  849. }
  850. }
  851. return 0;
  852. }
  853. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  854. int msm_pcm_routing_reg_stream_app_type_cfg(
  855. int fedai_id, int session_type, int be_id,
  856. struct msm_pcm_stream_app_type_cfg *cfg_data)
  857. {
  858. int ret = 0;
  859. if (cfg_data == NULL) {
  860. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  861. ret = -EINVAL;
  862. goto done;
  863. }
  864. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  865. __func__, fedai_id, session_type, be_id,
  866. cfg_data->app_type, cfg_data->acdb_dev_id,
  867. cfg_data->sample_rate);
  868. if (!is_mm_lsm_fe_id(fedai_id)) {
  869. pr_err("%s: Invalid machine driver ID %d\n",
  870. __func__, fedai_id);
  871. ret = -EINVAL;
  872. goto done;
  873. }
  874. if (session_type != SESSION_TYPE_RX &&
  875. session_type != SESSION_TYPE_TX) {
  876. pr_err("%s: Invalid session type %d\n",
  877. __func__, session_type);
  878. ret = -EINVAL;
  879. goto done;
  880. }
  881. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  882. pr_err("%s: Received out of bounds be_id %d\n",
  883. __func__, be_id);
  884. ret = -EINVAL;
  885. goto done;
  886. }
  887. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  888. /*
  889. * Store the BE ID of the configuration information set as the latest so
  890. * the get mixer control knows what to return.
  891. */
  892. last_be_id_configured[fedai_id][session_type] = be_id;
  893. done:
  894. return ret;
  895. }
  896. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  897. /**
  898. * msm_pcm_routing_get_stream_app_type_cfg
  899. *
  900. * Receives fedai_id, session_type, be_id, and populates app_type,
  901. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  902. * -EINVAL and does not alter passed values.
  903. *
  904. * fedai_id - Passed value, front end ID for which app type config is wanted
  905. * session_type - Passed value, session type for which app type config
  906. * is wanted
  907. * be_id - Returned value, back end device id the app type config data is for
  908. * cfg_data - Returned value, configuration data used by app type config
  909. */
  910. int msm_pcm_routing_get_stream_app_type_cfg(
  911. int fedai_id, int session_type, int *bedai_id,
  912. struct msm_pcm_stream_app_type_cfg *cfg_data)
  913. {
  914. int be_id;
  915. int ret = 0;
  916. if (bedai_id == NULL) {
  917. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  918. ret = -EINVAL;
  919. goto done;
  920. } else if (cfg_data == NULL) {
  921. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  922. ret = -EINVAL;
  923. goto done;
  924. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  925. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  926. ret = -EINVAL;
  927. goto done;
  928. } else if (session_type != SESSION_TYPE_RX &&
  929. session_type != SESSION_TYPE_TX) {
  930. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  931. ret = -EINVAL;
  932. goto done;
  933. }
  934. be_id = last_be_id_configured[fedai_id][session_type];
  935. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  936. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  937. ret = -EINVAL;
  938. goto done;
  939. }
  940. *bedai_id = be_id;
  941. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  942. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  943. __func__, fedai_id, session_type, *bedai_id,
  944. cfg_data->app_type, cfg_data->acdb_dev_id,
  945. cfg_data->sample_rate);
  946. done:
  947. return ret;
  948. }
  949. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  950. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  951. int cal_index)
  952. {
  953. struct list_head *ptr, *next;
  954. struct cal_block_data *cal_block = NULL;
  955. pr_debug("%s\n", __func__);
  956. list_for_each_safe(ptr, next,
  957. &cal_data[cal_index]->cal_blocks) {
  958. cal_block = list_entry(ptr,
  959. struct cal_block_data, list);
  960. if (cal_utils_is_cal_stale(cal_block))
  961. continue;
  962. if (((struct audio_cal_info_adm_top *)cal_block
  963. ->cal_info)->path == path) {
  964. return cal_block;
  965. }
  966. }
  967. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  968. return NULL;
  969. }
  970. static struct cal_block_data *msm_routing_find_topology(int path,
  971. int app_type,
  972. int acdb_id,
  973. int cal_index)
  974. {
  975. struct list_head *ptr, *next;
  976. struct cal_block_data *cal_block = NULL;
  977. struct audio_cal_info_adm_top *cal_info;
  978. pr_debug("%s\n", __func__);
  979. list_for_each_safe(ptr, next,
  980. &cal_data[cal_index]->cal_blocks) {
  981. cal_block = list_entry(ptr,
  982. struct cal_block_data, list);
  983. if (cal_utils_is_cal_stale(cal_block))
  984. continue;
  985. cal_info = (struct audio_cal_info_adm_top *)
  986. cal_block->cal_info;
  987. if ((cal_info->path == path) &&
  988. (cal_info->app_type == app_type) &&
  989. (cal_info->acdb_id == acdb_id)) {
  990. return cal_block;
  991. }
  992. }
  993. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  994. __func__, path, app_type, acdb_id);
  995. return msm_routing_find_topology_by_path(path, cal_index);
  996. }
  997. /*
  998. * Retrieving cal_block will mark cal_block as stale.
  999. * Hence it cannot be reused or resent unless the flag
  1000. * is reset.
  1001. */
  1002. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1003. int be_id)
  1004. {
  1005. int topology = NULL_COPP_TOPOLOGY;
  1006. struct cal_block_data *cal_block = NULL;
  1007. int app_type = 0, acdb_dev_id = 0;
  1008. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1009. __func__, fedai_id, session_type, be_id);
  1010. if (cal_data == NULL)
  1011. goto done;
  1012. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1013. acdb_dev_id =
  1014. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1015. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1016. cal_block = msm_routing_find_topology(session_type, app_type,
  1017. acdb_dev_id,
  1018. ADM_TOPOLOGY_CAL_TYPE_IDX);
  1019. if (cal_block != NULL) {
  1020. topology = ((struct audio_cal_info_adm_top *)
  1021. cal_block->cal_info)->topology;
  1022. cal_utils_mark_cal_used(cal_block);
  1023. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1024. } else {
  1025. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1026. pr_debug("%s: Check for LSM topology\n", __func__);
  1027. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1028. cal_block = msm_routing_find_topology(session_type, app_type,
  1029. acdb_dev_id,
  1030. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  1031. if (cal_block != NULL) {
  1032. topology = ((struct audio_cal_info_adm_top *)
  1033. cal_block->cal_info)->topology;
  1034. cal_utils_mark_cal_used(cal_block);
  1035. }
  1036. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1037. }
  1038. done:
  1039. pr_debug("%s: Using topology %d\n", __func__, topology);
  1040. return topology;
  1041. }
  1042. static uint8_t is_be_dai_extproc(int be_dai)
  1043. {
  1044. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1045. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1046. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1047. return 1;
  1048. else
  1049. return 0;
  1050. }
  1051. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1052. int path_type, int perf_mode,
  1053. uint32_t passthr_mode)
  1054. {
  1055. int i, port_type, j, num_copps = 0;
  1056. struct route_payload payload;
  1057. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1058. path_type == ADM_PATH_COMPRESSED_RX) ?
  1059. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1060. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1061. if (!is_be_dai_extproc(i) &&
  1062. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1063. (msm_bedais[i].active) &&
  1064. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1065. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1066. unsigned long copp =
  1067. session_copp_map[fedai_id][sess_type][i];
  1068. if (test_bit(j, &copp)) {
  1069. payload.port_id[num_copps] =
  1070. msm_bedais[i].port_id;
  1071. payload.copp_idx[num_copps] = j;
  1072. payload.app_type[num_copps] =
  1073. fe_dai_app_type_cfg
  1074. [fedai_id][sess_type][i]
  1075. .app_type;
  1076. payload.acdb_dev_id[num_copps] =
  1077. fe_dai_app_type_cfg
  1078. [fedai_id][sess_type][i]
  1079. .acdb_dev_id;
  1080. payload.sample_rate[num_copps] =
  1081. fe_dai_app_type_cfg
  1082. [fedai_id][sess_type][i]
  1083. .sample_rate;
  1084. num_copps++;
  1085. }
  1086. }
  1087. }
  1088. }
  1089. if (num_copps) {
  1090. payload.num_copps = num_copps;
  1091. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1092. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1093. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1094. }
  1095. }
  1096. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1097. int stream_type)
  1098. {
  1099. int i, session_type, path_type, port_type;
  1100. u32 mode = 0;
  1101. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1102. /* bad ID assigned in machine driver */
  1103. pr_err("%s: bad MM ID\n", __func__);
  1104. return;
  1105. }
  1106. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1107. session_type = SESSION_TYPE_RX;
  1108. path_type = ADM_PATH_PLAYBACK;
  1109. port_type = MSM_AFE_PORT_TYPE_RX;
  1110. } else {
  1111. session_type = SESSION_TYPE_TX;
  1112. path_type = ADM_PATH_LIVE_REC;
  1113. port_type = MSM_AFE_PORT_TYPE_TX;
  1114. }
  1115. mutex_lock(&routing_lock);
  1116. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1117. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1118. if (!is_be_dai_extproc(i) &&
  1119. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1120. (msm_bedais[i].active) &&
  1121. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1122. mode = afe_get_port_type(msm_bedais[i].port_id);
  1123. adm_connect_afe_port(mode, dspst_id,
  1124. msm_bedais[i].port_id);
  1125. break;
  1126. }
  1127. }
  1128. mutex_unlock(&routing_lock);
  1129. }
  1130. static bool route_check_fe_id_adm_support(int fe_id)
  1131. {
  1132. bool rc = true;
  1133. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1134. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1135. /* fe id is listen while port is set to afe */
  1136. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1137. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1138. __func__, fe_id, lsm_port_index);
  1139. rc = false;
  1140. }
  1141. }
  1142. return rc;
  1143. }
  1144. /*
  1145. * msm_pcm_routing_get_pp_ch_cnt:
  1146. * Read the processed channel count
  1147. *
  1148. * @fe_id: Front end ID
  1149. * @session_type: Inidicates RX or TX session type
  1150. */
  1151. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1152. {
  1153. struct msm_pcm_stream_app_type_cfg cfg_data;
  1154. int be_id = 0, app_type_idx = 0, app_type = 0;
  1155. int ret = -EINVAL;
  1156. memset(&cfg_data, 0, sizeof(cfg_data));
  1157. if (!is_mm_lsm_fe_id(fe_id)) {
  1158. pr_err("%s: bad MM ID\n", __func__);
  1159. return -EINVAL;
  1160. }
  1161. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1162. &be_id, &cfg_data);
  1163. if (ret) {
  1164. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1165. return ret;
  1166. }
  1167. app_type = cfg_data.app_type;
  1168. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1169. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1170. }
  1171. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1172. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1173. int dspst_id, int stream_type,
  1174. uint32_t passthr_mode)
  1175. {
  1176. int i, j, session_type, path_type, port_type, topology;
  1177. int num_copps = 0;
  1178. struct route_payload payload;
  1179. u32 channels, sample_rate;
  1180. u16 bit_width = 16;
  1181. bool is_lsm;
  1182. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1183. __func__, fe_id, perf_mode, dspst_id,
  1184. stream_type, passthr_mode);
  1185. if (!is_mm_lsm_fe_id(fe_id)) {
  1186. /* bad ID assigned in machine driver */
  1187. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1188. return -EINVAL;
  1189. }
  1190. if (!route_check_fe_id_adm_support(fe_id)) {
  1191. /* ignore adm open if not supported for fe_id */
  1192. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1193. return 0;
  1194. }
  1195. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1196. session_type = SESSION_TYPE_RX;
  1197. if (passthr_mode != LEGACY_PCM)
  1198. path_type = ADM_PATH_COMPRESSED_RX;
  1199. else
  1200. path_type = ADM_PATH_PLAYBACK;
  1201. port_type = MSM_AFE_PORT_TYPE_RX;
  1202. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1203. session_type = SESSION_TYPE_TX;
  1204. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1205. path_type = ADM_PATH_COMPRESSED_TX;
  1206. else
  1207. path_type = ADM_PATH_LIVE_REC;
  1208. port_type = MSM_AFE_PORT_TYPE_TX;
  1209. } else {
  1210. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1211. return -EINVAL;
  1212. }
  1213. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1214. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1215. mutex_lock(&routing_lock);
  1216. payload.num_copps = 0; /* only RX needs to use payload */
  1217. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1218. /* re-enable EQ if active */
  1219. msm_qti_pp_send_eq_values(fe_id);
  1220. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1221. if (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))
  1222. msm_bedais[i].passthr_mode[fe_id] = passthr_mode;
  1223. if (!is_be_dai_extproc(i) &&
  1224. (afe_get_port_type(msm_bedais[i].port_id) ==
  1225. port_type) &&
  1226. (msm_bedais[i].active) &&
  1227. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1228. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1229. /*
  1230. * check if ADM needs to be configured with different
  1231. * channel mapping than backend
  1232. */
  1233. if (!msm_bedais[i].adm_override_ch)
  1234. channels = msm_bedais[i].channel;
  1235. else
  1236. channels = msm_bedais[i].adm_override_ch;
  1237. bit_width = msm_routing_get_bit_width(
  1238. msm_bedais[i].format);
  1239. app_type =
  1240. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1241. if (app_type && is_lsm) {
  1242. app_type_idx =
  1243. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1244. sample_rate =
  1245. fe_dai_app_type_cfg[fe_id][session_type][i]
  1246. .sample_rate;
  1247. bit_width =
  1248. lsm_app_type_cfg[app_type_idx].bit_width;
  1249. } else if (app_type) {
  1250. app_type_idx =
  1251. msm_pcm_routing_get_app_type_idx(
  1252. app_type);
  1253. sample_rate =
  1254. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1255. bit_width =
  1256. app_type_cfg[app_type_idx].bit_width;
  1257. } else {
  1258. sample_rate = msm_bedais[i].sample_rate;
  1259. }
  1260. acdb_dev_id =
  1261. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1262. topology = msm_routing_get_adm_topology(fe_id,
  1263. session_type,
  1264. i);
  1265. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1266. || (passthr_mode ==
  1267. COMPRESSED_PASSTHROUGH_GEN)
  1268. || (passthr_mode ==
  1269. COMPRESSED_PASSTHROUGH_IEC61937))
  1270. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1271. pr_debug("%s: Before adm open topology %d\n", __func__,
  1272. topology);
  1273. copp_idx =
  1274. adm_open(msm_bedais[i].port_id,
  1275. path_type, sample_rate, channels,
  1276. topology, perf_mode, bit_width,
  1277. app_type, acdb_dev_id);
  1278. if ((copp_idx < 0) ||
  1279. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1280. pr_err("%s:adm open failed coppid:%d\n",
  1281. __func__, copp_idx);
  1282. mutex_unlock(&routing_lock);
  1283. return -EINVAL;
  1284. }
  1285. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1286. __func__, fe_id, session_type, i);
  1287. set_bit(copp_idx,
  1288. &session_copp_map[fe_id][session_type][i]);
  1289. if (msm_is_resample_needed(
  1290. sample_rate,
  1291. msm_bedais[i].sample_rate))
  1292. adm_copp_mfc_cfg(
  1293. msm_bedais[i].port_id, copp_idx,
  1294. msm_bedais[i].sample_rate);
  1295. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1296. unsigned long copp =
  1297. session_copp_map[fe_id][session_type][i];
  1298. if (test_bit(j, &copp)) {
  1299. payload.port_id[num_copps] =
  1300. msm_bedais[i].port_id;
  1301. payload.copp_idx[num_copps] = j;
  1302. payload.app_type[num_copps] =
  1303. fe_dai_app_type_cfg
  1304. [fe_id][session_type][i]
  1305. .app_type;
  1306. payload.acdb_dev_id[num_copps] =
  1307. fe_dai_app_type_cfg
  1308. [fe_id][session_type][i]
  1309. .acdb_dev_id;
  1310. payload.sample_rate[num_copps] =
  1311. fe_dai_app_type_cfg
  1312. [fe_id][session_type][i]
  1313. .sample_rate;
  1314. num_copps++;
  1315. }
  1316. }
  1317. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1318. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1319. && passthr_mode !=
  1320. COMPRESSED_PASSTHROUGH_IEC61937)
  1321. msm_routing_send_device_pp_params(
  1322. msm_bedais[i].port_id,
  1323. copp_idx, fe_id);
  1324. }
  1325. }
  1326. if (num_copps) {
  1327. payload.num_copps = num_copps;
  1328. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1329. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1330. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1331. }
  1332. mutex_unlock(&routing_lock);
  1333. return 0;
  1334. }
  1335. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1336. {
  1337. u32 session_id;
  1338. switch (val) {
  1339. case MSM_FRONTEND_DAI_QCHAT:
  1340. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1341. break;
  1342. case MSM_FRONTEND_DAI_VOIP:
  1343. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1344. break;
  1345. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1346. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1347. break;
  1348. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1349. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1350. break;
  1351. default:
  1352. session_id = 0;
  1353. }
  1354. pr_debug("%s session_id 0x%x", __func__, session_id);
  1355. return session_id;
  1356. }
  1357. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1358. int dspst_id, int stream_type)
  1359. {
  1360. int copp_idx = 0;
  1361. int sess_type = 0;
  1362. int i = 0, j = 0, be_id;
  1363. int ret = 0;
  1364. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1365. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1366. return 0;
  1367. }
  1368. if (!(channel_mixer[fe_id].enable)) {
  1369. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1370. __func__, fe_id);
  1371. return 0;
  1372. }
  1373. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1374. sess_type = SESSION_TYPE_RX;
  1375. else
  1376. sess_type = SESSION_TYPE_TX;
  1377. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1378. ++i) {
  1379. be_id = channel_input[fe_id][i] - 1;
  1380. channel_mixer[fe_id].input_channels[i] =
  1381. msm_bedais[be_id].channel;
  1382. if ((msm_bedais[be_id].active) &&
  1383. test_bit(fe_id,
  1384. &msm_bedais[be_id].fe_sessions[0])) {
  1385. unsigned long copp =
  1386. session_copp_map[fe_id][sess_type][be_id];
  1387. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1388. if (test_bit(j, &copp)) {
  1389. copp_idx = j;
  1390. break;
  1391. }
  1392. }
  1393. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1394. __func__,
  1395. fe_id, be_id, msm_bedais[be_id].channel,
  1396. copp_idx);
  1397. ret = adm_programable_channel_mixer(
  1398. msm_bedais[be_id].port_id,
  1399. copp_idx, dspst_id, sess_type,
  1400. channel_mixer + fe_id, i);
  1401. }
  1402. }
  1403. return ret;
  1404. }
  1405. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1406. int dspst_id, int stream_type)
  1407. {
  1408. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1409. struct route_payload payload;
  1410. u32 channels, sample_rate;
  1411. uint16_t bits_per_sample = 16;
  1412. uint32_t passthr_mode = LEGACY_PCM;
  1413. int ret = 0;
  1414. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1415. /* bad ID assigned in machine driver */
  1416. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1417. return -EINVAL;
  1418. }
  1419. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1420. session_type = SESSION_TYPE_RX;
  1421. path_type = ADM_PATH_PLAYBACK;
  1422. port_type = MSM_AFE_PORT_TYPE_RX;
  1423. } else {
  1424. session_type = SESSION_TYPE_TX;
  1425. path_type = ADM_PATH_LIVE_REC;
  1426. port_type = MSM_AFE_PORT_TYPE_TX;
  1427. }
  1428. mutex_lock(&routing_lock);
  1429. payload.num_copps = 0; /* only RX needs to use payload */
  1430. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1431. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1432. /* re-enable EQ if active */
  1433. msm_qti_pp_send_eq_values(fedai_id);
  1434. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1435. if (!is_be_dai_extproc(i) &&
  1436. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1437. (msm_bedais[i].active) &&
  1438. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1439. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1440. /*
  1441. * check if ADM needs to be configured with different
  1442. * channel mapping than backend
  1443. */
  1444. if (!msm_bedais[i].adm_override_ch)
  1445. channels = msm_bedais[i].channel;
  1446. else
  1447. channels = msm_bedais[i].adm_override_ch;
  1448. msm_bedais[i].passthr_mode[fedai_id] =
  1449. LEGACY_PCM;
  1450. bits_per_sample = msm_routing_get_bit_width(
  1451. msm_bedais[i].format);
  1452. app_type =
  1453. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1454. if (app_type) {
  1455. app_type_idx =
  1456. msm_pcm_routing_get_app_type_idx(app_type);
  1457. sample_rate =
  1458. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1459. .sample_rate;
  1460. bits_per_sample =
  1461. app_type_cfg[app_type_idx].bit_width;
  1462. } else
  1463. sample_rate = msm_bedais[i].sample_rate;
  1464. acdb_dev_id =
  1465. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1466. .acdb_dev_id;
  1467. topology = msm_routing_get_adm_topology(fedai_id,
  1468. session_type,
  1469. i);
  1470. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1471. sample_rate, channels, topology,
  1472. perf_mode, bits_per_sample,
  1473. app_type, acdb_dev_id);
  1474. if ((copp_idx < 0) ||
  1475. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1476. pr_err("%s: adm open failed copp_idx:%d\n",
  1477. __func__, copp_idx);
  1478. mutex_unlock(&routing_lock);
  1479. return -EINVAL;
  1480. }
  1481. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1482. __func__, fedai_id, session_type, i);
  1483. set_bit(copp_idx,
  1484. &session_copp_map[fedai_id][session_type][i]);
  1485. if (msm_is_resample_needed(
  1486. sample_rate,
  1487. msm_bedais[i].sample_rate))
  1488. adm_copp_mfc_cfg(
  1489. msm_bedais[i].port_id, copp_idx,
  1490. msm_bedais[i].sample_rate);
  1491. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1492. unsigned long copp =
  1493. session_copp_map[fedai_id][session_type][i];
  1494. if (test_bit(j, &copp)) {
  1495. payload.port_id[num_copps] =
  1496. msm_bedais[i].port_id;
  1497. payload.copp_idx[num_copps] = j;
  1498. payload.app_type[num_copps] =
  1499. fe_dai_app_type_cfg
  1500. [fedai_id][session_type]
  1501. [i].app_type;
  1502. payload.acdb_dev_id[num_copps] =
  1503. fe_dai_app_type_cfg
  1504. [fedai_id][session_type]
  1505. [i].acdb_dev_id;
  1506. payload.sample_rate[num_copps] =
  1507. fe_dai_app_type_cfg
  1508. [fedai_id][session_type]
  1509. [i].sample_rate;
  1510. num_copps++;
  1511. }
  1512. }
  1513. if ((perf_mode == LEGACY_PCM_MODE) &&
  1514. (msm_bedais[i].passthr_mode[fedai_id] ==
  1515. LEGACY_PCM))
  1516. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1517. copp_idx, topology,
  1518. channels);
  1519. }
  1520. }
  1521. if (num_copps) {
  1522. payload.num_copps = num_copps;
  1523. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1524. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1525. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1526. }
  1527. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1528. dspst_id, stream_type);
  1529. mutex_unlock(&routing_lock);
  1530. return ret;
  1531. }
  1532. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1533. int dspst_id, int stream_type,
  1534. struct msm_pcm_routing_evt event_info)
  1535. {
  1536. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1537. stream_type)) {
  1538. pr_err("%s: failed to reg phy stream\n", __func__);
  1539. return -EINVAL;
  1540. }
  1541. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1542. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1543. else
  1544. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1545. return 0;
  1546. }
  1547. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1548. {
  1549. int i, port_type, session_type, path_type, topology;
  1550. struct msm_pcm_routing_fdai_data *fdai;
  1551. if (!is_mm_lsm_fe_id(fedai_id)) {
  1552. /* bad ID assigned in machine driver */
  1553. pr_err("%s: bad MM ID\n", __func__);
  1554. return;
  1555. }
  1556. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1557. port_type = MSM_AFE_PORT_TYPE_RX;
  1558. session_type = SESSION_TYPE_RX;
  1559. path_type = ADM_PATH_PLAYBACK;
  1560. } else {
  1561. port_type = MSM_AFE_PORT_TYPE_TX;
  1562. session_type = SESSION_TYPE_TX;
  1563. path_type = ADM_PATH_LIVE_REC;
  1564. }
  1565. mutex_lock(&routing_lock);
  1566. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1567. if (!is_be_dai_extproc(i) &&
  1568. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1569. (msm_bedais[i].active) &&
  1570. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1571. int idx;
  1572. unsigned long copp =
  1573. session_copp_map[fedai_id][session_type][i];
  1574. fdai = &fe_dai_map[fedai_id][session_type];
  1575. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1576. if (test_bit(idx, &copp))
  1577. break;
  1578. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1579. pr_debug("%s: copp idx is invalid, exiting\n",
  1580. __func__);
  1581. continue;
  1582. }
  1583. topology = adm_get_topology_for_port_copp_idx(
  1584. msm_bedais[i].port_id, idx);
  1585. msm_routing_unload_topology(topology);
  1586. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1587. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1588. __func__, copp, fedai_id, session_type, i);
  1589. clear_bit(idx,
  1590. &session_copp_map[fedai_id][session_type][i]);
  1591. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1592. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1593. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1594. (msm_bedais[i].passthr_mode[fedai_id] ==
  1595. LEGACY_PCM))
  1596. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1597. topology);
  1598. }
  1599. }
  1600. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1601. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1602. mutex_unlock(&routing_lock);
  1603. }
  1604. /* Check if FE/BE route is set */
  1605. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1606. {
  1607. bool rc = false;
  1608. if (!is_mm_lsm_fe_id(fe_id)) {
  1609. /* recheck FE ID in the mixer control defined in this file */
  1610. pr_err("%s: bad MM ID\n", __func__);
  1611. return rc;
  1612. }
  1613. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1614. rc = true;
  1615. return rc;
  1616. }
  1617. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1618. {
  1619. int session_type, path_type, topology;
  1620. u32 channels, sample_rate;
  1621. uint16_t bits_per_sample = 16;
  1622. struct msm_pcm_routing_fdai_data *fdai;
  1623. uint32_t passthr_mode;
  1624. bool is_lsm;
  1625. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1626. if (!is_mm_lsm_fe_id(val)) {
  1627. /* recheck FE ID in the mixer control defined in this file */
  1628. pr_err("%s: bad MM ID\n", __func__);
  1629. return;
  1630. }
  1631. if (!route_check_fe_id_adm_support(val)) {
  1632. /* ignore adm open if not supported for fe_id */
  1633. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1634. return;
  1635. }
  1636. passthr_mode = msm_bedais[reg].passthr_mode[val];
  1637. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1638. MSM_AFE_PORT_TYPE_RX) {
  1639. session_type = SESSION_TYPE_RX;
  1640. if (passthr_mode != LEGACY_PCM)
  1641. path_type = ADM_PATH_COMPRESSED_RX;
  1642. else
  1643. path_type = ADM_PATH_PLAYBACK;
  1644. } else {
  1645. session_type = SESSION_TYPE_TX;
  1646. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1647. path_type = ADM_PATH_COMPRESSED_TX;
  1648. else
  1649. path_type = ADM_PATH_LIVE_REC;
  1650. }
  1651. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1652. (val <= MSM_FRONTEND_DAI_LSM8);
  1653. mutex_lock(&routing_lock);
  1654. if (set) {
  1655. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1656. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1657. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1658. voc_start_playback(set, msm_bedais[reg].port_id);
  1659. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1660. fdai = &fe_dai_map[val][session_type];
  1661. if (msm_bedais[reg].active && fdai->strm_id !=
  1662. INVALID_SESSION) {
  1663. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1664. /*
  1665. * check if ADM needs to be configured with different
  1666. * channel mapping than backend
  1667. */
  1668. if (!msm_bedais[reg].adm_override_ch)
  1669. channels = msm_bedais[reg].channel;
  1670. else
  1671. channels = msm_bedais[reg].adm_override_ch;
  1672. if (session_type == SESSION_TYPE_TX &&
  1673. fdai->be_srate &&
  1674. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1675. pr_debug("%s: flush strm %d diff BE rates\n",
  1676. __func__, fdai->strm_id);
  1677. if (fdai->event_info.event_func)
  1678. fdai->event_info.event_func(
  1679. MSM_PCM_RT_EVT_BUF_RECFG,
  1680. fdai->event_info.priv_data);
  1681. fdai->be_srate = 0; /* might not need it */
  1682. }
  1683. bits_per_sample = msm_routing_get_bit_width(
  1684. msm_bedais[reg].format);
  1685. app_type =
  1686. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1687. if (app_type && is_lsm) {
  1688. app_type_idx =
  1689. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1690. sample_rate =
  1691. fe_dai_app_type_cfg[val][session_type][reg]
  1692. .sample_rate;
  1693. bits_per_sample =
  1694. lsm_app_type_cfg[app_type_idx].bit_width;
  1695. } else if (app_type) {
  1696. app_type_idx =
  1697. msm_pcm_routing_get_app_type_idx(app_type);
  1698. sample_rate =
  1699. fe_dai_app_type_cfg[val][session_type][reg]
  1700. .sample_rate;
  1701. bits_per_sample =
  1702. app_type_cfg[app_type_idx].bit_width;
  1703. } else
  1704. sample_rate = msm_bedais[reg].sample_rate;
  1705. topology = msm_routing_get_adm_topology(val,
  1706. session_type,
  1707. reg);
  1708. acdb_dev_id =
  1709. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1710. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1711. sample_rate, channels, topology,
  1712. fdai->perf_mode, bits_per_sample,
  1713. app_type, acdb_dev_id);
  1714. if ((copp_idx < 0) ||
  1715. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1716. pr_err("%s: adm open failed\n", __func__);
  1717. mutex_unlock(&routing_lock);
  1718. return;
  1719. }
  1720. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1721. __func__, val, session_type, reg);
  1722. set_bit(copp_idx,
  1723. &session_copp_map[val][session_type][reg]);
  1724. if (msm_is_resample_needed(
  1725. sample_rate,
  1726. msm_bedais[reg].sample_rate))
  1727. adm_copp_mfc_cfg(
  1728. msm_bedais[reg].port_id, copp_idx,
  1729. msm_bedais[reg].sample_rate);
  1730. if (session_type == SESSION_TYPE_RX &&
  1731. fdai->event_info.event_func)
  1732. fdai->event_info.event_func(
  1733. MSM_PCM_RT_EVT_DEVSWITCH,
  1734. fdai->event_info.priv_data);
  1735. msm_pcm_routing_build_matrix(val, session_type,
  1736. path_type,
  1737. fdai->perf_mode,
  1738. passthr_mode);
  1739. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1740. (passthr_mode == LEGACY_PCM))
  1741. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1742. copp_idx, topology,
  1743. channels);
  1744. }
  1745. } else {
  1746. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1747. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1748. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1749. voc_start_playback(set, msm_bedais[reg].port_id);
  1750. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1751. fdai = &fe_dai_map[val][session_type];
  1752. if (msm_bedais[reg].active && fdai->strm_id !=
  1753. INVALID_SESSION) {
  1754. int idx;
  1755. int port_id;
  1756. unsigned long copp =
  1757. session_copp_map[val][session_type][reg];
  1758. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1759. if (test_bit(idx, &copp))
  1760. break;
  1761. port_id = msm_bedais[reg].port_id;
  1762. topology = adm_get_topology_for_port_copp_idx(port_id,
  1763. idx);
  1764. msm_routing_unload_topology(topology);
  1765. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1766. idx);
  1767. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1768. __func__, copp, val, session_type, reg,
  1769. topology);
  1770. clear_bit(idx,
  1771. &session_copp_map[val][session_type][reg]);
  1772. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1773. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1774. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1775. (passthr_mode == LEGACY_PCM))
  1776. msm_pcm_routing_deinit_pp(
  1777. msm_bedais[reg].port_id,
  1778. topology);
  1779. msm_pcm_routing_build_matrix(val, session_type,
  1780. path_type,
  1781. fdai->perf_mode,
  1782. passthr_mode);
  1783. }
  1784. }
  1785. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1786. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1787. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1788. mutex_unlock(&routing_lock);
  1789. }
  1790. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1791. struct snd_ctl_elem_value *ucontrol)
  1792. {
  1793. struct soc_mixer_control *mc =
  1794. (struct soc_mixer_control *)kcontrol->private_value;
  1795. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1796. ucontrol->value.integer.value[0] = 1;
  1797. else
  1798. ucontrol->value.integer.value[0] = 0;
  1799. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1800. ucontrol->value.integer.value[0]);
  1801. return 0;
  1802. }
  1803. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1804. struct snd_ctl_elem_value *ucontrol)
  1805. {
  1806. struct snd_soc_dapm_widget *widget =
  1807. snd_soc_dapm_kcontrol_widget(kcontrol);
  1808. struct soc_mixer_control *mc =
  1809. (struct soc_mixer_control *)kcontrol->private_value;
  1810. struct snd_soc_dapm_update *update = NULL;
  1811. if (ucontrol->value.integer.value[0] &&
  1812. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  1813. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1814. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1815. update);
  1816. } else if (!ucontrol->value.integer.value[0] &&
  1817. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  1818. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1819. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1820. update);
  1821. }
  1822. return 1;
  1823. }
  1824. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1825. struct snd_ctl_elem_value *ucontrol)
  1826. {
  1827. struct soc_mixer_control *mc =
  1828. (struct soc_mixer_control *)kcontrol->private_value;
  1829. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1830. ucontrol->value.integer.value[0] = 1;
  1831. else
  1832. ucontrol->value.integer.value[0] = 0;
  1833. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1834. ucontrol->value.integer.value[0]);
  1835. return 0;
  1836. }
  1837. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1838. struct snd_ctl_elem_value *ucontrol)
  1839. {
  1840. struct snd_soc_dapm_widget *widget =
  1841. snd_soc_dapm_kcontrol_widget(kcontrol);
  1842. struct soc_mixer_control *mc =
  1843. (struct soc_mixer_control *)kcontrol->private_value;
  1844. struct snd_soc_dapm_update *update = NULL;
  1845. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1846. ucontrol->value.integer.value[0]);
  1847. if (ucontrol->value.integer.value[0]) {
  1848. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  1849. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1850. snd_soc_dapm_mixer_update_power(widget->dapm,
  1851. kcontrol, 1, update);
  1852. } else if (!ucontrol->value.integer.value[0]) {
  1853. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  1854. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1855. snd_soc_dapm_mixer_update_power(widget->dapm,
  1856. kcontrol, 0, update);
  1857. }
  1858. return 1;
  1859. }
  1860. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1861. {
  1862. u32 session_id = 0;
  1863. u16 path_type;
  1864. struct media_format_info voc_be_media_format;
  1865. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1866. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1867. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1868. __func__, val, session_id);
  1869. mutex_lock(&routing_lock);
  1870. if (set)
  1871. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1872. else
  1873. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1874. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1875. afe_get_port_type(msm_bedais[reg].port_id) ==
  1876. MSM_AFE_PORT_TYPE_RX) {
  1877. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1878. __func__, set, msm_bedais[reg].port_id);
  1879. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1880. }
  1881. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1882. MSM_AFE_PORT_TYPE_RX)
  1883. path_type = RX_PATH;
  1884. else
  1885. path_type = TX_PATH;
  1886. if (set) {
  1887. if (msm_bedais[reg].active) {
  1888. voc_set_route_flag(session_id, path_type, 1);
  1889. memset(&voc_be_media_format, 0,
  1890. sizeof(struct media_format_info));
  1891. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1892. voc_be_media_format.num_channels =
  1893. msm_bedais[reg].channel;
  1894. voc_be_media_format.sample_rate =
  1895. msm_bedais[reg].sample_rate;
  1896. voc_be_media_format.bits_per_sample =
  1897. msm_bedais[reg].format;
  1898. /* Defaulting this to 1 for voice call usecases */
  1899. voc_be_media_format.channel_mapping[0] = 1;
  1900. voc_set_device_config(session_id, path_type,
  1901. &voc_be_media_format);
  1902. if (voc_get_route_flag(session_id, TX_PATH) &&
  1903. voc_get_route_flag(session_id, RX_PATH))
  1904. voc_enable_device(session_id);
  1905. } else {
  1906. pr_debug("%s BE is not active\n", __func__);
  1907. }
  1908. } else {
  1909. voc_set_route_flag(session_id, path_type, 0);
  1910. voc_disable_device(session_id);
  1911. }
  1912. mutex_unlock(&routing_lock);
  1913. }
  1914. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1915. struct snd_ctl_elem_value *ucontrol)
  1916. {
  1917. struct soc_mixer_control *mc =
  1918. (struct soc_mixer_control *)kcontrol->private_value;
  1919. mutex_lock(&routing_lock);
  1920. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1921. ucontrol->value.integer.value[0] = 1;
  1922. else
  1923. ucontrol->value.integer.value[0] = 0;
  1924. mutex_unlock(&routing_lock);
  1925. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1926. ucontrol->value.integer.value[0]);
  1927. return 0;
  1928. }
  1929. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1930. struct snd_ctl_elem_value *ucontrol)
  1931. {
  1932. struct snd_soc_dapm_widget *widget =
  1933. snd_soc_dapm_kcontrol_widget(kcontrol);
  1934. struct soc_mixer_control *mc =
  1935. (struct soc_mixer_control *)kcontrol->private_value;
  1936. struct snd_soc_dapm_update *update = NULL;
  1937. if (ucontrol->value.integer.value[0]) {
  1938. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  1939. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1940. update);
  1941. } else {
  1942. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  1943. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1944. update);
  1945. }
  1946. return 1;
  1947. }
  1948. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1949. struct snd_ctl_elem_value *ucontrol)
  1950. {
  1951. struct soc_mixer_control *mc =
  1952. (struct soc_mixer_control *)kcontrol->private_value;
  1953. mutex_lock(&routing_lock);
  1954. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1955. ucontrol->value.integer.value[0] = 1;
  1956. else
  1957. ucontrol->value.integer.value[0] = 0;
  1958. mutex_unlock(&routing_lock);
  1959. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1960. ucontrol->value.integer.value[0]);
  1961. return 0;
  1962. }
  1963. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1964. struct snd_ctl_elem_value *ucontrol)
  1965. {
  1966. struct snd_soc_dapm_widget *widget =
  1967. snd_soc_dapm_kcontrol_widget(kcontrol);
  1968. struct soc_mixer_control *mc =
  1969. (struct soc_mixer_control *)kcontrol->private_value;
  1970. struct snd_soc_dapm_update *update = NULL;
  1971. if (ucontrol->value.integer.value[0]) {
  1972. mutex_lock(&routing_lock);
  1973. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1974. mutex_unlock(&routing_lock);
  1975. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1976. update);
  1977. } else {
  1978. mutex_lock(&routing_lock);
  1979. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1980. mutex_unlock(&routing_lock);
  1981. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1982. update);
  1983. }
  1984. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1985. ucontrol->value.integer.value[0]);
  1986. return 1;
  1987. }
  1988. /*
  1989. * Return the mapping between port ID and backend ID to enable the AFE callback
  1990. * to determine the acdb_dev_id from the port id
  1991. */
  1992. int msm_pcm_get_be_id_from_port_id(int port_id)
  1993. {
  1994. int i;
  1995. int be_id = -EINVAL;
  1996. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1997. if (msm_bedais[i].port_id == port_id) {
  1998. be_id = i;
  1999. break;
  2000. }
  2001. }
  2002. return be_id;
  2003. }
  2004. /*
  2005. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2006. * correct AFE calibration information by comparing the header information.
  2007. */
  2008. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2009. {
  2010. int acdb_id = -EINVAL;
  2011. int i = 0;
  2012. int session;
  2013. int port_type = afe_get_port_type(port_id);
  2014. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2015. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2016. __func__, port_id, be_id, port_type);
  2017. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2018. session = SESSION_TYPE_TX;
  2019. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2020. session = SESSION_TYPE_RX;
  2021. } else {
  2022. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2023. acdb_id = -EINVAL;
  2024. goto exit;
  2025. }
  2026. if (be_id < 0) {
  2027. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2028. goto exit;
  2029. }
  2030. mutex_lock(&routing_lock);
  2031. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2032. MSM_FRONTEND_DAI_MAX);
  2033. if (i < MSM_FRONTEND_DAI_MAX)
  2034. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2035. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2036. __func__, i, session, be_id, acdb_id);
  2037. mutex_unlock(&routing_lock);
  2038. exit:
  2039. return acdb_id;
  2040. }
  2041. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2042. struct snd_ctl_elem_value *ucontrol)
  2043. {
  2044. ucontrol->value.integer.value[0] = fm_switch_enable;
  2045. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2046. ucontrol->value.integer.value[0]);
  2047. return 0;
  2048. }
  2049. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2050. struct snd_ctl_elem_value *ucontrol)
  2051. {
  2052. struct snd_soc_dapm_widget *widget =
  2053. snd_soc_dapm_kcontrol_widget(kcontrol);
  2054. struct snd_soc_dapm_update *update = NULL;
  2055. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2056. ucontrol->value.integer.value[0]);
  2057. if (ucontrol->value.integer.value[0])
  2058. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2059. update);
  2060. else
  2061. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2062. update);
  2063. fm_switch_enable = ucontrol->value.integer.value[0];
  2064. return 1;
  2065. }
  2066. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2067. struct snd_ctl_elem_value *ucontrol)
  2068. {
  2069. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2070. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2071. ucontrol->value.integer.value[0]);
  2072. return 0;
  2073. }
  2074. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2075. struct snd_ctl_elem_value *ucontrol)
  2076. {
  2077. struct snd_soc_dapm_widget *widget =
  2078. snd_soc_dapm_kcontrol_widget(kcontrol);
  2079. struct snd_soc_dapm_update *update = NULL;
  2080. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2081. ucontrol->value.integer.value[0]);
  2082. if (ucontrol->value.integer.value[0])
  2083. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2084. 1, update);
  2085. else
  2086. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2087. 0, update);
  2088. hfp_switch_enable = ucontrol->value.integer.value[0];
  2089. return 1;
  2090. }
  2091. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2092. struct snd_ctl_elem_value *ucontrol)
  2093. {
  2094. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2095. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2096. ucontrol->value.integer.value[0]);
  2097. return 0;
  2098. }
  2099. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2100. struct snd_ctl_elem_value *ucontrol)
  2101. {
  2102. struct snd_soc_dapm_widget *widget =
  2103. snd_soc_dapm_kcontrol_widget(kcontrol);
  2104. struct snd_soc_dapm_update *update = NULL;
  2105. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2106. ucontrol->value.integer.value[0]);
  2107. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2108. if (a2dp_switch_enable)
  2109. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2110. 1, update);
  2111. else
  2112. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2113. 0, update);
  2114. return 1;
  2115. }
  2116. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2117. struct snd_ctl_elem_value *ucontrol)
  2118. {
  2119. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2120. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2121. ucontrol->value.integer.value[0]);
  2122. return 0;
  2123. }
  2124. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2125. struct snd_ctl_elem_value *ucontrol)
  2126. {
  2127. struct snd_soc_dapm_widget *widget =
  2128. snd_soc_dapm_kcontrol_widget(kcontrol);
  2129. struct snd_soc_dapm_update *update = NULL;
  2130. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2131. ucontrol->value.integer.value[0]);
  2132. if (ucontrol->value.integer.value[0])
  2133. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2134. update);
  2135. else
  2136. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2137. update);
  2138. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2139. return 1;
  2140. }
  2141. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2142. struct snd_ctl_elem_value *ucontrol)
  2143. {
  2144. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2145. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2146. ucontrol->value.integer.value[0]);
  2147. return 0;
  2148. }
  2149. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2150. struct snd_ctl_elem_value *ucontrol)
  2151. {
  2152. struct snd_soc_dapm_widget *widget =
  2153. snd_soc_dapm_kcontrol_widget(kcontrol);
  2154. struct snd_soc_dapm_update *update = NULL;
  2155. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2156. ucontrol->value.integer.value[0]);
  2157. if (ucontrol->value.integer.value[0])
  2158. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2159. update);
  2160. else
  2161. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2162. update);
  2163. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2164. return 1;
  2165. }
  2166. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2167. struct snd_ctl_elem_value *ucontrol)
  2168. {
  2169. ucontrol->value.integer.value[0] = usb_switch_enable;
  2170. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2171. ucontrol->value.integer.value[0]);
  2172. return 0;
  2173. }
  2174. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2175. struct snd_ctl_elem_value *ucontrol)
  2176. {
  2177. struct snd_soc_dapm_widget *widget =
  2178. snd_soc_dapm_kcontrol_widget(kcontrol);
  2179. struct snd_soc_dapm_update *update = NULL;
  2180. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2181. ucontrol->value.integer.value[0]);
  2182. if (ucontrol->value.integer.value[0])
  2183. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2184. 1, update);
  2185. else
  2186. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2187. 0, update);
  2188. usb_switch_enable = ucontrol->value.integer.value[0];
  2189. return 1;
  2190. }
  2191. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2192. struct snd_ctl_elem_value *ucontrol)
  2193. {
  2194. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2195. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2196. ucontrol->value.integer.value[0]);
  2197. return 0;
  2198. }
  2199. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2200. struct snd_ctl_elem_value *ucontrol)
  2201. {
  2202. struct snd_soc_dapm_widget *widget =
  2203. snd_soc_dapm_kcontrol_widget(kcontrol);
  2204. struct snd_soc_dapm_update *update = NULL;
  2205. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2206. ucontrol->value.integer.value[0]);
  2207. if (ucontrol->value.integer.value[0])
  2208. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2209. update);
  2210. else
  2211. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2212. update);
  2213. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2214. return 1;
  2215. }
  2216. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2217. struct snd_ctl_elem_value *ucontrol)
  2218. {
  2219. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2220. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2221. ucontrol->value.integer.value[0]);
  2222. return 0;
  2223. }
  2224. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2225. struct snd_ctl_elem_value *ucontrol)
  2226. {
  2227. struct snd_soc_dapm_widget *widget =
  2228. snd_soc_dapm_kcontrol_widget(kcontrol);
  2229. struct snd_soc_dapm_update *update = NULL;
  2230. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2231. ucontrol->value.integer.value[0]);
  2232. if (ucontrol->value.integer.value[0])
  2233. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2234. update);
  2235. else
  2236. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2237. update);
  2238. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2239. return 1;
  2240. }
  2241. static int msm_routing_get_tert_mi2s_switch_mixer(
  2242. struct snd_kcontrol *kcontrol,
  2243. struct snd_ctl_elem_value *ucontrol)
  2244. {
  2245. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2246. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2247. ucontrol->value.integer.value[0]);
  2248. return 0;
  2249. }
  2250. static int msm_routing_put_tert_mi2s_switch_mixer(
  2251. struct snd_kcontrol *kcontrol,
  2252. struct snd_ctl_elem_value *ucontrol)
  2253. {
  2254. struct snd_soc_dapm_widget *widget =
  2255. snd_soc_dapm_kcontrol_widget(kcontrol);
  2256. struct snd_soc_dapm_update *update = NULL;
  2257. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2258. ucontrol->value.integer.value[0]);
  2259. if (ucontrol->value.integer.value[0])
  2260. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2261. update);
  2262. else
  2263. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2264. update);
  2265. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2266. return 1;
  2267. }
  2268. static int msm_routing_get_quat_mi2s_switch_mixer(
  2269. struct snd_kcontrol *kcontrol,
  2270. struct snd_ctl_elem_value *ucontrol)
  2271. {
  2272. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2273. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2274. ucontrol->value.integer.value[0]);
  2275. return 0;
  2276. }
  2277. static int msm_routing_put_quat_mi2s_switch_mixer(
  2278. struct snd_kcontrol *kcontrol,
  2279. struct snd_ctl_elem_value *ucontrol)
  2280. {
  2281. struct snd_soc_dapm_widget *widget =
  2282. snd_soc_dapm_kcontrol_widget(kcontrol);
  2283. struct snd_soc_dapm_update *update = NULL;
  2284. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2285. ucontrol->value.integer.value[0]);
  2286. if (ucontrol->value.integer.value[0])
  2287. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2288. update);
  2289. else
  2290. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2291. update);
  2292. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2293. return 1;
  2294. }
  2295. static int msm_routing_get_quin_mi2s_switch_mixer(
  2296. struct snd_kcontrol *kcontrol,
  2297. struct snd_ctl_elem_value *ucontrol)
  2298. {
  2299. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2300. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2301. ucontrol->value.integer.value[0]);
  2302. return 0;
  2303. }
  2304. static int msm_routing_put_quin_mi2s_switch_mixer(
  2305. struct snd_kcontrol *kcontrol,
  2306. struct snd_ctl_elem_value *ucontrol)
  2307. {
  2308. struct snd_soc_dapm_widget *widget =
  2309. snd_soc_dapm_kcontrol_widget(kcontrol);
  2310. struct snd_soc_dapm_update *update = NULL;
  2311. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2312. ucontrol->value.integer.value[0]);
  2313. if (ucontrol->value.integer.value[0])
  2314. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2315. update);
  2316. else
  2317. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2318. update);
  2319. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2320. return 1;
  2321. }
  2322. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2323. struct snd_ctl_elem_value *ucontrol)
  2324. {
  2325. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2326. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2327. ucontrol->value.integer.value[0]);
  2328. return 0;
  2329. }
  2330. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2331. struct snd_ctl_elem_value *ucontrol)
  2332. {
  2333. struct snd_soc_dapm_widget *widget =
  2334. snd_soc_dapm_kcontrol_widget(kcontrol);
  2335. struct snd_soc_dapm_update *update = NULL;
  2336. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2337. ucontrol->value.integer.value[0]);
  2338. if (ucontrol->value.integer.value[0])
  2339. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2340. update);
  2341. else
  2342. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2343. update);
  2344. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2345. return 1;
  2346. }
  2347. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2348. struct snd_ctl_elem_value *ucontrol)
  2349. {
  2350. ucontrol->value.integer.value[0] = lsm_port_index;
  2351. return 0;
  2352. }
  2353. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2354. struct snd_ctl_elem_value *ucontrol)
  2355. {
  2356. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2357. int mux = ucontrol->value.enumerated.item[0];
  2358. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2359. if (mux >= e->items) {
  2360. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2361. return -EINVAL;
  2362. }
  2363. pr_debug("%s: LSM enable %ld\n", __func__,
  2364. ucontrol->value.integer.value[0]);
  2365. switch (ucontrol->value.integer.value[0]) {
  2366. case 1:
  2367. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2368. break;
  2369. case 2:
  2370. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2371. break;
  2372. case 3:
  2373. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2374. break;
  2375. case 4:
  2376. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2377. break;
  2378. case 5:
  2379. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2380. break;
  2381. case 6:
  2382. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2383. break;
  2384. case 7:
  2385. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2386. break;
  2387. case 8:
  2388. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2389. break;
  2390. case 9:
  2391. lsm_port = ADM_LSM_PORT_ID;
  2392. break;
  2393. case 10:
  2394. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2395. break;
  2396. case 11:
  2397. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2398. break;
  2399. case 12:
  2400. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2401. break;
  2402. default:
  2403. pr_err("Default lsm port");
  2404. break;
  2405. }
  2406. set_lsm_port(lsm_port);
  2407. lsm_port_index = ucontrol->value.integer.value[0];
  2408. return 0;
  2409. }
  2410. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2411. struct snd_ctl_elem_value *ucontrol)
  2412. {
  2413. int i;
  2414. u16 port_id;
  2415. enum afe_mad_type mad_type;
  2416. pr_debug("%s: enter\n", __func__);
  2417. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2418. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2419. strlen(lsm_port_text[i])))
  2420. break;
  2421. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2422. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2423. return -EINVAL;
  2424. }
  2425. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2426. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2427. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2428. strlen(lsm_port_text[7])))
  2429. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2430. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2431. strlen(lsm_port_text[8])))
  2432. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2433. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2434. strlen(lsm_port_text[10])))
  2435. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2436. mad_type = afe_port_get_mad_type(port_id);
  2437. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2438. mad_type);
  2439. switch (mad_type) {
  2440. case MAD_HW_NONE:
  2441. ucontrol->value.integer.value[0] = MADNONE;
  2442. break;
  2443. case MAD_HW_AUDIO:
  2444. ucontrol->value.integer.value[0] = MADAUDIO;
  2445. break;
  2446. case MAD_HW_BEACON:
  2447. ucontrol->value.integer.value[0] = MADBEACON;
  2448. break;
  2449. case MAD_HW_ULTRASOUND:
  2450. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2451. break;
  2452. case MAD_SW_AUDIO:
  2453. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2454. break;
  2455. default:
  2456. WARN(1, "Unknown\n");
  2457. return -EINVAL;
  2458. }
  2459. return 0;
  2460. }
  2461. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2462. struct snd_ctl_elem_value *ucontrol)
  2463. {
  2464. int i;
  2465. u16 port_id;
  2466. enum afe_mad_type mad_type;
  2467. pr_debug("%s: enter\n", __func__);
  2468. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2469. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2470. strlen(lsm_port_text[i])))
  2471. break;
  2472. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2473. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2474. return -EINVAL;
  2475. }
  2476. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2477. switch (ucontrol->value.integer.value[0]) {
  2478. case MADNONE:
  2479. mad_type = MAD_HW_NONE;
  2480. break;
  2481. case MADAUDIO:
  2482. mad_type = MAD_HW_AUDIO;
  2483. break;
  2484. case MADBEACON:
  2485. mad_type = MAD_HW_BEACON;
  2486. break;
  2487. case MADULTRASOUND:
  2488. mad_type = MAD_HW_ULTRASOUND;
  2489. break;
  2490. case MADSWAUDIO:
  2491. mad_type = MAD_SW_AUDIO;
  2492. break;
  2493. default:
  2494. WARN(1, "Unknown\n");
  2495. return -EINVAL;
  2496. }
  2497. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2498. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2499. strlen(lsm_port_text[7])))
  2500. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2501. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2502. strlen(lsm_port_text[8])))
  2503. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2504. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2505. strlen(lsm_port_text[10])))
  2506. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2507. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2508. mad_type);
  2509. return afe_port_set_mad_type(port_id, mad_type);
  2510. }
  2511. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2512. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2513. adm_override_chs_text);
  2514. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2515. {
  2516. int backend_id;
  2517. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2518. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2519. } else {
  2520. pr_err("%s: unsupported backend id: %s",
  2521. __func__, kcontrol->id.name);
  2522. return -EINVAL;
  2523. }
  2524. return backend_id;
  2525. }
  2526. static int msm_routing_adm_channel_config_get(
  2527. struct snd_kcontrol *kcontrol,
  2528. struct snd_ctl_elem_value *ucontrol)
  2529. {
  2530. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2531. if (backend_id >= 0) {
  2532. mutex_lock(&routing_lock);
  2533. ucontrol->value.integer.value[0] =
  2534. msm_bedais[backend_id].adm_override_ch;
  2535. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2536. ucontrol->value.integer.value[0], backend_id);
  2537. mutex_unlock(&routing_lock);
  2538. }
  2539. return 0;
  2540. }
  2541. static int msm_routing_adm_channel_config_put(
  2542. struct snd_kcontrol *kcontrol,
  2543. struct snd_ctl_elem_value *ucontrol)
  2544. {
  2545. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2546. if (backend_id >= 0) {
  2547. mutex_lock(&routing_lock);
  2548. msm_bedais[backend_id].adm_override_ch =
  2549. ucontrol->value.integer.value[0];
  2550. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2551. __func__, backend_id,
  2552. msm_bedais[backend_id].adm_override_ch);
  2553. mutex_unlock(&routing_lock);
  2554. }
  2555. return 0;
  2556. }
  2557. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2558. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2559. msm_routing_adm_channel_config_get,
  2560. msm_routing_adm_channel_config_put),
  2561. };
  2562. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2563. struct snd_ctl_elem_value *ucontrol)
  2564. {
  2565. mutex_lock(&routing_lock);
  2566. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2567. mutex_unlock(&routing_lock);
  2568. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2569. ucontrol->value.integer.value[0]);
  2570. return 0;
  2571. };
  2572. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2573. struct snd_ctl_elem_value *ucontrol)
  2574. {
  2575. struct aanc_data aanc_info;
  2576. mutex_lock(&routing_lock);
  2577. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2578. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2579. ucontrol->value.integer.value[0]);
  2580. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2581. if (ucontrol->value.integer.value[0] == 0) {
  2582. aanc_info.aanc_active = false;
  2583. aanc_info.aanc_tx_port = 0;
  2584. aanc_info.aanc_rx_port = 0;
  2585. } else {
  2586. aanc_info.aanc_active = true;
  2587. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2588. aanc_info.aanc_tx_port =
  2589. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2590. }
  2591. afe_set_aanc_info(&aanc_info);
  2592. mutex_unlock(&routing_lock);
  2593. return 0;
  2594. };
  2595. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2596. struct snd_ctl_elem_value *ucontrol)
  2597. {
  2598. int idx = 0, shift = 0;
  2599. struct soc_mixer_control *mc =
  2600. (struct soc_mixer_control *)kcontrol->private_value;
  2601. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2602. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2603. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2604. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2605. return -EINVAL;
  2606. }
  2607. if (test_bit(shift,
  2608. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2609. ucontrol->value.integer.value[0] = 1;
  2610. else
  2611. ucontrol->value.integer.value[0] = 0;
  2612. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2613. ucontrol->value.integer.value[0]);
  2614. return 0;
  2615. }
  2616. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2617. struct snd_ctl_elem_value *ucontrol)
  2618. {
  2619. int idx = 0, shift = 0;
  2620. struct soc_mixer_control *mc =
  2621. (struct soc_mixer_control *)kcontrol->private_value;
  2622. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2623. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2624. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2625. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2626. return -EINVAL;
  2627. }
  2628. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2629. __func__, mc->shift, mc->rshift,
  2630. ucontrol->value.integer.value[0], idx, shift);
  2631. if (ucontrol->value.integer.value[0]) {
  2632. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2633. msm_bedais[mc->rshift].port_id);
  2634. set_bit(shift,
  2635. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2636. } else {
  2637. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2638. msm_bedais[mc->rshift].port_id);
  2639. clear_bit(shift,
  2640. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2641. }
  2642. return 1;
  2643. }
  2644. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2645. struct snd_ctl_elem_value *ucontrol)
  2646. {
  2647. u16 fe_id = 0;
  2648. fe_id = ((struct soc_mixer_control *)
  2649. kcontrol->private_value)->shift;
  2650. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2651. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2652. return -EINVAL;
  2653. }
  2654. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2655. return 0;
  2656. }
  2657. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2658. struct snd_ctl_elem_value *ucontrol)
  2659. {
  2660. u16 fe_id = 0;
  2661. fe_id = ((struct soc_mixer_control *)
  2662. kcontrol->private_value)->shift;
  2663. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2664. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2665. return -EINVAL;
  2666. }
  2667. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2668. return 1;
  2669. }
  2670. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2671. struct snd_ctl_elem_value *ucontrol)
  2672. {
  2673. u16 fe_id = 0;
  2674. fe_id = ((struct soc_multi_mixer_control *)
  2675. kcontrol->private_value)->shift;
  2676. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2677. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2678. return -EINVAL;
  2679. }
  2680. ucontrol->value.integer.value[0] =
  2681. channel_mixer[fe_id].output_channel;
  2682. return 0;
  2683. }
  2684. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2685. struct snd_ctl_elem_value *ucontrol)
  2686. {
  2687. u16 fe_id = 0;
  2688. fe_id = ((struct soc_multi_mixer_control *)
  2689. kcontrol->private_value)->shift;
  2690. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2691. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2692. return -EINVAL;
  2693. }
  2694. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2695. fe_id,
  2696. (unsigned int)(ucontrol->value.integer.value[0]));
  2697. channel_mixer[fe_id].output_channel =
  2698. (unsigned int)(ucontrol->value.integer.value[0]);
  2699. return 1;
  2700. }
  2701. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2702. /* If new backend is added, need update this array */
  2703. static const char *const be_name[] = {
  2704. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2705. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2706. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2707. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2708. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2709. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2710. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2711. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2712. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2713. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2714. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2715. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2716. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  2717. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2718. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2719. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2720. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2721. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2722. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2723. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2724. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2725. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2726. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2727. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2728. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2729. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2730. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2731. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2732. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2733. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2734. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2735. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2736. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2737. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2738. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX", "DISPLAY_PORT_RX1",
  2739. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2740. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2741. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2742. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2743. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2744. "INT6_MI2S_RX", "INT6_MI2S_TX", "WSA_CDC_DMA_RX_0",
  2745. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1", "WSA_CDC_DMA_TX_1",
  2746. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1",
  2747. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  2748. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  2749. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  2750. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  2751. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  2752. };
  2753. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2754. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2755. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2756. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2757. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2758. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2759. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2760. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2761. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2762. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2763. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2764. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2765. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2766. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2767. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2768. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2769. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2770. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2771. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2772. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2773. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2774. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2775. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2776. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2777. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2778. unsigned int channels,
  2779. unsigned int items, const char *const names[])
  2780. {
  2781. if (uinfo->value.enumerated.item >= items)
  2782. uinfo->value.enumerated.item = items - 1;
  2783. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2784. sizeof(uinfo->value.enumerated.name),
  2785. "ALSA: too long item name '%s'\n",
  2786. names[uinfo->value.enumerated.item]);
  2787. strlcpy(uinfo->value.enumerated.name,
  2788. names[uinfo->value.enumerated.item],
  2789. sizeof(uinfo->value.enumerated.name));
  2790. return 0;
  2791. }
  2792. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2793. struct snd_ctl_elem_info *uinfo)
  2794. {
  2795. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2796. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2797. uinfo->count = 1;
  2798. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2799. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2800. return 0;
  2801. }
  2802. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2803. struct snd_ctl_elem_value *ucontrol)
  2804. {
  2805. u16 fe_id = 0;
  2806. fe_id = ((struct soc_enum *)
  2807. kcontrol->private_value)->shift_l;
  2808. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2809. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2810. return -EINVAL;
  2811. }
  2812. pr_debug("%s: FE %d %s\n", __func__,
  2813. fe_id,
  2814. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2815. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2816. return 0;
  2817. }
  2818. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2819. struct snd_ctl_elem_value *ucontrol)
  2820. {
  2821. u16 fe_id = 0;
  2822. fe_id = ((struct soc_enum *)
  2823. kcontrol->private_value)->shift_l;
  2824. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2825. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2826. return -EINVAL;
  2827. }
  2828. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2829. pr_debug("%s: %s FE %d\n", __func__,
  2830. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2831. fe_id);
  2832. return 0;
  2833. }
  2834. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2835. struct snd_ctl_elem_info *uinfo)
  2836. {
  2837. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2838. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2839. uinfo->count = 1;
  2840. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2841. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2842. return 0;
  2843. }
  2844. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2845. struct snd_ctl_elem_value *ucontrol)
  2846. {
  2847. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2848. u16 fe_id = 0, in_ch = 0;
  2849. fe_id = e->shift_l;
  2850. in_ch = e->shift_r;
  2851. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2852. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2853. return -EINVAL;
  2854. }
  2855. if (in_ch >= ADM_MAX_CHANNELS) {
  2856. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2857. return -EINVAL;
  2858. }
  2859. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2860. return 1;
  2861. }
  2862. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2863. struct snd_ctl_elem_value *ucontrol)
  2864. {
  2865. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2866. u16 fe_id = 0, in_ch = 0;
  2867. fe_id = e->shift_l;
  2868. in_ch = e->shift_r;
  2869. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2870. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2871. return -EINVAL;
  2872. }
  2873. if (in_ch >= ADM_MAX_CHANNELS) {
  2874. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2875. return -EINVAL;
  2876. }
  2877. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2878. return 1;
  2879. }
  2880. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2881. struct snd_ctl_elem_info *uinfo)
  2882. {
  2883. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2884. uinfo->count = ADM_MAX_CHANNELS;
  2885. uinfo->value.integer.min = 0;
  2886. uinfo->value.integer.max = WEIGHT_0_DB;
  2887. return 0;
  2888. }
  2889. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2890. struct snd_ctl_elem_value *ucontrol)
  2891. {
  2892. u16 fe_id = 0, out_ch = 0;
  2893. int i, weight;
  2894. fe_id = ((struct soc_multi_mixer_control *)
  2895. kcontrol->private_value)->shift;
  2896. out_ch = ((struct soc_multi_mixer_control *)
  2897. kcontrol->private_value)->rshift;
  2898. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2899. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2900. return -EINVAL;
  2901. }
  2902. if (out_ch >= ADM_MAX_CHANNELS) {
  2903. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2904. return -EINVAL;
  2905. }
  2906. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2907. __func__, fe_id,
  2908. ucontrol->value.integer.value[0],
  2909. ucontrol->value.integer.value[1],
  2910. ucontrol->value.integer.value[2],
  2911. ucontrol->value.integer.value[3],
  2912. ucontrol->value.integer.value[4],
  2913. ucontrol->value.integer.value[5],
  2914. ucontrol->value.integer.value[6],
  2915. ucontrol->value.integer.value[7]);
  2916. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2917. weight = ucontrol->value.integer.value[i];
  2918. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2919. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2920. __func__, fe_id, out_ch, i,
  2921. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2922. }
  2923. return 0;
  2924. }
  2925. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2926. struct snd_ctl_elem_value *ucontrol)
  2927. {
  2928. u16 fe_id = 0, out_ch = 0;
  2929. int i;
  2930. fe_id = ((struct soc_multi_mixer_control *)
  2931. kcontrol->private_value)->shift;
  2932. out_ch = ((struct soc_multi_mixer_control *)
  2933. kcontrol->private_value)->rshift;
  2934. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2935. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2936. return -EINVAL;
  2937. }
  2938. if (out_ch >= ADM_MAX_CHANNELS) {
  2939. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2940. return -EINVAL;
  2941. }
  2942. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2943. ucontrol->value.integer.value[i] =
  2944. channel_mixer[fe_id].channel_weight[out_ch][i];
  2945. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2946. __func__, fe_id,
  2947. ucontrol->value.integer.value[0],
  2948. ucontrol->value.integer.value[1],
  2949. ucontrol->value.integer.value[2],
  2950. ucontrol->value.integer.value[3],
  2951. ucontrol->value.integer.value[4],
  2952. ucontrol->value.integer.value[5],
  2953. ucontrol->value.integer.value[6],
  2954. ucontrol->value.integer.value[7]);
  2955. return 0;
  2956. }
  2957. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2958. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2959. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2960. msm_pcm_get_channel_rule_index,
  2961. msm_pcm_put_channel_rule_index),
  2962. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2963. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2964. msm_pcm_get_channel_rule_index,
  2965. msm_pcm_put_channel_rule_index),
  2966. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2967. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2968. msm_pcm_get_channel_rule_index,
  2969. msm_pcm_put_channel_rule_index),
  2970. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2971. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2972. msm_pcm_get_channel_rule_index,
  2973. msm_pcm_put_channel_rule_index),
  2974. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  2975. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2976. msm_pcm_get_channel_rule_index,
  2977. msm_pcm_put_channel_rule_index),
  2978. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  2979. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2980. msm_pcm_get_channel_rule_index,
  2981. msm_pcm_put_channel_rule_index),
  2982. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  2983. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2984. msm_pcm_get_out_chs,
  2985. msm_pcm_put_out_chs),
  2986. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  2987. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2988. msm_pcm_get_out_chs,
  2989. msm_pcm_put_out_chs),
  2990. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  2991. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2992. msm_pcm_get_out_chs,
  2993. msm_pcm_put_out_chs),
  2994. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  2995. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2996. msm_pcm_get_out_chs,
  2997. msm_pcm_put_out_chs),
  2998. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  2999. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3000. msm_pcm_get_out_chs,
  3001. msm_pcm_put_out_chs),
  3002. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3003. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3004. msm_pcm_get_out_chs,
  3005. msm_pcm_put_out_chs),
  3006. {
  3007. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3008. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3009. .name = "MultiMedia1 Channel Mixer",
  3010. .info = msm_pcm_channel_mixer_info,
  3011. .get = msm_pcm_channel_mixer_get,
  3012. .put = msm_pcm_channel_mixer_put,
  3013. .private_value = (unsigned long)&(mm1_channel_mux)
  3014. },
  3015. {
  3016. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3017. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3018. .name = "MultiMedia2 Channel Mixer",
  3019. .info = msm_pcm_channel_mixer_info,
  3020. .get = msm_pcm_channel_mixer_get,
  3021. .put = msm_pcm_channel_mixer_put,
  3022. .private_value = (unsigned long)&(mm2_channel_mux)
  3023. },
  3024. {
  3025. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3026. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3027. .name = "MultiMedia3 Channel Mixer",
  3028. .info = msm_pcm_channel_mixer_info,
  3029. .get = msm_pcm_channel_mixer_get,
  3030. .put = msm_pcm_channel_mixer_put,
  3031. .private_value = (unsigned long)&(mm3_channel_mux)
  3032. },
  3033. {
  3034. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3035. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3036. .name = "MultiMedia4 Channel Mixer",
  3037. .info = msm_pcm_channel_mixer_info,
  3038. .get = msm_pcm_channel_mixer_get,
  3039. .put = msm_pcm_channel_mixer_put,
  3040. .private_value = (unsigned long)&(mm4_channel_mux)
  3041. },
  3042. {
  3043. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3044. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3045. .name = "MultiMedia1 Output Channel1",
  3046. .info = msm_pcm_channel_weight_info,
  3047. .get = msm_pcm_channel_weight_get,
  3048. .put = msm_pcm_channel_weight_put,
  3049. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3050. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3051. },
  3052. {
  3053. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3054. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3055. .name = "MultiMedia1 Output Channel2",
  3056. .info = msm_pcm_channel_weight_info,
  3057. .get = msm_pcm_channel_weight_get,
  3058. .put = msm_pcm_channel_weight_put,
  3059. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3060. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3061. },
  3062. {
  3063. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3064. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3065. .name = "MultiMedia1 Output Channel3",
  3066. .info = msm_pcm_channel_weight_info,
  3067. .get = msm_pcm_channel_weight_get,
  3068. .put = msm_pcm_channel_weight_put,
  3069. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3070. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3071. },
  3072. {
  3073. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3074. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3075. .name = "MultiMedia1 Output Channel4",
  3076. .info = msm_pcm_channel_weight_info,
  3077. .get = msm_pcm_channel_weight_get,
  3078. .put = msm_pcm_channel_weight_put,
  3079. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3080. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3081. },
  3082. {
  3083. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3084. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3085. .name = "MultiMedia1 Output Channel5",
  3086. .info = msm_pcm_channel_weight_info,
  3087. .get = msm_pcm_channel_weight_get,
  3088. .put = msm_pcm_channel_weight_put,
  3089. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3090. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3091. },
  3092. {
  3093. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3094. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3095. .name = "MultiMedia1 Output Channel6",
  3096. .info = msm_pcm_channel_weight_info,
  3097. .get = msm_pcm_channel_weight_get,
  3098. .put = msm_pcm_channel_weight_put,
  3099. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3100. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3101. },
  3102. {
  3103. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3104. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3105. .name = "MultiMedia1 Output Channel7",
  3106. .info = msm_pcm_channel_weight_info,
  3107. .get = msm_pcm_channel_weight_get,
  3108. .put = msm_pcm_channel_weight_put,
  3109. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3110. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3111. },
  3112. {
  3113. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3114. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3115. .name = "MultiMedia1 Output Channel8",
  3116. .info = msm_pcm_channel_weight_info,
  3117. .get = msm_pcm_channel_weight_get,
  3118. .put = msm_pcm_channel_weight_put,
  3119. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3120. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3121. },
  3122. {
  3123. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3124. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3125. .name = "MultiMedia2 Output Channel1",
  3126. .info = msm_pcm_channel_weight_info,
  3127. .get = msm_pcm_channel_weight_get,
  3128. .put = msm_pcm_channel_weight_put,
  3129. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3130. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3131. },
  3132. {
  3133. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3134. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3135. .name = "MultiMedia2 Output Channel2",
  3136. .info = msm_pcm_channel_weight_info,
  3137. .get = msm_pcm_channel_weight_get,
  3138. .put = msm_pcm_channel_weight_put,
  3139. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3140. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3141. },
  3142. {
  3143. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3144. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3145. .name = "MultiMedia2 Output Channel3",
  3146. .info = msm_pcm_channel_weight_info,
  3147. .get = msm_pcm_channel_weight_get,
  3148. .put = msm_pcm_channel_weight_put,
  3149. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3150. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3151. },
  3152. {
  3153. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3154. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3155. .name = "MultiMedia3 Output Channel1",
  3156. .info = msm_pcm_channel_weight_info,
  3157. .get = msm_pcm_channel_weight_get,
  3158. .put = msm_pcm_channel_weight_put,
  3159. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3160. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3161. },
  3162. {
  3163. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3164. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3165. .name = "MultiMedia3 Output Channel2",
  3166. .info = msm_pcm_channel_weight_info,
  3167. .get = msm_pcm_channel_weight_get,
  3168. .put = msm_pcm_channel_weight_put,
  3169. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3170. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3171. },
  3172. {
  3173. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3174. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3175. .name = "MultiMedia1 Channel1",
  3176. .info = msm_pcm_channel_input_be_info,
  3177. .get = msm_pcm_channel_input_be_get,
  3178. .put = msm_pcm_channel_input_be_put,
  3179. .private_value = (unsigned long)&(mm1_ch1_enum)
  3180. },
  3181. {
  3182. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3183. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3184. .name = "MultiMedia1 Channel2",
  3185. .info = msm_pcm_channel_input_be_info,
  3186. .get = msm_pcm_channel_input_be_get,
  3187. .put = msm_pcm_channel_input_be_put,
  3188. .private_value = (unsigned long)&(mm1_ch2_enum)
  3189. },
  3190. {
  3191. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3192. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3193. .name = "MultiMedia1 Channel3",
  3194. .info = msm_pcm_channel_input_be_info,
  3195. .get = msm_pcm_channel_input_be_get,
  3196. .put = msm_pcm_channel_input_be_put,
  3197. .private_value = (unsigned long)&(mm1_ch3_enum)
  3198. },
  3199. {
  3200. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3201. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3202. .name = "MultiMedia1 Channel4",
  3203. .info = msm_pcm_channel_input_be_info,
  3204. .get = msm_pcm_channel_input_be_get,
  3205. .put = msm_pcm_channel_input_be_put,
  3206. .private_value = (unsigned long)&(mm1_ch4_enum)
  3207. },
  3208. {
  3209. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3210. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3211. .name = "MultiMedia1 Channel5",
  3212. .info = msm_pcm_channel_input_be_info,
  3213. .get = msm_pcm_channel_input_be_get,
  3214. .put = msm_pcm_channel_input_be_put,
  3215. .private_value = (unsigned long)&(mm1_ch5_enum)
  3216. },
  3217. {
  3218. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3219. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3220. .name = "MultiMedia1 Channel6",
  3221. .info = msm_pcm_channel_input_be_info,
  3222. .get = msm_pcm_channel_input_be_get,
  3223. .put = msm_pcm_channel_input_be_put,
  3224. .private_value = (unsigned long)&(mm1_ch6_enum)
  3225. },
  3226. {
  3227. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3228. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3229. .name = "MultiMedia1 Channel7",
  3230. .info = msm_pcm_channel_input_be_info,
  3231. .get = msm_pcm_channel_input_be_get,
  3232. .put = msm_pcm_channel_input_be_put,
  3233. .private_value = (unsigned long)&(mm1_ch7_enum)
  3234. },
  3235. {
  3236. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3237. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3238. .name = "MultiMedia1 Channel8",
  3239. .info = msm_pcm_channel_input_be_info,
  3240. .get = msm_pcm_channel_input_be_get,
  3241. .put = msm_pcm_channel_input_be_put,
  3242. .private_value = (unsigned long)&(mm1_ch8_enum)
  3243. },
  3244. };
  3245. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3246. struct snd_ctl_elem_value *ucontrol)
  3247. {
  3248. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3249. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3250. ucontrol->value.integer.value[0]);
  3251. return 0;
  3252. }
  3253. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3254. struct snd_ctl_elem_value *ucontrol)
  3255. {
  3256. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3257. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3258. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3259. return 0;
  3260. }
  3261. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3262. "Four", "Five", "Six", "Seven", "Eight"};
  3263. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3264. struct snd_ctl_elem_value *ucontrol)
  3265. {
  3266. switch (msm_ec_ref_bit_format) {
  3267. case SNDRV_PCM_FORMAT_S24_LE:
  3268. ucontrol->value.integer.value[0] = 2;
  3269. break;
  3270. case SNDRV_PCM_FORMAT_S16_LE:
  3271. ucontrol->value.integer.value[0] = 1;
  3272. break;
  3273. default:
  3274. ucontrol->value.integer.value[0] = 0;
  3275. break;
  3276. }
  3277. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3278. __func__, ucontrol->value.integer.value[0]);
  3279. return 0;
  3280. }
  3281. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3282. struct snd_ctl_elem_value *ucontrol)
  3283. {
  3284. u16 bit_width = 0;
  3285. switch (ucontrol->value.integer.value[0]) {
  3286. case 2:
  3287. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3288. break;
  3289. case 1:
  3290. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3291. break;
  3292. default:
  3293. msm_ec_ref_bit_format = 0;
  3294. break;
  3295. }
  3296. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3297. bit_width = 16;
  3298. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3299. bit_width = 24;
  3300. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3301. __func__, msm_ec_ref_bit_format);
  3302. adm_ec_ref_rx_bit_width(bit_width);
  3303. return 0;
  3304. }
  3305. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3306. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3307. struct snd_ctl_elem_value *ucontrol)
  3308. {
  3309. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3310. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3311. __func__, ucontrol->value.integer.value[0]);
  3312. return 0;
  3313. }
  3314. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3315. struct snd_ctl_elem_value *ucontrol)
  3316. {
  3317. switch (ucontrol->value.integer.value[0]) {
  3318. case 0:
  3319. msm_ec_ref_sampling_rate = 0;
  3320. break;
  3321. case 1:
  3322. msm_ec_ref_sampling_rate = 8000;
  3323. break;
  3324. case 2:
  3325. msm_ec_ref_sampling_rate = 16000;
  3326. break;
  3327. case 3:
  3328. msm_ec_ref_sampling_rate = 32000;
  3329. break;
  3330. case 4:
  3331. msm_ec_ref_sampling_rate = 44100;
  3332. break;
  3333. case 5:
  3334. msm_ec_ref_sampling_rate = 48000;
  3335. break;
  3336. case 6:
  3337. msm_ec_ref_sampling_rate = 96000;
  3338. break;
  3339. case 7:
  3340. msm_ec_ref_sampling_rate = 192000;
  3341. break;
  3342. case 8:
  3343. msm_ec_ref_sampling_rate = 384000;
  3344. break;
  3345. default:
  3346. msm_ec_ref_sampling_rate = 48000;
  3347. break;
  3348. }
  3349. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3350. __func__, msm_ec_ref_sampling_rate);
  3351. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3352. return 0;
  3353. }
  3354. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3355. "32000", "44100", "48000", "96000", "192000", "384000"};
  3356. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3357. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3358. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3359. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3360. };
  3361. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3362. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3363. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3364. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3365. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3366. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3367. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3368. };
  3369. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3370. struct snd_ctl_elem_value *ucontrol)
  3371. {
  3372. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3373. mutex_lock(&routing_lock);
  3374. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3375. mutex_unlock(&routing_lock);
  3376. return 0;
  3377. }
  3378. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3379. struct snd_ctl_elem_value *ucontrol)
  3380. {
  3381. int ec_ref_port_id;
  3382. struct snd_soc_dapm_widget *widget =
  3383. snd_soc_dapm_kcontrol_widget(kcontrol);
  3384. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3385. struct snd_soc_dapm_update *update = NULL;
  3386. mutex_lock(&routing_lock);
  3387. switch (ucontrol->value.integer.value[0]) {
  3388. case 0:
  3389. msm_route_ec_ref_rx = 0;
  3390. ec_ref_port_id = AFE_PORT_INVALID;
  3391. break;
  3392. case 1:
  3393. msm_route_ec_ref_rx = 1;
  3394. ec_ref_port_id = SLIMBUS_0_RX;
  3395. break;
  3396. case 2:
  3397. msm_route_ec_ref_rx = 2;
  3398. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3399. break;
  3400. case 3:
  3401. msm_route_ec_ref_rx = 3;
  3402. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3403. break;
  3404. case 4:
  3405. msm_route_ec_ref_rx = 4;
  3406. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3407. break;
  3408. case 5:
  3409. msm_route_ec_ref_rx = 5;
  3410. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3411. break;
  3412. case 6:
  3413. msm_route_ec_ref_rx = 6;
  3414. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3415. break;
  3416. case 7:
  3417. msm_route_ec_ref_rx = 7;
  3418. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3419. break;
  3420. case 9:
  3421. msm_route_ec_ref_rx = 9;
  3422. ec_ref_port_id = SLIMBUS_5_RX;
  3423. break;
  3424. case 10:
  3425. msm_route_ec_ref_rx = 10;
  3426. ec_ref_port_id = SLIMBUS_1_TX;
  3427. break;
  3428. case 11:
  3429. msm_route_ec_ref_rx = 11;
  3430. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3431. break;
  3432. case 12:
  3433. msm_route_ec_ref_rx = 12;
  3434. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3435. break;
  3436. case 13:
  3437. msm_route_ec_ref_rx = 13;
  3438. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3439. break;
  3440. case 14:
  3441. msm_route_ec_ref_rx = 14;
  3442. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3443. break;
  3444. case 15:
  3445. msm_route_ec_ref_rx = 15;
  3446. ec_ref_port_id = SLIMBUS_6_RX;
  3447. break;
  3448. case 16:
  3449. msm_route_ec_ref_rx = 16;
  3450. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3451. break;
  3452. case 17:
  3453. msm_route_ec_ref_rx = 17;
  3454. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3455. break;
  3456. case 18:
  3457. msm_route_ec_ref_rx = 18;
  3458. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3459. break;
  3460. case 19:
  3461. msm_route_ec_ref_rx = 19;
  3462. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3463. break;
  3464. case 20:
  3465. msm_route_ec_ref_rx = 20;
  3466. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3467. break;
  3468. case 21:
  3469. msm_route_ec_ref_rx = 21;
  3470. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3471. break;
  3472. case 22:
  3473. msm_route_ec_ref_rx = 22;
  3474. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3475. break;
  3476. case 23:
  3477. msm_route_ec_ref_rx = 23;
  3478. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3479. break;
  3480. case 24:
  3481. msm_route_ec_ref_rx = 24;
  3482. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3483. break;
  3484. case 25:
  3485. msm_route_ec_ref_rx = 25;
  3486. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3487. break;
  3488. case 26:
  3489. msm_route_ec_ref_rx = 26;
  3490. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3491. break;
  3492. case 27:
  3493. msm_route_ec_ref_rx = 27;
  3494. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3495. break;
  3496. case 28:
  3497. msm_route_ec_ref_rx = 28;
  3498. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3499. break;
  3500. case 29:
  3501. msm_route_ec_ref_rx = 29;
  3502. ec_ref_port_id = SLIMBUS_7_RX;
  3503. break;
  3504. case 30:
  3505. msm_route_ec_ref_rx = 30;
  3506. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  3507. break;
  3508. case 31:
  3509. msm_route_ec_ref_rx = 31;
  3510. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  3511. break;
  3512. case 32:
  3513. msm_route_ec_ref_rx = 32;
  3514. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  3515. break;
  3516. case 33:
  3517. msm_route_ec_ref_rx = 33;
  3518. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  3519. break;
  3520. case 34:
  3521. msm_route_ec_ref_rx = 34;
  3522. ec_ref_port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  3523. break;
  3524. default:
  3525. msm_route_ec_ref_rx = 0; /* NONE */
  3526. pr_err("%s EC ref rx %ld not valid\n",
  3527. __func__, ucontrol->value.integer.value[0]);
  3528. ec_ref_port_id = AFE_PORT_INVALID;
  3529. break;
  3530. }
  3531. adm_ec_ref_rx_id(ec_ref_port_id);
  3532. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3533. __func__, msm_route_ec_ref_rx);
  3534. mutex_unlock(&routing_lock);
  3535. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3536. msm_route_ec_ref_rx, e, update);
  3537. return 0;
  3538. }
  3539. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3540. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3541. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3542. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3543. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3544. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3545. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3546. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3547. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  3548. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  3549. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0",
  3550. };
  3551. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3552. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3553. };
  3554. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3555. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3556. msm_route_ec_ref_rx_enum[0],
  3557. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3558. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3559. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3560. msm_route_ec_ref_rx_enum[0],
  3561. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3562. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3563. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3564. msm_route_ec_ref_rx_enum[0],
  3565. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3566. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3567. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3568. msm_route_ec_ref_rx_enum[0],
  3569. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3570. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3571. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3572. msm_route_ec_ref_rx_enum[0],
  3573. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3574. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3575. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3576. msm_route_ec_ref_rx_enum[0],
  3577. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3578. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3579. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3580. msm_route_ec_ref_rx_enum[0],
  3581. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3582. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3583. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3584. msm_route_ec_ref_rx_enum[0],
  3585. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3586. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3587. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3588. msm_route_ec_ref_rx_enum[0],
  3589. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3590. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3591. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3592. msm_route_ec_ref_rx_enum[0],
  3593. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3594. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3595. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3596. msm_route_ec_ref_rx_enum[0],
  3597. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3598. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3599. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3600. msm_route_ec_ref_rx_enum[0],
  3601. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3602. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3603. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3604. msm_route_ec_ref_rx_enum[0],
  3605. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3606. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3607. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3608. msm_route_ec_ref_rx_enum[0],
  3609. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3610. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3611. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3612. msm_route_ec_ref_rx_enum[0],
  3613. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3614. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3615. struct snd_ctl_elem_value *ucontrol)
  3616. {
  3617. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3618. mutex_lock(&routing_lock);
  3619. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3620. mutex_unlock(&routing_lock);
  3621. return 0;
  3622. }
  3623. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3624. struct snd_ctl_elem_value *ucontrol)
  3625. {
  3626. struct snd_soc_dapm_widget *widget =
  3627. snd_soc_dapm_kcontrol_widget(kcontrol);
  3628. int mux = ucontrol->value.enumerated.item[0];
  3629. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3630. int ret = 1;
  3631. bool state = true;
  3632. uint16_t ext_ec_ref_port_id;
  3633. struct snd_soc_dapm_update *update = NULL;
  3634. if (mux >= e->items) {
  3635. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3636. return -EINVAL;
  3637. }
  3638. mutex_lock(&routing_lock);
  3639. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3640. switch (msm_route_ext_ec_ref) {
  3641. case EXT_EC_REF_PRI_MI2S_TX:
  3642. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3643. break;
  3644. case EXT_EC_REF_SEC_MI2S_TX:
  3645. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3646. break;
  3647. case EXT_EC_REF_TERT_MI2S_TX:
  3648. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3649. break;
  3650. case EXT_EC_REF_QUAT_MI2S_TX:
  3651. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3652. break;
  3653. case EXT_EC_REF_QUIN_MI2S_TX:
  3654. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3655. break;
  3656. case EXT_EC_REF_SLIM_1_TX:
  3657. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3658. break;
  3659. case EXT_EC_REF_SEC_TDM_TX:
  3660. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3661. break;
  3662. case EXT_EC_REF_NONE:
  3663. default:
  3664. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3665. state = false;
  3666. break;
  3667. }
  3668. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3669. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3670. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3671. mutex_unlock(&routing_lock);
  3672. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3673. update);
  3674. } else {
  3675. ret = -EINVAL;
  3676. mutex_unlock(&routing_lock);
  3677. }
  3678. return ret;
  3679. }
  3680. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3681. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3682. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3683. "SLIM_1_TX", "SEC_TDM_TX"};
  3684. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3685. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3686. };
  3687. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3688. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3689. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3690. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3691. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3692. MSM_BACKEND_DAI_PRI_I2S_RX,
  3693. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3694. msm_routing_put_audio_mixer),
  3695. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3696. MSM_BACKEND_DAI_PRI_I2S_RX,
  3697. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3698. msm_routing_put_audio_mixer),
  3699. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3700. MSM_BACKEND_DAI_PRI_I2S_RX,
  3701. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3702. msm_routing_put_audio_mixer),
  3703. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3704. MSM_BACKEND_DAI_PRI_I2S_RX,
  3705. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3706. msm_routing_put_audio_mixer),
  3707. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3708. MSM_BACKEND_DAI_PRI_I2S_RX,
  3709. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3710. msm_routing_put_audio_mixer),
  3711. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3712. MSM_BACKEND_DAI_PRI_I2S_RX,
  3713. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3714. msm_routing_put_audio_mixer),
  3715. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3716. MSM_BACKEND_DAI_PRI_I2S_RX,
  3717. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3718. msm_routing_put_audio_mixer),
  3719. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3720. MSM_BACKEND_DAI_PRI_I2S_RX,
  3721. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3722. msm_routing_put_audio_mixer),
  3723. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3724. MSM_BACKEND_DAI_PRI_I2S_RX,
  3725. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3726. msm_routing_put_audio_mixer),
  3727. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3728. MSM_BACKEND_DAI_PRI_I2S_RX,
  3729. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3730. msm_routing_put_audio_mixer),
  3731. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3732. MSM_BACKEND_DAI_PRI_I2S_RX,
  3733. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3734. msm_routing_put_audio_mixer),
  3735. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3736. MSM_BACKEND_DAI_PRI_I2S_RX,
  3737. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3738. msm_routing_put_audio_mixer),
  3739. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3740. MSM_BACKEND_DAI_PRI_I2S_RX,
  3741. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3742. msm_routing_put_audio_mixer),
  3743. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3744. MSM_BACKEND_DAI_PRI_I2S_RX,
  3745. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3746. msm_routing_put_audio_mixer),
  3747. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3748. MSM_BACKEND_DAI_PRI_I2S_RX,
  3749. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3750. msm_routing_put_audio_mixer),
  3751. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3752. MSM_BACKEND_DAI_PRI_I2S_RX,
  3753. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3754. msm_routing_put_audio_mixer),
  3755. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3756. MSM_BACKEND_DAI_PRI_I2S_RX,
  3757. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3758. msm_routing_put_audio_mixer),
  3759. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3760. MSM_BACKEND_DAI_PRI_I2S_RX,
  3761. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3762. msm_routing_put_audio_mixer),
  3763. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3764. MSM_BACKEND_DAI_PRI_I2S_RX,
  3765. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3766. msm_routing_put_audio_mixer),
  3767. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3768. MSM_BACKEND_DAI_PRI_I2S_RX,
  3769. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3770. msm_routing_put_audio_mixer),
  3771. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3772. MSM_BACKEND_DAI_PRI_I2S_RX,
  3773. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3774. msm_routing_put_audio_mixer),
  3775. };
  3776. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3777. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3778. MSM_BACKEND_DAI_SEC_I2S_RX,
  3779. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3780. msm_routing_put_audio_mixer),
  3781. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3782. MSM_BACKEND_DAI_SEC_I2S_RX,
  3783. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3784. msm_routing_put_audio_mixer),
  3785. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3786. MSM_BACKEND_DAI_SEC_I2S_RX,
  3787. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3788. msm_routing_put_audio_mixer),
  3789. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3790. MSM_BACKEND_DAI_SEC_I2S_RX,
  3791. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3792. msm_routing_put_audio_mixer),
  3793. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3794. MSM_BACKEND_DAI_SEC_I2S_RX,
  3795. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3796. msm_routing_put_audio_mixer),
  3797. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3798. MSM_BACKEND_DAI_SEC_I2S_RX,
  3799. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3800. msm_routing_put_audio_mixer),
  3801. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3802. MSM_BACKEND_DAI_SEC_I2S_RX,
  3803. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3804. msm_routing_put_audio_mixer),
  3805. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3806. MSM_BACKEND_DAI_SEC_I2S_RX,
  3807. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3808. msm_routing_put_audio_mixer),
  3809. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3810. MSM_BACKEND_DAI_SEC_I2S_RX,
  3811. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3812. msm_routing_put_audio_mixer),
  3813. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3814. MSM_BACKEND_DAI_SEC_I2S_RX,
  3815. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3816. msm_routing_put_audio_mixer),
  3817. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3818. MSM_BACKEND_DAI_SEC_I2S_RX,
  3819. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3820. msm_routing_put_audio_mixer),
  3821. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3822. MSM_BACKEND_DAI_SEC_I2S_RX,
  3823. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3824. msm_routing_put_audio_mixer),
  3825. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3826. MSM_BACKEND_DAI_SEC_I2S_RX,
  3827. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3828. msm_routing_put_audio_mixer),
  3829. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3830. MSM_BACKEND_DAI_SEC_I2S_RX,
  3831. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3832. msm_routing_put_audio_mixer),
  3833. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3834. MSM_BACKEND_DAI_SEC_I2S_RX,
  3835. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3836. msm_routing_put_audio_mixer),
  3837. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3838. MSM_BACKEND_DAI_SEC_I2S_RX,
  3839. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3840. msm_routing_put_audio_mixer),
  3841. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3842. MSM_BACKEND_DAI_SEC_I2S_RX,
  3843. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3844. msm_routing_put_audio_mixer),
  3845. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3846. MSM_BACKEND_DAI_SEC_I2S_RX,
  3847. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3848. msm_routing_put_audio_mixer),
  3849. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3850. MSM_BACKEND_DAI_SEC_I2S_RX,
  3851. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3852. msm_routing_put_audio_mixer),
  3853. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3854. MSM_BACKEND_DAI_SEC_I2S_RX,
  3855. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3856. msm_routing_put_audio_mixer),
  3857. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3858. MSM_BACKEND_DAI_SEC_I2S_RX,
  3859. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3860. msm_routing_put_audio_mixer),
  3861. };
  3862. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  3863. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3864. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3865. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3866. msm_routing_put_audio_mixer),
  3867. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3868. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3869. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3870. msm_routing_put_audio_mixer),
  3871. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3872. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3873. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3874. msm_routing_put_audio_mixer),
  3875. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3876. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3877. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3878. msm_routing_put_audio_mixer),
  3879. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3880. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3881. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3882. msm_routing_put_audio_mixer),
  3883. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3884. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3885. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3886. msm_routing_put_audio_mixer),
  3887. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3888. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3889. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3890. msm_routing_put_audio_mixer),
  3891. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3892. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3893. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3894. msm_routing_put_audio_mixer),
  3895. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3896. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3897. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3898. msm_routing_put_audio_mixer),
  3899. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3900. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3901. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3902. msm_routing_put_audio_mixer),
  3903. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3904. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3905. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3906. msm_routing_put_audio_mixer),
  3907. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3908. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3909. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3910. msm_routing_put_audio_mixer),
  3911. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3912. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3913. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3914. msm_routing_put_audio_mixer),
  3915. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3916. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3917. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3918. msm_routing_put_audio_mixer),
  3919. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3920. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3921. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3922. msm_routing_put_audio_mixer),
  3923. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3924. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3925. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3926. msm_routing_put_audio_mixer),
  3927. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3928. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3929. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3930. msm_routing_put_audio_mixer),
  3931. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3932. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3933. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3934. msm_routing_put_audio_mixer),
  3935. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3936. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3937. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3938. msm_routing_put_audio_mixer),
  3939. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3940. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3941. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3942. msm_routing_put_audio_mixer),
  3943. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3944. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3945. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3946. msm_routing_put_audio_mixer),
  3947. };
  3948. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  3949. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3950. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3951. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3952. msm_routing_put_audio_mixer),
  3953. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3954. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3955. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3956. msm_routing_put_audio_mixer),
  3957. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3958. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3959. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3960. msm_routing_put_audio_mixer),
  3961. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3962. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3963. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3964. msm_routing_put_audio_mixer),
  3965. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3966. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3967. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3968. msm_routing_put_audio_mixer),
  3969. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3970. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3971. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3972. msm_routing_put_audio_mixer),
  3973. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3974. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3975. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3976. msm_routing_put_audio_mixer),
  3977. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3978. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3979. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3980. msm_routing_put_audio_mixer),
  3981. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3982. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3983. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3984. msm_routing_put_audio_mixer),
  3985. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3986. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3987. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3988. msm_routing_put_audio_mixer),
  3989. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3990. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3991. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3992. msm_routing_put_audio_mixer),
  3993. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3994. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3995. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3996. msm_routing_put_audio_mixer),
  3997. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3998. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3999. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4000. msm_routing_put_audio_mixer),
  4001. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4002. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4003. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4004. msm_routing_put_audio_mixer),
  4005. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4006. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4007. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4008. msm_routing_put_audio_mixer),
  4009. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4010. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4011. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4012. msm_routing_put_audio_mixer),
  4013. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4014. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4015. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4016. msm_routing_put_audio_mixer),
  4017. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4018. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4019. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4020. msm_routing_put_audio_mixer),
  4021. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4022. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4023. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4024. msm_routing_put_audio_mixer),
  4025. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4026. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4027. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4028. msm_routing_put_audio_mixer),
  4029. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4030. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4031. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4032. msm_routing_put_audio_mixer),
  4033. };
  4034. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  4035. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4036. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4037. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4038. msm_routing_put_audio_mixer),
  4039. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4040. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4041. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4042. msm_routing_put_audio_mixer),
  4043. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4044. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4045. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4046. msm_routing_put_audio_mixer),
  4047. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4048. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4049. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4050. msm_routing_put_audio_mixer),
  4051. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4052. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4053. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4054. msm_routing_put_audio_mixer),
  4055. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4056. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4057. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4058. msm_routing_put_audio_mixer),
  4059. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4060. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4061. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4062. msm_routing_put_audio_mixer),
  4063. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4064. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4065. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4066. msm_routing_put_audio_mixer),
  4067. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4068. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4069. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4070. msm_routing_put_audio_mixer),
  4071. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4072. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4073. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4074. msm_routing_put_audio_mixer),
  4075. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4076. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4077. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4078. msm_routing_put_audio_mixer),
  4079. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4080. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4081. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4082. msm_routing_put_audio_mixer),
  4083. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4084. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4085. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4086. msm_routing_put_audio_mixer),
  4087. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4088. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4089. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4090. msm_routing_put_audio_mixer),
  4091. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4092. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4093. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4094. msm_routing_put_audio_mixer),
  4095. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4096. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4097. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4098. msm_routing_put_audio_mixer),
  4099. };
  4100. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  4101. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4102. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4103. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4104. msm_routing_put_audio_mixer),
  4105. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4106. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4107. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4108. msm_routing_put_audio_mixer),
  4109. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4110. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4111. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4112. msm_routing_put_audio_mixer),
  4113. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4114. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4115. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4116. msm_routing_put_audio_mixer),
  4117. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4118. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4119. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4120. msm_routing_put_audio_mixer),
  4121. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4122. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4123. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4124. msm_routing_put_audio_mixer),
  4125. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4126. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4127. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4128. msm_routing_put_audio_mixer),
  4129. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4130. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4131. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4132. msm_routing_put_audio_mixer),
  4133. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4134. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4135. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4136. msm_routing_put_audio_mixer),
  4137. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4138. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4139. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4140. msm_routing_put_audio_mixer),
  4141. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4142. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4143. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4144. msm_routing_put_audio_mixer),
  4145. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4146. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4147. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4148. msm_routing_put_audio_mixer),
  4149. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4150. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4151. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4152. msm_routing_put_audio_mixer),
  4153. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4154. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4155. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4156. msm_routing_put_audio_mixer),
  4157. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4158. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4159. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4160. msm_routing_put_audio_mixer),
  4161. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4162. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4163. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4164. msm_routing_put_audio_mixer),
  4165. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4166. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4167. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4168. msm_routing_put_audio_mixer),
  4169. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4170. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4171. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4172. msm_routing_put_audio_mixer),
  4173. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4174. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4175. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4176. msm_routing_put_audio_mixer),
  4177. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4178. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4179. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4180. msm_routing_put_audio_mixer),
  4181. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4182. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4183. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4184. msm_routing_put_audio_mixer),
  4185. };
  4186. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4187. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4188. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4189. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4190. msm_routing_put_audio_mixer),
  4191. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4192. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4193. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4194. msm_routing_put_audio_mixer),
  4195. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4196. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4197. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4198. msm_routing_put_audio_mixer),
  4199. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4200. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4201. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4202. msm_routing_put_audio_mixer),
  4203. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4204. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4205. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4206. msm_routing_put_audio_mixer),
  4207. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4208. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4209. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4210. msm_routing_put_audio_mixer),
  4211. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4212. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4213. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4214. msm_routing_put_audio_mixer),
  4215. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4216. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4217. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4218. msm_routing_put_audio_mixer),
  4219. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4220. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4221. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4222. msm_routing_put_audio_mixer),
  4223. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4224. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4225. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4226. msm_routing_put_audio_mixer),
  4227. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4228. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4229. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4230. msm_routing_put_audio_mixer),
  4231. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4232. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4233. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4234. msm_routing_put_audio_mixer),
  4235. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4236. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4237. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4238. msm_routing_put_audio_mixer),
  4239. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4240. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4241. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4242. msm_routing_put_audio_mixer),
  4243. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4244. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4245. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4246. msm_routing_put_audio_mixer),
  4247. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4248. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4249. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4250. msm_routing_put_audio_mixer),
  4251. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4252. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4253. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4254. msm_routing_put_audio_mixer),
  4255. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4256. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4257. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4258. msm_routing_put_audio_mixer),
  4259. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4260. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4261. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4262. msm_routing_put_audio_mixer),
  4263. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4264. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4265. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4266. msm_routing_put_audio_mixer),
  4267. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4268. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4269. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4270. msm_routing_put_audio_mixer),
  4271. };
  4272. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4273. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4274. MSM_BACKEND_DAI_MI2S_RX,
  4275. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4276. msm_routing_put_audio_mixer),
  4277. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4278. MSM_BACKEND_DAI_MI2S_RX,
  4279. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4280. msm_routing_put_audio_mixer),
  4281. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4282. MSM_BACKEND_DAI_MI2S_RX,
  4283. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4284. msm_routing_put_audio_mixer),
  4285. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4286. MSM_BACKEND_DAI_MI2S_RX,
  4287. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4288. msm_routing_put_audio_mixer),
  4289. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4290. MSM_BACKEND_DAI_MI2S_RX,
  4291. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4292. msm_routing_put_audio_mixer),
  4293. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4294. MSM_BACKEND_DAI_MI2S_RX,
  4295. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4296. msm_routing_put_audio_mixer),
  4297. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4298. MSM_BACKEND_DAI_MI2S_RX,
  4299. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4300. msm_routing_put_audio_mixer),
  4301. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4302. MSM_BACKEND_DAI_MI2S_RX,
  4303. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4304. msm_routing_put_audio_mixer),
  4305. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4306. MSM_BACKEND_DAI_MI2S_RX,
  4307. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4308. msm_routing_put_audio_mixer),
  4309. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4310. MSM_BACKEND_DAI_MI2S_RX,
  4311. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4312. msm_routing_put_audio_mixer),
  4313. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4314. MSM_BACKEND_DAI_MI2S_RX,
  4315. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4316. msm_routing_put_audio_mixer),
  4317. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4318. MSM_BACKEND_DAI_MI2S_RX,
  4319. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4320. msm_routing_put_audio_mixer),
  4321. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4322. MSM_BACKEND_DAI_MI2S_RX,
  4323. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4324. msm_routing_put_audio_mixer),
  4325. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4326. MSM_BACKEND_DAI_MI2S_RX,
  4327. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4328. msm_routing_put_audio_mixer),
  4329. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4330. MSM_BACKEND_DAI_MI2S_RX,
  4331. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4332. msm_routing_put_audio_mixer),
  4333. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4334. MSM_BACKEND_DAI_MI2S_RX,
  4335. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4336. msm_routing_put_audio_mixer),
  4337. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4338. MSM_BACKEND_DAI_MI2S_RX,
  4339. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4340. msm_routing_put_audio_mixer),
  4341. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4342. MSM_BACKEND_DAI_MI2S_RX,
  4343. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4344. msm_routing_put_audio_mixer),
  4345. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4346. MSM_BACKEND_DAI_MI2S_RX,
  4347. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4348. msm_routing_put_audio_mixer),
  4349. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4350. MSM_BACKEND_DAI_MI2S_RX,
  4351. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4352. msm_routing_put_audio_mixer),
  4353. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4354. MSM_BACKEND_DAI_MI2S_RX,
  4355. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4356. msm_routing_put_audio_mixer),
  4357. };
  4358. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4359. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4360. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4361. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4362. msm_routing_put_audio_mixer),
  4363. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4364. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4365. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4366. msm_routing_put_audio_mixer),
  4367. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4368. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4369. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4370. msm_routing_put_audio_mixer),
  4371. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4372. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4373. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4374. msm_routing_put_audio_mixer),
  4375. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4376. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4377. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4378. msm_routing_put_audio_mixer),
  4379. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4380. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4381. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4382. msm_routing_put_audio_mixer),
  4383. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4384. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4385. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4386. msm_routing_put_audio_mixer),
  4387. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4388. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4389. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4390. msm_routing_put_audio_mixer),
  4391. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4392. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4393. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4394. msm_routing_put_audio_mixer),
  4395. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4396. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4397. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4398. msm_routing_put_audio_mixer),
  4399. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4400. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4401. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4402. msm_routing_put_audio_mixer),
  4403. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4404. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4405. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4406. msm_routing_put_audio_mixer),
  4407. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4408. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4409. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4410. msm_routing_put_audio_mixer),
  4411. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4412. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4413. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4414. msm_routing_put_audio_mixer),
  4415. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4416. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4417. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4418. msm_routing_put_audio_mixer),
  4419. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4420. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4421. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4422. msm_routing_put_audio_mixer),
  4423. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4424. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4425. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4426. msm_routing_put_audio_mixer),
  4427. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4428. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4429. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4430. msm_routing_put_audio_mixer),
  4431. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4432. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4433. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4434. msm_routing_put_audio_mixer),
  4435. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4436. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4437. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4438. msm_routing_put_audio_mixer),
  4439. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4440. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4441. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4442. msm_routing_put_audio_mixer),
  4443. };
  4444. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4445. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4446. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4447. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4448. msm_routing_put_audio_mixer),
  4449. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4450. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4451. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4452. msm_routing_put_audio_mixer),
  4453. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4454. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4455. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4456. msm_routing_put_audio_mixer),
  4457. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4458. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4459. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4460. msm_routing_put_audio_mixer),
  4461. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4462. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4463. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4464. msm_routing_put_audio_mixer),
  4465. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4466. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4467. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4468. msm_routing_put_audio_mixer),
  4469. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4470. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4471. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4472. msm_routing_put_audio_mixer),
  4473. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4474. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4475. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4476. msm_routing_put_audio_mixer),
  4477. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4478. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4479. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4480. msm_routing_put_audio_mixer),
  4481. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4482. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4483. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4484. msm_routing_put_audio_mixer),
  4485. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4486. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4487. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4488. msm_routing_put_audio_mixer),
  4489. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4490. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4491. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4492. msm_routing_put_audio_mixer),
  4493. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4494. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4495. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4496. msm_routing_put_audio_mixer),
  4497. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4498. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4499. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4500. msm_routing_put_audio_mixer),
  4501. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4502. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4503. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4504. msm_routing_put_audio_mixer),
  4505. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4506. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4507. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4508. msm_routing_put_audio_mixer),
  4509. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4510. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4511. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4512. msm_routing_put_audio_mixer),
  4513. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4514. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4515. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4516. msm_routing_put_audio_mixer),
  4517. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4518. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4519. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4520. msm_routing_put_audio_mixer),
  4521. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4522. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4523. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4524. msm_routing_put_audio_mixer),
  4525. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4526. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4527. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4528. msm_routing_put_audio_mixer),
  4529. };
  4530. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4531. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4532. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4533. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4534. msm_routing_put_audio_mixer),
  4535. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4536. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4537. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4538. msm_routing_put_audio_mixer),
  4539. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4540. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4541. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4542. msm_routing_put_audio_mixer),
  4543. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4544. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4545. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4546. msm_routing_put_audio_mixer),
  4547. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4548. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4549. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4550. msm_routing_put_audio_mixer),
  4551. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4552. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4553. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4554. msm_routing_put_audio_mixer),
  4555. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4556. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4557. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4558. msm_routing_put_audio_mixer),
  4559. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4560. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4561. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4562. msm_routing_put_audio_mixer),
  4563. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4564. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4565. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4566. msm_routing_put_audio_mixer),
  4567. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4568. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4569. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4570. msm_routing_put_audio_mixer),
  4571. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4572. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4573. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4574. msm_routing_put_audio_mixer),
  4575. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4576. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4577. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4578. msm_routing_put_audio_mixer),
  4579. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4580. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4581. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4582. msm_routing_put_audio_mixer),
  4583. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4584. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4585. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4586. msm_routing_put_audio_mixer),
  4587. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4588. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4589. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4590. msm_routing_put_audio_mixer),
  4591. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4592. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4593. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4594. msm_routing_put_audio_mixer),
  4595. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4596. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4597. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4598. msm_routing_put_audio_mixer),
  4599. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4600. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4601. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4602. msm_routing_put_audio_mixer),
  4603. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4604. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4605. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4606. msm_routing_put_audio_mixer),
  4607. };
  4608. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4609. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4610. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4611. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4612. msm_routing_put_audio_mixer),
  4613. };
  4614. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4615. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4616. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4617. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4618. msm_routing_put_audio_mixer),
  4619. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4620. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4621. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4622. msm_routing_put_audio_mixer),
  4623. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4624. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4625. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4626. msm_routing_put_audio_mixer),
  4627. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4628. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4629. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4630. msm_routing_put_audio_mixer),
  4631. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4632. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4633. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4634. msm_routing_put_audio_mixer),
  4635. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4636. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4637. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4638. msm_routing_put_audio_mixer),
  4639. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4640. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4641. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4642. msm_routing_put_audio_mixer),
  4643. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4644. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4645. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4646. msm_routing_put_audio_mixer),
  4647. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4648. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4649. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4650. msm_routing_put_audio_mixer),
  4651. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4652. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4653. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4654. msm_routing_put_audio_mixer),
  4655. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4656. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4657. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4658. msm_routing_put_audio_mixer),
  4659. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4660. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4661. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4662. msm_routing_put_audio_mixer),
  4663. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4664. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4665. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4666. msm_routing_put_audio_mixer),
  4667. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4668. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4669. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4670. msm_routing_put_audio_mixer),
  4671. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4672. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4673. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4674. msm_routing_put_audio_mixer),
  4675. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4676. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4677. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4678. msm_routing_put_audio_mixer),
  4679. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4680. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4681. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4682. msm_routing_put_audio_mixer),
  4683. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4684. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4685. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4686. msm_routing_put_audio_mixer),
  4687. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4688. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4689. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4690. msm_routing_put_audio_mixer),
  4691. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4692. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4693. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4694. msm_routing_put_audio_mixer),
  4695. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4696. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4697. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4698. msm_routing_put_audio_mixer),
  4699. };
  4700. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4701. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4702. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4703. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4704. msm_routing_put_audio_mixer),
  4705. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4706. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4707. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4708. msm_routing_put_audio_mixer),
  4709. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4710. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4711. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4712. msm_routing_put_audio_mixer),
  4713. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4714. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4715. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4716. msm_routing_put_audio_mixer),
  4717. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4718. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4719. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4720. msm_routing_put_audio_mixer),
  4721. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4722. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4723. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4724. msm_routing_put_audio_mixer),
  4725. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4726. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4727. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4728. msm_routing_put_audio_mixer),
  4729. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4730. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4731. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4732. msm_routing_put_audio_mixer),
  4733. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4734. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4735. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4736. msm_routing_put_audio_mixer),
  4737. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4738. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4739. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4740. msm_routing_put_audio_mixer),
  4741. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4742. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4743. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4744. msm_routing_put_audio_mixer),
  4745. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4746. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4747. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4748. msm_routing_put_audio_mixer),
  4749. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4750. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4751. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4752. msm_routing_put_audio_mixer),
  4753. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4754. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4755. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4756. msm_routing_put_audio_mixer),
  4757. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4758. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4759. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4760. msm_routing_put_audio_mixer),
  4761. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4762. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4763. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4764. msm_routing_put_audio_mixer),
  4765. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4766. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4767. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4768. msm_routing_put_audio_mixer),
  4769. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4770. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4771. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4772. msm_routing_put_audio_mixer),
  4773. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4774. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4775. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4776. msm_routing_put_audio_mixer),
  4777. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4778. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4779. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4780. msm_routing_put_audio_mixer),
  4781. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4782. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4783. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4784. msm_routing_put_audio_mixer),
  4785. };
  4786. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4787. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4788. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4789. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4790. msm_routing_put_audio_mixer),
  4791. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4792. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4793. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4794. msm_routing_put_audio_mixer),
  4795. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4796. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4797. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4798. msm_routing_put_audio_mixer),
  4799. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4800. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4801. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4802. msm_routing_put_audio_mixer),
  4803. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4804. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4805. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4806. msm_routing_put_audio_mixer),
  4807. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4808. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4809. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4810. msm_routing_put_audio_mixer),
  4811. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4812. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4813. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4814. msm_routing_put_audio_mixer),
  4815. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4816. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4817. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4818. msm_routing_put_audio_mixer),
  4819. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4820. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4821. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4822. msm_routing_put_audio_mixer),
  4823. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4824. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4825. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4826. msm_routing_put_audio_mixer),
  4827. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4828. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4829. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4830. msm_routing_put_audio_mixer),
  4831. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4832. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4833. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4834. msm_routing_put_audio_mixer),
  4835. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4836. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4837. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4838. msm_routing_put_audio_mixer),
  4839. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4840. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4841. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4842. msm_routing_put_audio_mixer),
  4843. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4844. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4845. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4846. msm_routing_put_audio_mixer),
  4847. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4848. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4849. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4850. msm_routing_put_audio_mixer),
  4851. };
  4852. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4853. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4854. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4855. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4856. msm_routing_put_audio_mixer),
  4857. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4858. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4859. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4860. msm_routing_put_audio_mixer),
  4861. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4862. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4863. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4864. msm_routing_put_audio_mixer),
  4865. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4866. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4867. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4868. msm_routing_put_audio_mixer),
  4869. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4870. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4871. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4872. msm_routing_put_audio_mixer),
  4873. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4874. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4875. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4876. msm_routing_put_audio_mixer),
  4877. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4878. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4879. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4880. msm_routing_put_audio_mixer),
  4881. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4882. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4883. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4884. msm_routing_put_audio_mixer),
  4885. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4886. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4887. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4888. msm_routing_put_audio_mixer),
  4889. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4890. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4891. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4892. msm_routing_put_audio_mixer),
  4893. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4894. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4895. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4896. msm_routing_put_audio_mixer),
  4897. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4898. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4899. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4900. msm_routing_put_audio_mixer),
  4901. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4902. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4903. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4904. msm_routing_put_audio_mixer),
  4905. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4906. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4907. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4908. msm_routing_put_audio_mixer),
  4909. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4910. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4911. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4912. msm_routing_put_audio_mixer),
  4913. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4914. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4915. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4916. msm_routing_put_audio_mixer),
  4917. };
  4918. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4919. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4920. MSM_BACKEND_DAI_HDMI_RX,
  4921. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4922. msm_routing_put_audio_mixer),
  4923. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4924. MSM_BACKEND_DAI_HDMI_RX,
  4925. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4926. msm_routing_put_audio_mixer),
  4927. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4928. MSM_BACKEND_DAI_HDMI_RX,
  4929. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4930. msm_routing_put_audio_mixer),
  4931. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4932. MSM_BACKEND_DAI_HDMI_RX,
  4933. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4934. msm_routing_put_audio_mixer),
  4935. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4936. MSM_BACKEND_DAI_HDMI_RX,
  4937. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4938. msm_routing_put_audio_mixer),
  4939. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4940. MSM_BACKEND_DAI_HDMI_RX,
  4941. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4942. msm_routing_put_audio_mixer),
  4943. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4944. MSM_BACKEND_DAI_HDMI_RX,
  4945. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4946. msm_routing_put_audio_mixer),
  4947. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4948. MSM_BACKEND_DAI_HDMI_RX,
  4949. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4950. msm_routing_put_audio_mixer),
  4951. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4952. MSM_BACKEND_DAI_HDMI_RX,
  4953. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4954. msm_routing_put_audio_mixer),
  4955. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4956. MSM_BACKEND_DAI_HDMI_RX,
  4957. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4958. msm_routing_put_audio_mixer),
  4959. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4960. MSM_BACKEND_DAI_HDMI_RX,
  4961. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4962. msm_routing_put_audio_mixer),
  4963. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4964. MSM_BACKEND_DAI_HDMI_RX,
  4965. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4966. msm_routing_put_audio_mixer),
  4967. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4968. MSM_BACKEND_DAI_HDMI_RX,
  4969. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4970. msm_routing_put_audio_mixer),
  4971. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4972. MSM_BACKEND_DAI_HDMI_RX,
  4973. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4974. msm_routing_put_audio_mixer),
  4975. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4976. MSM_BACKEND_DAI_HDMI_RX,
  4977. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4978. msm_routing_put_audio_mixer),
  4979. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4980. MSM_BACKEND_DAI_HDMI_RX,
  4981. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4982. msm_routing_put_audio_mixer),
  4983. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4984. MSM_BACKEND_DAI_HDMI_RX,
  4985. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4986. msm_routing_put_audio_mixer),
  4987. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4988. MSM_BACKEND_DAI_HDMI_RX,
  4989. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4990. msm_routing_put_audio_mixer),
  4991. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4992. MSM_BACKEND_DAI_HDMI_RX,
  4993. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4994. msm_routing_put_audio_mixer),
  4995. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4996. MSM_BACKEND_DAI_HDMI_RX,
  4997. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4998. msm_routing_put_audio_mixer),
  4999. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5000. MSM_BACKEND_DAI_HDMI_RX,
  5001. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5002. msm_routing_put_audio_mixer),
  5003. };
  5004. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  5005. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5006. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5007. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5008. msm_routing_put_audio_mixer),
  5009. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5010. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5011. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5012. msm_routing_put_audio_mixer),
  5013. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5014. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5015. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5016. msm_routing_put_audio_mixer),
  5017. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5018. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5019. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5020. msm_routing_put_audio_mixer),
  5021. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5022. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5023. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5024. msm_routing_put_audio_mixer),
  5025. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5026. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5027. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5028. msm_routing_put_audio_mixer),
  5029. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5030. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5031. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5032. msm_routing_put_audio_mixer),
  5033. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5034. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5035. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5036. msm_routing_put_audio_mixer),
  5037. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5038. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5039. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5040. msm_routing_put_audio_mixer),
  5041. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5042. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5043. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5044. msm_routing_put_audio_mixer),
  5045. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5046. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5047. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5048. msm_routing_put_audio_mixer),
  5049. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5050. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5051. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5052. msm_routing_put_audio_mixer),
  5053. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5054. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5055. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5056. msm_routing_put_audio_mixer),
  5057. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5058. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5059. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5060. msm_routing_put_audio_mixer),
  5061. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5062. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5063. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5064. msm_routing_put_audio_mixer),
  5065. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5066. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5067. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5068. msm_routing_put_audio_mixer),
  5069. };
  5070. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  5071. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5072. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5073. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5074. msm_routing_put_audio_mixer),
  5075. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5076. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5077. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5078. msm_routing_put_audio_mixer),
  5079. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5080. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5081. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5082. msm_routing_put_audio_mixer),
  5083. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5084. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5085. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5086. msm_routing_put_audio_mixer),
  5087. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5088. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5089. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5090. msm_routing_put_audio_mixer),
  5091. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5092. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5093. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5094. msm_routing_put_audio_mixer),
  5095. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5096. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5097. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5098. msm_routing_put_audio_mixer),
  5099. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5100. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5101. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5102. msm_routing_put_audio_mixer),
  5103. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5104. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5105. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5106. msm_routing_put_audio_mixer),
  5107. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5108. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5109. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5110. msm_routing_put_audio_mixer),
  5111. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5112. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5113. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5114. msm_routing_put_audio_mixer),
  5115. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5116. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5117. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5118. msm_routing_put_audio_mixer),
  5119. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5120. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5121. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5122. msm_routing_put_audio_mixer),
  5123. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5124. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5125. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5126. msm_routing_put_audio_mixer),
  5127. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5128. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5129. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5130. msm_routing_put_audio_mixer),
  5131. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5132. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5133. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5134. msm_routing_put_audio_mixer),
  5135. };
  5136. /* incall music delivery mixer */
  5137. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  5138. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5139. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5140. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5141. msm_routing_put_audio_mixer),
  5142. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5143. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5144. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5145. msm_routing_put_audio_mixer),
  5146. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5147. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5148. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5149. msm_routing_put_audio_mixer),
  5150. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5151. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5152. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5153. msm_routing_put_audio_mixer),
  5154. };
  5155. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  5156. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5157. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5158. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5159. msm_routing_put_audio_mixer),
  5160. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5161. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5162. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5163. msm_routing_put_audio_mixer),
  5164. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5165. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5166. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5167. msm_routing_put_audio_mixer),
  5168. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5169. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5170. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5171. msm_routing_put_audio_mixer),
  5172. };
  5173. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5174. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5175. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5176. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5177. msm_routing_put_audio_mixer),
  5178. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5179. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5180. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5181. msm_routing_put_audio_mixer),
  5182. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5183. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5184. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5185. msm_routing_put_audio_mixer),
  5186. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5187. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5188. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5189. msm_routing_put_audio_mixer),
  5190. };
  5191. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5192. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5193. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5194. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5195. msm_routing_put_audio_mixer),
  5196. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5197. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5198. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5199. msm_routing_put_audio_mixer),
  5200. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5201. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5202. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5203. msm_routing_put_audio_mixer),
  5204. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5205. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5206. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5207. msm_routing_put_audio_mixer),
  5208. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5209. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5210. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5211. msm_routing_put_audio_mixer),
  5212. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5213. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5214. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5215. msm_routing_put_audio_mixer),
  5216. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5217. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5218. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5219. msm_routing_put_audio_mixer),
  5220. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5221. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5222. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5223. msm_routing_put_audio_mixer),
  5224. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5225. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5226. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5227. msm_routing_put_audio_mixer),
  5228. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5229. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5230. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5231. msm_routing_put_audio_mixer),
  5232. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5233. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5234. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5235. msm_routing_put_audio_mixer),
  5236. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5237. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5238. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5239. msm_routing_put_audio_mixer),
  5240. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5241. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5242. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5243. msm_routing_put_audio_mixer),
  5244. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5245. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5246. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5247. msm_routing_put_audio_mixer),
  5248. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5249. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5250. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5251. msm_routing_put_audio_mixer),
  5252. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5253. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5254. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5255. msm_routing_put_audio_mixer),
  5256. };
  5257. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5258. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5259. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5260. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5261. msm_routing_put_audio_mixer),
  5262. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5263. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5264. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5265. msm_routing_put_audio_mixer),
  5266. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5267. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5268. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5269. msm_routing_put_audio_mixer),
  5270. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5271. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5272. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5273. msm_routing_put_audio_mixer),
  5274. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5275. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5276. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5277. msm_routing_put_audio_mixer),
  5278. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5279. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5280. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5281. msm_routing_put_audio_mixer),
  5282. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5283. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5284. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5285. msm_routing_put_audio_mixer),
  5286. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5287. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5289. msm_routing_put_audio_mixer),
  5290. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5291. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5292. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5293. msm_routing_put_audio_mixer),
  5294. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5295. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5296. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5297. msm_routing_put_audio_mixer),
  5298. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5299. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5300. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5301. msm_routing_put_audio_mixer),
  5302. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5303. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5304. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5305. msm_routing_put_audio_mixer),
  5306. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5307. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5308. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5309. msm_routing_put_audio_mixer),
  5310. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5311. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5312. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5313. msm_routing_put_audio_mixer),
  5314. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5315. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5316. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5317. msm_routing_put_audio_mixer),
  5318. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5319. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5320. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5321. msm_routing_put_audio_mixer),
  5322. };
  5323. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5324. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5325. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5326. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5327. msm_routing_put_audio_mixer),
  5328. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5329. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5330. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5331. msm_routing_put_audio_mixer),
  5332. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5333. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5334. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5335. msm_routing_put_audio_mixer),
  5336. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5337. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5338. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5339. msm_routing_put_audio_mixer),
  5340. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5341. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5342. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5343. msm_routing_put_audio_mixer),
  5344. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5345. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5346. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5347. msm_routing_put_audio_mixer),
  5348. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5349. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5350. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5351. msm_routing_put_audio_mixer),
  5352. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5353. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5354. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5355. msm_routing_put_audio_mixer),
  5356. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5357. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5358. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5359. msm_routing_put_audio_mixer),
  5360. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5361. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5365. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5366. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5367. msm_routing_put_audio_mixer),
  5368. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5369. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5370. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5371. msm_routing_put_audio_mixer),
  5372. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5373. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5374. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5375. msm_routing_put_audio_mixer),
  5376. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5377. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5378. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5379. msm_routing_put_audio_mixer),
  5380. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5381. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5382. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5383. msm_routing_put_audio_mixer),
  5384. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5385. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5386. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5387. msm_routing_put_audio_mixer),
  5388. };
  5389. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  5390. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5391. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5392. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5393. msm_routing_put_audio_mixer),
  5394. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5395. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5396. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5397. msm_routing_put_audio_mixer),
  5398. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5399. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5400. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5401. msm_routing_put_audio_mixer),
  5402. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5403. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5404. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5405. msm_routing_put_audio_mixer),
  5406. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5407. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5408. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5409. msm_routing_put_audio_mixer),
  5410. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5411. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5412. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5413. msm_routing_put_audio_mixer),
  5414. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5415. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5416. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5417. msm_routing_put_audio_mixer),
  5418. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5419. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5420. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5421. msm_routing_put_audio_mixer),
  5422. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5423. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5424. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5425. msm_routing_put_audio_mixer),
  5426. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5427. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5428. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5429. msm_routing_put_audio_mixer),
  5430. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5431. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5432. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5433. msm_routing_put_audio_mixer),
  5434. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5435. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5436. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5437. msm_routing_put_audio_mixer),
  5438. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5439. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5440. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5441. msm_routing_put_audio_mixer),
  5442. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5443. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5444. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5445. msm_routing_put_audio_mixer),
  5446. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5447. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5448. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5449. msm_routing_put_audio_mixer),
  5450. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5451. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5452. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5453. msm_routing_put_audio_mixer),
  5454. };
  5455. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  5456. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5457. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5458. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5459. msm_routing_put_audio_mixer),
  5460. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5461. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5462. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5463. msm_routing_put_audio_mixer),
  5464. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5465. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5466. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5467. msm_routing_put_audio_mixer),
  5468. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5469. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5470. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5471. msm_routing_put_audio_mixer),
  5472. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5473. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5474. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5475. msm_routing_put_audio_mixer),
  5476. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5477. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5478. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5479. msm_routing_put_audio_mixer),
  5480. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5481. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5482. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5483. msm_routing_put_audio_mixer),
  5484. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5485. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5486. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5487. msm_routing_put_audio_mixer),
  5488. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5489. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5490. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5491. msm_routing_put_audio_mixer),
  5492. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5493. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5494. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5495. msm_routing_put_audio_mixer),
  5496. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5497. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5498. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5499. msm_routing_put_audio_mixer),
  5500. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5501. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5502. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5503. msm_routing_put_audio_mixer),
  5504. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5505. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5506. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5507. msm_routing_put_audio_mixer),
  5508. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5509. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5510. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5511. msm_routing_put_audio_mixer),
  5512. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5513. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5514. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5515. msm_routing_put_audio_mixer),
  5516. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5517. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5518. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5519. msm_routing_put_audio_mixer),
  5520. };
  5521. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  5522. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5523. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5524. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5525. msm_routing_put_audio_mixer),
  5526. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5527. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5531. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5535. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5536. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5537. msm_routing_put_audio_mixer),
  5538. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5539. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5540. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5541. msm_routing_put_audio_mixer),
  5542. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5543. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5547. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5548. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5549. msm_routing_put_audio_mixer),
  5550. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5551. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5552. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5553. msm_routing_put_audio_mixer),
  5554. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5555. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5556. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5557. msm_routing_put_audio_mixer),
  5558. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5559. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5560. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5561. msm_routing_put_audio_mixer),
  5562. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5563. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5564. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5565. msm_routing_put_audio_mixer),
  5566. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5567. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5568. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5569. msm_routing_put_audio_mixer),
  5570. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5571. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5572. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5573. msm_routing_put_audio_mixer),
  5574. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5575. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5576. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5577. msm_routing_put_audio_mixer),
  5578. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5579. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5580. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5581. msm_routing_put_audio_mixer),
  5582. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5583. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5584. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5585. msm_routing_put_audio_mixer),
  5586. };
  5587. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  5588. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5601. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5602. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5603. msm_routing_put_audio_mixer),
  5604. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5605. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5609. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5613. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5614. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5615. msm_routing_put_audio_mixer),
  5616. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5617. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5621. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5625. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5629. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5630. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5631. msm_routing_put_audio_mixer),
  5632. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5633. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5634. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5635. msm_routing_put_audio_mixer),
  5636. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5637. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5638. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5639. msm_routing_put_audio_mixer),
  5640. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5641. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5642. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5643. msm_routing_put_audio_mixer),
  5644. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5645. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5646. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5647. msm_routing_put_audio_mixer),
  5648. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5649. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5650. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5651. msm_routing_put_audio_mixer),
  5652. };
  5653. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  5654. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5655. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5659. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5663. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5671. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5675. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5679. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5680. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5681. msm_routing_put_audio_mixer),
  5682. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5683. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5687. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5691. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5692. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5693. msm_routing_put_audio_mixer),
  5694. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5695. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5696. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5697. msm_routing_put_audio_mixer),
  5698. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5699. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5703. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5707. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5708. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5709. msm_routing_put_audio_mixer),
  5710. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5711. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5712. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5713. msm_routing_put_audio_mixer),
  5714. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5715. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5716. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5717. msm_routing_put_audio_mixer),
  5718. };
  5719. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  5720. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5721. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5722. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5723. msm_routing_put_audio_mixer),
  5724. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5725. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5729. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5730. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5731. msm_routing_put_audio_mixer),
  5732. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5733. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5749. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5765. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5769. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5773. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5774. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5775. msm_routing_put_audio_mixer),
  5776. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5777. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5781. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. };
  5785. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  5786. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5787. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5788. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5789. msm_routing_put_audio_mixer),
  5790. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5791. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5792. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5793. msm_routing_put_audio_mixer),
  5794. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5795. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5796. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5797. msm_routing_put_audio_mixer),
  5798. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5799. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5800. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5801. msm_routing_put_audio_mixer),
  5802. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5803. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5804. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5805. msm_routing_put_audio_mixer),
  5806. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5807. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5808. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5809. msm_routing_put_audio_mixer),
  5810. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5811. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5815. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5816. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5817. msm_routing_put_audio_mixer),
  5818. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5819. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5820. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5821. msm_routing_put_audio_mixer),
  5822. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5823. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5824. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5825. msm_routing_put_audio_mixer),
  5826. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5827. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5828. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5829. msm_routing_put_audio_mixer),
  5830. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5831. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5835. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5836. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5837. msm_routing_put_audio_mixer),
  5838. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5839. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5840. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5841. msm_routing_put_audio_mixer),
  5842. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5843. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5847. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. };
  5851. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  5852. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5853. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5854. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5855. msm_routing_put_audio_mixer),
  5856. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5857. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5858. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5859. msm_routing_put_audio_mixer),
  5860. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5861. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5862. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5863. msm_routing_put_audio_mixer),
  5864. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5865. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5866. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5867. msm_routing_put_audio_mixer),
  5868. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5869. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5870. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5871. msm_routing_put_audio_mixer),
  5872. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5873. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5874. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5875. msm_routing_put_audio_mixer),
  5876. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5877. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5878. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5879. msm_routing_put_audio_mixer),
  5880. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5881. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5882. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5883. msm_routing_put_audio_mixer),
  5884. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5885. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5886. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5887. msm_routing_put_audio_mixer),
  5888. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5889. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5890. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5891. msm_routing_put_audio_mixer),
  5892. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5893. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5894. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5895. msm_routing_put_audio_mixer),
  5896. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5897. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5898. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5899. msm_routing_put_audio_mixer),
  5900. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5901. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5902. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5903. msm_routing_put_audio_mixer),
  5904. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5905. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5906. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5907. msm_routing_put_audio_mixer),
  5908. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5909. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5910. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5911. msm_routing_put_audio_mixer),
  5912. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5913. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5914. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5915. msm_routing_put_audio_mixer),
  5916. };
  5917. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  5918. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5919. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5920. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5921. msm_routing_put_audio_mixer),
  5922. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5923. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5924. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5925. msm_routing_put_audio_mixer),
  5926. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5927. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5928. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5929. msm_routing_put_audio_mixer),
  5930. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5931. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5932. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5933. msm_routing_put_audio_mixer),
  5934. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5935. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5936. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5937. msm_routing_put_audio_mixer),
  5938. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5939. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5940. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5941. msm_routing_put_audio_mixer),
  5942. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5943. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5944. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5945. msm_routing_put_audio_mixer),
  5946. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5947. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5948. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5949. msm_routing_put_audio_mixer),
  5950. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5951. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5952. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5953. msm_routing_put_audio_mixer),
  5954. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5955. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5956. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5957. msm_routing_put_audio_mixer),
  5958. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5959. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5960. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5961. msm_routing_put_audio_mixer),
  5962. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5963. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5964. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5965. msm_routing_put_audio_mixer),
  5966. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5967. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5968. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5969. msm_routing_put_audio_mixer),
  5970. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5971. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5972. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5973. msm_routing_put_audio_mixer),
  5974. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5975. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5976. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5977. msm_routing_put_audio_mixer),
  5978. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5979. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5980. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5981. msm_routing_put_audio_mixer),
  5982. };
  5983. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  5984. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5985. MSM_BACKEND_DAI_USB_RX,
  5986. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5987. msm_routing_put_audio_mixer),
  5988. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5989. MSM_BACKEND_DAI_USB_RX,
  5990. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5991. msm_routing_put_audio_mixer),
  5992. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5993. MSM_BACKEND_DAI_USB_RX,
  5994. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5995. msm_routing_put_audio_mixer),
  5996. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5997. MSM_BACKEND_DAI_USB_RX,
  5998. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5999. msm_routing_put_audio_mixer),
  6000. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6001. MSM_BACKEND_DAI_USB_RX,
  6002. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6003. msm_routing_put_audio_mixer),
  6004. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6005. MSM_BACKEND_DAI_USB_RX,
  6006. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6007. msm_routing_put_audio_mixer),
  6008. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6009. MSM_BACKEND_DAI_USB_RX,
  6010. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6011. msm_routing_put_audio_mixer),
  6012. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6013. MSM_BACKEND_DAI_USB_RX,
  6014. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6015. msm_routing_put_audio_mixer),
  6016. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6017. MSM_BACKEND_DAI_USB_RX,
  6018. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6019. msm_routing_put_audio_mixer),
  6020. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6021. MSM_BACKEND_DAI_USB_RX,
  6022. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6023. msm_routing_put_audio_mixer),
  6024. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6025. MSM_BACKEND_DAI_USB_RX,
  6026. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6027. msm_routing_put_audio_mixer),
  6028. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6029. MSM_BACKEND_DAI_USB_RX,
  6030. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6031. msm_routing_put_audio_mixer),
  6032. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6033. MSM_BACKEND_DAI_USB_RX,
  6034. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6035. msm_routing_put_audio_mixer),
  6036. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6037. MSM_BACKEND_DAI_USB_RX,
  6038. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6039. msm_routing_put_audio_mixer),
  6040. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6041. MSM_BACKEND_DAI_USB_RX,
  6042. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6043. msm_routing_put_audio_mixer),
  6044. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6045. MSM_BACKEND_DAI_USB_RX,
  6046. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6047. msm_routing_put_audio_mixer),
  6048. };
  6049. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  6050. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6051. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6052. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6053. msm_routing_put_audio_mixer),
  6054. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6055. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6059. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6060. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6061. msm_routing_put_audio_mixer),
  6062. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6063. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6064. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6065. msm_routing_put_audio_mixer),
  6066. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6067. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6068. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6069. msm_routing_put_audio_mixer),
  6070. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6071. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6072. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6073. msm_routing_put_audio_mixer),
  6074. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6075. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6076. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6077. msm_routing_put_audio_mixer),
  6078. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6079. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6080. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6081. msm_routing_put_audio_mixer),
  6082. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6083. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6084. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6085. msm_routing_put_audio_mixer),
  6086. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6087. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6088. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6089. msm_routing_put_audio_mixer),
  6090. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6091. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6092. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6093. msm_routing_put_audio_mixer),
  6094. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6095. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6096. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6097. msm_routing_put_audio_mixer),
  6098. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6099. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6100. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6101. msm_routing_put_audio_mixer),
  6102. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6103. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6104. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6105. msm_routing_put_audio_mixer),
  6106. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6107. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6108. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6109. msm_routing_put_audio_mixer),
  6110. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6111. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6112. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6113. msm_routing_put_audio_mixer),
  6114. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6115. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6116. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6117. msm_routing_put_audio_mixer),
  6118. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6119. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6120. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6121. msm_routing_put_audio_mixer),
  6122. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6123. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6124. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6125. msm_routing_put_audio_mixer),
  6126. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6127. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6128. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6129. msm_routing_put_audio_mixer),
  6130. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6131. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6132. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6133. msm_routing_put_audio_mixer),
  6134. };
  6135. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  6136. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6137. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6141. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6142. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6143. msm_routing_put_audio_mixer),
  6144. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6145. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6149. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6153. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6154. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6155. msm_routing_put_audio_mixer),
  6156. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6157. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6158. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6159. msm_routing_put_audio_mixer),
  6160. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6161. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6162. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6163. msm_routing_put_audio_mixer),
  6164. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6165. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6166. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6167. msm_routing_put_audio_mixer),
  6168. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6169. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6170. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6171. msm_routing_put_audio_mixer),
  6172. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6173. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6174. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6175. msm_routing_put_audio_mixer),
  6176. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6177. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6178. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6179. msm_routing_put_audio_mixer),
  6180. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6181. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6182. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6183. msm_routing_put_audio_mixer),
  6184. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6185. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6186. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6187. msm_routing_put_audio_mixer),
  6188. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6189. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6190. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6191. msm_routing_put_audio_mixer),
  6192. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6193. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6194. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6195. msm_routing_put_audio_mixer),
  6196. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6197. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6198. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6199. msm_routing_put_audio_mixer),
  6200. };
  6201. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  6202. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6203. MSM_BACKEND_DAI_INT_FM_RX,
  6204. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6205. msm_routing_put_audio_mixer),
  6206. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6207. MSM_BACKEND_DAI_INT_FM_RX,
  6208. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6209. msm_routing_put_audio_mixer),
  6210. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6211. MSM_BACKEND_DAI_INT_FM_RX,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6215. MSM_BACKEND_DAI_INT_FM_RX,
  6216. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6217. msm_routing_put_audio_mixer),
  6218. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6219. MSM_BACKEND_DAI_INT_FM_RX,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6223. MSM_BACKEND_DAI_INT_FM_RX,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6227. MSM_BACKEND_DAI_INT_FM_RX,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6231. MSM_BACKEND_DAI_INT_FM_RX,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6235. MSM_BACKEND_DAI_INT_FM_RX,
  6236. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6237. msm_routing_put_audio_mixer),
  6238. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6239. MSM_BACKEND_DAI_INT_FM_RX,
  6240. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6241. msm_routing_put_audio_mixer),
  6242. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6243. MSM_BACKEND_DAI_INT_FM_RX,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6247. MSM_BACKEND_DAI_INT_FM_RX,
  6248. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6249. msm_routing_put_audio_mixer),
  6250. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6251. MSM_BACKEND_DAI_INT_FM_RX,
  6252. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6253. msm_routing_put_audio_mixer),
  6254. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6255. MSM_BACKEND_DAI_INT_FM_RX,
  6256. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6257. msm_routing_put_audio_mixer),
  6258. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6259. MSM_BACKEND_DAI_INT_FM_RX,
  6260. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6261. msm_routing_put_audio_mixer),
  6262. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6263. MSM_BACKEND_DAI_INT_FM_RX,
  6264. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6265. msm_routing_put_audio_mixer),
  6266. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6267. MSM_BACKEND_DAI_INT_FM_RX,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6271. MSM_BACKEND_DAI_INT_FM_RX,
  6272. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6273. msm_routing_put_audio_mixer),
  6274. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6275. MSM_BACKEND_DAI_INT_FM_RX,
  6276. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6277. msm_routing_put_audio_mixer),
  6278. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6279. MSM_BACKEND_DAI_INT_FM_RX,
  6280. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6281. msm_routing_put_audio_mixer),
  6282. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6283. MSM_BACKEND_DAI_INT_FM_RX,
  6284. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6285. msm_routing_put_audio_mixer),
  6286. };
  6287. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  6288. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6289. MSM_BACKEND_DAI_AFE_PCM_RX,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6293. MSM_BACKEND_DAI_AFE_PCM_RX,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6297. MSM_BACKEND_DAI_AFE_PCM_RX,
  6298. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6299. msm_routing_put_audio_mixer),
  6300. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6301. MSM_BACKEND_DAI_AFE_PCM_RX,
  6302. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6303. msm_routing_put_audio_mixer),
  6304. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6305. MSM_BACKEND_DAI_AFE_PCM_RX,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6309. MSM_BACKEND_DAI_AFE_PCM_RX,
  6310. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6311. msm_routing_put_audio_mixer),
  6312. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6313. MSM_BACKEND_DAI_AFE_PCM_RX,
  6314. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6315. msm_routing_put_audio_mixer),
  6316. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6317. MSM_BACKEND_DAI_AFE_PCM_RX,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6321. MSM_BACKEND_DAI_AFE_PCM_RX,
  6322. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6323. msm_routing_put_audio_mixer),
  6324. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6325. MSM_BACKEND_DAI_AFE_PCM_RX,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6329. MSM_BACKEND_DAI_AFE_PCM_RX,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_AFE_PCM_RX,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_AFE_PCM_RX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_AFE_PCM_RX,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6345. MSM_BACKEND_DAI_AFE_PCM_RX,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6349. MSM_BACKEND_DAI_AFE_PCM_RX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_AFE_PCM_RX,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6357. MSM_BACKEND_DAI_AFE_PCM_RX,
  6358. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6359. msm_routing_put_audio_mixer),
  6360. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6361. MSM_BACKEND_DAI_AFE_PCM_RX,
  6362. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6363. msm_routing_put_audio_mixer),
  6364. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6365. MSM_BACKEND_DAI_AFE_PCM_RX,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6369. MSM_BACKEND_DAI_AFE_PCM_RX,
  6370. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6371. msm_routing_put_audio_mixer),
  6372. };
  6373. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  6374. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6375. MSM_BACKEND_DAI_AUXPCM_RX,
  6376. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6377. msm_routing_put_audio_mixer),
  6378. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6379. MSM_BACKEND_DAI_AUXPCM_RX,
  6380. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6381. msm_routing_put_audio_mixer),
  6382. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6383. MSM_BACKEND_DAI_AUXPCM_RX,
  6384. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6385. msm_routing_put_audio_mixer),
  6386. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6387. MSM_BACKEND_DAI_AUXPCM_RX,
  6388. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6389. msm_routing_put_audio_mixer),
  6390. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6391. MSM_BACKEND_DAI_AUXPCM_RX,
  6392. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6393. msm_routing_put_audio_mixer),
  6394. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6395. MSM_BACKEND_DAI_AUXPCM_RX,
  6396. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6397. msm_routing_put_audio_mixer),
  6398. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6399. MSM_BACKEND_DAI_AUXPCM_RX,
  6400. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6401. msm_routing_put_audio_mixer),
  6402. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6403. MSM_BACKEND_DAI_AUXPCM_RX,
  6404. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6405. msm_routing_put_audio_mixer),
  6406. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6407. MSM_BACKEND_DAI_AUXPCM_RX,
  6408. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6409. msm_routing_put_audio_mixer),
  6410. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6411. MSM_BACKEND_DAI_AUXPCM_RX,
  6412. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6413. msm_routing_put_audio_mixer),
  6414. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6415. MSM_BACKEND_DAI_AUXPCM_RX,
  6416. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6417. msm_routing_put_audio_mixer),
  6418. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6419. MSM_BACKEND_DAI_AUXPCM_RX,
  6420. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6421. msm_routing_put_audio_mixer),
  6422. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6423. MSM_BACKEND_DAI_AUXPCM_RX,
  6424. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6425. msm_routing_put_audio_mixer),
  6426. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6427. MSM_BACKEND_DAI_AUXPCM_RX,
  6428. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6429. msm_routing_put_audio_mixer),
  6430. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6431. MSM_BACKEND_DAI_AUXPCM_RX,
  6432. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6433. msm_routing_put_audio_mixer),
  6434. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6435. MSM_BACKEND_DAI_AUXPCM_RX,
  6436. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6437. msm_routing_put_audio_mixer),
  6438. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6439. MSM_BACKEND_DAI_AUXPCM_RX,
  6440. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6441. msm_routing_put_audio_mixer),
  6442. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6443. MSM_BACKEND_DAI_AUXPCM_RX,
  6444. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6445. msm_routing_put_audio_mixer),
  6446. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6447. MSM_BACKEND_DAI_AUXPCM_RX,
  6448. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6449. msm_routing_put_audio_mixer),
  6450. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6451. MSM_BACKEND_DAI_AUXPCM_RX,
  6452. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6453. msm_routing_put_audio_mixer),
  6454. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6455. MSM_BACKEND_DAI_AUXPCM_RX,
  6456. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6457. msm_routing_put_audio_mixer),
  6458. };
  6459. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  6460. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6461. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6462. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6463. msm_routing_put_audio_mixer),
  6464. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6465. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6466. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6467. msm_routing_put_audio_mixer),
  6468. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6469. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6470. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6471. msm_routing_put_audio_mixer),
  6472. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6473. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6474. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6475. msm_routing_put_audio_mixer),
  6476. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6477. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6478. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6479. msm_routing_put_audio_mixer),
  6480. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6481. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6482. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6483. msm_routing_put_audio_mixer),
  6484. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6485. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6486. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6487. msm_routing_put_audio_mixer),
  6488. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6489. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6490. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6491. msm_routing_put_audio_mixer),
  6492. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6493. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6494. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6495. msm_routing_put_audio_mixer),
  6496. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6497. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6498. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6499. msm_routing_put_audio_mixer),
  6500. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6501. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6502. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6503. msm_routing_put_audio_mixer),
  6504. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6505. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6506. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6507. msm_routing_put_audio_mixer),
  6508. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6509. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6510. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6511. msm_routing_put_audio_mixer),
  6512. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6513. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6517. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6518. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6519. msm_routing_put_audio_mixer),
  6520. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6521. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6522. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6523. msm_routing_put_audio_mixer),
  6524. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6525. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6526. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6527. msm_routing_put_audio_mixer),
  6528. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6529. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6530. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6531. msm_routing_put_audio_mixer),
  6532. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6533. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6534. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6535. msm_routing_put_audio_mixer),
  6536. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6537. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6538. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6539. msm_routing_put_audio_mixer),
  6540. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6541. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6542. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6543. msm_routing_put_audio_mixer),
  6544. };
  6545. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  6546. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6547. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6548. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6549. msm_routing_put_audio_mixer),
  6550. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6551. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6552. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6553. msm_routing_put_audio_mixer),
  6554. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6555. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6556. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6557. msm_routing_put_audio_mixer),
  6558. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6559. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6560. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6561. msm_routing_put_audio_mixer),
  6562. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6563. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6564. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6565. msm_routing_put_audio_mixer),
  6566. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6567. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6568. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6569. msm_routing_put_audio_mixer),
  6570. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6571. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6572. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6573. msm_routing_put_audio_mixer),
  6574. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6575. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6576. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6577. msm_routing_put_audio_mixer),
  6578. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6579. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6580. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6583. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6584. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6585. msm_routing_put_audio_mixer),
  6586. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6587. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6588. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6589. msm_routing_put_audio_mixer),
  6590. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6591. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6592. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6593. msm_routing_put_audio_mixer),
  6594. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6595. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6596. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6597. msm_routing_put_audio_mixer),
  6598. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6599. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6600. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6601. msm_routing_put_audio_mixer),
  6602. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6603. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6604. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6605. msm_routing_put_audio_mixer),
  6606. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6607. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6608. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6609. msm_routing_put_audio_mixer),
  6610. };
  6611. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  6612. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6613. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6614. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6615. msm_routing_put_audio_mixer),
  6616. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6617. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6618. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6619. msm_routing_put_audio_mixer),
  6620. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6621. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6622. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6623. msm_routing_put_audio_mixer),
  6624. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6625. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6626. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6627. msm_routing_put_audio_mixer),
  6628. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6629. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6630. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6631. msm_routing_put_audio_mixer),
  6632. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6633. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6634. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6635. msm_routing_put_audio_mixer),
  6636. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6637. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6638. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6639. msm_routing_put_audio_mixer),
  6640. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6641. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6642. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6643. msm_routing_put_audio_mixer),
  6644. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6645. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6646. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6647. msm_routing_put_audio_mixer),
  6648. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6649. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6650. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6651. msm_routing_put_audio_mixer),
  6652. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6653. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6654. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6655. msm_routing_put_audio_mixer),
  6656. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6657. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6658. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6659. msm_routing_put_audio_mixer),
  6660. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6661. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6662. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6663. msm_routing_put_audio_mixer),
  6664. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6665. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6666. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6667. msm_routing_put_audio_mixer),
  6668. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6669. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6670. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6671. msm_routing_put_audio_mixer),
  6672. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6673. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6674. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6675. msm_routing_put_audio_mixer),
  6676. };
  6677. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  6678. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6679. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6680. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6681. msm_routing_put_audio_mixer),
  6682. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6683. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6684. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6685. msm_routing_put_audio_mixer),
  6686. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6687. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6688. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6689. msm_routing_put_audio_mixer),
  6690. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6691. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6692. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6693. msm_routing_put_audio_mixer),
  6694. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6695. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6696. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6697. msm_routing_put_audio_mixer),
  6698. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6699. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6700. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6701. msm_routing_put_audio_mixer),
  6702. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6703. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6704. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6705. msm_routing_put_audio_mixer),
  6706. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6707. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6708. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6709. msm_routing_put_audio_mixer),
  6710. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6711. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6712. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6713. msm_routing_put_audio_mixer),
  6714. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6715. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6716. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6717. msm_routing_put_audio_mixer),
  6718. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6719. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6720. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6721. msm_routing_put_audio_mixer),
  6722. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6723. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6724. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6725. msm_routing_put_audio_mixer),
  6726. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6727. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6728. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6729. msm_routing_put_audio_mixer),
  6730. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6731. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6732. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6733. msm_routing_put_audio_mixer),
  6734. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6735. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6736. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6737. msm_routing_put_audio_mixer),
  6738. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6739. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6740. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6741. msm_routing_put_audio_mixer),
  6742. };
  6743. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  6744. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6745. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6746. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6747. msm_routing_put_audio_mixer),
  6748. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6749. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6750. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6751. msm_routing_put_audio_mixer),
  6752. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6753. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6754. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6755. msm_routing_put_audio_mixer),
  6756. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6757. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6761. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6762. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6763. msm_routing_put_audio_mixer),
  6764. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6765. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6766. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6767. msm_routing_put_audio_mixer),
  6768. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6769. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6773. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6774. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6775. msm_routing_put_audio_mixer),
  6776. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6777. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6778. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6779. msm_routing_put_audio_mixer),
  6780. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6781. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6782. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6783. msm_routing_put_audio_mixer),
  6784. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6785. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6786. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6787. msm_routing_put_audio_mixer),
  6788. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6789. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6790. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6791. msm_routing_put_audio_mixer),
  6792. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6793. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6794. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6795. msm_routing_put_audio_mixer),
  6796. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6797. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6798. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6799. msm_routing_put_audio_mixer),
  6800. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6801. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6802. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6803. msm_routing_put_audio_mixer),
  6804. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6805. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6806. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6807. msm_routing_put_audio_mixer),
  6808. };
  6809. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  6810. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6811. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6812. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6813. msm_routing_put_audio_mixer),
  6814. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6815. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6816. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6817. msm_routing_put_audio_mixer),
  6818. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6819. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6820. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6821. msm_routing_put_audio_mixer),
  6822. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6823. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6824. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6825. msm_routing_put_audio_mixer),
  6826. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6827. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6828. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6829. msm_routing_put_audio_mixer),
  6830. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6831. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6835. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6836. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6837. msm_routing_put_audio_mixer),
  6838. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6839. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6840. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6841. msm_routing_put_audio_mixer),
  6842. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6843. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6847. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6848. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6849. msm_routing_put_audio_mixer),
  6850. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6851. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6852. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6853. msm_routing_put_audio_mixer),
  6854. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6855. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6856. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6857. msm_routing_put_audio_mixer),
  6858. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6859. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6860. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6861. msm_routing_put_audio_mixer),
  6862. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6863. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6864. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6865. msm_routing_put_audio_mixer),
  6866. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6867. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6868. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6869. msm_routing_put_audio_mixer),
  6870. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6871. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6872. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6873. msm_routing_put_audio_mixer),
  6874. };
  6875. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  6876. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6877. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6878. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6879. msm_routing_put_audio_mixer),
  6880. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6881. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6882. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6883. msm_routing_put_audio_mixer),
  6884. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6885. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6886. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6887. msm_routing_put_audio_mixer),
  6888. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6889. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6890. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6891. msm_routing_put_audio_mixer),
  6892. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6893. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6894. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6895. msm_routing_put_audio_mixer),
  6896. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6897. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6898. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6899. msm_routing_put_audio_mixer),
  6900. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6901. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6902. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6903. msm_routing_put_audio_mixer),
  6904. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6905. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6906. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6907. msm_routing_put_audio_mixer),
  6908. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6909. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6910. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6911. msm_routing_put_audio_mixer),
  6912. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6913. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6914. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6915. msm_routing_put_audio_mixer),
  6916. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6917. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6921. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6922. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6923. msm_routing_put_audio_mixer),
  6924. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6925. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6926. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6927. msm_routing_put_audio_mixer),
  6928. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6929. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6930. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6931. msm_routing_put_audio_mixer),
  6932. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6933. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6934. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6935. msm_routing_put_audio_mixer),
  6936. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6937. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6938. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6939. msm_routing_put_audio_mixer),
  6940. };
  6941. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  6942. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6943. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6944. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6945. msm_routing_put_audio_mixer),
  6946. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6947. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6948. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6949. msm_routing_put_audio_mixer),
  6950. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6951. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6952. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6953. msm_routing_put_audio_mixer),
  6954. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6955. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6956. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6957. msm_routing_put_audio_mixer),
  6958. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6959. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6960. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6961. msm_routing_put_audio_mixer),
  6962. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6963. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6964. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6965. msm_routing_put_audio_mixer),
  6966. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6967. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6968. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6969. msm_routing_put_audio_mixer),
  6970. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6971. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6972. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6973. msm_routing_put_audio_mixer),
  6974. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6975. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6976. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6977. msm_routing_put_audio_mixer),
  6978. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6979. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6980. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6981. msm_routing_put_audio_mixer),
  6982. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6983. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6984. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6985. msm_routing_put_audio_mixer),
  6986. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6987. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6988. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6989. msm_routing_put_audio_mixer),
  6990. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6991. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6992. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6993. msm_routing_put_audio_mixer),
  6994. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6995. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6996. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6997. msm_routing_put_audio_mixer),
  6998. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6999. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7000. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7001. msm_routing_put_audio_mixer),
  7002. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7003. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7004. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7005. msm_routing_put_audio_mixer),
  7006. };
  7007. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  7008. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7009. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7010. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7011. msm_routing_put_audio_mixer),
  7012. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7013. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7014. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7015. msm_routing_put_audio_mixer),
  7016. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7017. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7018. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7019. msm_routing_put_audio_mixer),
  7020. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7021. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7022. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7023. msm_routing_put_audio_mixer),
  7024. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7025. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7026. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7027. msm_routing_put_audio_mixer),
  7028. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7029. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7030. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7031. msm_routing_put_audio_mixer),
  7032. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7033. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7034. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7035. msm_routing_put_audio_mixer),
  7036. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7037. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7038. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7039. msm_routing_put_audio_mixer),
  7040. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7041. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7042. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7043. msm_routing_put_audio_mixer),
  7044. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7045. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7046. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7047. msm_routing_put_audio_mixer),
  7048. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7049. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7050. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7051. msm_routing_put_audio_mixer),
  7052. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7053. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7054. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7055. msm_routing_put_audio_mixer),
  7056. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7057. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7058. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7059. msm_routing_put_audio_mixer),
  7060. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7061. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7062. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7063. msm_routing_put_audio_mixer),
  7064. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7065. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7066. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7067. msm_routing_put_audio_mixer),
  7068. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7069. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7070. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7071. msm_routing_put_audio_mixer),
  7072. };
  7073. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  7074. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7075. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7076. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7077. msm_routing_put_audio_mixer),
  7078. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7079. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7080. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7081. msm_routing_put_audio_mixer),
  7082. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7083. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7084. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7085. msm_routing_put_audio_mixer),
  7086. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7087. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7088. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7089. msm_routing_put_audio_mixer),
  7090. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7091. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7092. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7093. msm_routing_put_audio_mixer),
  7094. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7095. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7096. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7097. msm_routing_put_audio_mixer),
  7098. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7099. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7100. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7101. msm_routing_put_audio_mixer),
  7102. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7103. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7104. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7105. msm_routing_put_audio_mixer),
  7106. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7107. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7108. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7109. msm_routing_put_audio_mixer),
  7110. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7111. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7112. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7113. msm_routing_put_audio_mixer),
  7114. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7115. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7116. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7117. msm_routing_put_audio_mixer),
  7118. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7119. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7120. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7121. msm_routing_put_audio_mixer),
  7122. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7123. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7124. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7125. msm_routing_put_audio_mixer),
  7126. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7127. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7128. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7129. msm_routing_put_audio_mixer),
  7130. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7131. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7132. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7133. msm_routing_put_audio_mixer),
  7134. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7135. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7136. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7137. msm_routing_put_audio_mixer),
  7138. };
  7139. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  7140. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7141. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7142. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7143. msm_routing_put_audio_mixer),
  7144. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7145. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7146. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7147. msm_routing_put_audio_mixer),
  7148. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7149. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7150. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7151. msm_routing_put_audio_mixer),
  7152. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7153. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7154. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7155. msm_routing_put_audio_mixer),
  7156. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7157. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7158. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7159. msm_routing_put_audio_mixer),
  7160. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7161. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7162. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7163. msm_routing_put_audio_mixer),
  7164. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7165. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7166. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7167. msm_routing_put_audio_mixer),
  7168. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7169. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7170. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7171. msm_routing_put_audio_mixer),
  7172. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7173. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7174. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7175. msm_routing_put_audio_mixer),
  7176. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7177. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7178. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7179. msm_routing_put_audio_mixer),
  7180. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7181. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7182. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7183. msm_routing_put_audio_mixer),
  7184. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7185. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7186. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7187. msm_routing_put_audio_mixer),
  7188. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7189. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7190. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7191. msm_routing_put_audio_mixer),
  7192. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7193. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7194. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7195. msm_routing_put_audio_mixer),
  7196. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7197. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7198. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7199. msm_routing_put_audio_mixer),
  7200. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7201. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7202. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7203. msm_routing_put_audio_mixer),
  7204. };
  7205. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  7206. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7207. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7208. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7209. msm_routing_put_audio_mixer),
  7210. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7211. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7212. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7213. msm_routing_put_audio_mixer),
  7214. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7215. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7216. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7217. msm_routing_put_audio_mixer),
  7218. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7219. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7220. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7221. msm_routing_put_audio_mixer),
  7222. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7223. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7224. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7225. msm_routing_put_audio_mixer),
  7226. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7227. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7228. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7229. msm_routing_put_audio_mixer),
  7230. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7231. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7232. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7233. msm_routing_put_audio_mixer),
  7234. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7235. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7236. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7237. msm_routing_put_audio_mixer),
  7238. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7239. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7240. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7241. msm_routing_put_audio_mixer),
  7242. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7243. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7244. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7245. msm_routing_put_audio_mixer),
  7246. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7247. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7248. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7249. msm_routing_put_audio_mixer),
  7250. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7251. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7252. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7253. msm_routing_put_audio_mixer),
  7254. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7255. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7256. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7257. msm_routing_put_audio_mixer),
  7258. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7259. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7260. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7261. msm_routing_put_audio_mixer),
  7262. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7263. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7264. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7265. msm_routing_put_audio_mixer),
  7266. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7267. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7268. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7269. msm_routing_put_audio_mixer),
  7270. };
  7271. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  7272. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7273. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7274. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7275. msm_routing_put_audio_mixer),
  7276. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7277. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7278. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7279. msm_routing_put_audio_mixer),
  7280. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7281. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7282. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7283. msm_routing_put_audio_mixer),
  7284. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7285. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7286. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7287. msm_routing_put_audio_mixer),
  7288. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7289. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7290. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7291. msm_routing_put_audio_mixer),
  7292. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7293. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7294. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7295. msm_routing_put_audio_mixer),
  7296. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7297. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7298. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7299. msm_routing_put_audio_mixer),
  7300. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7301. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7302. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7303. msm_routing_put_audio_mixer),
  7304. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7305. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7306. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7307. msm_routing_put_audio_mixer),
  7308. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7309. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7310. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7311. msm_routing_put_audio_mixer),
  7312. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7313. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7314. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7315. msm_routing_put_audio_mixer),
  7316. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7317. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7318. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7319. msm_routing_put_audio_mixer),
  7320. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7321. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7322. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7323. msm_routing_put_audio_mixer),
  7324. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7325. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7326. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7327. msm_routing_put_audio_mixer),
  7328. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7329. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7330. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7331. msm_routing_put_audio_mixer),
  7332. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7333. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7334. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7335. msm_routing_put_audio_mixer),
  7336. };
  7337. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  7338. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7339. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7340. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7341. msm_routing_put_audio_mixer),
  7342. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7343. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7344. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7345. msm_routing_put_audio_mixer),
  7346. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7347. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7348. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7349. msm_routing_put_audio_mixer),
  7350. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7351. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7352. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7353. msm_routing_put_audio_mixer),
  7354. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7355. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7356. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7357. msm_routing_put_audio_mixer),
  7358. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7359. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7360. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7361. msm_routing_put_audio_mixer),
  7362. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7363. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7364. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7365. msm_routing_put_audio_mixer),
  7366. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7367. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7368. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7369. msm_routing_put_audio_mixer),
  7370. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7371. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7372. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7373. msm_routing_put_audio_mixer),
  7374. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7375. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7376. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7377. msm_routing_put_audio_mixer),
  7378. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7379. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7380. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7381. msm_routing_put_audio_mixer),
  7382. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7383. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7384. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7385. msm_routing_put_audio_mixer),
  7386. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7387. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7388. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7389. msm_routing_put_audio_mixer),
  7390. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7391. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7392. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7393. msm_routing_put_audio_mixer),
  7394. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7395. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7396. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7397. msm_routing_put_audio_mixer),
  7398. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7399. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7400. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7401. msm_routing_put_audio_mixer),
  7402. };
  7403. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  7404. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7405. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7406. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7407. msm_routing_put_audio_mixer),
  7408. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7409. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7410. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7411. msm_routing_put_audio_mixer),
  7412. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7413. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7414. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7415. msm_routing_put_audio_mixer),
  7416. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7417. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7418. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7419. msm_routing_put_audio_mixer),
  7420. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7421. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7422. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7423. msm_routing_put_audio_mixer),
  7424. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7425. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7426. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7427. msm_routing_put_audio_mixer),
  7428. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7429. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7430. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7431. msm_routing_put_audio_mixer),
  7432. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7433. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7434. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7435. msm_routing_put_audio_mixer),
  7436. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7437. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7438. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7439. msm_routing_put_audio_mixer),
  7440. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7441. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7442. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7443. msm_routing_put_audio_mixer),
  7444. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7445. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7446. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7447. msm_routing_put_audio_mixer),
  7448. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7449. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7450. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7451. msm_routing_put_audio_mixer),
  7452. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7453. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7454. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7455. msm_routing_put_audio_mixer),
  7456. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7457. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7458. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7459. msm_routing_put_audio_mixer),
  7460. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7461. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7462. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7463. msm_routing_put_audio_mixer),
  7464. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7465. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7466. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7467. msm_routing_put_audio_mixer),
  7468. };
  7469. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  7470. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7471. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7472. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7473. msm_routing_put_audio_mixer),
  7474. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7475. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7476. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7477. msm_routing_put_audio_mixer),
  7478. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7479. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7480. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7481. msm_routing_put_audio_mixer),
  7482. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7483. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7484. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7485. msm_routing_put_audio_mixer),
  7486. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7487. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7488. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7489. msm_routing_put_audio_mixer),
  7490. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7491. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7492. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7493. msm_routing_put_audio_mixer),
  7494. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7495. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7496. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7497. msm_routing_put_audio_mixer),
  7498. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7499. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7500. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7501. msm_routing_put_audio_mixer),
  7502. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7503. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7504. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7505. msm_routing_put_audio_mixer),
  7506. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7507. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7508. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7509. msm_routing_put_audio_mixer),
  7510. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7511. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7512. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7513. msm_routing_put_audio_mixer),
  7514. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7515. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7516. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7517. msm_routing_put_audio_mixer),
  7518. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7519. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7520. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7521. msm_routing_put_audio_mixer),
  7522. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7523. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7524. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7525. msm_routing_put_audio_mixer),
  7526. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7527. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7528. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7529. msm_routing_put_audio_mixer),
  7530. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7531. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7532. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7533. msm_routing_put_audio_mixer),
  7534. };
  7535. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  7536. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7537. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7538. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7539. msm_routing_put_audio_mixer),
  7540. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7541. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7542. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7543. msm_routing_put_audio_mixer),
  7544. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7545. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7546. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7547. msm_routing_put_audio_mixer),
  7548. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7549. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7550. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7551. msm_routing_put_audio_mixer),
  7552. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7553. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7554. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7555. msm_routing_put_audio_mixer),
  7556. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7557. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7558. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7559. msm_routing_put_audio_mixer),
  7560. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7561. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7562. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7563. msm_routing_put_audio_mixer),
  7564. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7565. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7566. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7567. msm_routing_put_audio_mixer),
  7568. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7569. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7570. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7571. msm_routing_put_audio_mixer),
  7572. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7573. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7574. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7575. msm_routing_put_audio_mixer),
  7576. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7577. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7578. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7579. msm_routing_put_audio_mixer),
  7580. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7581. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7582. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7583. msm_routing_put_audio_mixer),
  7584. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7585. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7586. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7587. msm_routing_put_audio_mixer),
  7588. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7589. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7590. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7591. msm_routing_put_audio_mixer),
  7592. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7593. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7594. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7595. msm_routing_put_audio_mixer),
  7596. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7597. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7598. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7599. msm_routing_put_audio_mixer),
  7600. };
  7601. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  7602. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7603. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7604. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7605. msm_routing_put_audio_mixer),
  7606. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7607. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7608. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7609. msm_routing_put_audio_mixer),
  7610. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7611. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7612. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7613. msm_routing_put_audio_mixer),
  7614. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7615. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7616. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7617. msm_routing_put_audio_mixer),
  7618. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7619. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7620. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7621. msm_routing_put_audio_mixer),
  7622. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7623. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7624. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7625. msm_routing_put_audio_mixer),
  7626. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7627. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7628. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7629. msm_routing_put_audio_mixer),
  7630. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7631. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7632. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7633. msm_routing_put_audio_mixer),
  7634. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7635. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7636. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7637. msm_routing_put_audio_mixer),
  7638. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7639. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7640. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7641. msm_routing_put_audio_mixer),
  7642. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7643. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7644. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7645. msm_routing_put_audio_mixer),
  7646. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7647. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7648. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7649. msm_routing_put_audio_mixer),
  7650. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7651. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7652. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7653. msm_routing_put_audio_mixer),
  7654. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7655. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7656. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7657. msm_routing_put_audio_mixer),
  7658. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7659. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7660. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7661. msm_routing_put_audio_mixer),
  7662. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7663. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7664. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7665. msm_routing_put_audio_mixer),
  7666. };
  7667. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  7668. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7669. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7670. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7671. msm_routing_put_audio_mixer),
  7672. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7673. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7674. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7675. msm_routing_put_audio_mixer),
  7676. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7677. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7678. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7679. msm_routing_put_audio_mixer),
  7680. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7681. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7682. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7683. msm_routing_put_audio_mixer),
  7684. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7685. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7686. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7687. msm_routing_put_audio_mixer),
  7688. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7689. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7690. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7691. msm_routing_put_audio_mixer),
  7692. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7693. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7694. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7695. msm_routing_put_audio_mixer),
  7696. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7697. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7698. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7699. msm_routing_put_audio_mixer),
  7700. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7701. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7702. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7703. msm_routing_put_audio_mixer),
  7704. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7705. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7706. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7707. msm_routing_put_audio_mixer),
  7708. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7709. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7710. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7711. msm_routing_put_audio_mixer),
  7712. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7713. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7714. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7715. msm_routing_put_audio_mixer),
  7716. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7717. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7718. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7719. msm_routing_put_audio_mixer),
  7720. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7721. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7722. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7723. msm_routing_put_audio_mixer),
  7724. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7725. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7726. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7727. msm_routing_put_audio_mixer),
  7728. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7729. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7730. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7731. msm_routing_put_audio_mixer),
  7732. };
  7733. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  7734. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7735. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7736. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7737. msm_routing_put_audio_mixer),
  7738. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7739. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7740. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7741. msm_routing_put_audio_mixer),
  7742. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7743. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7744. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7745. msm_routing_put_audio_mixer),
  7746. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7747. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7748. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7749. msm_routing_put_audio_mixer),
  7750. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7751. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7752. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7753. msm_routing_put_audio_mixer),
  7754. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7755. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7756. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7757. msm_routing_put_audio_mixer),
  7758. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7759. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7760. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7761. msm_routing_put_audio_mixer),
  7762. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7763. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7764. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7765. msm_routing_put_audio_mixer),
  7766. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7767. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7768. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7769. msm_routing_put_audio_mixer),
  7770. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7771. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7772. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7773. msm_routing_put_audio_mixer),
  7774. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7775. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7776. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7777. msm_routing_put_audio_mixer),
  7778. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7779. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7780. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7781. msm_routing_put_audio_mixer),
  7782. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7783. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7784. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7785. msm_routing_put_audio_mixer),
  7786. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7787. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7788. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7789. msm_routing_put_audio_mixer),
  7790. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7791. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7792. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7793. msm_routing_put_audio_mixer),
  7794. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7795. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7796. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7797. msm_routing_put_audio_mixer),
  7798. };
  7799. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  7800. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7801. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7802. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7803. msm_routing_put_audio_mixer),
  7804. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7805. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7806. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7807. msm_routing_put_audio_mixer),
  7808. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7809. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7810. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7811. msm_routing_put_audio_mixer),
  7812. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7813. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7814. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7815. msm_routing_put_audio_mixer),
  7816. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7817. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7818. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7819. msm_routing_put_audio_mixer),
  7820. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7821. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7822. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7823. msm_routing_put_audio_mixer),
  7824. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7825. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7826. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7827. msm_routing_put_audio_mixer),
  7828. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7829. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7830. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7831. msm_routing_put_audio_mixer),
  7832. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7833. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7834. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7835. msm_routing_put_audio_mixer),
  7836. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7837. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7838. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7839. msm_routing_put_audio_mixer),
  7840. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7841. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7842. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7843. msm_routing_put_audio_mixer),
  7844. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7845. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7846. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7847. msm_routing_put_audio_mixer),
  7848. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7849. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7850. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7851. msm_routing_put_audio_mixer),
  7852. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7853. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7854. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7855. msm_routing_put_audio_mixer),
  7856. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7857. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7858. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7859. msm_routing_put_audio_mixer),
  7860. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7861. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7862. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7863. msm_routing_put_audio_mixer),
  7864. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7865. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7866. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7867. msm_routing_put_audio_mixer),
  7868. };
  7869. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  7870. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7871. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7872. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7873. msm_routing_put_audio_mixer),
  7874. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7875. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7876. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7877. msm_routing_put_audio_mixer),
  7878. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7879. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7880. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7881. msm_routing_put_audio_mixer),
  7882. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7883. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7884. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7885. msm_routing_put_audio_mixer),
  7886. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7887. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7888. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7889. msm_routing_put_audio_mixer),
  7890. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7891. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7892. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7893. msm_routing_put_audio_mixer),
  7894. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7895. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7896. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7897. msm_routing_put_audio_mixer),
  7898. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7899. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7900. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7901. msm_routing_put_audio_mixer),
  7902. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7903. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7904. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7905. msm_routing_put_audio_mixer),
  7906. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7907. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7908. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7909. msm_routing_put_audio_mixer),
  7910. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7911. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7912. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7913. msm_routing_put_audio_mixer),
  7914. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7915. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7916. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7917. msm_routing_put_audio_mixer),
  7918. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7919. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7920. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7921. msm_routing_put_audio_mixer),
  7922. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7923. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7924. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7925. msm_routing_put_audio_mixer),
  7926. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7927. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7928. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7929. msm_routing_put_audio_mixer),
  7930. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7931. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7932. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7933. msm_routing_put_audio_mixer),
  7934. };
  7935. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  7936. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7937. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7938. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7939. msm_routing_put_audio_mixer),
  7940. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7941. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7942. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7943. msm_routing_put_audio_mixer),
  7944. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7945. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7946. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7947. msm_routing_put_audio_mixer),
  7948. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7949. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7950. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7951. msm_routing_put_audio_mixer),
  7952. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7953. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7954. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7955. msm_routing_put_audio_mixer),
  7956. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7957. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7958. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7959. msm_routing_put_audio_mixer),
  7960. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7961. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7962. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7963. msm_routing_put_audio_mixer),
  7964. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7965. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7966. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7967. msm_routing_put_audio_mixer),
  7968. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7969. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7970. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7971. msm_routing_put_audio_mixer),
  7972. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7973. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7974. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7975. msm_routing_put_audio_mixer),
  7976. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7977. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7978. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7979. msm_routing_put_audio_mixer),
  7980. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7981. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7982. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7983. msm_routing_put_audio_mixer),
  7984. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7985. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7986. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7987. msm_routing_put_audio_mixer),
  7988. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7989. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7990. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7991. msm_routing_put_audio_mixer),
  7992. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7993. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7994. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7995. msm_routing_put_audio_mixer),
  7996. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7997. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7998. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7999. msm_routing_put_audio_mixer),
  8000. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8001. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8002. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8003. msm_routing_put_audio_mixer),
  8004. };
  8005. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  8006. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8007. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8008. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8009. msm_routing_put_audio_mixer),
  8010. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8011. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8012. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8013. msm_routing_put_audio_mixer),
  8014. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8015. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8016. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8017. msm_routing_put_audio_mixer),
  8018. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8019. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8020. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8021. msm_routing_put_audio_mixer),
  8022. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8023. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8024. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8025. msm_routing_put_audio_mixer),
  8026. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8027. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8028. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8029. msm_routing_put_audio_mixer),
  8030. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8031. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8032. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8033. msm_routing_put_audio_mixer),
  8034. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8035. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8036. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8037. msm_routing_put_audio_mixer),
  8038. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8039. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8040. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8041. msm_routing_put_audio_mixer),
  8042. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8043. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8044. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8045. msm_routing_put_audio_mixer),
  8046. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8047. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8048. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8049. msm_routing_put_audio_mixer),
  8050. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8051. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8052. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8053. msm_routing_put_audio_mixer),
  8054. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8055. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8056. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8057. msm_routing_put_audio_mixer),
  8058. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8059. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8060. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8061. msm_routing_put_audio_mixer),
  8062. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8063. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8064. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8065. msm_routing_put_audio_mixer),
  8066. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8067. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8068. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8069. msm_routing_put_audio_mixer),
  8070. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8071. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8072. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8073. msm_routing_put_audio_mixer),
  8074. };
  8075. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  8076. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8077. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8078. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8079. msm_routing_put_audio_mixer),
  8080. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8081. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8082. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8083. msm_routing_put_audio_mixer),
  8084. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8085. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8086. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8087. msm_routing_put_audio_mixer),
  8088. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8089. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8090. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8091. msm_routing_put_audio_mixer),
  8092. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8093. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8094. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8095. msm_routing_put_audio_mixer),
  8096. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8097. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8098. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8099. msm_routing_put_audio_mixer),
  8100. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8101. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8102. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8103. msm_routing_put_audio_mixer),
  8104. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8105. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8106. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8107. msm_routing_put_audio_mixer),
  8108. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8109. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8110. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8111. msm_routing_put_audio_mixer),
  8112. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8113. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8114. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8115. msm_routing_put_audio_mixer),
  8116. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8117. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8118. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8119. msm_routing_put_audio_mixer),
  8120. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8121. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8122. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8123. msm_routing_put_audio_mixer),
  8124. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8125. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8126. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8127. msm_routing_put_audio_mixer),
  8128. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8129. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8130. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8131. msm_routing_put_audio_mixer),
  8132. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8133. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8134. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8135. msm_routing_put_audio_mixer),
  8136. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8137. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8138. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8139. msm_routing_put_audio_mixer),
  8140. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8141. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8142. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8143. msm_routing_put_audio_mixer),
  8144. };
  8145. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  8146. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8147. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8148. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8149. msm_routing_put_audio_mixer),
  8150. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8151. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8152. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8153. msm_routing_put_audio_mixer),
  8154. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8155. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8156. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8157. msm_routing_put_audio_mixer),
  8158. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8159. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8160. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8161. msm_routing_put_audio_mixer),
  8162. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8163. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8164. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8165. msm_routing_put_audio_mixer),
  8166. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8167. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8168. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8169. msm_routing_put_audio_mixer),
  8170. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8171. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8172. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8173. msm_routing_put_audio_mixer),
  8174. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8175. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8176. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8177. msm_routing_put_audio_mixer),
  8178. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8179. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8180. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8181. msm_routing_put_audio_mixer),
  8182. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8183. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8184. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8185. msm_routing_put_audio_mixer),
  8186. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8187. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8188. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8189. msm_routing_put_audio_mixer),
  8190. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8191. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8192. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8193. msm_routing_put_audio_mixer),
  8194. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8195. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8196. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8197. msm_routing_put_audio_mixer),
  8198. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8199. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8200. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8201. msm_routing_put_audio_mixer),
  8202. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8203. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8204. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8205. msm_routing_put_audio_mixer),
  8206. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8207. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8208. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8209. msm_routing_put_audio_mixer),
  8210. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8211. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8212. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8213. msm_routing_put_audio_mixer),
  8214. };
  8215. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  8216. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8217. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8218. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8219. msm_routing_put_audio_mixer),
  8220. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8221. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8222. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8223. msm_routing_put_audio_mixer),
  8224. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8225. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8226. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8227. msm_routing_put_audio_mixer),
  8228. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8229. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8230. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8231. msm_routing_put_audio_mixer),
  8232. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8233. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8234. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8235. msm_routing_put_audio_mixer),
  8236. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8237. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8238. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8239. msm_routing_put_audio_mixer),
  8240. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8241. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8242. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8243. msm_routing_put_audio_mixer),
  8244. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8245. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8246. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8247. msm_routing_put_audio_mixer),
  8248. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8249. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8250. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8251. msm_routing_put_audio_mixer),
  8252. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8253. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8254. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8255. msm_routing_put_audio_mixer),
  8256. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8257. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8258. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8259. msm_routing_put_audio_mixer),
  8260. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8261. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8262. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8263. msm_routing_put_audio_mixer),
  8264. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8265. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8266. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8267. msm_routing_put_audio_mixer),
  8268. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8269. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8270. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8271. msm_routing_put_audio_mixer),
  8272. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8273. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8274. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8275. msm_routing_put_audio_mixer),
  8276. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8277. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8278. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8279. msm_routing_put_audio_mixer),
  8280. };
  8281. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  8282. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8283. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8284. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8285. msm_routing_put_audio_mixer),
  8286. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8287. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8288. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8289. msm_routing_put_audio_mixer),
  8290. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8291. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8292. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8293. msm_routing_put_audio_mixer),
  8294. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8295. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8296. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8297. msm_routing_put_audio_mixer),
  8298. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8299. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8300. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8301. msm_routing_put_audio_mixer),
  8302. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8303. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8304. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8305. msm_routing_put_audio_mixer),
  8306. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8307. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8308. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8309. msm_routing_put_audio_mixer),
  8310. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8311. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8312. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8313. msm_routing_put_audio_mixer),
  8314. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8315. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8316. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8317. msm_routing_put_audio_mixer),
  8318. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8319. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8320. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8321. msm_routing_put_audio_mixer),
  8322. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8323. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8324. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8325. msm_routing_put_audio_mixer),
  8326. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8327. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8328. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8329. msm_routing_put_audio_mixer),
  8330. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8331. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8332. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8333. msm_routing_put_audio_mixer),
  8334. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8335. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8336. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8337. msm_routing_put_audio_mixer),
  8338. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8339. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8340. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8341. msm_routing_put_audio_mixer),
  8342. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8343. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8344. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8345. msm_routing_put_audio_mixer),
  8346. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8347. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8348. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8349. msm_routing_put_audio_mixer),
  8350. };
  8351. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  8352. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8353. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8354. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8355. msm_routing_put_audio_mixer),
  8356. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8357. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8358. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8359. msm_routing_put_audio_mixer),
  8360. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8361. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8362. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8363. msm_routing_put_audio_mixer),
  8364. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8365. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8366. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8367. msm_routing_put_audio_mixer),
  8368. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8369. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8370. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8371. msm_routing_put_audio_mixer),
  8372. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8373. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8374. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8375. msm_routing_put_audio_mixer),
  8376. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8377. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8378. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8379. msm_routing_put_audio_mixer),
  8380. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8381. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8382. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8383. msm_routing_put_audio_mixer),
  8384. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8385. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8386. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8387. msm_routing_put_audio_mixer),
  8388. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8389. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8390. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8391. msm_routing_put_audio_mixer),
  8392. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8393. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8394. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8395. msm_routing_put_audio_mixer),
  8396. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8397. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8398. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8399. msm_routing_put_audio_mixer),
  8400. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8401. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8402. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8403. msm_routing_put_audio_mixer),
  8404. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8405. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8406. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8407. msm_routing_put_audio_mixer),
  8408. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8409. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8410. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8411. msm_routing_put_audio_mixer),
  8412. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8413. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8414. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8415. msm_routing_put_audio_mixer),
  8416. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8417. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8418. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8419. msm_routing_put_audio_mixer),
  8420. };
  8421. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  8422. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8423. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8424. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8425. msm_routing_put_audio_mixer),
  8426. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8427. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8428. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8429. msm_routing_put_audio_mixer),
  8430. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8431. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8432. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8433. msm_routing_put_audio_mixer),
  8434. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8435. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8436. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8437. msm_routing_put_audio_mixer),
  8438. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8439. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8440. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8441. msm_routing_put_audio_mixer),
  8442. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8443. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8444. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8445. msm_routing_put_audio_mixer),
  8446. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8447. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8448. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8449. msm_routing_put_audio_mixer),
  8450. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8451. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8452. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8453. msm_routing_put_audio_mixer),
  8454. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8455. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8456. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8457. msm_routing_put_audio_mixer),
  8458. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8459. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8460. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8461. msm_routing_put_audio_mixer),
  8462. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8463. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8464. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8465. msm_routing_put_audio_mixer),
  8466. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8467. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8468. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8469. msm_routing_put_audio_mixer),
  8470. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8471. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8472. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8473. msm_routing_put_audio_mixer),
  8474. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8475. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8476. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8477. msm_routing_put_audio_mixer),
  8478. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8479. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8480. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8481. msm_routing_put_audio_mixer),
  8482. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8483. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8484. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8485. msm_routing_put_audio_mixer),
  8486. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8487. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8488. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8489. msm_routing_put_audio_mixer),
  8490. };
  8491. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  8492. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  8493. MSM_BACKEND_DAI_PRI_I2S_TX,
  8494. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8495. msm_routing_put_audio_mixer),
  8496. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8497. MSM_BACKEND_DAI_MI2S_TX,
  8498. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8499. msm_routing_put_audio_mixer),
  8500. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8501. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8502. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8503. msm_routing_put_audio_mixer),
  8504. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8505. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8506. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8507. msm_routing_put_audio_mixer),
  8508. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8509. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8510. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8511. msm_routing_put_audio_mixer),
  8512. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8513. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8514. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8515. msm_routing_put_audio_mixer),
  8516. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8517. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8518. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8519. msm_routing_put_audio_mixer),
  8520. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8521. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8522. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8523. msm_routing_put_audio_mixer),
  8524. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8525. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8526. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8527. msm_routing_put_audio_mixer),
  8528. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8529. MSM_BACKEND_DAI_AUXPCM_TX,
  8530. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8531. msm_routing_put_audio_mixer),
  8532. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  8533. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8534. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8535. msm_routing_put_audio_mixer),
  8536. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8537. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8538. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8539. msm_routing_put_audio_mixer),
  8540. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8541. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8542. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8543. msm_routing_put_audio_mixer),
  8544. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  8545. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8546. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8547. msm_routing_put_audio_mixer),
  8548. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8549. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8550. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8551. msm_routing_put_audio_mixer),
  8552. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8553. MSM_BACKEND_DAI_INT_FM_TX,
  8554. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8555. msm_routing_put_audio_mixer),
  8556. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8557. MSM_BACKEND_DAI_AFE_PCM_TX,
  8558. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8559. msm_routing_put_audio_mixer),
  8560. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8561. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8562. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8563. msm_routing_put_audio_mixer),
  8564. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8565. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8566. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8567. msm_routing_put_audio_mixer),
  8568. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  8569. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  8570. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8571. msm_routing_put_audio_mixer),
  8572. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8573. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8574. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8575. msm_routing_put_audio_mixer),
  8576. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8577. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8578. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8579. msm_routing_put_audio_mixer),
  8580. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8581. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8582. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8583. msm_routing_put_audio_mixer),
  8584. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8585. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8586. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8587. msm_routing_put_audio_mixer),
  8588. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8589. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8590. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8591. msm_routing_put_audio_mixer),
  8592. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8593. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8594. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8595. msm_routing_put_audio_mixer),
  8596. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8597. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8598. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8599. msm_routing_put_audio_mixer),
  8600. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8601. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8602. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8603. msm_routing_put_audio_mixer),
  8604. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8605. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8606. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8607. msm_routing_put_audio_mixer),
  8608. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8609. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8610. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8611. msm_routing_put_audio_mixer),
  8612. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8613. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8614. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8615. msm_routing_put_audio_mixer),
  8616. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8617. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8618. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8619. msm_routing_put_audio_mixer),
  8620. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8621. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8622. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8623. msm_routing_put_audio_mixer),
  8624. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8625. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8626. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8627. msm_routing_put_audio_mixer),
  8628. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8629. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8630. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8631. msm_routing_put_audio_mixer),
  8632. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8633. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8634. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8635. msm_routing_put_audio_mixer),
  8636. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8637. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8638. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8639. msm_routing_put_audio_mixer),
  8640. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8641. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8642. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8643. msm_routing_put_audio_mixer),
  8644. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8645. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8646. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8647. msm_routing_put_audio_mixer),
  8648. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8649. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8650. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8651. msm_routing_put_audio_mixer),
  8652. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8653. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8654. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8655. msm_routing_put_audio_mixer),
  8656. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8657. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8658. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8659. msm_routing_put_audio_mixer),
  8660. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8661. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8662. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8663. msm_routing_put_audio_mixer),
  8664. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8665. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8666. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8667. msm_routing_put_audio_mixer),
  8668. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8669. MSM_BACKEND_DAI_USB_TX,
  8670. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8671. msm_routing_put_audio_mixer),
  8672. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8673. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8674. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8675. msm_routing_put_audio_mixer),
  8676. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8677. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8678. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8679. msm_routing_put_audio_mixer),
  8680. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8681. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8682. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8683. msm_routing_put_audio_mixer),
  8684. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8685. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8686. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8687. msm_routing_put_audio_mixer),
  8688. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8689. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8690. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8691. msm_routing_put_audio_mixer),
  8692. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  8693. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  8694. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8695. msm_routing_put_audio_mixer),
  8696. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  8697. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  8698. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8699. msm_routing_put_audio_mixer),
  8700. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  8701. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  8702. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8703. msm_routing_put_audio_mixer),
  8704. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  8705. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  8706. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8707. msm_routing_put_audio_mixer),
  8708. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  8709. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  8710. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8711. msm_routing_put_audio_mixer),
  8712. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  8713. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  8714. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8715. msm_routing_put_audio_mixer),
  8716. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  8717. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  8718. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8719. msm_routing_put_audio_mixer),
  8720. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  8721. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  8722. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8723. msm_routing_put_audio_mixer),
  8724. };
  8725. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  8726. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8727. MSM_BACKEND_DAI_INT_FM_TX,
  8728. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8729. msm_routing_put_audio_mixer),
  8730. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8731. MSM_BACKEND_DAI_MI2S_TX,
  8732. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8733. msm_routing_put_audio_mixer),
  8734. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8735. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8736. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8737. msm_routing_put_audio_mixer),
  8738. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8739. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8740. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8741. msm_routing_put_audio_mixer),
  8742. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8743. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8744. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8745. msm_routing_put_audio_mixer),
  8746. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8747. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8748. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8749. msm_routing_put_audio_mixer),
  8750. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8751. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8752. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8753. msm_routing_put_audio_mixer),
  8754. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8755. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8756. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8757. msm_routing_put_audio_mixer),
  8758. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8759. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8760. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8761. msm_routing_put_audio_mixer),
  8762. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8763. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8764. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8765. msm_routing_put_audio_mixer),
  8766. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  8767. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8768. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8769. msm_routing_put_audio_mixer),
  8770. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8771. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8772. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8773. msm_routing_put_audio_mixer),
  8774. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8775. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8776. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8777. msm_routing_put_audio_mixer),
  8778. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8779. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8780. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8781. msm_routing_put_audio_mixer),
  8782. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8783. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8784. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8785. msm_routing_put_audio_mixer),
  8786. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8787. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8788. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8789. msm_routing_put_audio_mixer),
  8790. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8791. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8792. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8793. msm_routing_put_audio_mixer),
  8794. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8795. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8796. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8797. msm_routing_put_audio_mixer),
  8798. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8799. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8800. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8801. msm_routing_put_audio_mixer),
  8802. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8803. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8804. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8805. msm_routing_put_audio_mixer),
  8806. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8807. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8808. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8809. msm_routing_put_audio_mixer),
  8810. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8811. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8812. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8813. msm_routing_put_audio_mixer),
  8814. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8815. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8816. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8817. msm_routing_put_audio_mixer),
  8818. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8819. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8820. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8821. msm_routing_put_audio_mixer),
  8822. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8823. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8824. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8825. msm_routing_put_audio_mixer),
  8826. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8827. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8828. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8829. msm_routing_put_audio_mixer),
  8830. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8831. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8832. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8833. msm_routing_put_audio_mixer),
  8834. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8835. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8836. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8837. msm_routing_put_audio_mixer),
  8838. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8839. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8840. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8841. msm_routing_put_audio_mixer),
  8842. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8843. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8844. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8845. msm_routing_put_audio_mixer),
  8846. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8847. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8848. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8849. msm_routing_put_audio_mixer),
  8850. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8851. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8852. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8853. msm_routing_put_audio_mixer),
  8854. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8855. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8856. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8857. msm_routing_put_audio_mixer),
  8858. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8859. MSM_BACKEND_DAI_USB_TX,
  8860. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8861. msm_routing_put_audio_mixer),
  8862. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8863. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8864. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8865. msm_routing_put_audio_mixer),
  8866. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8867. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8868. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8869. msm_routing_put_audio_mixer),
  8870. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8871. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8872. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8873. msm_routing_put_audio_mixer),
  8874. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8875. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8876. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8877. msm_routing_put_audio_mixer),
  8878. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8879. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8880. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8881. msm_routing_put_audio_mixer),
  8882. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  8883. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  8884. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8885. msm_routing_put_audio_mixer),
  8886. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  8887. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  8888. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8889. msm_routing_put_audio_mixer),
  8890. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  8891. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  8892. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8893. msm_routing_put_audio_mixer),
  8894. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  8895. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  8896. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8897. msm_routing_put_audio_mixer),
  8898. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  8899. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  8900. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8901. msm_routing_put_audio_mixer),
  8902. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  8903. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  8904. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8905. msm_routing_put_audio_mixer),
  8906. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  8907. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  8908. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8909. msm_routing_put_audio_mixer),
  8910. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  8911. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  8912. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8913. msm_routing_put_audio_mixer),
  8914. };
  8915. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  8916. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8917. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8918. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8919. msm_routing_put_audio_mixer),
  8920. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8921. MSM_BACKEND_DAI_INT_FM_TX,
  8922. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8923. msm_routing_put_audio_mixer),
  8924. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8925. MSM_BACKEND_DAI_MI2S_TX,
  8926. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8927. msm_routing_put_audio_mixer),
  8928. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8929. MSM_BACKEND_DAI_AFE_PCM_TX,
  8930. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8931. msm_routing_put_audio_mixer),
  8932. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8933. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8934. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8935. msm_routing_put_audio_mixer),
  8936. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  8937. MSM_BACKEND_DAI_AUXPCM_TX,
  8938. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8939. msm_routing_put_audio_mixer),
  8940. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  8941. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8942. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8943. msm_routing_put_audio_mixer),
  8944. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  8945. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8946. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8947. msm_routing_put_audio_mixer),
  8948. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  8949. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8950. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8951. msm_routing_put_audio_mixer),
  8952. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  8953. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8954. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8955. msm_routing_put_audio_mixer),
  8956. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8957. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8958. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8959. msm_routing_put_audio_mixer),
  8960. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8961. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8962. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8963. msm_routing_put_audio_mixer),
  8964. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8965. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8966. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8967. msm_routing_put_audio_mixer),
  8968. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8969. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8970. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8971. msm_routing_put_audio_mixer),
  8972. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8973. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8974. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8975. msm_routing_put_audio_mixer),
  8976. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8977. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8978. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8979. msm_routing_put_audio_mixer),
  8980. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8981. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8982. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8983. msm_routing_put_audio_mixer),
  8984. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8985. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8986. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8987. msm_routing_put_audio_mixer),
  8988. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8989. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8990. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8991. msm_routing_put_audio_mixer),
  8992. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8993. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8994. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8995. msm_routing_put_audio_mixer),
  8996. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8997. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8998. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8999. msm_routing_put_audio_mixer),
  9000. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9001. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9002. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9003. msm_routing_put_audio_mixer),
  9004. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9005. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9006. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9007. msm_routing_put_audio_mixer),
  9008. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9009. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9010. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9011. msm_routing_put_audio_mixer),
  9012. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9013. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9014. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9015. msm_routing_put_audio_mixer),
  9016. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9017. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9018. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9019. msm_routing_put_audio_mixer),
  9020. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9021. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9022. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9023. msm_routing_put_audio_mixer),
  9024. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9025. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9026. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9027. msm_routing_put_audio_mixer),
  9028. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9029. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9030. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9031. msm_routing_put_audio_mixer),
  9032. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9033. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9034. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9035. msm_routing_put_audio_mixer),
  9036. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9037. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9038. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9039. msm_routing_put_audio_mixer),
  9040. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9041. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9042. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9043. msm_routing_put_audio_mixer),
  9044. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9045. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9046. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9047. msm_routing_put_audio_mixer),
  9048. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9049. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9050. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9051. msm_routing_put_audio_mixer),
  9052. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9053. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9054. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9055. msm_routing_put_audio_mixer),
  9056. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9057. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9058. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9059. msm_routing_put_audio_mixer),
  9060. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9061. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9062. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9063. msm_routing_put_audio_mixer),
  9064. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9065. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9066. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9067. msm_routing_put_audio_mixer),
  9068. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9069. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9070. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9071. msm_routing_put_audio_mixer),
  9072. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9073. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9074. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9075. msm_routing_put_audio_mixer),
  9076. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9077. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9078. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9079. msm_routing_put_audio_mixer),
  9080. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9081. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9082. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9083. msm_routing_put_audio_mixer),
  9084. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9085. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9086. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9087. msm_routing_put_audio_mixer),
  9088. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9089. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9090. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9091. msm_routing_put_audio_mixer),
  9092. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9093. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9094. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9095. msm_routing_put_audio_mixer),
  9096. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9097. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9098. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9099. msm_routing_put_audio_mixer),
  9100. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9101. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9102. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9103. msm_routing_put_audio_mixer),
  9104. };
  9105. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  9106. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9107. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9108. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9109. msm_routing_put_audio_mixer),
  9110. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9111. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9112. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9113. msm_routing_put_audio_mixer),
  9114. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9115. MSM_BACKEND_DAI_INT_FM_TX,
  9116. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9117. msm_routing_put_audio_mixer),
  9118. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9119. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9120. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9121. msm_routing_put_audio_mixer),
  9122. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9123. MSM_BACKEND_DAI_AFE_PCM_TX,
  9124. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9125. msm_routing_put_audio_mixer),
  9126. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9127. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9128. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9129. msm_routing_put_audio_mixer),
  9130. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9131. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9132. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9133. msm_routing_put_audio_mixer),
  9134. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9135. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9136. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9137. msm_routing_put_audio_mixer),
  9138. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9139. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9140. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9141. msm_routing_put_audio_mixer),
  9142. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9143. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9144. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9145. msm_routing_put_audio_mixer),
  9146. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9147. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9148. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9149. msm_routing_put_audio_mixer),
  9150. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9151. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9152. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9153. msm_routing_put_audio_mixer),
  9154. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9155. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9156. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9157. msm_routing_put_audio_mixer),
  9158. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9159. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9160. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9161. msm_routing_put_audio_mixer),
  9162. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9163. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9164. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9165. msm_routing_put_audio_mixer),
  9166. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9167. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9168. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9169. msm_routing_put_audio_mixer),
  9170. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9171. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9172. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9173. msm_routing_put_audio_mixer),
  9174. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9175. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9176. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9177. msm_routing_put_audio_mixer),
  9178. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9179. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9180. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9181. msm_routing_put_audio_mixer),
  9182. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9183. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9184. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9185. msm_routing_put_audio_mixer),
  9186. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9187. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9188. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9189. msm_routing_put_audio_mixer),
  9190. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9191. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9192. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9193. msm_routing_put_audio_mixer),
  9194. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9195. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9196. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9197. msm_routing_put_audio_mixer),
  9198. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9199. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9200. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9201. msm_routing_put_audio_mixer),
  9202. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9203. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9204. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9205. msm_routing_put_audio_mixer),
  9206. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9207. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9208. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9209. msm_routing_put_audio_mixer),
  9210. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9211. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9212. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9213. msm_routing_put_audio_mixer),
  9214. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9215. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9216. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9217. msm_routing_put_audio_mixer),
  9218. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9219. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9220. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9221. msm_routing_put_audio_mixer),
  9222. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9223. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9224. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9225. msm_routing_put_audio_mixer),
  9226. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9227. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9228. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9229. msm_routing_put_audio_mixer),
  9230. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9231. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9232. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9233. msm_routing_put_audio_mixer),
  9234. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9235. MSM_BACKEND_DAI_USB_TX,
  9236. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9237. msm_routing_put_audio_mixer),
  9238. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9239. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9240. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9241. msm_routing_put_audio_mixer),
  9242. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9243. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9244. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9245. msm_routing_put_audio_mixer),
  9246. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9247. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9248. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9249. msm_routing_put_audio_mixer),
  9250. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9251. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9252. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9253. msm_routing_put_audio_mixer),
  9254. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9255. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9256. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9257. msm_routing_put_audio_mixer),
  9258. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9259. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9260. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9261. msm_routing_put_audio_mixer),
  9262. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9263. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9264. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9265. msm_routing_put_audio_mixer),
  9266. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9267. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9268. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9269. msm_routing_put_audio_mixer),
  9270. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9271. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9272. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9273. msm_routing_put_audio_mixer),
  9274. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9275. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9276. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9277. msm_routing_put_audio_mixer),
  9278. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9279. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9280. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9281. msm_routing_put_audio_mixer),
  9282. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9283. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9284. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9285. msm_routing_put_audio_mixer),
  9286. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9287. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9288. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9289. msm_routing_put_audio_mixer),
  9290. };
  9291. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  9292. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9293. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9294. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9295. msm_routing_put_audio_mixer),
  9296. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9297. MSM_BACKEND_DAI_INT_FM_TX,
  9298. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9299. msm_routing_put_audio_mixer),
  9300. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9301. MSM_BACKEND_DAI_MI2S_TX,
  9302. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9303. msm_routing_put_audio_mixer),
  9304. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9305. MSM_BACKEND_DAI_AFE_PCM_TX,
  9306. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9307. msm_routing_put_audio_mixer),
  9308. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9309. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9310. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9311. msm_routing_put_audio_mixer),
  9312. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9313. MSM_BACKEND_DAI_AUXPCM_TX,
  9314. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9315. msm_routing_put_audio_mixer),
  9316. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9317. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9318. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9319. msm_routing_put_audio_mixer),
  9320. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9321. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9322. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9323. msm_routing_put_audio_mixer),
  9324. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9325. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9326. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9327. msm_routing_put_audio_mixer),
  9328. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9329. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9330. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9331. msm_routing_put_audio_mixer),
  9332. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9333. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9334. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9335. msm_routing_put_audio_mixer),
  9336. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9337. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9338. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9339. msm_routing_put_audio_mixer),
  9340. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9341. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9342. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9343. msm_routing_put_audio_mixer),
  9344. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9345. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9346. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9347. msm_routing_put_audio_mixer),
  9348. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9349. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9350. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9351. msm_routing_put_audio_mixer),
  9352. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9353. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9354. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9355. msm_routing_put_audio_mixer),
  9356. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9357. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9358. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9359. msm_routing_put_audio_mixer),
  9360. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9361. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9362. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9363. msm_routing_put_audio_mixer),
  9364. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9365. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9366. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9367. msm_routing_put_audio_mixer),
  9368. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9369. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9370. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9371. msm_routing_put_audio_mixer),
  9372. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9373. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9374. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9375. msm_routing_put_audio_mixer),
  9376. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9377. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9378. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9379. msm_routing_put_audio_mixer),
  9380. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9381. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9382. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9383. msm_routing_put_audio_mixer),
  9384. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9385. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9386. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9387. msm_routing_put_audio_mixer),
  9388. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9389. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9390. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9391. msm_routing_put_audio_mixer),
  9392. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9393. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9394. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9395. msm_routing_put_audio_mixer),
  9396. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9397. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9398. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9399. msm_routing_put_audio_mixer),
  9400. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9401. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9402. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9403. msm_routing_put_audio_mixer),
  9404. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9405. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9406. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9407. msm_routing_put_audio_mixer),
  9408. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9409. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9410. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9411. msm_routing_put_audio_mixer),
  9412. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9413. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9414. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9415. msm_routing_put_audio_mixer),
  9416. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9417. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9418. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9419. msm_routing_put_audio_mixer),
  9420. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9421. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9422. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9423. msm_routing_put_audio_mixer),
  9424. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9425. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9426. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9427. msm_routing_put_audio_mixer),
  9428. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9429. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9430. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9431. msm_routing_put_audio_mixer),
  9432. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9433. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9434. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9435. msm_routing_put_audio_mixer),
  9436. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9437. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9438. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9439. msm_routing_put_audio_mixer),
  9440. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9441. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9442. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9443. msm_routing_put_audio_mixer),
  9444. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9445. MSM_BACKEND_DAI_USB_TX,
  9446. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9447. msm_routing_put_audio_mixer),
  9448. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9449. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9450. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9451. msm_routing_put_audio_mixer),
  9452. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9453. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9454. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9455. msm_routing_put_audio_mixer),
  9456. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9457. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9458. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9459. msm_routing_put_audio_mixer),
  9460. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9461. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9462. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9463. msm_routing_put_audio_mixer),
  9464. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9465. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9466. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9467. msm_routing_put_audio_mixer),
  9468. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9469. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9470. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9471. msm_routing_put_audio_mixer),
  9472. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9473. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9474. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9475. msm_routing_put_audio_mixer),
  9476. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9477. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9478. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9479. msm_routing_put_audio_mixer),
  9480. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9481. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9482. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9483. msm_routing_put_audio_mixer),
  9484. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9485. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9486. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9487. msm_routing_put_audio_mixer),
  9488. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9489. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9490. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9491. msm_routing_put_audio_mixer),
  9492. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9493. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9494. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9495. msm_routing_put_audio_mixer),
  9496. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9497. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9498. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9499. msm_routing_put_audio_mixer),
  9500. };
  9501. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  9502. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9503. MSM_BACKEND_DAI_INT_FM_TX,
  9504. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9505. msm_routing_put_audio_mixer),
  9506. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9507. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9508. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9509. msm_routing_put_audio_mixer),
  9510. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9511. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9512. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9513. msm_routing_put_audio_mixer),
  9514. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9515. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9516. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9517. msm_routing_put_audio_mixer),
  9518. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9519. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9520. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9521. msm_routing_put_audio_mixer),
  9522. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9523. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9524. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9525. msm_routing_put_audio_mixer),
  9526. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9527. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9528. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9529. msm_routing_put_audio_mixer),
  9530. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9531. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9532. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9533. msm_routing_put_audio_mixer),
  9534. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9535. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9536. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9537. msm_routing_put_audio_mixer),
  9538. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9539. MSM_BACKEND_DAI_AUXPCM_TX,
  9540. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9541. msm_routing_put_audio_mixer),
  9542. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  9543. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9544. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9545. msm_routing_put_audio_mixer),
  9546. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9547. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9548. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9549. msm_routing_put_audio_mixer),
  9550. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9551. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9552. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9553. msm_routing_put_audio_mixer),
  9554. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9555. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9556. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9557. msm_routing_put_audio_mixer),
  9558. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9559. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9560. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9561. msm_routing_put_audio_mixer),
  9562. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9563. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9564. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9565. msm_routing_put_audio_mixer),
  9566. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9567. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9568. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9569. msm_routing_put_audio_mixer),
  9570. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9571. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9572. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9573. msm_routing_put_audio_mixer),
  9574. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9575. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9576. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9577. msm_routing_put_audio_mixer),
  9578. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9579. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9580. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9581. msm_routing_put_audio_mixer),
  9582. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9583. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9584. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9585. msm_routing_put_audio_mixer),
  9586. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9587. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9588. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9589. msm_routing_put_audio_mixer),
  9590. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9591. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9592. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9593. msm_routing_put_audio_mixer),
  9594. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9595. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9596. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9597. msm_routing_put_audio_mixer),
  9598. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9599. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9600. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9601. msm_routing_put_audio_mixer),
  9602. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9603. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9604. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9605. msm_routing_put_audio_mixer),
  9606. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9607. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9608. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9609. msm_routing_put_audio_mixer),
  9610. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9611. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9612. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9613. msm_routing_put_audio_mixer),
  9614. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9615. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9616. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9617. msm_routing_put_audio_mixer),
  9618. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9619. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9620. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9621. msm_routing_put_audio_mixer),
  9622. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9623. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9624. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9625. msm_routing_put_audio_mixer),
  9626. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9627. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9628. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9629. msm_routing_put_audio_mixer),
  9630. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9631. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9632. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9633. msm_routing_put_audio_mixer),
  9634. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9635. MSM_BACKEND_DAI_USB_TX,
  9636. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9637. msm_routing_put_audio_mixer),
  9638. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9639. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9640. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9641. msm_routing_put_audio_mixer),
  9642. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9643. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9644. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9645. msm_routing_put_audio_mixer),
  9646. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9647. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9648. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9649. msm_routing_put_audio_mixer),
  9650. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9651. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9652. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9653. msm_routing_put_audio_mixer),
  9654. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9655. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9656. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9657. msm_routing_put_audio_mixer),
  9658. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9659. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9660. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9661. msm_routing_put_audio_mixer),
  9662. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9663. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9664. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9665. msm_routing_put_audio_mixer),
  9666. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9667. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9668. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9669. msm_routing_put_audio_mixer),
  9670. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9671. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9672. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9673. msm_routing_put_audio_mixer),
  9674. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9675. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9676. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9677. msm_routing_put_audio_mixer),
  9678. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9679. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9680. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9681. msm_routing_put_audio_mixer),
  9682. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9683. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9684. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9685. msm_routing_put_audio_mixer),
  9686. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9687. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9688. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9689. msm_routing_put_audio_mixer),
  9690. };
  9691. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  9692. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9693. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9694. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9695. msm_routing_put_audio_mixer),
  9696. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9697. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9698. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9699. msm_routing_put_audio_mixer),
  9700. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9701. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9702. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9703. msm_routing_put_audio_mixer),
  9704. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9705. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9706. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9707. msm_routing_put_audio_mixer),
  9708. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9709. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9710. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9711. msm_routing_put_audio_mixer),
  9712. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9713. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9714. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9715. msm_routing_put_audio_mixer),
  9716. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9717. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9718. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9719. msm_routing_put_audio_mixer),
  9720. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9721. MSM_BACKEND_DAI_INT_FM_TX,
  9722. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9723. msm_routing_put_audio_mixer),
  9724. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9725. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9726. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9727. msm_routing_put_audio_mixer),
  9728. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9729. MSM_BACKEND_DAI_AFE_PCM_TX,
  9730. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9731. msm_routing_put_audio_mixer),
  9732. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9733. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9734. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9735. msm_routing_put_audio_mixer),
  9736. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9737. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9738. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9739. msm_routing_put_audio_mixer),
  9740. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9741. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9742. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9743. msm_routing_put_audio_mixer),
  9744. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9745. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9746. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9747. msm_routing_put_audio_mixer),
  9748. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9749. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9750. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9751. msm_routing_put_audio_mixer),
  9752. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9753. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9754. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9755. msm_routing_put_audio_mixer),
  9756. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9757. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9758. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9759. msm_routing_put_audio_mixer),
  9760. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9761. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9762. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9763. msm_routing_put_audio_mixer),
  9764. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9765. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9766. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9767. msm_routing_put_audio_mixer),
  9768. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9769. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9770. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9771. msm_routing_put_audio_mixer),
  9772. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9773. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9774. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9775. msm_routing_put_audio_mixer),
  9776. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9777. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9778. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9779. msm_routing_put_audio_mixer),
  9780. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9781. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9782. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9783. msm_routing_put_audio_mixer),
  9784. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9785. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9786. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9787. msm_routing_put_audio_mixer),
  9788. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9789. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9790. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9791. msm_routing_put_audio_mixer),
  9792. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9793. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9794. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9795. msm_routing_put_audio_mixer),
  9796. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9797. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9798. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9799. msm_routing_put_audio_mixer),
  9800. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9801. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9802. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9803. msm_routing_put_audio_mixer),
  9804. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9805. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9806. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9807. msm_routing_put_audio_mixer),
  9808. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9809. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9810. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9811. msm_routing_put_audio_mixer),
  9812. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9813. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9814. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9815. msm_routing_put_audio_mixer),
  9816. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9817. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9818. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9819. msm_routing_put_audio_mixer),
  9820. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9821. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9822. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9823. msm_routing_put_audio_mixer),
  9824. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9825. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9826. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9827. msm_routing_put_audio_mixer),
  9828. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9829. MSM_BACKEND_DAI_USB_TX,
  9830. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9831. msm_routing_put_audio_mixer),
  9832. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9833. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9834. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9835. msm_routing_put_audio_mixer),
  9836. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9837. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9838. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9839. msm_routing_put_audio_mixer),
  9840. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9841. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9842. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9843. msm_routing_put_audio_mixer),
  9844. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9845. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9846. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9847. msm_routing_put_audio_mixer),
  9848. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9849. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9850. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9851. msm_routing_put_audio_mixer),
  9852. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9853. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9854. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9855. msm_routing_put_audio_mixer),
  9856. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9857. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9858. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9859. msm_routing_put_audio_mixer),
  9860. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9861. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9862. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9863. msm_routing_put_audio_mixer),
  9864. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9865. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9866. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9867. msm_routing_put_audio_mixer),
  9868. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9869. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9870. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9871. msm_routing_put_audio_mixer),
  9872. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9873. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9874. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9875. msm_routing_put_audio_mixer),
  9876. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9877. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9878. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9879. msm_routing_put_audio_mixer),
  9880. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9881. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9882. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9883. msm_routing_put_audio_mixer),
  9884. };
  9885. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  9886. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9887. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9888. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9889. msm_routing_put_audio_mixer),
  9890. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9891. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9892. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9893. msm_routing_put_audio_mixer),
  9894. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9895. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9896. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9897. msm_routing_put_audio_mixer),
  9898. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9899. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9900. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9901. msm_routing_put_audio_mixer),
  9902. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9903. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9904. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9905. msm_routing_put_audio_mixer),
  9906. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9907. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9908. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9909. msm_routing_put_audio_mixer),
  9910. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9911. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9912. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9913. msm_routing_put_audio_mixer),
  9914. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9915. MSM_BACKEND_DAI_INT_FM_TX,
  9916. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9917. msm_routing_put_audio_mixer),
  9918. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9919. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9920. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9921. msm_routing_put_audio_mixer),
  9922. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9923. MSM_BACKEND_DAI_AFE_PCM_TX,
  9924. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9925. msm_routing_put_audio_mixer),
  9926. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9927. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9928. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9929. msm_routing_put_audio_mixer),
  9930. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9931. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9932. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9933. msm_routing_put_audio_mixer),
  9934. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9935. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9936. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9937. msm_routing_put_audio_mixer),
  9938. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9939. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9940. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9941. msm_routing_put_audio_mixer),
  9942. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9943. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9944. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9945. msm_routing_put_audio_mixer),
  9946. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9947. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9948. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9949. msm_routing_put_audio_mixer),
  9950. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9951. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9952. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9953. msm_routing_put_audio_mixer),
  9954. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9955. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9956. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9957. msm_routing_put_audio_mixer),
  9958. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9959. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9960. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9961. msm_routing_put_audio_mixer),
  9962. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9963. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9964. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9965. msm_routing_put_audio_mixer),
  9966. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9967. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9968. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9969. msm_routing_put_audio_mixer),
  9970. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9971. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9972. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9973. msm_routing_put_audio_mixer),
  9974. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9975. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9976. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9977. msm_routing_put_audio_mixer),
  9978. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9979. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9980. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9981. msm_routing_put_audio_mixer),
  9982. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9983. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9984. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9985. msm_routing_put_audio_mixer),
  9986. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9987. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9988. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9989. msm_routing_put_audio_mixer),
  9990. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9991. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9992. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9993. msm_routing_put_audio_mixer),
  9994. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9995. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9996. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9997. msm_routing_put_audio_mixer),
  9998. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9999. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10000. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10001. msm_routing_put_audio_mixer),
  10002. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10003. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10004. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10005. msm_routing_put_audio_mixer),
  10006. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10007. MSM_BACKEND_DAI_USB_TX,
  10008. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10009. msm_routing_put_audio_mixer),
  10010. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10011. MSM_BACKEND_DAI_MI2S_TX,
  10012. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10013. msm_routing_put_audio_mixer),
  10014. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10015. MSM_BACKEND_DAI_AUXPCM_TX,
  10016. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10017. msm_routing_put_audio_mixer),
  10018. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10019. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10020. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10021. msm_routing_put_audio_mixer),
  10022. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10023. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10024. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10025. msm_routing_put_audio_mixer),
  10026. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10027. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10028. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10029. msm_routing_put_audio_mixer),
  10030. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10031. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10032. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10033. msm_routing_put_audio_mixer),
  10034. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10035. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10036. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10037. msm_routing_put_audio_mixer),
  10038. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10039. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10040. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10041. msm_routing_put_audio_mixer),
  10042. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10043. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10044. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10045. msm_routing_put_audio_mixer),
  10046. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10047. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10048. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10049. msm_routing_get_audio_mixer,
  10050. msm_routing_put_audio_mixer),
  10051. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10052. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10053. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10054. msm_routing_get_audio_mixer,
  10055. msm_routing_put_audio_mixer),
  10056. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10057. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10058. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10059. msm_routing_get_audio_mixer,
  10060. msm_routing_put_audio_mixer),
  10061. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10062. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10063. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10064. msm_routing_get_audio_mixer,
  10065. msm_routing_put_audio_mixer),
  10066. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10067. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10068. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10069. msm_routing_get_audio_mixer,
  10070. msm_routing_put_audio_mixer),
  10071. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10072. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10073. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10074. msm_routing_get_audio_mixer,
  10075. msm_routing_put_audio_mixer),
  10076. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10077. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10078. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10079. msm_routing_put_audio_mixer),
  10080. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10081. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10082. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10083. msm_routing_put_audio_mixer),
  10084. };
  10085. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  10086. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10087. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10088. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10089. msm_routing_put_audio_mixer),
  10090. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10091. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10092. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10093. msm_routing_put_audio_mixer),
  10094. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10095. MSM_BACKEND_DAI_INT_FM_TX,
  10096. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10097. msm_routing_put_audio_mixer),
  10098. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10099. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10100. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10101. msm_routing_put_audio_mixer),
  10102. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10103. MSM_BACKEND_DAI_AFE_PCM_TX,
  10104. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10105. msm_routing_put_audio_mixer),
  10106. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10107. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10108. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10109. msm_routing_put_audio_mixer),
  10110. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10111. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10112. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10113. msm_routing_put_audio_mixer),
  10114. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10115. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10116. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10117. msm_routing_put_audio_mixer),
  10118. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10119. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10120. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10121. msm_routing_put_audio_mixer),
  10122. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10123. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10124. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10125. msm_routing_put_audio_mixer),
  10126. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10127. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10128. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10129. msm_routing_put_audio_mixer),
  10130. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10131. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10132. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10133. msm_routing_put_audio_mixer),
  10134. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10135. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10136. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10137. msm_routing_put_audio_mixer),
  10138. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10139. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10140. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10141. msm_routing_put_audio_mixer),
  10142. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10143. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10144. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10145. msm_routing_put_audio_mixer),
  10146. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10147. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10148. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10149. msm_routing_put_audio_mixer),
  10150. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10151. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10152. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10153. msm_routing_put_audio_mixer),
  10154. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10155. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10156. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10157. msm_routing_put_audio_mixer),
  10158. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10159. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10160. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10161. msm_routing_put_audio_mixer),
  10162. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10163. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10164. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10165. msm_routing_put_audio_mixer),
  10166. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10167. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10168. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10169. msm_routing_put_audio_mixer),
  10170. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10171. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10172. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10173. msm_routing_put_audio_mixer),
  10174. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10175. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10176. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10177. msm_routing_put_audio_mixer),
  10178. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10179. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10180. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10181. msm_routing_put_audio_mixer),
  10182. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10183. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10184. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10185. msm_routing_put_audio_mixer),
  10186. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10187. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10188. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10189. msm_routing_put_audio_mixer),
  10190. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10191. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10192. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10193. msm_routing_put_audio_mixer),
  10194. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10195. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10196. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10197. msm_routing_put_audio_mixer),
  10198. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10199. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10200. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10201. msm_routing_put_audio_mixer),
  10202. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10203. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10204. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10205. msm_routing_put_audio_mixer),
  10206. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10207. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10208. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10209. msm_routing_put_audio_mixer),
  10210. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10211. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10212. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10213. msm_routing_put_audio_mixer),
  10214. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10215. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10216. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10217. msm_routing_put_audio_mixer),
  10218. };
  10219. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  10220. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10221. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10222. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10223. msm_routing_put_audio_mixer),
  10224. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10225. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10226. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10227. msm_routing_put_audio_mixer),
  10228. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10229. MSM_BACKEND_DAI_INT_FM_TX,
  10230. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10231. msm_routing_put_audio_mixer),
  10232. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10233. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10234. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10235. msm_routing_put_audio_mixer),
  10236. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10237. MSM_BACKEND_DAI_AFE_PCM_TX,
  10238. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10239. msm_routing_put_audio_mixer),
  10240. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10241. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10242. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10243. msm_routing_put_audio_mixer),
  10244. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10245. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10246. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10247. msm_routing_put_audio_mixer),
  10248. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10249. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10250. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10251. msm_routing_put_audio_mixer),
  10252. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10253. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10254. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10255. msm_routing_put_audio_mixer),
  10256. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10257. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10258. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10259. msm_routing_put_audio_mixer),
  10260. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10261. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10262. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10263. msm_routing_put_audio_mixer),
  10264. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10265. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10266. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10267. msm_routing_put_audio_mixer),
  10268. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10269. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10270. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10271. msm_routing_put_audio_mixer),
  10272. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10273. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10274. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10275. msm_routing_put_audio_mixer),
  10276. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10277. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10278. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10279. msm_routing_put_audio_mixer),
  10280. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10281. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10282. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10283. msm_routing_put_audio_mixer),
  10284. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10285. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10286. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10287. msm_routing_put_audio_mixer),
  10288. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10289. MSM_BACKEND_DAI_USB_TX,
  10290. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10291. msm_routing_put_audio_mixer),
  10292. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10293. MSM_BACKEND_DAI_MI2S_TX,
  10294. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10295. msm_routing_put_audio_mixer),
  10296. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10297. MSM_BACKEND_DAI_AUXPCM_TX,
  10298. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10299. msm_routing_put_audio_mixer),
  10300. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10301. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10302. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10303. msm_routing_put_audio_mixer),
  10304. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  10305. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10306. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10307. msm_routing_put_audio_mixer),
  10308. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10309. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10310. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10311. msm_routing_put_audio_mixer),
  10312. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10313. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10314. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10315. msm_routing_put_audio_mixer),
  10316. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10317. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10318. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10319. msm_routing_put_audio_mixer),
  10320. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10321. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10322. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10323. msm_routing_put_audio_mixer),
  10324. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10325. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10326. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10327. msm_routing_put_audio_mixer),
  10328. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10329. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10330. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10331. msm_routing_put_audio_mixer),
  10332. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10333. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10334. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10335. msm_routing_put_audio_mixer),
  10336. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10337. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10338. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10339. msm_routing_put_audio_mixer),
  10340. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10341. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10342. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10343. msm_routing_put_audio_mixer),
  10344. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10345. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10346. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10347. msm_routing_get_audio_mixer,
  10348. msm_routing_put_audio_mixer),
  10349. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10350. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10351. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10352. msm_routing_get_audio_mixer,
  10353. msm_routing_put_audio_mixer),
  10354. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10355. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10356. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10357. msm_routing_get_audio_mixer,
  10358. msm_routing_put_audio_mixer),
  10359. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10361. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10362. msm_routing_get_audio_mixer,
  10363. msm_routing_put_audio_mixer),
  10364. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10365. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10366. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10367. msm_routing_get_audio_mixer,
  10368. msm_routing_put_audio_mixer),
  10369. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10370. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10371. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10372. msm_routing_get_audio_mixer,
  10373. msm_routing_put_audio_mixer),
  10374. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10375. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10376. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10377. msm_routing_put_audio_mixer),
  10378. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10379. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10380. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10381. msm_routing_put_audio_mixer),
  10382. };
  10383. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  10384. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10385. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10386. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10387. msm_routing_put_audio_mixer),
  10388. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10389. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10390. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10391. msm_routing_put_audio_mixer),
  10392. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10393. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10394. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10395. msm_routing_put_audio_mixer),
  10396. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10397. MSM_BACKEND_DAI_INT_FM_TX,
  10398. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10399. msm_routing_put_audio_mixer),
  10400. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10401. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10402. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10403. msm_routing_put_audio_mixer),
  10404. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10405. MSM_BACKEND_DAI_AFE_PCM_TX,
  10406. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10407. msm_routing_put_audio_mixer),
  10408. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10409. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10410. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10411. msm_routing_put_audio_mixer),
  10412. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10413. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10414. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10415. msm_routing_put_audio_mixer),
  10416. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10417. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10418. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10419. msm_routing_put_audio_mixer),
  10420. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10421. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10422. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10423. msm_routing_put_audio_mixer),
  10424. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10425. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10426. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10427. msm_routing_put_audio_mixer),
  10428. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10429. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10430. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10431. msm_routing_put_audio_mixer),
  10432. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10433. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10434. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10435. msm_routing_put_audio_mixer),
  10436. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10437. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10438. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10439. msm_routing_put_audio_mixer),
  10440. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10441. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10442. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10443. msm_routing_put_audio_mixer),
  10444. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10445. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10446. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10447. msm_routing_get_audio_mixer,
  10448. msm_routing_put_audio_mixer),
  10449. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10450. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10451. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10452. msm_routing_get_audio_mixer,
  10453. msm_routing_put_audio_mixer),
  10454. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10455. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10456. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10457. msm_routing_get_audio_mixer,
  10458. msm_routing_put_audio_mixer),
  10459. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10460. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10461. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10462. msm_routing_get_audio_mixer,
  10463. msm_routing_put_audio_mixer),
  10464. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10465. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10466. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10467. msm_routing_get_audio_mixer,
  10468. msm_routing_put_audio_mixer),
  10469. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10470. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10471. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10472. msm_routing_get_audio_mixer,
  10473. msm_routing_put_audio_mixer),
  10474. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10475. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10476. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10477. msm_routing_put_audio_mixer),
  10478. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10479. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10480. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10481. msm_routing_put_audio_mixer),
  10482. };
  10483. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  10484. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10485. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10486. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10487. msm_routing_put_audio_mixer),
  10488. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10489. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10490. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10491. msm_routing_put_audio_mixer),
  10492. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10493. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10494. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10495. msm_routing_put_audio_mixer),
  10496. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10497. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10498. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10499. msm_routing_put_audio_mixer),
  10500. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10501. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10502. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10503. msm_routing_put_audio_mixer),
  10504. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10505. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10506. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10507. msm_routing_put_audio_mixer),
  10508. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10509. MSM_BACKEND_DAI_INT_FM_TX,
  10510. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10511. msm_routing_put_audio_mixer),
  10512. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10513. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10514. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10515. msm_routing_put_audio_mixer),
  10516. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10517. MSM_BACKEND_DAI_AFE_PCM_TX,
  10518. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10519. msm_routing_put_audio_mixer),
  10520. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10521. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10522. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10523. msm_routing_put_audio_mixer),
  10524. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10525. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10526. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10527. msm_routing_put_audio_mixer),
  10528. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10529. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10530. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10531. msm_routing_put_audio_mixer),
  10532. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10533. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10534. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10535. msm_routing_put_audio_mixer),
  10536. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10537. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10538. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10539. msm_routing_put_audio_mixer),
  10540. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10541. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10542. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10543. msm_routing_put_audio_mixer),
  10544. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10545. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10546. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10547. msm_routing_put_audio_mixer),
  10548. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10549. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10550. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10551. msm_routing_get_audio_mixer,
  10552. msm_routing_put_audio_mixer),
  10553. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10554. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10555. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10556. msm_routing_get_audio_mixer,
  10557. msm_routing_put_audio_mixer),
  10558. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10559. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10560. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10561. msm_routing_get_audio_mixer,
  10562. msm_routing_put_audio_mixer),
  10563. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10564. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10565. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10566. msm_routing_get_audio_mixer,
  10567. msm_routing_put_audio_mixer),
  10568. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10569. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10570. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10571. msm_routing_get_audio_mixer,
  10572. msm_routing_put_audio_mixer),
  10573. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10574. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10575. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10576. msm_routing_get_audio_mixer,
  10577. msm_routing_put_audio_mixer),
  10578. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10579. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10580. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10581. msm_routing_put_audio_mixer),
  10582. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10583. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10584. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10585. msm_routing_put_audio_mixer),
  10586. };
  10587. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  10588. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10589. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10590. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10591. msm_routing_put_audio_mixer),
  10592. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10593. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10594. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10595. msm_routing_put_audio_mixer),
  10596. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10597. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10598. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10599. msm_routing_put_audio_mixer),
  10600. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10601. MSM_BACKEND_DAI_INT_FM_TX,
  10602. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10603. msm_routing_put_audio_mixer),
  10604. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10605. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10606. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10607. msm_routing_put_audio_mixer),
  10608. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10609. MSM_BACKEND_DAI_AFE_PCM_TX,
  10610. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10611. msm_routing_put_audio_mixer),
  10612. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10613. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10614. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10615. msm_routing_put_audio_mixer),
  10616. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10617. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10618. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10619. msm_routing_put_audio_mixer),
  10620. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10621. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10622. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10623. msm_routing_put_audio_mixer),
  10624. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10625. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10626. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10627. msm_routing_put_audio_mixer),
  10628. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10629. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10630. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10631. msm_routing_put_audio_mixer),
  10632. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10633. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10634. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10635. msm_routing_put_audio_mixer),
  10636. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10637. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10638. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10639. msm_routing_put_audio_mixer),
  10640. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10641. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10642. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10643. msm_routing_put_audio_mixer),
  10644. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10645. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10646. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10647. msm_routing_put_audio_mixer),
  10648. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10649. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10650. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10651. msm_routing_get_audio_mixer,
  10652. msm_routing_put_audio_mixer),
  10653. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10654. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10655. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10656. msm_routing_get_audio_mixer,
  10657. msm_routing_put_audio_mixer),
  10658. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10659. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10660. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10661. msm_routing_get_audio_mixer,
  10662. msm_routing_put_audio_mixer),
  10663. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10664. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10665. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10666. msm_routing_get_audio_mixer,
  10667. msm_routing_put_audio_mixer),
  10668. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10669. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10670. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10671. msm_routing_get_audio_mixer,
  10672. msm_routing_put_audio_mixer),
  10673. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10674. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10675. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  10676. msm_routing_get_audio_mixer,
  10677. msm_routing_put_audio_mixer),
  10678. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10679. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10680. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10681. msm_routing_put_audio_mixer),
  10682. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10683. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10684. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10685. msm_routing_put_audio_mixer),
  10686. };
  10687. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  10688. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10689. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10690. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10691. msm_routing_put_audio_mixer),
  10692. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10693. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10694. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10695. msm_routing_put_audio_mixer),
  10696. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10697. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10698. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10699. msm_routing_put_audio_mixer),
  10700. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10701. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10702. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10703. msm_routing_put_audio_mixer),
  10704. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10705. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  10706. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10707. msm_routing_put_audio_mixer),
  10708. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10709. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10710. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10711. msm_routing_put_audio_mixer),
  10712. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10713. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10714. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10715. msm_routing_put_audio_mixer),
  10716. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10717. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10718. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10719. msm_routing_put_audio_mixer),
  10720. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10721. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10722. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10723. msm_routing_put_audio_mixer),
  10724. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10725. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10726. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10727. msm_routing_put_audio_mixer),
  10728. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10729. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10730. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10731. msm_routing_put_audio_mixer),
  10732. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10733. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10734. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10735. msm_routing_put_audio_mixer),
  10736. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10737. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10738. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10739. msm_routing_put_audio_mixer),
  10740. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10741. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10742. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10743. msm_routing_put_audio_mixer),
  10744. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10745. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10746. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10747. msm_routing_put_audio_mixer),
  10748. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10749. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10750. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10751. msm_routing_put_audio_mixer),
  10752. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10753. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10754. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10755. msm_routing_put_audio_mixer),
  10756. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10757. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10758. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10759. msm_routing_put_audio_mixer),
  10760. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10761. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10762. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10763. msm_routing_put_audio_mixer),
  10764. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10765. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10766. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10767. msm_routing_put_audio_mixer),
  10768. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10769. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10770. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10771. msm_routing_put_audio_mixer),
  10772. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10773. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10774. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10775. msm_routing_put_audio_mixer),
  10776. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10777. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10778. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10779. msm_routing_put_audio_mixer),
  10780. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10781. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10782. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10783. msm_routing_put_audio_mixer),
  10784. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10785. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10786. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10787. msm_routing_put_audio_mixer),
  10788. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10789. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10790. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10791. msm_routing_put_audio_mixer),
  10792. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10793. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10794. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10795. msm_routing_put_audio_mixer),
  10796. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10797. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10798. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10799. msm_routing_put_audio_mixer),
  10800. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10801. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10802. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10803. msm_routing_put_audio_mixer),
  10804. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10805. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10806. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10807. msm_routing_put_audio_mixer),
  10808. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10809. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10810. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
  10811. msm_routing_get_audio_mixer,
  10812. msm_routing_put_audio_mixer),
  10813. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10814. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10815. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
  10816. msm_routing_get_audio_mixer,
  10817. msm_routing_put_audio_mixer),
  10818. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10819. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10820. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
  10821. msm_routing_get_audio_mixer,
  10822. msm_routing_put_audio_mixer),
  10823. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10824. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10825. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
  10826. msm_routing_get_audio_mixer,
  10827. msm_routing_put_audio_mixer),
  10828. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10829. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10830. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
  10831. msm_routing_get_audio_mixer,
  10832. msm_routing_put_audio_mixer),
  10833. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10834. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10835. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
  10836. msm_routing_get_audio_mixer,
  10837. msm_routing_put_audio_mixer),
  10838. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10839. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10840. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10841. msm_routing_put_audio_mixer),
  10842. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10843. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10844. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10845. msm_routing_put_audio_mixer),
  10846. };
  10847. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  10848. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10849. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10850. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  10851. msm_routing_put_audio_mixer),
  10852. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10853. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10854. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  10855. msm_routing_put_audio_mixer),
  10856. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10857. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10858. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  10859. msm_routing_put_audio_mixer),
  10860. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10861. MSM_BACKEND_DAI_INT_FM_TX,
  10862. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  10863. msm_routing_put_audio_mixer),
  10864. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10865. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10866. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  10867. msm_routing_put_audio_mixer),
  10868. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10869. MSM_BACKEND_DAI_AFE_PCM_TX,
  10870. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  10871. msm_routing_put_audio_mixer),
  10872. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10873. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10874. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  10875. msm_routing_put_audio_mixer),
  10876. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10877. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10878. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  10879. msm_routing_put_audio_mixer),
  10880. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10881. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10882. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  10883. msm_routing_put_audio_mixer),
  10884. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10885. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10886. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  10887. msm_routing_put_audio_mixer),
  10888. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10889. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10890. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  10891. msm_routing_put_audio_mixer),
  10892. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10893. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10894. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  10895. msm_routing_put_audio_mixer),
  10896. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10897. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10898. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  10899. msm_routing_put_audio_mixer),
  10900. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10901. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10902. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  10903. msm_routing_put_audio_mixer),
  10904. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10905. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10906. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  10907. msm_routing_put_audio_mixer),
  10908. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10909. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10910. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  10911. msm_routing_get_audio_mixer,
  10912. msm_routing_put_audio_mixer),
  10913. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10914. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10915. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  10916. msm_routing_get_audio_mixer,
  10917. msm_routing_put_audio_mixer),
  10918. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10919. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10920. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  10921. msm_routing_get_audio_mixer,
  10922. msm_routing_put_audio_mixer),
  10923. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10924. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10925. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  10926. msm_routing_get_audio_mixer,
  10927. msm_routing_put_audio_mixer),
  10928. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10929. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10930. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  10931. msm_routing_get_audio_mixer,
  10932. msm_routing_put_audio_mixer),
  10933. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10935. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  10936. msm_routing_get_audio_mixer,
  10937. msm_routing_put_audio_mixer),
  10938. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10939. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10940. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  10941. msm_routing_put_audio_mixer),
  10942. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10943. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10944. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  10945. msm_routing_put_audio_mixer),
  10946. };
  10947. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  10948. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10949. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10950. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  10951. msm_routing_put_audio_mixer),
  10952. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10953. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10954. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  10955. msm_routing_put_audio_mixer),
  10956. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10957. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10958. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  10959. msm_routing_put_audio_mixer),
  10960. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10961. MSM_BACKEND_DAI_INT_FM_TX,
  10962. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  10963. msm_routing_put_audio_mixer),
  10964. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10965. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10966. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  10967. msm_routing_put_audio_mixer),
  10968. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10969. MSM_BACKEND_DAI_AFE_PCM_TX,
  10970. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  10971. msm_routing_put_audio_mixer),
  10972. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10973. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10974. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  10975. msm_routing_put_audio_mixer),
  10976. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10977. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10978. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  10979. msm_routing_put_audio_mixer),
  10980. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10981. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10982. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  10983. msm_routing_put_audio_mixer),
  10984. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10985. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10986. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  10987. msm_routing_put_audio_mixer),
  10988. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10989. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10990. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  10991. msm_routing_put_audio_mixer),
  10992. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10993. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10994. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  10995. msm_routing_put_audio_mixer),
  10996. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10997. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10998. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  10999. msm_routing_put_audio_mixer),
  11000. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11001. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11002. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11003. msm_routing_put_audio_mixer),
  11004. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11005. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11006. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11007. msm_routing_put_audio_mixer),
  11008. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11009. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11010. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11011. msm_routing_get_audio_mixer,
  11012. msm_routing_put_audio_mixer),
  11013. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11014. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11015. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11016. msm_routing_get_audio_mixer,
  11017. msm_routing_put_audio_mixer),
  11018. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11019. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11020. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11021. msm_routing_get_audio_mixer,
  11022. msm_routing_put_audio_mixer),
  11023. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11024. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11025. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11026. msm_routing_get_audio_mixer,
  11027. msm_routing_put_audio_mixer),
  11028. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11029. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11030. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11031. msm_routing_get_audio_mixer,
  11032. msm_routing_put_audio_mixer),
  11033. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11034. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11035. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11036. msm_routing_get_audio_mixer,
  11037. msm_routing_put_audio_mixer),
  11038. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11039. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11040. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11041. msm_routing_put_audio_mixer),
  11042. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11043. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11044. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11045. msm_routing_put_audio_mixer),
  11046. };
  11047. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  11048. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11049. MSM_BACKEND_DAI_PRI_I2S_RX,
  11050. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11051. msm_routing_put_voice_mixer),
  11052. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11053. MSM_BACKEND_DAI_PRI_I2S_RX,
  11054. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11055. msm_routing_put_voice_mixer),
  11056. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11057. MSM_BACKEND_DAI_PRI_I2S_RX,
  11058. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11059. msm_routing_put_voice_mixer),
  11060. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11061. MSM_BACKEND_DAI_PRI_I2S_RX,
  11062. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11063. msm_routing_put_voice_mixer),
  11064. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11065. MSM_BACKEND_DAI_PRI_I2S_RX,
  11066. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11067. msm_routing_put_voice_mixer),
  11068. };
  11069. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  11070. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11071. MSM_BACKEND_DAI_SEC_I2S_RX,
  11072. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11073. msm_routing_put_voice_mixer),
  11074. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11075. MSM_BACKEND_DAI_SEC_I2S_RX,
  11076. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11077. msm_routing_put_voice_mixer),
  11078. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11079. MSM_BACKEND_DAI_SEC_I2S_RX,
  11080. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11081. msm_routing_put_voice_mixer),
  11082. };
  11083. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  11084. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11085. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11086. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11087. msm_routing_put_voice_mixer),
  11088. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11089. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11090. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11091. msm_routing_put_voice_mixer),
  11092. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11093. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11094. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11095. msm_routing_put_voice_mixer),
  11096. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11097. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11098. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11099. msm_routing_put_voice_mixer),
  11100. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11101. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11102. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11103. msm_routing_put_voice_mixer),
  11104. };
  11105. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  11106. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11107. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11108. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11109. msm_routing_put_voice_mixer),
  11110. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11111. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11112. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11113. msm_routing_put_voice_mixer),
  11114. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11115. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11116. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11117. msm_routing_put_voice_mixer),
  11118. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11119. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11120. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11121. msm_routing_put_voice_mixer),
  11122. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11123. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11124. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11125. msm_routing_put_voice_mixer),
  11126. };
  11127. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  11128. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11129. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11130. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11131. msm_routing_put_voice_mixer),
  11132. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11133. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11134. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11135. msm_routing_put_voice_mixer),
  11136. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11137. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11138. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11139. msm_routing_put_voice_mixer),
  11140. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11141. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11142. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11143. msm_routing_put_voice_mixer),
  11144. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11145. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11146. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11147. msm_routing_put_voice_mixer),
  11148. };
  11149. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  11150. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11151. MSM_BACKEND_DAI_USB_RX,
  11152. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11153. msm_routing_put_voice_mixer),
  11154. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11155. MSM_BACKEND_DAI_USB_RX,
  11156. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11157. msm_routing_put_voice_mixer),
  11158. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11159. MSM_BACKEND_DAI_USB_RX,
  11160. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11161. msm_routing_put_voice_mixer),
  11162. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11163. MSM_BACKEND_DAI_USB_RX,
  11164. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11165. msm_routing_put_voice_mixer),
  11166. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11167. MSM_BACKEND_DAI_USB_RX,
  11168. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11169. msm_routing_put_voice_mixer),
  11170. };
  11171. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  11172. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11173. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11174. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11175. msm_routing_put_voice_mixer),
  11176. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11177. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11178. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11179. msm_routing_put_voice_mixer),
  11180. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11181. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11182. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11183. msm_routing_put_voice_mixer),
  11184. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11185. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11186. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11187. msm_routing_put_voice_mixer),
  11188. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11189. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11190. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11191. msm_routing_put_voice_mixer),
  11192. };
  11193. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  11194. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11195. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11196. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11197. msm_routing_put_voice_mixer),
  11198. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11199. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11200. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11201. msm_routing_put_voice_mixer),
  11202. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11203. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11204. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11205. msm_routing_put_voice_mixer),
  11206. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11207. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11208. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11209. msm_routing_put_voice_mixer),
  11210. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11211. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11212. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11213. msm_routing_put_voice_mixer),
  11214. };
  11215. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  11216. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11217. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11218. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11219. msm_routing_put_voice_mixer),
  11220. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11221. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11222. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11223. msm_routing_put_voice_mixer),
  11224. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11225. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11226. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11227. msm_routing_put_voice_mixer),
  11228. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11229. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11230. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11231. msm_routing_put_voice_mixer),
  11232. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11233. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11234. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11235. msm_routing_put_voice_mixer),
  11236. };
  11237. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  11238. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11239. MSM_BACKEND_DAI_MI2S_RX,
  11240. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11241. msm_routing_put_voice_mixer),
  11242. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11243. MSM_BACKEND_DAI_MI2S_RX,
  11244. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11245. msm_routing_put_voice_mixer),
  11246. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11247. MSM_BACKEND_DAI_MI2S_RX,
  11248. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11249. msm_routing_put_voice_mixer),
  11250. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11251. MSM_BACKEND_DAI_MI2S_RX,
  11252. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11253. msm_routing_put_voice_mixer),
  11254. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11255. MSM_BACKEND_DAI_MI2S_RX,
  11256. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11257. msm_routing_put_voice_mixer),
  11258. };
  11259. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  11260. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11261. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11262. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11263. msm_routing_put_voice_mixer),
  11264. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11265. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11266. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11267. msm_routing_put_voice_mixer),
  11268. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11269. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11270. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11271. msm_routing_put_voice_mixer),
  11272. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11273. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11274. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11275. msm_routing_put_voice_mixer),
  11276. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11277. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11278. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11279. msm_routing_put_voice_mixer),
  11280. };
  11281. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  11282. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11283. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11284. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11285. msm_routing_put_voice_mixer),
  11286. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11287. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11288. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11289. msm_routing_put_voice_mixer),
  11290. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11291. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11292. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11293. msm_routing_put_voice_mixer),
  11294. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11295. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11296. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11297. msm_routing_put_voice_mixer),
  11298. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11299. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11300. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11301. msm_routing_put_voice_mixer),
  11302. };
  11303. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  11304. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11305. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11306. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11307. msm_routing_put_voice_mixer),
  11308. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11309. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11310. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11311. msm_routing_put_voice_mixer),
  11312. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11313. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11314. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11315. msm_routing_put_voice_mixer),
  11316. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11317. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11318. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11319. msm_routing_put_voice_mixer),
  11320. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11321. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11322. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11323. msm_routing_put_voice_mixer),
  11324. };
  11325. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  11326. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11327. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11328. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11329. msm_routing_put_voice_mixer),
  11330. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11331. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11332. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11333. msm_routing_put_voice_mixer),
  11334. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11335. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11336. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11337. msm_routing_put_voice_mixer),
  11338. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11339. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11340. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11341. msm_routing_put_voice_mixer),
  11342. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11343. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11344. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11345. msm_routing_put_voice_mixer),
  11346. };
  11347. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  11348. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11349. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11350. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11351. msm_routing_put_voice_mixer),
  11352. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11353. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11354. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11355. msm_routing_put_voice_mixer),
  11356. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11357. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11358. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11359. msm_routing_put_voice_mixer),
  11360. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11361. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11362. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11363. msm_routing_put_voice_mixer),
  11364. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11365. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11366. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11367. msm_routing_put_voice_mixer),
  11368. };
  11369. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  11370. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11371. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11372. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11373. msm_routing_put_voice_mixer),
  11374. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11375. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11376. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11377. msm_routing_put_voice_mixer),
  11378. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11379. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11380. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11381. msm_routing_put_voice_mixer),
  11382. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11383. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11384. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11385. msm_routing_put_voice_mixer),
  11386. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11387. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11388. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11389. msm_routing_put_voice_mixer),
  11390. };
  11391. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  11392. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11393. MSM_BACKEND_DAI_AFE_PCM_RX,
  11394. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11395. msm_routing_put_voice_mixer),
  11396. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11397. MSM_BACKEND_DAI_AFE_PCM_RX,
  11398. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11399. msm_routing_put_voice_mixer),
  11400. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11401. MSM_BACKEND_DAI_AFE_PCM_RX,
  11402. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11403. msm_routing_put_voice_mixer),
  11404. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11405. MSM_BACKEND_DAI_AFE_PCM_RX,
  11406. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11407. msm_routing_put_voice_mixer),
  11408. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11409. MSM_BACKEND_DAI_AFE_PCM_RX,
  11410. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11411. msm_routing_put_voice_mixer),
  11412. };
  11413. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  11414. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11415. MSM_BACKEND_DAI_AUXPCM_RX,
  11416. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11417. msm_routing_put_voice_mixer),
  11418. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11419. MSM_BACKEND_DAI_AUXPCM_RX,
  11420. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11421. msm_routing_put_voice_mixer),
  11422. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11423. MSM_BACKEND_DAI_AUXPCM_RX,
  11424. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11425. msm_routing_put_voice_mixer),
  11426. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11427. MSM_BACKEND_DAI_AUXPCM_RX,
  11428. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11429. msm_routing_put_voice_mixer),
  11430. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11431. MSM_BACKEND_DAI_AUXPCM_RX,
  11432. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11433. msm_routing_put_voice_mixer),
  11434. };
  11435. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  11436. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11437. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11438. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11439. msm_routing_put_voice_mixer),
  11440. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11441. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11442. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11443. msm_routing_put_voice_mixer),
  11444. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11445. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11446. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11447. msm_routing_put_voice_mixer),
  11448. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11449. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11450. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11451. msm_routing_put_voice_mixer),
  11452. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11453. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11454. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11455. msm_routing_put_voice_mixer),
  11456. };
  11457. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  11458. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11459. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11460. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11461. msm_routing_put_voice_mixer),
  11462. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11463. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11464. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11465. msm_routing_put_voice_mixer),
  11466. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11467. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11468. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11469. msm_routing_put_voice_mixer),
  11470. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11471. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11472. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11473. msm_routing_put_voice_mixer),
  11474. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11475. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11476. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11477. msm_routing_put_voice_mixer),
  11478. };
  11479. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  11480. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11481. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11482. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11483. msm_routing_put_voice_mixer),
  11484. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11485. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11486. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11487. msm_routing_put_voice_mixer),
  11488. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11489. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11490. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11491. msm_routing_put_voice_mixer),
  11492. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11493. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11494. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11495. msm_routing_put_voice_mixer),
  11496. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11497. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11498. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11499. msm_routing_put_voice_mixer),
  11500. };
  11501. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  11502. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11503. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11504. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11505. msm_routing_put_voice_mixer),
  11506. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11507. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11508. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11509. msm_routing_put_voice_mixer),
  11510. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11511. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11512. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11513. msm_routing_put_voice_mixer),
  11514. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11515. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11516. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11517. msm_routing_put_voice_mixer),
  11518. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11519. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11520. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11521. msm_routing_put_voice_mixer),
  11522. };
  11523. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  11524. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11525. MSM_BACKEND_DAI_HDMI_RX,
  11526. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11527. msm_routing_put_voice_mixer),
  11528. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11529. MSM_BACKEND_DAI_HDMI_RX,
  11530. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11531. msm_routing_put_voice_mixer),
  11532. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11533. MSM_BACKEND_DAI_HDMI_RX,
  11534. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11535. msm_routing_put_voice_mixer),
  11536. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11537. MSM_BACKEND_DAI_HDMI_RX,
  11538. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11539. msm_routing_put_voice_mixer),
  11540. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11541. MSM_BACKEND_DAI_HDMI_RX,
  11542. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11543. msm_routing_put_voice_mixer),
  11544. };
  11545. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  11546. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11547. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  11548. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11549. msm_routing_put_voice_mixer),
  11550. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11551. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  11552. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11553. msm_routing_put_voice_mixer),
  11554. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11555. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  11556. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11557. msm_routing_put_voice_mixer),
  11558. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11559. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  11560. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11561. msm_routing_put_voice_mixer),
  11562. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11563. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  11564. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11565. msm_routing_put_voice_mixer),
  11566. };
  11567. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  11568. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11569. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  11570. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11571. msm_routing_put_voice_mixer),
  11572. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11573. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  11574. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11575. msm_routing_put_voice_mixer),
  11576. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11577. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  11578. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11579. msm_routing_put_voice_mixer),
  11580. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11581. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  11582. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11583. msm_routing_put_voice_mixer),
  11584. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11585. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  11586. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11587. msm_routing_put_voice_mixer),
  11588. };
  11589. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  11590. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11591. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11592. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11593. msm_routing_put_voice_mixer),
  11594. };
  11595. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  11596. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11597. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  11598. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11599. msm_routing_put_voice_mixer),
  11600. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11601. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  11602. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11603. msm_routing_put_voice_mixer),
  11604. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11605. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  11606. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11607. msm_routing_put_voice_mixer),
  11608. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11609. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  11610. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11611. msm_routing_put_voice_mixer),
  11612. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11613. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  11614. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11615. msm_routing_put_voice_mixer),
  11616. };
  11617. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  11618. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11619. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  11620. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11621. msm_routing_put_voice_mixer),
  11622. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11623. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  11624. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11625. msm_routing_put_voice_mixer),
  11626. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11627. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  11628. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11629. msm_routing_put_voice_mixer),
  11630. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11631. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  11632. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11633. msm_routing_put_voice_mixer),
  11634. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11635. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  11636. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11637. msm_routing_put_voice_mixer),
  11638. };
  11639. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  11640. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11641. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  11642. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11643. msm_routing_put_voice_mixer),
  11644. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11645. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  11646. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11647. msm_routing_put_voice_mixer),
  11648. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11649. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  11650. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11651. msm_routing_put_voice_mixer),
  11652. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11653. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  11654. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11655. msm_routing_put_voice_mixer),
  11656. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11657. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  11658. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11659. msm_routing_put_voice_mixer),
  11660. };
  11661. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  11662. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11663. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  11664. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11665. msm_routing_put_voice_mixer),
  11666. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11667. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  11668. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11669. msm_routing_put_voice_mixer),
  11670. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11671. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  11672. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11673. msm_routing_put_voice_mixer),
  11674. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11675. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  11676. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11677. msm_routing_put_voice_mixer),
  11678. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11679. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  11680. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11681. msm_routing_put_voice_mixer),
  11682. };
  11683. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  11684. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11685. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  11686. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11687. msm_routing_put_voice_mixer),
  11688. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11689. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  11690. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11691. msm_routing_put_voice_mixer),
  11692. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11693. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  11694. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11695. msm_routing_put_voice_mixer),
  11696. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11697. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  11698. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11699. msm_routing_put_voice_mixer),
  11700. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11701. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  11702. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11703. msm_routing_put_voice_mixer),
  11704. };
  11705. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  11706. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11707. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  11708. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11709. msm_routing_put_voice_mixer),
  11710. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11711. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  11712. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11713. msm_routing_put_voice_mixer),
  11714. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11715. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  11716. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11717. msm_routing_put_voice_mixer),
  11718. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11719. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  11720. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11721. msm_routing_put_voice_mixer),
  11722. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11723. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  11724. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11725. msm_routing_put_voice_mixer),
  11726. };
  11727. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  11728. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11729. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  11730. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11731. msm_routing_put_voice_mixer),
  11732. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11733. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  11734. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11735. msm_routing_put_voice_mixer),
  11736. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11737. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  11738. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11739. msm_routing_put_voice_mixer),
  11740. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11741. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  11742. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11743. msm_routing_put_voice_mixer),
  11744. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11745. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  11746. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11747. msm_routing_put_voice_mixer),
  11748. };
  11749. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  11750. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11751. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  11752. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11753. msm_routing_put_voice_mixer),
  11754. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11755. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  11756. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11757. msm_routing_put_voice_mixer),
  11758. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11759. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  11760. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11761. msm_routing_put_voice_mixer),
  11762. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11763. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  11764. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11765. msm_routing_put_voice_mixer),
  11766. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11767. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  11768. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11769. msm_routing_put_voice_mixer),
  11770. };
  11771. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  11772. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11773. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  11774. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11775. msm_routing_put_voice_mixer),
  11776. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11777. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  11778. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11779. msm_routing_put_voice_mixer),
  11780. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11781. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  11782. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11783. msm_routing_put_voice_mixer),
  11784. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11785. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  11786. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11787. msm_routing_put_voice_mixer),
  11788. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11789. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  11790. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11791. msm_routing_put_voice_mixer),
  11792. };
  11793. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  11794. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11795. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  11796. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11797. msm_routing_put_voice_mixer),
  11798. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11799. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  11800. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11801. msm_routing_put_voice_mixer),
  11802. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11803. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  11804. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11805. msm_routing_put_voice_mixer),
  11806. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11807. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  11808. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11809. msm_routing_put_voice_mixer),
  11810. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11811. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  11812. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11813. msm_routing_put_voice_mixer),
  11814. };
  11815. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  11816. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11817. MSM_BACKEND_DAI_EXTPROC_RX,
  11818. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11819. msm_routing_put_voice_mixer),
  11820. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11821. MSM_BACKEND_DAI_EXTPROC_RX,
  11822. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11823. msm_routing_put_voice_mixer),
  11824. };
  11825. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  11826. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11827. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11828. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11829. msm_routing_put_voice_mixer),
  11830. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11831. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11832. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11833. msm_routing_put_voice_mixer),
  11834. };
  11835. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  11836. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11837. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11838. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11839. msm_routing_put_voice_mixer),
  11840. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11841. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11842. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11843. msm_routing_put_voice_mixer),
  11844. };
  11845. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  11846. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  11847. MSM_BACKEND_DAI_PRI_I2S_TX,
  11848. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11849. msm_routing_put_voice_mixer),
  11850. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  11851. MSM_BACKEND_DAI_MI2S_TX,
  11852. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11853. msm_routing_put_voice_mixer),
  11854. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  11855. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  11856. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11857. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  11858. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  11859. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11860. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  11861. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  11862. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11863. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  11864. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  11865. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11866. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  11867. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  11868. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11869. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  11870. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  11871. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11872. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  11873. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  11874. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11875. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  11876. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  11877. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11878. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  11879. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  11880. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11881. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  11882. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  11883. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11884. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  11885. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  11886. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11887. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  11888. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  11889. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11890. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  11891. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  11892. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11893. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  11894. MSM_BACKEND_DAI_USB_TX,
  11895. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11896. msm_routing_put_voice_mixer),
  11897. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  11898. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  11899. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11900. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  11901. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  11902. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11903. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  11904. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  11905. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11906. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  11907. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  11908. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11909. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  11910. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  11911. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11912. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  11913. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  11914. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11915. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  11916. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  11917. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11918. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  11919. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  11920. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11921. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  11922. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  11923. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11924. };
  11925. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  11926. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  11927. MSM_BACKEND_DAI_PRI_I2S_TX,
  11928. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11929. msm_routing_put_voice_mixer),
  11930. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  11931. MSM_BACKEND_DAI_MI2S_TX,
  11932. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11933. msm_routing_put_voice_mixer),
  11934. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  11935. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  11936. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11937. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  11938. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  11939. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11940. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  11941. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  11942. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11943. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  11944. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  11945. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11946. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  11947. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  11948. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11949. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  11950. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  11951. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11952. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  11953. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  11954. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11955. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  11956. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  11957. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11958. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  11959. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  11960. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11961. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  11962. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  11963. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11964. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  11965. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  11966. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11967. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  11968. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  11969. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11970. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  11971. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  11972. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11973. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  11974. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  11975. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11976. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  11977. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  11978. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11979. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  11980. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  11981. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11982. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  11983. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  11984. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11985. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  11986. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  11987. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11988. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  11989. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  11990. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11991. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  11992. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  11993. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11994. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  11995. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  11996. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  11997. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  11998. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  11999. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12000. };
  12001. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  12002. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  12003. MSM_BACKEND_DAI_PRI_I2S_TX,
  12004. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12005. msm_routing_put_voice_mixer),
  12006. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  12007. MSM_BACKEND_DAI_MI2S_TX,
  12008. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12009. msm_routing_put_voice_mixer),
  12010. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  12011. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12012. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12013. msm_routing_put_voice_mixer),
  12014. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  12015. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12016. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12017. msm_routing_put_voice_mixer),
  12018. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  12019. MSM_BACKEND_DAI_AFE_PCM_TX,
  12020. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12021. msm_routing_put_voice_mixer),
  12022. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12023. MSM_BACKEND_DAI_AUXPCM_TX,
  12024. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12025. msm_routing_put_voice_mixer),
  12026. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12027. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12028. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12029. msm_routing_put_voice_mixer),
  12030. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12031. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12032. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12033. msm_routing_put_voice_mixer),
  12034. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12035. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12036. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12037. msm_routing_put_voice_mixer),
  12038. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12039. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12040. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12041. msm_routing_put_voice_mixer),
  12042. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  12043. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12044. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12045. msm_routing_put_voice_mixer),
  12046. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  12047. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12048. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12049. msm_routing_put_voice_mixer),
  12050. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  12051. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12052. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12053. msm_routing_put_voice_mixer),
  12054. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  12055. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12056. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12057. msm_routing_put_voice_mixer),
  12058. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  12059. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12060. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12061. msm_routing_put_voice_mixer),
  12062. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  12063. MSM_BACKEND_DAI_USB_TX,
  12064. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12065. msm_routing_put_voice_mixer),
  12066. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12067. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12068. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12069. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12070. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12071. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12072. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12073. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12074. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12075. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12076. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12077. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12078. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  12079. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  12080. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12081. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  12082. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  12083. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12084. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  12085. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  12086. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12087. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  12088. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  12089. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12090. };
  12091. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  12092. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12093. MSM_BACKEND_DAI_EXTPROC_TX,
  12094. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12095. msm_routing_put_voice_stub_mixer),
  12096. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12097. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12098. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12099. msm_routing_put_voice_stub_mixer),
  12100. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12101. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12102. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12103. msm_routing_put_voice_stub_mixer),
  12104. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12105. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12106. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12107. msm_routing_put_voice_stub_mixer),
  12108. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12109. MSM_BACKEND_DAI_MI2S_TX,
  12110. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12111. msm_routing_put_voice_stub_mixer),
  12112. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12113. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12114. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12115. msm_routing_put_voice_stub_mixer),
  12116. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12117. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12118. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12119. msm_routing_put_voice_stub_mixer),
  12120. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12121. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12122. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12123. msm_routing_put_voice_stub_mixer),
  12124. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12125. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12126. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12127. msm_routing_put_voice_stub_mixer),
  12128. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12129. MSM_BACKEND_DAI_AUXPCM_TX,
  12130. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12131. msm_routing_put_voice_stub_mixer),
  12132. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12133. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12134. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12135. msm_routing_put_voice_stub_mixer),
  12136. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12137. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12138. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12139. msm_routing_put_voice_stub_mixer),
  12140. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12141. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12142. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12143. msm_routing_put_voice_stub_mixer),
  12144. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12145. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12146. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12147. msm_routing_put_voice_stub_mixer),
  12148. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12149. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12150. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12151. msm_routing_put_voice_stub_mixer),
  12152. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12153. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12154. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12155. msm_routing_put_voice_stub_mixer),
  12156. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12157. MSM_BACKEND_DAI_AFE_PCM_TX,
  12158. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12159. msm_routing_put_voice_stub_mixer),
  12160. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12161. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12162. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12163. msm_routing_put_voice_stub_mixer),
  12164. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12165. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12166. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12167. msm_routing_put_voice_stub_mixer),
  12168. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12169. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  12170. 1, 0, msm_routing_get_voice_stub_mixer,
  12171. msm_routing_put_voice_stub_mixer),
  12172. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12173. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  12174. 1, 0, msm_routing_get_voice_stub_mixer,
  12175. msm_routing_put_voice_stub_mixer),
  12176. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12177. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  12178. 1, 0, msm_routing_get_voice_stub_mixer,
  12179. msm_routing_put_voice_stub_mixer),
  12180. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12181. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  12182. 1, 0, msm_routing_get_voice_stub_mixer,
  12183. msm_routing_put_voice_stub_mixer),
  12184. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12185. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  12186. 1, 0, msm_routing_get_voice_stub_mixer,
  12187. msm_routing_put_voice_stub_mixer),
  12188. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12189. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  12190. 1, 0, msm_routing_get_voice_stub_mixer,
  12191. msm_routing_put_voice_stub_mixer),
  12192. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12193. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  12194. 1, 0, msm_routing_get_voice_stub_mixer,
  12195. msm_routing_put_voice_stub_mixer),
  12196. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12197. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  12198. 1, 0, msm_routing_get_voice_stub_mixer,
  12199. msm_routing_put_voice_stub_mixer),
  12200. };
  12201. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  12202. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12203. MSM_BACKEND_DAI_EXTPROC_TX,
  12204. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12205. msm_routing_put_voice_stub_mixer),
  12206. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12207. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12208. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12209. msm_routing_put_voice_stub_mixer),
  12210. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12211. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12212. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12213. msm_routing_put_voice_stub_mixer),
  12214. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12215. MSM_BACKEND_DAI_AUXPCM_TX,
  12216. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12217. msm_routing_put_voice_stub_mixer),
  12218. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12219. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12220. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12221. msm_routing_put_voice_stub_mixer),
  12222. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12223. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12224. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12225. msm_routing_put_voice_stub_mixer),
  12226. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12227. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12228. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12229. msm_routing_put_voice_stub_mixer),
  12230. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12231. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12232. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12233. msm_routing_put_voice_stub_mixer),
  12234. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12235. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12236. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12237. msm_routing_put_voice_stub_mixer),
  12238. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12239. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12240. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12241. msm_routing_put_voice_stub_mixer),
  12242. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12243. MSM_BACKEND_DAI_AFE_PCM_TX,
  12244. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12245. msm_routing_put_voice_stub_mixer),
  12246. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12247. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12248. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12249. msm_routing_put_voice_stub_mixer),
  12250. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12251. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12252. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12253. msm_routing_put_voice_stub_mixer),
  12254. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12255. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12256. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12257. msm_routing_put_voice_stub_mixer),
  12258. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12259. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12260. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12261. msm_routing_put_voice_stub_mixer),
  12262. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12263. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  12264. 1, 0, msm_routing_get_voice_stub_mixer,
  12265. msm_routing_put_voice_stub_mixer),
  12266. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12267. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  12268. 1, 0, msm_routing_get_voice_stub_mixer,
  12269. msm_routing_put_voice_stub_mixer),
  12270. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12271. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  12272. 1, 0, msm_routing_get_voice_stub_mixer,
  12273. msm_routing_put_voice_stub_mixer),
  12274. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12275. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  12276. 1, 0, msm_routing_get_voice_stub_mixer,
  12277. msm_routing_put_voice_stub_mixer),
  12278. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12279. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  12280. 1, 0, msm_routing_get_voice_stub_mixer,
  12281. msm_routing_put_voice_stub_mixer),
  12282. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12283. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  12284. 1, 0, msm_routing_get_voice_stub_mixer,
  12285. msm_routing_put_voice_stub_mixer),
  12286. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12287. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  12288. 1, 0, msm_routing_get_voice_stub_mixer,
  12289. msm_routing_put_voice_stub_mixer),
  12290. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12291. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  12292. 1, 0, msm_routing_get_voice_stub_mixer,
  12293. msm_routing_put_voice_stub_mixer),
  12294. };
  12295. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  12296. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12297. MSM_BACKEND_DAI_EXTPROC_TX,
  12298. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12299. msm_routing_put_voice_stub_mixer),
  12300. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12301. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12302. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12303. msm_routing_put_voice_stub_mixer),
  12304. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12305. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12306. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12307. msm_routing_put_voice_stub_mixer),
  12308. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12309. MSM_BACKEND_DAI_AUXPCM_TX,
  12310. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12311. msm_routing_put_voice_stub_mixer),
  12312. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12313. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12314. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12315. msm_routing_put_voice_stub_mixer),
  12316. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12317. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12318. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12319. msm_routing_put_voice_stub_mixer),
  12320. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12321. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12322. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12323. msm_routing_put_voice_stub_mixer),
  12324. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12325. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12326. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12327. msm_routing_put_voice_stub_mixer),
  12328. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12329. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12330. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12331. msm_routing_put_voice_stub_mixer),
  12332. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12333. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12334. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12335. msm_routing_put_voice_stub_mixer),
  12336. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12337. MSM_BACKEND_DAI_AFE_PCM_TX,
  12338. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12339. msm_routing_put_voice_stub_mixer),
  12340. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12341. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12342. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12343. msm_routing_put_voice_stub_mixer),
  12344. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12345. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12346. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12347. msm_routing_put_voice_stub_mixer),
  12348. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12349. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12350. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12351. msm_routing_put_voice_stub_mixer),
  12352. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12353. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12354. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12355. msm_routing_put_voice_stub_mixer),
  12356. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12357. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  12358. 1, 0, msm_routing_get_voice_stub_mixer,
  12359. msm_routing_put_voice_stub_mixer),
  12360. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12361. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  12362. 1, 0, msm_routing_get_voice_stub_mixer,
  12363. msm_routing_put_voice_stub_mixer),
  12364. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12365. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  12366. 1, 0, msm_routing_get_voice_stub_mixer,
  12367. msm_routing_put_voice_stub_mixer),
  12368. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12369. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  12370. 1, 0, msm_routing_get_voice_stub_mixer,
  12371. msm_routing_put_voice_stub_mixer),
  12372. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12373. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  12374. 1, 0, msm_routing_get_voice_stub_mixer,
  12375. msm_routing_put_voice_stub_mixer),
  12376. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12377. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  12378. 1, 0, msm_routing_get_voice_stub_mixer,
  12379. msm_routing_put_voice_stub_mixer),
  12380. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12381. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  12382. 1, 0, msm_routing_get_voice_stub_mixer,
  12383. msm_routing_put_voice_stub_mixer),
  12384. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12385. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  12386. 1, 0, msm_routing_get_voice_stub_mixer,
  12387. msm_routing_put_voice_stub_mixer),
  12388. };
  12389. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  12390. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  12391. MSM_BACKEND_DAI_PRI_I2S_TX,
  12392. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12393. msm_routing_put_voice_mixer),
  12394. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  12395. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12396. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12397. msm_routing_put_voice_mixer),
  12398. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  12399. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12400. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  12401. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12402. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  12403. MSM_BACKEND_DAI_AFE_PCM_TX,
  12404. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12405. msm_routing_put_voice_mixer),
  12406. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12407. MSM_BACKEND_DAI_AUXPCM_TX,
  12408. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12409. msm_routing_put_voice_mixer),
  12410. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12411. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12412. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12413. msm_routing_put_voice_mixer),
  12414. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12415. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12416. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12417. msm_routing_put_voice_mixer),
  12418. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12419. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12420. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12421. msm_routing_put_voice_mixer),
  12422. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12423. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12424. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12425. msm_routing_put_voice_mixer),
  12426. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  12427. MSM_BACKEND_DAI_MI2S_TX,
  12428. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12429. msm_routing_put_voice_mixer),
  12430. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12431. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12432. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12433. msm_routing_put_voice_mixer),
  12434. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12435. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12436. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12437. msm_routing_put_voice_mixer),
  12438. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12439. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12440. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12441. msm_routing_put_voice_mixer),
  12442. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  12443. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12444. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12445. msm_routing_put_voice_mixer),
  12446. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  12447. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12448. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12449. msm_routing_put_voice_mixer),
  12450. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  12451. MSM_BACKEND_DAI_USB_TX,
  12452. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12453. msm_routing_put_voice_mixer),
  12454. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  12455. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  12456. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12457. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  12458. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  12459. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12460. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  12461. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  12462. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12463. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  12464. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  12465. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12466. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  12467. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  12468. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12469. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  12470. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  12471. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12472. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  12473. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  12474. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12475. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  12476. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  12477. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12478. };
  12479. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  12480. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12481. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12482. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12483. msm_routing_put_port_mixer),
  12484. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12485. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12486. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12487. msm_routing_put_port_mixer),
  12488. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12489. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12490. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12491. msm_routing_put_port_mixer),
  12492. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12493. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12494. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12495. msm_routing_put_port_mixer),
  12496. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12497. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12498. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12499. msm_routing_put_port_mixer),
  12500. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12501. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12502. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12503. msm_routing_put_port_mixer),
  12504. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12505. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12506. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  12507. msm_routing_put_port_mixer),
  12508. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12509. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12510. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  12511. msm_routing_put_port_mixer),
  12512. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12513. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12514. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  12515. msm_routing_put_port_mixer),
  12516. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12517. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12518. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  12519. msm_routing_put_port_mixer),
  12520. };
  12521. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  12522. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12523. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12524. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12525. msm_routing_put_port_mixer),
  12526. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12527. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12528. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12529. msm_routing_put_port_mixer),
  12530. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12531. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12532. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12533. msm_routing_put_port_mixer),
  12534. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12535. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12536. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12537. msm_routing_put_port_mixer),
  12538. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12539. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12540. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12541. msm_routing_put_port_mixer),
  12542. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12543. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12544. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12545. msm_routing_put_port_mixer),
  12546. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12547. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12548. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  12549. msm_routing_put_port_mixer),
  12550. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12551. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12552. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  12553. msm_routing_put_port_mixer),
  12554. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12555. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12556. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  12557. msm_routing_put_port_mixer),
  12558. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12559. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12560. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  12561. msm_routing_put_port_mixer),
  12562. };
  12563. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  12564. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12565. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12566. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  12567. msm_routing_put_port_mixer),
  12568. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12569. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12570. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12571. msm_routing_put_port_mixer),
  12572. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12573. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12574. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  12575. msm_routing_put_port_mixer),
  12576. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12577. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12578. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  12579. msm_routing_put_port_mixer),
  12580. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12581. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12582. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  12583. msm_routing_put_port_mixer),
  12584. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12585. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12586. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12587. msm_routing_put_port_mixer),
  12588. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12589. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12590. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12591. msm_routing_put_port_mixer),
  12592. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12593. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12594. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12595. msm_routing_put_port_mixer),
  12596. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12597. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12598. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12599. msm_routing_put_port_mixer),
  12600. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12601. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12602. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12603. msm_routing_put_port_mixer),
  12604. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12605. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12606. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12607. msm_routing_put_port_mixer),
  12608. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12609. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12610. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12611. msm_routing_put_port_mixer),
  12612. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12613. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12614. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12615. msm_routing_put_port_mixer),
  12616. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12617. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12618. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12619. msm_routing_put_port_mixer),
  12620. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12621. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12622. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12623. msm_routing_put_port_mixer),
  12624. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12625. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12626. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12627. msm_routing_put_port_mixer),
  12628. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12629. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12630. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  12631. msm_routing_put_port_mixer),
  12632. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  12633. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12634. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  12635. msm_routing_put_port_mixer),
  12636. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  12637. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12638. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  12639. msm_routing_put_port_mixer),
  12640. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  12641. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12642. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  12643. msm_routing_put_port_mixer),
  12644. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  12645. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12646. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  12647. msm_routing_put_port_mixer),
  12648. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  12649. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12650. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  12651. msm_routing_put_port_mixer),
  12652. };
  12653. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  12654. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12655. MSM_BACKEND_DAI_AUXPCM_RX,
  12656. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12657. msm_routing_put_port_mixer),
  12658. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12659. MSM_BACKEND_DAI_AUXPCM_RX,
  12660. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12661. msm_routing_put_port_mixer),
  12662. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12663. MSM_BACKEND_DAI_AUXPCM_RX,
  12664. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  12665. msm_routing_put_port_mixer),
  12666. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12667. MSM_BACKEND_DAI_AUXPCM_RX,
  12668. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12669. msm_routing_put_port_mixer),
  12670. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12671. MSM_BACKEND_DAI_AUXPCM_RX,
  12672. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  12673. msm_routing_put_port_mixer),
  12674. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12675. MSM_BACKEND_DAI_AUXPCM_RX,
  12676. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12677. msm_routing_put_port_mixer),
  12678. };
  12679. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  12680. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12681. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12682. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12683. msm_routing_put_port_mixer),
  12684. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12685. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12686. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12687. msm_routing_put_port_mixer),
  12688. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12689. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12690. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12691. msm_routing_put_port_mixer),
  12692. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12693. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12694. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12695. msm_routing_put_port_mixer),
  12696. };
  12697. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  12698. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12699. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12700. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12701. msm_routing_put_port_mixer),
  12702. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12703. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12704. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12705. msm_routing_put_port_mixer),
  12706. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12707. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12708. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12709. msm_routing_put_port_mixer),
  12710. };
  12711. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  12712. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12713. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12714. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12715. msm_routing_put_port_mixer),
  12716. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12717. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12718. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12719. msm_routing_put_port_mixer),
  12720. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12721. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12722. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12723. msm_routing_put_port_mixer),
  12724. };
  12725. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  12726. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12727. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12728. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12729. msm_routing_put_port_mixer),
  12730. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12731. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12732. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12733. msm_routing_put_port_mixer),
  12734. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12735. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12736. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12737. msm_routing_put_port_mixer),
  12738. };
  12739. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  12740. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12741. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12742. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  12743. msm_routing_put_port_mixer),
  12744. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12745. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12746. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  12747. msm_routing_put_port_mixer),
  12748. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12749. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12750. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12751. msm_routing_put_port_mixer),
  12752. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12753. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12754. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12755. msm_routing_put_port_mixer),
  12756. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12757. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12758. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12759. msm_routing_put_port_mixer),
  12760. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12761. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12762. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12763. msm_routing_put_port_mixer),
  12764. };
  12765. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  12766. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  12767. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12768. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  12769. msm_routing_put_port_mixer),
  12770. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12771. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12772. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12773. msm_routing_put_port_mixer),
  12774. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  12775. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12776. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  12777. msm_routing_put_port_mixer),
  12778. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  12779. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12780. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  12781. msm_routing_put_port_mixer),
  12782. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  12783. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12784. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  12785. msm_routing_put_port_mixer),
  12786. };
  12787. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  12788. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12789. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12790. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  12791. msm_routing_put_port_mixer),
  12792. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12793. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12794. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12795. msm_routing_put_port_mixer),
  12796. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12797. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12798. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  12799. msm_routing_put_port_mixer),
  12800. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12801. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12802. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  12803. msm_routing_put_port_mixer),
  12804. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12805. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12806. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  12807. msm_routing_put_port_mixer),
  12808. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12809. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12810. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12811. msm_routing_put_port_mixer),
  12812. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12813. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12814. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12815. msm_routing_put_port_mixer),
  12816. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12817. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12818. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12819. msm_routing_put_port_mixer),
  12820. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12821. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12822. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12823. msm_routing_put_port_mixer),
  12824. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12825. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12826. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12827. msm_routing_put_port_mixer),
  12828. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12829. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12830. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12831. msm_routing_put_port_mixer),
  12832. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12833. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12834. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  12835. msm_routing_put_port_mixer),
  12836. };
  12837. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  12838. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12839. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  12840. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  12841. msm_routing_put_port_mixer),
  12842. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12843. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  12844. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12845. msm_routing_put_port_mixer),
  12846. };
  12847. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  12848. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12849. MSM_BACKEND_DAI_AFE_PCM_RX,
  12850. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  12851. msm_routing_put_port_mixer),
  12852. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12853. MSM_BACKEND_DAI_AFE_PCM_RX,
  12854. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  12855. msm_routing_put_port_mixer),
  12856. };
  12857. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  12858. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12859. MSM_BACKEND_DAI_HDMI_RX,
  12860. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12861. msm_routing_put_port_mixer),
  12862. };
  12863. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  12864. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12865. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  12866. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12867. msm_routing_put_port_mixer),
  12868. };
  12869. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  12870. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12871. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  12872. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12873. msm_routing_put_port_mixer),
  12874. };
  12875. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  12876. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12877. MSM_BACKEND_DAI_SEC_I2S_RX,
  12878. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12879. msm_routing_put_port_mixer),
  12880. };
  12881. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  12882. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12883. MSM_BACKEND_DAI_MI2S_RX,
  12884. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  12885. msm_routing_put_port_mixer),
  12886. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12887. MSM_BACKEND_DAI_MI2S_RX,
  12888. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12889. msm_routing_put_port_mixer),
  12890. };
  12891. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  12892. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12893. MSM_BACKEND_DAI_PRI_MI2S_RX,
  12894. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12895. msm_routing_put_port_mixer),
  12896. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12897. MSM_BACKEND_DAI_PRI_MI2S_RX,
  12898. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12899. msm_routing_put_port_mixer),
  12900. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12901. MSM_BACKEND_DAI_PRI_MI2S_RX,
  12902. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  12903. msm_routing_put_port_mixer),
  12904. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12905. MSM_BACKEND_DAI_PRI_MI2S_RX,
  12906. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12907. msm_routing_put_port_mixer),
  12908. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12909. MSM_BACKEND_DAI_PRI_MI2S_RX,
  12910. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  12911. msm_routing_put_port_mixer),
  12912. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12913. MSM_BACKEND_DAI_PRI_MI2S_RX,
  12914. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12915. msm_routing_put_port_mixer),
  12916. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12917. MSM_BACKEND_DAI_PRI_MI2S_RX,
  12918. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12919. msm_routing_put_port_mixer),
  12920. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12921. MSM_BACKEND_DAI_PRI_MI2S_RX,
  12922. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12923. msm_routing_put_port_mixer),
  12924. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12925. MSM_BACKEND_DAI_PRI_MI2S_RX,
  12926. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  12927. msm_routing_put_port_mixer),
  12928. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12929. MSM_BACKEND_DAI_PRI_MI2S_RX,
  12930. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12931. msm_routing_put_port_mixer),
  12932. };
  12933. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  12934. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12935. MSM_BACKEND_DAI_USB_RX,
  12936. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  12937. msm_routing_put_port_mixer),
  12938. };
  12939. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  12940. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12941. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12942. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12943. msm_routing_put_port_mixer),
  12944. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12945. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12946. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12947. msm_routing_put_port_mixer),
  12948. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12949. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12950. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  12951. msm_routing_put_port_mixer),
  12952. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12953. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12954. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  12955. msm_routing_put_port_mixer),
  12956. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12957. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12958. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12959. msm_routing_put_port_mixer),
  12960. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12961. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12962. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12963. msm_routing_put_port_mixer),
  12964. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12965. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12966. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12967. msm_routing_put_port_mixer),
  12968. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12969. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12970. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12971. msm_routing_put_port_mixer),
  12972. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12973. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12974. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  12975. msm_routing_put_port_mixer),
  12976. };
  12977. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  12978. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12979. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12980. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12981. msm_routing_put_port_mixer),
  12982. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12983. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12984. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12985. msm_routing_put_port_mixer),
  12986. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12987. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12988. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  12989. msm_routing_put_port_mixer),
  12990. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12991. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12992. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12993. msm_routing_put_port_mixer),
  12994. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12995. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12996. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  12997. msm_routing_put_port_mixer),
  12998. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12999. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13000. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13001. msm_routing_put_port_mixer),
  13002. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13003. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13004. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13005. msm_routing_put_port_mixer),
  13006. };
  13007. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  13008. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13009. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13010. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13011. msm_routing_get_port_mixer,
  13012. msm_routing_put_port_mixer),
  13013. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13014. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13015. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13016. msm_routing_get_port_mixer,
  13017. msm_routing_put_port_mixer),
  13018. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13019. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13020. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13021. msm_routing_get_port_mixer,
  13022. msm_routing_put_port_mixer),
  13023. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13024. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13025. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13026. msm_routing_get_port_mixer,
  13027. msm_routing_put_port_mixer),
  13028. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13029. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13030. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13031. msm_routing_get_port_mixer,
  13032. msm_routing_put_port_mixer),
  13033. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13034. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13035. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13036. msm_routing_get_port_mixer,
  13037. msm_routing_put_port_mixer),
  13038. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13039. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13040. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13041. msm_routing_get_port_mixer,
  13042. msm_routing_put_port_mixer),
  13043. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13044. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13045. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13046. msm_routing_get_port_mixer,
  13047. msm_routing_put_port_mixer),
  13048. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13049. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13050. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13051. msm_routing_get_port_mixer,
  13052. msm_routing_put_port_mixer),
  13053. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13054. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13055. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13056. msm_routing_get_port_mixer,
  13057. msm_routing_put_port_mixer),
  13058. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13059. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13060. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13061. msm_routing_get_port_mixer,
  13062. msm_routing_put_port_mixer),
  13063. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13064. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13065. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13066. msm_routing_get_port_mixer,
  13067. msm_routing_put_port_mixer),
  13068. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13069. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13070. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13071. msm_routing_get_port_mixer,
  13072. msm_routing_put_port_mixer),
  13073. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13074. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13075. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13076. msm_routing_get_port_mixer,
  13077. msm_routing_put_port_mixer),
  13078. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13079. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13080. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13081. msm_routing_get_port_mixer,
  13082. msm_routing_put_port_mixer),
  13083. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13084. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13085. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13086. msm_routing_get_port_mixer,
  13087. msm_routing_put_port_mixer),
  13088. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13089. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13090. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13091. msm_routing_get_port_mixer,
  13092. msm_routing_put_port_mixer),
  13093. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13094. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13095. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13096. msm_routing_get_port_mixer,
  13097. msm_routing_put_port_mixer),
  13098. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13099. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13100. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13101. msm_routing_get_port_mixer,
  13102. msm_routing_put_port_mixer),
  13103. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13104. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13105. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13106. msm_routing_get_port_mixer,
  13107. msm_routing_put_port_mixer),
  13108. };
  13109. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  13110. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13111. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13112. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13113. msm_routing_get_port_mixer,
  13114. msm_routing_put_port_mixer),
  13115. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13116. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13117. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13118. msm_routing_get_port_mixer,
  13119. msm_routing_put_port_mixer),
  13120. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13121. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13122. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13123. msm_routing_get_port_mixer,
  13124. msm_routing_put_port_mixer),
  13125. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13126. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13127. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13128. msm_routing_get_port_mixer,
  13129. msm_routing_put_port_mixer),
  13130. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13131. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13132. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13133. msm_routing_get_port_mixer,
  13134. msm_routing_put_port_mixer),
  13135. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13136. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13137. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13138. msm_routing_get_port_mixer,
  13139. msm_routing_put_port_mixer),
  13140. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13141. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13142. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13143. msm_routing_get_port_mixer,
  13144. msm_routing_put_port_mixer),
  13145. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13146. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13147. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13148. msm_routing_get_port_mixer,
  13149. msm_routing_put_port_mixer),
  13150. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13151. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13152. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13153. msm_routing_get_port_mixer,
  13154. msm_routing_put_port_mixer),
  13155. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13156. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13157. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13158. msm_routing_get_port_mixer,
  13159. msm_routing_put_port_mixer),
  13160. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13161. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13162. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13163. msm_routing_get_port_mixer,
  13164. msm_routing_put_port_mixer),
  13165. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13166. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13167. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13168. msm_routing_get_port_mixer,
  13169. msm_routing_put_port_mixer),
  13170. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13171. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13172. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13173. msm_routing_get_port_mixer,
  13174. msm_routing_put_port_mixer),
  13175. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13176. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13177. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13178. msm_routing_get_port_mixer,
  13179. msm_routing_put_port_mixer),
  13180. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13181. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13182. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13183. msm_routing_get_port_mixer,
  13184. msm_routing_put_port_mixer),
  13185. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13186. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13187. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13188. msm_routing_get_port_mixer,
  13189. msm_routing_put_port_mixer),
  13190. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13191. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13192. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13193. msm_routing_get_port_mixer,
  13194. msm_routing_put_port_mixer),
  13195. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13196. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13197. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13198. msm_routing_get_port_mixer,
  13199. msm_routing_put_port_mixer),
  13200. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13201. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13202. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13203. msm_routing_get_port_mixer,
  13204. msm_routing_put_port_mixer),
  13205. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13206. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13207. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13208. msm_routing_get_port_mixer,
  13209. msm_routing_put_port_mixer),
  13210. };
  13211. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  13212. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13213. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13214. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13215. 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_PRI_TDM_RX_2,
  13219. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13220. msm_routing_get_port_mixer,
  13221. msm_routing_put_port_mixer),
  13222. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13223. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13224. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13225. msm_routing_get_port_mixer,
  13226. msm_routing_put_port_mixer),
  13227. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13228. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13229. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13230. msm_routing_get_port_mixer,
  13231. msm_routing_put_port_mixer),
  13232. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13233. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13234. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13235. msm_routing_get_port_mixer,
  13236. msm_routing_put_port_mixer),
  13237. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13238. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13239. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13240. msm_routing_get_port_mixer,
  13241. msm_routing_put_port_mixer),
  13242. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13243. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13244. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13245. msm_routing_get_port_mixer,
  13246. msm_routing_put_port_mixer),
  13247. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13248. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13249. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13250. msm_routing_get_port_mixer,
  13251. msm_routing_put_port_mixer),
  13252. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13253. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13254. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13255. msm_routing_get_port_mixer,
  13256. msm_routing_put_port_mixer),
  13257. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13258. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13259. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13260. msm_routing_get_port_mixer,
  13261. msm_routing_put_port_mixer),
  13262. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13263. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13264. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13265. msm_routing_get_port_mixer,
  13266. msm_routing_put_port_mixer),
  13267. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13268. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13269. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13270. msm_routing_get_port_mixer,
  13271. msm_routing_put_port_mixer),
  13272. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13273. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13274. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13275. msm_routing_get_port_mixer,
  13276. msm_routing_put_port_mixer),
  13277. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13278. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13279. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13280. msm_routing_get_port_mixer,
  13281. msm_routing_put_port_mixer),
  13282. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13283. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13284. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13285. msm_routing_get_port_mixer,
  13286. msm_routing_put_port_mixer),
  13287. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13288. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13289. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13290. msm_routing_get_port_mixer,
  13291. msm_routing_put_port_mixer),
  13292. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13293. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13294. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13295. msm_routing_get_port_mixer,
  13296. msm_routing_put_port_mixer),
  13297. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13298. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13299. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13300. msm_routing_get_port_mixer,
  13301. msm_routing_put_port_mixer),
  13302. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13303. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13304. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13305. msm_routing_get_port_mixer,
  13306. msm_routing_put_port_mixer),
  13307. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13308. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13309. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13310. msm_routing_get_port_mixer,
  13311. msm_routing_put_port_mixer),
  13312. };
  13313. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  13314. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13315. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13316. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13317. msm_routing_get_port_mixer,
  13318. msm_routing_put_port_mixer),
  13319. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13320. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13321. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13322. msm_routing_get_port_mixer,
  13323. msm_routing_put_port_mixer),
  13324. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13325. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13326. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13327. msm_routing_get_port_mixer,
  13328. msm_routing_put_port_mixer),
  13329. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13330. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13331. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13332. msm_routing_get_port_mixer,
  13333. msm_routing_put_port_mixer),
  13334. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13335. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13336. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13337. msm_routing_get_port_mixer,
  13338. msm_routing_put_port_mixer),
  13339. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13340. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13341. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13342. msm_routing_get_port_mixer,
  13343. msm_routing_put_port_mixer),
  13344. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13345. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13346. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13347. msm_routing_get_port_mixer,
  13348. msm_routing_put_port_mixer),
  13349. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13350. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13351. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13352. msm_routing_get_port_mixer,
  13353. msm_routing_put_port_mixer),
  13354. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13355. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13356. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13357. msm_routing_get_port_mixer,
  13358. msm_routing_put_port_mixer),
  13359. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13360. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13361. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13362. msm_routing_get_port_mixer,
  13363. msm_routing_put_port_mixer),
  13364. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13365. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13366. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13367. msm_routing_get_port_mixer,
  13368. msm_routing_put_port_mixer),
  13369. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13370. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13371. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13372. msm_routing_get_port_mixer,
  13373. msm_routing_put_port_mixer),
  13374. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13375. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13376. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13377. msm_routing_get_port_mixer,
  13378. msm_routing_put_port_mixer),
  13379. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13380. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13381. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13382. msm_routing_get_port_mixer,
  13383. msm_routing_put_port_mixer),
  13384. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13385. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13386. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13387. msm_routing_get_port_mixer,
  13388. msm_routing_put_port_mixer),
  13389. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13390. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13391. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13392. msm_routing_get_port_mixer,
  13393. msm_routing_put_port_mixer),
  13394. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13395. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13396. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13397. msm_routing_get_port_mixer,
  13398. msm_routing_put_port_mixer),
  13399. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13400. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13401. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13402. msm_routing_get_port_mixer,
  13403. msm_routing_put_port_mixer),
  13404. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13405. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13406. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13407. msm_routing_get_port_mixer,
  13408. msm_routing_put_port_mixer),
  13409. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13410. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13411. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13412. msm_routing_get_port_mixer,
  13413. msm_routing_put_port_mixer),
  13414. };
  13415. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  13416. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13417. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13418. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13419. msm_routing_get_port_mixer,
  13420. msm_routing_put_port_mixer),
  13421. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13422. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13423. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13424. msm_routing_get_port_mixer,
  13425. msm_routing_put_port_mixer),
  13426. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13427. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13428. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13429. msm_routing_get_port_mixer,
  13430. msm_routing_put_port_mixer),
  13431. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13433. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13434. msm_routing_get_port_mixer,
  13435. msm_routing_put_port_mixer),
  13436. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13437. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13438. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13439. msm_routing_get_port_mixer,
  13440. msm_routing_put_port_mixer),
  13441. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13442. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13443. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13444. msm_routing_get_port_mixer,
  13445. msm_routing_put_port_mixer),
  13446. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13447. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13448. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13449. msm_routing_get_port_mixer,
  13450. msm_routing_put_port_mixer),
  13451. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13452. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13453. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13454. msm_routing_get_port_mixer,
  13455. msm_routing_put_port_mixer),
  13456. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13457. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13458. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  13459. msm_routing_get_port_mixer,
  13460. msm_routing_put_port_mixer),
  13461. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13462. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13463. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  13464. msm_routing_get_port_mixer,
  13465. msm_routing_put_port_mixer),
  13466. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13467. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13468. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  13469. msm_routing_get_port_mixer,
  13470. msm_routing_put_port_mixer),
  13471. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13473. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  13474. msm_routing_get_port_mixer,
  13475. msm_routing_put_port_mixer),
  13476. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13477. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13478. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13479. msm_routing_get_port_mixer,
  13480. msm_routing_put_port_mixer),
  13481. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13482. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13483. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13484. msm_routing_get_port_mixer,
  13485. msm_routing_put_port_mixer),
  13486. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13487. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13488. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13489. msm_routing_get_port_mixer,
  13490. msm_routing_put_port_mixer),
  13491. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13492. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13493. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13494. msm_routing_get_port_mixer,
  13495. msm_routing_put_port_mixer),
  13496. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13497. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13498. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13499. msm_routing_get_port_mixer,
  13500. msm_routing_put_port_mixer),
  13501. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13502. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13503. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13504. msm_routing_get_port_mixer,
  13505. msm_routing_put_port_mixer),
  13506. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13507. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13508. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13509. msm_routing_get_port_mixer,
  13510. msm_routing_put_port_mixer),
  13511. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13512. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  13513. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13514. msm_routing_get_port_mixer,
  13515. msm_routing_put_port_mixer),
  13516. };
  13517. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  13518. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13519. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13520. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13521. msm_routing_get_port_mixer,
  13522. msm_routing_put_port_mixer),
  13523. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13524. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13525. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13526. msm_routing_get_port_mixer,
  13527. msm_routing_put_port_mixer),
  13528. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13529. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13530. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13531. msm_routing_get_port_mixer,
  13532. msm_routing_put_port_mixer),
  13533. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13534. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13535. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13536. msm_routing_get_port_mixer,
  13537. msm_routing_put_port_mixer),
  13538. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13539. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13540. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13541. msm_routing_get_port_mixer,
  13542. msm_routing_put_port_mixer),
  13543. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13544. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13545. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13546. msm_routing_get_port_mixer,
  13547. msm_routing_put_port_mixer),
  13548. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13549. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13550. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13551. msm_routing_get_port_mixer,
  13552. msm_routing_put_port_mixer),
  13553. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13554. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13555. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13556. msm_routing_get_port_mixer,
  13557. msm_routing_put_port_mixer),
  13558. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13559. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13560. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  13561. msm_routing_get_port_mixer,
  13562. msm_routing_put_port_mixer),
  13563. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13564. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13565. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  13566. msm_routing_get_port_mixer,
  13567. msm_routing_put_port_mixer),
  13568. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13569. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13570. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  13571. msm_routing_get_port_mixer,
  13572. msm_routing_put_port_mixer),
  13573. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13574. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13575. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  13576. msm_routing_get_port_mixer,
  13577. msm_routing_put_port_mixer),
  13578. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13579. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13580. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13581. msm_routing_get_port_mixer,
  13582. msm_routing_put_port_mixer),
  13583. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13584. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13585. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13586. msm_routing_get_port_mixer,
  13587. msm_routing_put_port_mixer),
  13588. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13589. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13590. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13591. msm_routing_get_port_mixer,
  13592. msm_routing_put_port_mixer),
  13593. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13594. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13595. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13596. msm_routing_get_port_mixer,
  13597. msm_routing_put_port_mixer),
  13598. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13599. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13600. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13601. msm_routing_get_port_mixer,
  13602. msm_routing_put_port_mixer),
  13603. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13604. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13605. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13606. msm_routing_get_port_mixer,
  13607. msm_routing_put_port_mixer),
  13608. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13609. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13610. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13611. msm_routing_get_port_mixer,
  13612. msm_routing_put_port_mixer),
  13613. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13614. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  13615. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13616. msm_routing_get_port_mixer,
  13617. msm_routing_put_port_mixer),
  13618. };
  13619. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  13620. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13621. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13622. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13623. msm_routing_get_port_mixer,
  13624. msm_routing_put_port_mixer),
  13625. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13626. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13627. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13628. msm_routing_get_port_mixer,
  13629. msm_routing_put_port_mixer),
  13630. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13631. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13632. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13633. msm_routing_get_port_mixer,
  13634. msm_routing_put_port_mixer),
  13635. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13636. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13637. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13638. msm_routing_get_port_mixer,
  13639. msm_routing_put_port_mixer),
  13640. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13641. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13642. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13643. msm_routing_get_port_mixer,
  13644. msm_routing_put_port_mixer),
  13645. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13646. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13647. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13648. msm_routing_get_port_mixer,
  13649. msm_routing_put_port_mixer),
  13650. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13651. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13652. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13653. msm_routing_get_port_mixer,
  13654. msm_routing_put_port_mixer),
  13655. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13656. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13657. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13658. msm_routing_get_port_mixer,
  13659. msm_routing_put_port_mixer),
  13660. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13661. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13662. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  13663. msm_routing_get_port_mixer,
  13664. msm_routing_put_port_mixer),
  13665. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13666. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13667. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  13668. msm_routing_get_port_mixer,
  13669. msm_routing_put_port_mixer),
  13670. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13671. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13672. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  13673. msm_routing_get_port_mixer,
  13674. msm_routing_put_port_mixer),
  13675. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13676. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13677. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  13678. msm_routing_get_port_mixer,
  13679. msm_routing_put_port_mixer),
  13680. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13681. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13682. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13683. msm_routing_get_port_mixer,
  13684. msm_routing_put_port_mixer),
  13685. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13686. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13687. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13688. msm_routing_get_port_mixer,
  13689. msm_routing_put_port_mixer),
  13690. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13691. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13692. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13693. msm_routing_get_port_mixer,
  13694. msm_routing_put_port_mixer),
  13695. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13696. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13697. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13698. msm_routing_get_port_mixer,
  13699. msm_routing_put_port_mixer),
  13700. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13701. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13702. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13703. msm_routing_get_port_mixer,
  13704. msm_routing_put_port_mixer),
  13705. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13706. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13707. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13708. msm_routing_get_port_mixer,
  13709. msm_routing_put_port_mixer),
  13710. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13711. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13712. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13713. msm_routing_get_port_mixer,
  13714. msm_routing_put_port_mixer),
  13715. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13716. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  13717. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13718. msm_routing_get_port_mixer,
  13719. msm_routing_put_port_mixer),
  13720. };
  13721. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  13722. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13723. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13724. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13725. msm_routing_get_port_mixer,
  13726. msm_routing_put_port_mixer),
  13727. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13728. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13729. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13730. msm_routing_get_port_mixer,
  13731. msm_routing_put_port_mixer),
  13732. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13733. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13734. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13735. msm_routing_get_port_mixer,
  13736. msm_routing_put_port_mixer),
  13737. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13738. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13739. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13740. msm_routing_get_port_mixer,
  13741. msm_routing_put_port_mixer),
  13742. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13743. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13744. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13745. msm_routing_get_port_mixer,
  13746. msm_routing_put_port_mixer),
  13747. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13748. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13749. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13750. msm_routing_get_port_mixer,
  13751. msm_routing_put_port_mixer),
  13752. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13753. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13754. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13755. msm_routing_get_port_mixer,
  13756. msm_routing_put_port_mixer),
  13757. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13758. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13759. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13760. msm_routing_get_port_mixer,
  13761. msm_routing_put_port_mixer),
  13762. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13763. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13764. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  13765. msm_routing_get_port_mixer,
  13766. msm_routing_put_port_mixer),
  13767. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13768. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13769. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  13770. msm_routing_get_port_mixer,
  13771. msm_routing_put_port_mixer),
  13772. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13773. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13774. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  13775. msm_routing_get_port_mixer,
  13776. msm_routing_put_port_mixer),
  13777. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13778. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13779. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  13780. msm_routing_get_port_mixer,
  13781. msm_routing_put_port_mixer),
  13782. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13783. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13784. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13785. msm_routing_get_port_mixer,
  13786. msm_routing_put_port_mixer),
  13787. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13788. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13789. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13790. msm_routing_get_port_mixer,
  13791. msm_routing_put_port_mixer),
  13792. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13793. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13794. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13795. msm_routing_get_port_mixer,
  13796. msm_routing_put_port_mixer),
  13797. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13798. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13799. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13800. msm_routing_get_port_mixer,
  13801. msm_routing_put_port_mixer),
  13802. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13803. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13804. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13805. msm_routing_get_port_mixer,
  13806. msm_routing_put_port_mixer),
  13807. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13808. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13809. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13810. msm_routing_get_port_mixer,
  13811. msm_routing_put_port_mixer),
  13812. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13813. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13814. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13815. msm_routing_get_port_mixer,
  13816. msm_routing_put_port_mixer),
  13817. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13818. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  13819. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13820. msm_routing_get_port_mixer,
  13821. msm_routing_put_port_mixer),
  13822. };
  13823. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  13824. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13825. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13826. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13827. msm_routing_get_port_mixer,
  13828. msm_routing_put_port_mixer),
  13829. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13830. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13831. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13832. msm_routing_get_port_mixer,
  13833. msm_routing_put_port_mixer),
  13834. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13835. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13836. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13837. msm_routing_get_port_mixer,
  13838. msm_routing_put_port_mixer),
  13839. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13840. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13841. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13842. msm_routing_get_port_mixer,
  13843. msm_routing_put_port_mixer),
  13844. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13845. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13846. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13847. msm_routing_get_port_mixer,
  13848. msm_routing_put_port_mixer),
  13849. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13850. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13851. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13852. msm_routing_get_port_mixer,
  13853. msm_routing_put_port_mixer),
  13854. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13855. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13856. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13857. msm_routing_get_port_mixer,
  13858. msm_routing_put_port_mixer),
  13859. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13860. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13861. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13862. msm_routing_get_port_mixer,
  13863. msm_routing_put_port_mixer),
  13864. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13865. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13866. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13867. msm_routing_get_port_mixer,
  13868. msm_routing_put_port_mixer),
  13869. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13870. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13871. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13872. msm_routing_get_port_mixer,
  13873. msm_routing_put_port_mixer),
  13874. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13875. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13876. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13877. msm_routing_get_port_mixer,
  13878. msm_routing_put_port_mixer),
  13879. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13880. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13881. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13882. msm_routing_get_port_mixer,
  13883. msm_routing_put_port_mixer),
  13884. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13885. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13886. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13887. msm_routing_get_port_mixer,
  13888. msm_routing_put_port_mixer),
  13889. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13890. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13891. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13892. msm_routing_get_port_mixer,
  13893. msm_routing_put_port_mixer),
  13894. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13895. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13896. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13897. msm_routing_get_port_mixer,
  13898. msm_routing_put_port_mixer),
  13899. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13900. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13901. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13902. msm_routing_get_port_mixer,
  13903. msm_routing_put_port_mixer),
  13904. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13905. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13906. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13907. msm_routing_get_port_mixer,
  13908. msm_routing_put_port_mixer),
  13909. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13910. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13911. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13912. msm_routing_get_port_mixer,
  13913. msm_routing_put_port_mixer),
  13914. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13915. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13916. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13917. msm_routing_get_port_mixer,
  13918. msm_routing_put_port_mixer),
  13919. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13920. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  13921. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13922. msm_routing_get_port_mixer,
  13923. msm_routing_put_port_mixer),
  13924. };
  13925. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  13926. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13927. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13928. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13929. msm_routing_get_port_mixer,
  13930. msm_routing_put_port_mixer),
  13931. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13932. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13933. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13934. msm_routing_get_port_mixer,
  13935. msm_routing_put_port_mixer),
  13936. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13937. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13938. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13939. msm_routing_get_port_mixer,
  13940. msm_routing_put_port_mixer),
  13941. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13942. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13943. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13944. msm_routing_get_port_mixer,
  13945. msm_routing_put_port_mixer),
  13946. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13947. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13948. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13949. msm_routing_get_port_mixer,
  13950. msm_routing_put_port_mixer),
  13951. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13952. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13953. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13954. msm_routing_get_port_mixer,
  13955. msm_routing_put_port_mixer),
  13956. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13957. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13958. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13959. msm_routing_get_port_mixer,
  13960. msm_routing_put_port_mixer),
  13961. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13962. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13963. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13964. msm_routing_get_port_mixer,
  13965. msm_routing_put_port_mixer),
  13966. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13967. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13968. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13969. msm_routing_get_port_mixer,
  13970. msm_routing_put_port_mixer),
  13971. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13972. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13973. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13974. msm_routing_get_port_mixer,
  13975. msm_routing_put_port_mixer),
  13976. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13977. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13978. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13979. msm_routing_get_port_mixer,
  13980. msm_routing_put_port_mixer),
  13981. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13982. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13983. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13984. msm_routing_get_port_mixer,
  13985. msm_routing_put_port_mixer),
  13986. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13987. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13988. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13989. msm_routing_get_port_mixer,
  13990. msm_routing_put_port_mixer),
  13991. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13992. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13993. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13994. msm_routing_get_port_mixer,
  13995. msm_routing_put_port_mixer),
  13996. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13997. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  13998. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13999. msm_routing_get_port_mixer,
  14000. msm_routing_put_port_mixer),
  14001. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14002. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14003. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14004. msm_routing_get_port_mixer,
  14005. msm_routing_put_port_mixer),
  14006. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14007. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14008. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14009. msm_routing_get_port_mixer,
  14010. msm_routing_put_port_mixer),
  14011. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14012. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14013. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14014. msm_routing_get_port_mixer,
  14015. msm_routing_put_port_mixer),
  14016. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14017. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14018. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14019. msm_routing_get_port_mixer,
  14020. msm_routing_put_port_mixer),
  14021. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14022. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14023. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14024. msm_routing_get_port_mixer,
  14025. msm_routing_put_port_mixer),
  14026. };
  14027. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  14028. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14029. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14030. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14031. msm_routing_get_port_mixer,
  14032. msm_routing_put_port_mixer),
  14033. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14034. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14035. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14036. msm_routing_get_port_mixer,
  14037. msm_routing_put_port_mixer),
  14038. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14039. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14040. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14041. msm_routing_get_port_mixer,
  14042. msm_routing_put_port_mixer),
  14043. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14044. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14045. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14046. msm_routing_get_port_mixer,
  14047. msm_routing_put_port_mixer),
  14048. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14049. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14050. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14051. msm_routing_get_port_mixer,
  14052. msm_routing_put_port_mixer),
  14053. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14054. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14055. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14056. msm_routing_get_port_mixer,
  14057. msm_routing_put_port_mixer),
  14058. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14059. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14060. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14061. msm_routing_get_port_mixer,
  14062. msm_routing_put_port_mixer),
  14063. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14064. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14065. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14066. msm_routing_get_port_mixer,
  14067. msm_routing_put_port_mixer),
  14068. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14069. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14070. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14071. msm_routing_get_port_mixer,
  14072. msm_routing_put_port_mixer),
  14073. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14074. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14075. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14076. msm_routing_get_port_mixer,
  14077. msm_routing_put_port_mixer),
  14078. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14079. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14080. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14081. msm_routing_get_port_mixer,
  14082. msm_routing_put_port_mixer),
  14083. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14084. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14085. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14086. msm_routing_get_port_mixer,
  14087. msm_routing_put_port_mixer),
  14088. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14089. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14090. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14091. msm_routing_get_port_mixer,
  14092. msm_routing_put_port_mixer),
  14093. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14094. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14095. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14096. msm_routing_get_port_mixer,
  14097. msm_routing_put_port_mixer),
  14098. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14099. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14100. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14101. msm_routing_get_port_mixer,
  14102. msm_routing_put_port_mixer),
  14103. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14104. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14105. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14106. msm_routing_get_port_mixer,
  14107. msm_routing_put_port_mixer),
  14108. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14109. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14110. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14111. msm_routing_get_port_mixer,
  14112. msm_routing_put_port_mixer),
  14113. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14114. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14115. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14116. msm_routing_get_port_mixer,
  14117. msm_routing_put_port_mixer),
  14118. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14119. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14120. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14121. msm_routing_get_port_mixer,
  14122. msm_routing_put_port_mixer),
  14123. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14124. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14125. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14126. msm_routing_get_port_mixer,
  14127. msm_routing_put_port_mixer),
  14128. };
  14129. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  14130. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14131. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14132. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14133. msm_routing_get_port_mixer,
  14134. msm_routing_put_port_mixer),
  14135. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14136. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14137. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14138. msm_routing_get_port_mixer,
  14139. msm_routing_put_port_mixer),
  14140. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14141. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14142. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14143. msm_routing_get_port_mixer,
  14144. msm_routing_put_port_mixer),
  14145. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14146. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14147. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14148. msm_routing_get_port_mixer,
  14149. msm_routing_put_port_mixer),
  14150. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14151. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14152. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14153. msm_routing_get_port_mixer,
  14154. msm_routing_put_port_mixer),
  14155. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14156. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14157. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14158. msm_routing_get_port_mixer,
  14159. msm_routing_put_port_mixer),
  14160. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14161. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14162. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14163. msm_routing_get_port_mixer,
  14164. msm_routing_put_port_mixer),
  14165. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14166. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14167. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14168. msm_routing_get_port_mixer,
  14169. msm_routing_put_port_mixer),
  14170. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14171. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14172. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14173. msm_routing_get_port_mixer,
  14174. msm_routing_put_port_mixer),
  14175. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14176. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14177. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14178. msm_routing_get_port_mixer,
  14179. msm_routing_put_port_mixer),
  14180. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14181. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14182. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14183. msm_routing_get_port_mixer,
  14184. msm_routing_put_port_mixer),
  14185. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14186. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14187. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14188. msm_routing_get_port_mixer,
  14189. msm_routing_put_port_mixer),
  14190. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14191. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14192. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14193. msm_routing_get_port_mixer,
  14194. msm_routing_put_port_mixer),
  14195. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14196. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14197. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14198. msm_routing_get_port_mixer,
  14199. msm_routing_put_port_mixer),
  14200. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14201. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14202. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14203. msm_routing_get_port_mixer,
  14204. msm_routing_put_port_mixer),
  14205. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14206. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14207. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14208. msm_routing_get_port_mixer,
  14209. msm_routing_put_port_mixer),
  14210. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14211. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14212. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14213. msm_routing_get_port_mixer,
  14214. msm_routing_put_port_mixer),
  14215. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14216. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14217. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14218. msm_routing_get_port_mixer,
  14219. msm_routing_put_port_mixer),
  14220. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14221. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14222. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14223. msm_routing_get_port_mixer,
  14224. msm_routing_put_port_mixer),
  14225. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14226. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14227. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14228. msm_routing_get_port_mixer,
  14229. msm_routing_put_port_mixer),
  14230. };
  14231. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  14232. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14233. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14234. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14235. msm_routing_get_port_mixer,
  14236. msm_routing_put_port_mixer),
  14237. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14238. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14239. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14240. msm_routing_get_port_mixer,
  14241. msm_routing_put_port_mixer),
  14242. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14243. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14244. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14245. msm_routing_get_port_mixer,
  14246. msm_routing_put_port_mixer),
  14247. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14248. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14249. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14250. msm_routing_get_port_mixer,
  14251. msm_routing_put_port_mixer),
  14252. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14253. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14254. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14255. msm_routing_get_port_mixer,
  14256. msm_routing_put_port_mixer),
  14257. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14258. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14259. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14260. msm_routing_get_port_mixer,
  14261. msm_routing_put_port_mixer),
  14262. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14263. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14264. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14265. msm_routing_get_port_mixer,
  14266. msm_routing_put_port_mixer),
  14267. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14268. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14269. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14270. msm_routing_get_port_mixer,
  14271. msm_routing_put_port_mixer),
  14272. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14273. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14274. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14275. msm_routing_get_port_mixer,
  14276. msm_routing_put_port_mixer),
  14277. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14278. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14279. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14280. msm_routing_get_port_mixer,
  14281. msm_routing_put_port_mixer),
  14282. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14283. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14284. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14285. msm_routing_get_port_mixer,
  14286. msm_routing_put_port_mixer),
  14287. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14288. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14289. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14290. msm_routing_get_port_mixer,
  14291. msm_routing_put_port_mixer),
  14292. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14293. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14294. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14295. msm_routing_get_port_mixer,
  14296. msm_routing_put_port_mixer),
  14297. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14298. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14299. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14300. msm_routing_get_port_mixer,
  14301. msm_routing_put_port_mixer),
  14302. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14303. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14304. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14305. msm_routing_get_port_mixer,
  14306. msm_routing_put_port_mixer),
  14307. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14308. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14309. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14310. msm_routing_get_port_mixer,
  14311. msm_routing_put_port_mixer),
  14312. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14313. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14314. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14315. msm_routing_get_port_mixer,
  14316. msm_routing_put_port_mixer),
  14317. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14318. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14319. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14320. msm_routing_get_port_mixer,
  14321. msm_routing_put_port_mixer),
  14322. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14323. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14324. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14325. msm_routing_get_port_mixer,
  14326. msm_routing_put_port_mixer),
  14327. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14328. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14329. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14330. msm_routing_get_port_mixer,
  14331. msm_routing_put_port_mixer),
  14332. };
  14333. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  14334. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14335. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14336. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14337. msm_routing_get_port_mixer,
  14338. msm_routing_put_port_mixer),
  14339. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14340. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14341. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14342. msm_routing_get_port_mixer,
  14343. msm_routing_put_port_mixer),
  14344. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14345. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14346. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14347. msm_routing_get_port_mixer,
  14348. msm_routing_put_port_mixer),
  14349. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14350. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14351. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14352. msm_routing_get_port_mixer,
  14353. msm_routing_put_port_mixer),
  14354. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14355. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14356. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14357. msm_routing_get_port_mixer,
  14358. msm_routing_put_port_mixer),
  14359. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14360. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14361. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14362. msm_routing_get_port_mixer,
  14363. msm_routing_put_port_mixer),
  14364. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14365. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14366. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14367. msm_routing_get_port_mixer,
  14368. msm_routing_put_port_mixer),
  14369. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14370. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14371. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14372. msm_routing_get_port_mixer,
  14373. msm_routing_put_port_mixer),
  14374. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14375. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14376. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14377. msm_routing_get_port_mixer,
  14378. msm_routing_put_port_mixer),
  14379. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14380. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14381. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14382. msm_routing_get_port_mixer,
  14383. msm_routing_put_port_mixer),
  14384. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14385. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14386. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14387. msm_routing_get_port_mixer,
  14388. msm_routing_put_port_mixer),
  14389. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14390. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14391. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14392. msm_routing_get_port_mixer,
  14393. msm_routing_put_port_mixer),
  14394. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14395. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14396. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14397. msm_routing_get_port_mixer,
  14398. msm_routing_put_port_mixer),
  14399. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14400. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14401. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14402. msm_routing_get_port_mixer,
  14403. msm_routing_put_port_mixer),
  14404. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14405. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14406. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14407. msm_routing_get_port_mixer,
  14408. msm_routing_put_port_mixer),
  14409. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14410. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14411. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14412. msm_routing_get_port_mixer,
  14413. msm_routing_put_port_mixer),
  14414. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14415. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14416. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14417. msm_routing_get_port_mixer,
  14418. msm_routing_put_port_mixer),
  14419. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14420. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14421. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14422. msm_routing_get_port_mixer,
  14423. msm_routing_put_port_mixer),
  14424. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14425. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14426. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14427. msm_routing_get_port_mixer,
  14428. msm_routing_put_port_mixer),
  14429. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14430. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14431. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14432. msm_routing_get_port_mixer,
  14433. msm_routing_put_port_mixer),
  14434. };
  14435. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  14436. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14437. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14438. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14439. msm_routing_get_port_mixer,
  14440. msm_routing_put_port_mixer),
  14441. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14442. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14443. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14444. msm_routing_get_port_mixer,
  14445. msm_routing_put_port_mixer),
  14446. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14447. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14448. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14449. msm_routing_get_port_mixer,
  14450. msm_routing_put_port_mixer),
  14451. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14452. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14453. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14454. msm_routing_get_port_mixer,
  14455. msm_routing_put_port_mixer),
  14456. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14457. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14458. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14459. msm_routing_get_port_mixer,
  14460. msm_routing_put_port_mixer),
  14461. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14462. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14463. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14464. msm_routing_get_port_mixer,
  14465. msm_routing_put_port_mixer),
  14466. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14467. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14468. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14469. msm_routing_get_port_mixer,
  14470. msm_routing_put_port_mixer),
  14471. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14472. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14473. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14474. msm_routing_get_port_mixer,
  14475. msm_routing_put_port_mixer),
  14476. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14477. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14478. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14479. msm_routing_get_port_mixer,
  14480. msm_routing_put_port_mixer),
  14481. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14482. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14483. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14484. msm_routing_get_port_mixer,
  14485. msm_routing_put_port_mixer),
  14486. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14487. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14488. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14489. msm_routing_get_port_mixer,
  14490. msm_routing_put_port_mixer),
  14491. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14492. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14493. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14494. msm_routing_get_port_mixer,
  14495. msm_routing_put_port_mixer),
  14496. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14497. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14498. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14499. msm_routing_get_port_mixer,
  14500. msm_routing_put_port_mixer),
  14501. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14502. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14503. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14504. msm_routing_get_port_mixer,
  14505. msm_routing_put_port_mixer),
  14506. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14507. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14508. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14509. msm_routing_get_port_mixer,
  14510. msm_routing_put_port_mixer),
  14511. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14512. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14513. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14514. msm_routing_get_port_mixer,
  14515. msm_routing_put_port_mixer),
  14516. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14517. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14518. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14519. msm_routing_get_port_mixer,
  14520. msm_routing_put_port_mixer),
  14521. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14522. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14523. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14524. msm_routing_get_port_mixer,
  14525. msm_routing_put_port_mixer),
  14526. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14527. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14528. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14529. msm_routing_get_port_mixer,
  14530. msm_routing_put_port_mixer),
  14531. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14532. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14533. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14534. msm_routing_get_port_mixer,
  14535. msm_routing_put_port_mixer),
  14536. };
  14537. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  14538. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14539. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14540. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14541. msm_routing_get_port_mixer,
  14542. msm_routing_put_port_mixer),
  14543. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14544. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14545. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14546. msm_routing_get_port_mixer,
  14547. msm_routing_put_port_mixer),
  14548. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14549. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14550. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14551. msm_routing_get_port_mixer,
  14552. msm_routing_put_port_mixer),
  14553. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14554. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14555. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14556. msm_routing_get_port_mixer,
  14557. msm_routing_put_port_mixer),
  14558. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14559. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14560. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14561. msm_routing_get_port_mixer,
  14562. msm_routing_put_port_mixer),
  14563. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14564. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14565. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14566. msm_routing_get_port_mixer,
  14567. msm_routing_put_port_mixer),
  14568. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14569. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14570. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14571. msm_routing_get_port_mixer,
  14572. msm_routing_put_port_mixer),
  14573. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14574. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14575. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14576. msm_routing_get_port_mixer,
  14577. msm_routing_put_port_mixer),
  14578. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14579. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14580. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14581. msm_routing_get_port_mixer,
  14582. msm_routing_put_port_mixer),
  14583. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14584. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14585. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14586. msm_routing_get_port_mixer,
  14587. msm_routing_put_port_mixer),
  14588. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14589. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14590. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14591. msm_routing_get_port_mixer,
  14592. msm_routing_put_port_mixer),
  14593. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14594. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14595. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14596. msm_routing_get_port_mixer,
  14597. msm_routing_put_port_mixer),
  14598. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14599. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14600. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14601. msm_routing_get_port_mixer,
  14602. msm_routing_put_port_mixer),
  14603. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14604. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14605. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14606. msm_routing_get_port_mixer,
  14607. msm_routing_put_port_mixer),
  14608. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14609. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14610. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14611. msm_routing_get_port_mixer,
  14612. msm_routing_put_port_mixer),
  14613. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14614. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14615. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14616. msm_routing_get_port_mixer,
  14617. msm_routing_put_port_mixer),
  14618. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14619. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14620. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14621. msm_routing_get_port_mixer,
  14622. msm_routing_put_port_mixer),
  14623. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14624. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14625. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14626. msm_routing_get_port_mixer,
  14627. msm_routing_put_port_mixer),
  14628. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14629. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14630. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14631. msm_routing_get_port_mixer,
  14632. msm_routing_put_port_mixer),
  14633. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14634. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  14635. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14636. msm_routing_get_port_mixer,
  14637. msm_routing_put_port_mixer),
  14638. };
  14639. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  14640. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14641. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14642. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14643. msm_routing_get_port_mixer,
  14644. msm_routing_put_port_mixer),
  14645. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14646. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14647. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14648. msm_routing_get_port_mixer,
  14649. msm_routing_put_port_mixer),
  14650. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14651. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14652. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14653. msm_routing_get_port_mixer,
  14654. msm_routing_put_port_mixer),
  14655. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14656. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14657. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14658. msm_routing_get_port_mixer,
  14659. msm_routing_put_port_mixer),
  14660. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14661. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14662. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14663. msm_routing_get_port_mixer,
  14664. msm_routing_put_port_mixer),
  14665. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14666. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14667. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14668. msm_routing_get_port_mixer,
  14669. msm_routing_put_port_mixer),
  14670. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14671. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14672. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14673. msm_routing_get_port_mixer,
  14674. msm_routing_put_port_mixer),
  14675. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14676. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14677. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14678. msm_routing_get_port_mixer,
  14679. msm_routing_put_port_mixer),
  14680. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14681. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14682. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14683. msm_routing_get_port_mixer,
  14684. msm_routing_put_port_mixer),
  14685. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14686. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14687. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14688. msm_routing_get_port_mixer,
  14689. msm_routing_put_port_mixer),
  14690. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14691. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14692. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14693. msm_routing_get_port_mixer,
  14694. msm_routing_put_port_mixer),
  14695. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14696. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14697. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14698. msm_routing_get_port_mixer,
  14699. msm_routing_put_port_mixer),
  14700. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14701. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14702. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14703. msm_routing_get_port_mixer,
  14704. msm_routing_put_port_mixer),
  14705. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14706. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14707. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14708. msm_routing_get_port_mixer,
  14709. msm_routing_put_port_mixer),
  14710. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14711. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14712. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14713. msm_routing_get_port_mixer,
  14714. msm_routing_put_port_mixer),
  14715. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14716. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14717. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14718. msm_routing_get_port_mixer,
  14719. msm_routing_put_port_mixer),
  14720. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14721. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14722. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14723. msm_routing_get_port_mixer,
  14724. msm_routing_put_port_mixer),
  14725. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14726. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14727. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14728. msm_routing_get_port_mixer,
  14729. msm_routing_put_port_mixer),
  14730. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14731. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14732. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14733. msm_routing_get_port_mixer,
  14734. msm_routing_put_port_mixer),
  14735. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14736. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  14737. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14738. msm_routing_get_port_mixer,
  14739. msm_routing_put_port_mixer),
  14740. };
  14741. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  14742. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14743. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14744. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14745. msm_routing_get_port_mixer,
  14746. msm_routing_put_port_mixer),
  14747. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14748. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14749. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14750. msm_routing_get_port_mixer,
  14751. msm_routing_put_port_mixer),
  14752. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14753. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14754. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14755. msm_routing_get_port_mixer,
  14756. msm_routing_put_port_mixer),
  14757. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14758. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14759. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14760. msm_routing_get_port_mixer,
  14761. msm_routing_put_port_mixer),
  14762. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14763. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14764. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14765. msm_routing_get_port_mixer,
  14766. msm_routing_put_port_mixer),
  14767. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14768. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14769. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14770. msm_routing_get_port_mixer,
  14771. msm_routing_put_port_mixer),
  14772. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14773. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14774. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14775. msm_routing_get_port_mixer,
  14776. msm_routing_put_port_mixer),
  14777. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14778. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14779. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14780. msm_routing_get_port_mixer,
  14781. msm_routing_put_port_mixer),
  14782. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14783. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14784. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14785. msm_routing_get_port_mixer,
  14786. msm_routing_put_port_mixer),
  14787. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14788. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14789. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14790. msm_routing_get_port_mixer,
  14791. msm_routing_put_port_mixer),
  14792. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14793. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14794. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14795. msm_routing_get_port_mixer,
  14796. msm_routing_put_port_mixer),
  14797. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14798. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14799. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14800. msm_routing_get_port_mixer,
  14801. msm_routing_put_port_mixer),
  14802. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14803. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14804. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14805. msm_routing_get_port_mixer,
  14806. msm_routing_put_port_mixer),
  14807. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14808. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14809. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14810. msm_routing_get_port_mixer,
  14811. msm_routing_put_port_mixer),
  14812. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14813. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14814. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14815. msm_routing_get_port_mixer,
  14816. msm_routing_put_port_mixer),
  14817. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14818. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14819. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14820. msm_routing_get_port_mixer,
  14821. msm_routing_put_port_mixer),
  14822. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14823. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14824. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14825. msm_routing_get_port_mixer,
  14826. msm_routing_put_port_mixer),
  14827. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14828. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14829. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14830. msm_routing_get_port_mixer,
  14831. msm_routing_put_port_mixer),
  14832. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14833. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14834. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14835. msm_routing_get_port_mixer,
  14836. msm_routing_put_port_mixer),
  14837. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14838. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  14839. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14840. msm_routing_get_port_mixer,
  14841. msm_routing_put_port_mixer),
  14842. };
  14843. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  14844. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14845. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14846. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14847. msm_routing_get_port_mixer,
  14848. msm_routing_put_port_mixer),
  14849. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14850. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14851. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14852. msm_routing_get_port_mixer,
  14853. msm_routing_put_port_mixer),
  14854. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14855. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14856. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14857. msm_routing_get_port_mixer,
  14858. msm_routing_put_port_mixer),
  14859. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14860. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14861. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14862. msm_routing_get_port_mixer,
  14863. msm_routing_put_port_mixer),
  14864. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14865. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14866. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14867. msm_routing_get_port_mixer,
  14868. msm_routing_put_port_mixer),
  14869. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14870. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14871. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14872. msm_routing_get_port_mixer,
  14873. msm_routing_put_port_mixer),
  14874. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14875. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14876. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14877. msm_routing_get_port_mixer,
  14878. msm_routing_put_port_mixer),
  14879. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14880. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14881. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14882. msm_routing_get_port_mixer,
  14883. msm_routing_put_port_mixer),
  14884. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14885. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14886. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14887. msm_routing_get_port_mixer,
  14888. msm_routing_put_port_mixer),
  14889. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14890. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14891. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14892. msm_routing_get_port_mixer,
  14893. msm_routing_put_port_mixer),
  14894. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14895. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14896. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14897. msm_routing_get_port_mixer,
  14898. msm_routing_put_port_mixer),
  14899. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14900. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14901. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14902. msm_routing_get_port_mixer,
  14903. msm_routing_put_port_mixer),
  14904. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14905. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14906. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14907. msm_routing_get_port_mixer,
  14908. msm_routing_put_port_mixer),
  14909. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14910. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14911. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14912. msm_routing_get_port_mixer,
  14913. msm_routing_put_port_mixer),
  14914. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14915. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14916. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14917. msm_routing_get_port_mixer,
  14918. msm_routing_put_port_mixer),
  14919. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14920. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14921. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14922. msm_routing_get_port_mixer,
  14923. msm_routing_put_port_mixer),
  14924. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14925. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14926. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14927. msm_routing_get_port_mixer,
  14928. msm_routing_put_port_mixer),
  14929. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14930. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14931. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14932. msm_routing_get_port_mixer,
  14933. msm_routing_put_port_mixer),
  14934. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14935. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14936. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14937. msm_routing_get_port_mixer,
  14938. msm_routing_put_port_mixer),
  14939. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14940. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  14941. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14942. msm_routing_get_port_mixer,
  14943. msm_routing_put_port_mixer),
  14944. };
  14945. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  14946. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14947. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14948. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14949. msm_routing_get_port_mixer,
  14950. msm_routing_put_port_mixer),
  14951. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14952. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14953. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14954. msm_routing_get_port_mixer,
  14955. msm_routing_put_port_mixer),
  14956. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14957. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14958. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14959. msm_routing_get_port_mixer,
  14960. msm_routing_put_port_mixer),
  14961. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14962. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14963. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14964. msm_routing_get_port_mixer,
  14965. msm_routing_put_port_mixer),
  14966. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14967. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14968. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14969. msm_routing_get_port_mixer,
  14970. msm_routing_put_port_mixer),
  14971. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14972. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14973. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14974. msm_routing_get_port_mixer,
  14975. msm_routing_put_port_mixer),
  14976. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14977. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14978. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14979. msm_routing_get_port_mixer,
  14980. msm_routing_put_port_mixer),
  14981. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14982. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14983. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14984. msm_routing_get_port_mixer,
  14985. msm_routing_put_port_mixer),
  14986. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14987. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14988. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14989. msm_routing_get_port_mixer,
  14990. msm_routing_put_port_mixer),
  14991. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14992. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14993. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14994. msm_routing_get_port_mixer,
  14995. msm_routing_put_port_mixer),
  14996. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14997. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  14998. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14999. msm_routing_get_port_mixer,
  15000. msm_routing_put_port_mixer),
  15001. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15002. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15003. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15004. msm_routing_get_port_mixer,
  15005. msm_routing_put_port_mixer),
  15006. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15007. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15008. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15009. msm_routing_get_port_mixer,
  15010. msm_routing_put_port_mixer),
  15011. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15012. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15013. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15014. msm_routing_get_port_mixer,
  15015. msm_routing_put_port_mixer),
  15016. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15017. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15018. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15019. msm_routing_get_port_mixer,
  15020. msm_routing_put_port_mixer),
  15021. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15022. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15023. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15024. msm_routing_get_port_mixer,
  15025. msm_routing_put_port_mixer),
  15026. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15027. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15028. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15029. msm_routing_get_port_mixer,
  15030. msm_routing_put_port_mixer),
  15031. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15032. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15033. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15034. msm_routing_get_port_mixer,
  15035. msm_routing_put_port_mixer),
  15036. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15037. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15038. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15039. msm_routing_get_port_mixer,
  15040. msm_routing_put_port_mixer),
  15041. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15042. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15043. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15044. msm_routing_get_port_mixer,
  15045. msm_routing_put_port_mixer),
  15046. };
  15047. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  15048. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15049. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15050. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15051. msm_routing_put_port_mixer),
  15052. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15053. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15054. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15055. msm_routing_put_port_mixer),
  15056. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15057. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15058. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15059. msm_routing_put_port_mixer),
  15060. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15061. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15062. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15063. msm_routing_put_port_mixer),
  15064. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15065. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15066. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15067. msm_routing_put_port_mixer),
  15068. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15069. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15070. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15071. msm_routing_put_port_mixer),
  15072. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15073. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15074. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15075. msm_routing_put_port_mixer),
  15076. };
  15077. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  15078. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15079. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15080. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15081. msm_routing_put_port_mixer),
  15082. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15083. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15084. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15085. msm_routing_put_port_mixer),
  15086. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15087. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15088. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15089. msm_routing_put_port_mixer),
  15090. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15091. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15092. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15093. msm_routing_put_port_mixer),
  15094. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15095. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15096. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15097. msm_routing_put_port_mixer),
  15098. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15099. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15100. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15101. msm_routing_put_port_mixer),
  15102. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15103. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15104. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15105. msm_routing_put_port_mixer),
  15106. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15107. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15108. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15109. msm_routing_put_port_mixer),
  15110. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15111. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15112. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15113. msm_routing_put_port_mixer),
  15114. };
  15115. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  15116. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15117. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15118. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15119. msm_routing_put_listen_mixer),
  15120. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15121. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15122. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15123. msm_routing_put_listen_mixer),
  15124. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15125. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15126. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15127. msm_routing_put_listen_mixer),
  15128. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15129. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15130. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15131. msm_routing_put_listen_mixer),
  15132. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15133. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15134. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15135. msm_routing_put_listen_mixer),
  15136. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15137. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15138. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15139. msm_routing_put_listen_mixer),
  15140. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15141. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15142. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15143. msm_routing_put_listen_mixer),
  15144. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15145. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15146. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15147. msm_routing_put_listen_mixer),
  15148. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15149. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15150. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15151. msm_routing_put_listen_mixer),
  15152. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15153. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15154. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15155. msm_routing_put_listen_mixer),
  15156. };
  15157. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  15158. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15159. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15160. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15161. msm_routing_put_listen_mixer),
  15162. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  15163. SND_SOC_NOPM,
  15164. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15165. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15166. msm_routing_put_listen_mixer),
  15167. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15168. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15169. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15170. msm_routing_put_listen_mixer),
  15171. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15172. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15173. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15174. msm_routing_put_listen_mixer),
  15175. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15176. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15177. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15178. msm_routing_put_listen_mixer),
  15179. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15180. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15181. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15182. msm_routing_put_listen_mixer),
  15183. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15184. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15185. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15186. msm_routing_put_listen_mixer),
  15187. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15188. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15189. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15190. msm_routing_put_listen_mixer),
  15191. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15192. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15193. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15194. msm_routing_put_listen_mixer),
  15195. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15196. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15197. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15198. msm_routing_put_listen_mixer),
  15199. };
  15200. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  15201. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15202. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15203. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15204. msm_routing_put_listen_mixer),
  15205. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15206. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15207. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15208. msm_routing_put_listen_mixer),
  15209. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15210. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15211. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15212. msm_routing_put_listen_mixer),
  15213. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15214. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15215. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15216. msm_routing_put_listen_mixer),
  15217. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15218. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15219. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15220. msm_routing_put_listen_mixer),
  15221. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15222. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15223. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15224. msm_routing_put_listen_mixer),
  15225. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15226. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15227. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15228. msm_routing_put_listen_mixer),
  15229. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15230. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15231. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15232. msm_routing_put_listen_mixer),
  15233. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15234. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15235. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15236. msm_routing_put_listen_mixer),
  15237. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15238. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15239. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15240. msm_routing_put_listen_mixer),
  15241. };
  15242. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  15243. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15244. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15245. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15246. msm_routing_put_listen_mixer),
  15247. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15248. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15249. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15250. msm_routing_put_listen_mixer),
  15251. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15252. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15253. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15254. msm_routing_put_listen_mixer),
  15255. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15256. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15257. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15258. msm_routing_put_listen_mixer),
  15259. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15260. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15261. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15262. msm_routing_put_listen_mixer),
  15263. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15264. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15265. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15266. msm_routing_put_listen_mixer),
  15267. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15268. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15269. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15270. msm_routing_put_listen_mixer),
  15271. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15272. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15273. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15274. msm_routing_put_listen_mixer),
  15275. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15276. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15277. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15278. msm_routing_put_listen_mixer),
  15279. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15280. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15281. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15282. msm_routing_put_listen_mixer),
  15283. };
  15284. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  15285. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15286. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15287. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15288. msm_routing_put_listen_mixer),
  15289. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15290. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15291. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15292. msm_routing_put_listen_mixer),
  15293. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15294. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15295. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15296. msm_routing_put_listen_mixer),
  15297. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15298. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15299. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15300. msm_routing_put_listen_mixer),
  15301. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15302. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15303. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15304. msm_routing_put_listen_mixer),
  15305. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15306. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15307. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15308. msm_routing_put_listen_mixer),
  15309. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15310. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15311. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15312. msm_routing_put_listen_mixer),
  15313. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15314. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15315. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15316. msm_routing_put_listen_mixer),
  15317. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15318. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15319. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15320. msm_routing_put_listen_mixer),
  15321. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15322. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15323. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15324. msm_routing_put_listen_mixer),
  15325. };
  15326. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  15327. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15328. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15329. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15330. msm_routing_put_listen_mixer),
  15331. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15332. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15333. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15334. msm_routing_put_listen_mixer),
  15335. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15336. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15337. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15338. msm_routing_put_listen_mixer),
  15339. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15340. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15341. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15342. msm_routing_put_listen_mixer),
  15343. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15344. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15345. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15346. msm_routing_put_listen_mixer),
  15347. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15348. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15349. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15350. msm_routing_put_listen_mixer),
  15351. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15352. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15353. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15354. msm_routing_put_listen_mixer),
  15355. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15356. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15357. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15358. msm_routing_put_listen_mixer),
  15359. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15360. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15361. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15362. msm_routing_put_listen_mixer),
  15363. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15364. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15365. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15366. msm_routing_put_listen_mixer),
  15367. };
  15368. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  15369. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15370. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15371. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15372. msm_routing_put_listen_mixer),
  15373. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15374. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15375. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15376. msm_routing_put_listen_mixer),
  15377. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15378. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15379. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15380. msm_routing_put_listen_mixer),
  15381. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15382. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15383. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15384. msm_routing_put_listen_mixer),
  15385. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15386. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15387. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15388. msm_routing_put_listen_mixer),
  15389. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15390. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15391. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15392. msm_routing_put_listen_mixer),
  15393. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15394. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15395. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15396. msm_routing_put_listen_mixer),
  15397. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15398. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15399. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15400. msm_routing_put_listen_mixer),
  15401. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15402. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15403. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15404. msm_routing_put_listen_mixer),
  15405. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15406. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15407. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  15408. msm_routing_put_listen_mixer),
  15409. };
  15410. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  15411. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15412. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15413. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15414. msm_routing_put_listen_mixer),
  15415. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15416. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15417. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15418. msm_routing_put_listen_mixer),
  15419. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15420. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15421. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15422. msm_routing_put_listen_mixer),
  15423. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15424. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15425. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15426. msm_routing_put_listen_mixer),
  15427. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15428. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15429. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15430. msm_routing_put_listen_mixer),
  15431. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15432. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15433. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15434. msm_routing_put_listen_mixer),
  15435. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15436. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15437. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15438. msm_routing_put_listen_mixer),
  15439. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15440. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15441. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15442. msm_routing_put_listen_mixer),
  15443. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15444. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15445. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15446. msm_routing_put_listen_mixer),
  15447. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15448. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15449. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  15450. msm_routing_put_listen_mixer),
  15451. };
  15452. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  15453. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15454. 0, 1, 0, msm_routing_get_switch_mixer,
  15455. msm_routing_put_switch_mixer);
  15456. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  15457. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15458. 0, 1, 0, msm_routing_get_switch_mixer,
  15459. msm_routing_put_switch_mixer);
  15460. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  15461. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15462. 0, 1, 0, msm_routing_get_switch_mixer,
  15463. msm_routing_put_switch_mixer);
  15464. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  15465. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15466. 0, 1, 0, msm_routing_get_switch_mixer,
  15467. msm_routing_put_switch_mixer);
  15468. static const struct snd_kcontrol_new cdc_dma_fm_switch_mixer_controls =
  15469. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15470. 0, 1, 0, msm_routing_get_switch_mixer,
  15471. msm_routing_put_switch_mixer);
  15472. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  15473. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15474. 0, 1, 0, msm_routing_get_switch_mixer,
  15475. msm_routing_put_switch_mixer);
  15476. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  15477. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15478. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  15479. msm_routing_put_fm_pcmrx_switch_mixer);
  15480. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  15481. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15482. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  15483. msm_routing_put_int0_mi2s_switch_mixer);
  15484. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  15485. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15486. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  15487. msm_routing_put_int4_mi2s_switch_mixer);
  15488. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  15489. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15490. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  15491. msm_routing_put_pri_mi2s_switch_mixer);
  15492. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  15493. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15494. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  15495. msm_routing_put_sec_mi2s_switch_mixer);
  15496. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  15497. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15498. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  15499. msm_routing_put_tert_mi2s_switch_mixer);
  15500. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  15501. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15502. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  15503. msm_routing_put_quat_mi2s_switch_mixer);
  15504. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  15505. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15506. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  15507. msm_routing_put_quin_mi2s_switch_mixer);
  15508. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  15509. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15510. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  15511. msm_routing_put_hfp_switch_mixer);
  15512. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  15513. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15514. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  15515. msm_routing_put_hfp_switch_mixer);
  15516. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  15517. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15518. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  15519. msm_routing_put_hfp_switch_mixer);
  15520. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  15521. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15522. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  15523. msm_routing_put_hfp_switch_mixer);
  15524. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  15525. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15526. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  15527. msm_routing_put_usb_switch_mixer);
  15528. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  15529. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  15530. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  15531. msm_routing_a2dp_switch_mixer_put);
  15532. static const struct soc_enum lsm_port_enum =
  15533. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  15534. static const char * const lsm_func_text[] = {
  15535. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  15536. };
  15537. static const struct soc_enum lsm_func_enum =
  15538. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  15539. static const struct snd_kcontrol_new lsm_controls[] = {
  15540. /* kcontrol of lsm_function */
  15541. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15542. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15543. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15544. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15545. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15546. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15547. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15548. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15549. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15550. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15551. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15552. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15553. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15554. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15555. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15556. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15557. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  15558. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  15559. /* kcontrol of lsm_port */
  15560. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  15561. msm_routing_lsm_port_get,
  15562. msm_routing_lsm_port_put),
  15563. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  15564. msm_routing_lsm_port_get,
  15565. msm_routing_lsm_port_put),
  15566. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  15567. msm_routing_lsm_port_get,
  15568. msm_routing_lsm_port_put),
  15569. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  15570. msm_routing_lsm_port_get,
  15571. msm_routing_lsm_port_put),
  15572. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  15573. msm_routing_lsm_port_get,
  15574. msm_routing_lsm_port_put),
  15575. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  15576. msm_routing_lsm_port_get,
  15577. msm_routing_lsm_port_put),
  15578. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  15579. msm_routing_lsm_port_get,
  15580. msm_routing_lsm_port_put),
  15581. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  15582. msm_routing_lsm_port_get,
  15583. msm_routing_lsm_port_put),
  15584. };
  15585. static const char * const aanc_slim_0_rx_text[] = {
  15586. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  15587. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  15588. };
  15589. static const struct soc_enum aanc_slim_0_rx_enum =
  15590. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  15591. aanc_slim_0_rx_text);
  15592. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  15593. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  15594. msm_routing_slim_0_rx_aanc_mux_get,
  15595. msm_routing_slim_0_rx_aanc_mux_put)
  15596. };
  15597. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  15598. struct snd_ctl_elem_value *ucontrol)
  15599. {
  15600. ucontrol->value.integer.value[0] = aanc_level;
  15601. return 0;
  15602. }
  15603. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  15604. struct snd_ctl_elem_value *ucontrol)
  15605. {
  15606. int ret = 0;
  15607. mutex_lock(&routing_lock);
  15608. aanc_level = ucontrol->value.integer.value[0];
  15609. pr_debug("%s: value: %ld\n",
  15610. __func__, ucontrol->value.integer.value[0]);
  15611. ret = afe_set_aanc_noise_level(aanc_level);
  15612. mutex_unlock(&routing_lock);
  15613. return ret;
  15614. }
  15615. static const struct snd_kcontrol_new aanc_noise_level[] = {
  15616. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  15617. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  15618. };
  15619. static int msm_routing_get_stereo_to_custom_stereo_control(
  15620. struct snd_kcontrol *kcontrol,
  15621. struct snd_ctl_elem_value *ucontrol)
  15622. {
  15623. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  15624. return 0;
  15625. }
  15626. static int msm_routing_put_stereo_to_custom_stereo_control(
  15627. struct snd_kcontrol *kcontrol,
  15628. struct snd_ctl_elem_value *ucontrol)
  15629. {
  15630. int flag = 0, i = 0, rc = 0, idx = 0;
  15631. int be_index = 0, port_id, topo_id;
  15632. unsigned int session_id = 0;
  15633. uint16_t op_FL_ip_FL_weight = 0;
  15634. uint16_t op_FL_ip_FR_weight = 0;
  15635. uint16_t op_FR_ip_FL_weight = 0;
  15636. uint16_t op_FR_ip_FR_weight = 0;
  15637. flag = ucontrol->value.integer.value[0];
  15638. pr_debug("%s E flag %d\n", __func__, flag);
  15639. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  15640. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  15641. __func__, is_custom_stereo_on, flag);
  15642. return 0;
  15643. }
  15644. is_custom_stereo_on = flag ? true : false;
  15645. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  15646. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  15647. port_id = msm_bedais[be_index].port_id;
  15648. if (!msm_bedais[be_index].active)
  15649. continue;
  15650. if ((port_id != SLIMBUS_0_RX) &&
  15651. (port_id != RT_PROXY_PORT_001_RX) &&
  15652. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  15653. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  15654. continue;
  15655. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  15656. MSM_FRONTEND_DAI_MM_SIZE) {
  15657. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  15658. LEGACY_PCM_MODE)
  15659. goto skip_send_custom_stereo;
  15660. session_id =
  15661. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  15662. if (is_custom_stereo_on) {
  15663. op_FL_ip_FL_weight =
  15664. Q14_GAIN_ZERO_POINT_FIVE;
  15665. op_FL_ip_FR_weight =
  15666. Q14_GAIN_ZERO_POINT_FIVE;
  15667. op_FR_ip_FL_weight =
  15668. Q14_GAIN_ZERO_POINT_FIVE;
  15669. op_FR_ip_FR_weight =
  15670. Q14_GAIN_ZERO_POINT_FIVE;
  15671. } else {
  15672. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  15673. op_FL_ip_FR_weight = 0;
  15674. op_FR_ip_FL_weight = 0;
  15675. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  15676. }
  15677. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  15678. unsigned long copp =
  15679. session_copp_map[i]
  15680. [SESSION_TYPE_RX][be_index];
  15681. if (!test_bit(idx, &copp))
  15682. goto skip_send_custom_stereo;
  15683. topo_id = adm_get_topology_for_port_copp_idx(
  15684. msm_bedais[be_index].port_id, idx);
  15685. if (topo_id < 0)
  15686. pr_debug("%s:Err:custom stereo topo %d",
  15687. __func__, topo_id);
  15688. pr_debug("idx %d\n", idx);
  15689. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  15690. rc = msm_ds2_dap_set_custom_stereo_onoff
  15691. (msm_bedais[be_index].port_id,
  15692. idx, is_custom_stereo_on);
  15693. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  15694. rc = dolby_dap_set_custom_stereo_onoff(
  15695. msm_bedais[be_index].port_id,
  15696. idx, is_custom_stereo_on);
  15697. else
  15698. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  15699. (msm_bedais[be_index].port_id,
  15700. idx, session_id,
  15701. op_FL_ip_FL_weight,
  15702. op_FL_ip_FR_weight,
  15703. op_FR_ip_FL_weight,
  15704. op_FR_ip_FR_weight);
  15705. if (rc < 0)
  15706. skip_send_custom_stereo:
  15707. pr_err("%s: err setting custom stereo\n",
  15708. __func__);
  15709. }
  15710. }
  15711. }
  15712. return 0;
  15713. }
  15714. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  15715. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  15716. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  15717. msm_routing_put_stereo_to_custom_stereo_control),
  15718. };
  15719. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  15720. struct snd_ctl_elem_value *ucontrol)
  15721. {
  15722. return 0;
  15723. }
  15724. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  15725. struct snd_ctl_elem_value *ucontrol)
  15726. {
  15727. int i = 0, j;
  15728. int num_app_types = ucontrol->value.integer.value[i++];
  15729. pr_debug("%s\n", __func__);
  15730. memset(app_type_cfg, 0, MAX_APP_TYPES*
  15731. sizeof(struct msm_pcm_routing_app_type_data));
  15732. if (num_app_types > MAX_APP_TYPES) {
  15733. pr_err("%s: number of app types exceed the max supported\n",
  15734. __func__);
  15735. return -EINVAL;
  15736. }
  15737. for (j = 0; j < num_app_types; j++) {
  15738. app_type_cfg[j].app_type =
  15739. ucontrol->value.integer.value[i++];
  15740. app_type_cfg[j].sample_rate =
  15741. ucontrol->value.integer.value[i++];
  15742. app_type_cfg[j].bit_width =
  15743. ucontrol->value.integer.value[i++];
  15744. }
  15745. return 0;
  15746. }
  15747. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  15748. struct snd_ctl_elem_value *ucontrol)
  15749. {
  15750. int j, fe_id, be_id, port_type;
  15751. int ret = 0;
  15752. unsigned long copp;
  15753. struct msm_pcm_routing_bdai_data *bedai;
  15754. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  15755. SESSION_TYPE_RX;
  15756. int app_type = ucontrol->value.integer.value[1];
  15757. int gain = (ucontrol->value.integer.value[2] +
  15758. ucontrol->value.integer.value[3])/2;
  15759. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  15760. MSM_AFE_PORT_TYPE_TX;
  15761. mutex_lock(&routing_lock);
  15762. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  15763. if (is_be_dai_extproc(be_id))
  15764. continue;
  15765. bedai = &msm_bedais[be_id];
  15766. if (afe_get_port_type(bedai->port_id) != port_type)
  15767. continue;
  15768. if (!bedai->active)
  15769. continue;
  15770. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  15771. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  15772. continue;
  15773. if (app_type !=
  15774. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  15775. continue;
  15776. copp = session_copp_map[fe_id][dir][be_id];
  15777. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  15778. if (!test_bit(j, &copp))
  15779. continue;
  15780. ret |= adm_set_volume(bedai->port_id, j, gain);
  15781. }
  15782. }
  15783. }
  15784. mutex_unlock(&routing_lock);
  15785. return ret ? -EINVAL : 0;
  15786. }
  15787. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  15788. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  15789. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  15790. msm_routing_put_app_type_cfg_control),
  15791. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  15792. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  15793. };
  15794. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  15795. struct snd_ctl_elem_value *ucontrol)
  15796. {
  15797. int copp_idx, fe_id, be_id, port_type;
  15798. int ret = 0;
  15799. unsigned long copp;
  15800. struct msm_pcm_routing_bdai_data *bedai;
  15801. u8 *packed_params = NULL;
  15802. struct param_hdr_v3 param_hdr;
  15803. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  15804. sizeof(uint32_t));
  15805. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  15806. SESSION_TYPE_RX;
  15807. int app_type = ucontrol->value.integer.value[1];
  15808. int module_id = ucontrol->value.integer.value[2];
  15809. int instance_id = ucontrol->value.integer.value[3];
  15810. int param_id = ucontrol->value.integer.value[4];
  15811. int param_value = ucontrol->value.integer.value[5];
  15812. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  15813. MSM_AFE_PORT_TYPE_TX;
  15814. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  15815. __func__, app_type, module_id,
  15816. instance_id, param_id, param_value);
  15817. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  15818. if (!packed_params)
  15819. return -ENOMEM;
  15820. memset(&param_hdr, 0, sizeof(param_hdr));
  15821. param_hdr.module_id = module_id;
  15822. param_hdr.instance_id = instance_id;
  15823. param_hdr.param_id = param_id;
  15824. param_hdr.param_size = sizeof(uint32_t);
  15825. packed_param_size = 0;
  15826. mutex_lock(&routing_lock);
  15827. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  15828. if (is_be_dai_extproc(be_id))
  15829. continue;
  15830. bedai = &msm_bedais[be_id];
  15831. if (afe_get_port_type(bedai->port_id) != port_type)
  15832. continue;
  15833. if (!bedai->active)
  15834. continue;
  15835. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  15836. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  15837. continue;
  15838. if (app_type !=
  15839. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  15840. continue;
  15841. copp = session_copp_map[fe_id][dir][be_id];
  15842. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  15843. copp_idx++) {
  15844. if (!test_bit(copp_idx, &copp))
  15845. continue;
  15846. ret = q6common_pack_pp_params(packed_params,
  15847. &param_hdr,
  15848. (u8 *) &param_value,
  15849. &packed_param_size);
  15850. if (ret) {
  15851. pr_err("%s: Failed to pack params, error %d\n",
  15852. __func__, ret);
  15853. goto done;
  15854. }
  15855. ret = adm_set_pp_params(bedai->port_id,
  15856. copp_idx, NULL,
  15857. packed_params,
  15858. packed_param_size);
  15859. if (ret) {
  15860. pr_err("%s: Setting param failed with err=%d\n",
  15861. __func__, ret);
  15862. ret = -EINVAL;
  15863. goto done;
  15864. }
  15865. }
  15866. }
  15867. }
  15868. done:
  15869. mutex_unlock(&routing_lock);
  15870. kfree(packed_params);
  15871. return ret;
  15872. }
  15873. static const struct snd_kcontrol_new module_cfg_controls[] = {
  15874. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  15875. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  15876. };
  15877. static int msm_routing_get_lsm_app_type_cfg_control(
  15878. struct snd_kcontrol *kcontrol,
  15879. struct snd_ctl_elem_value *ucontrol)
  15880. {
  15881. return 0;
  15882. }
  15883. static int msm_routing_put_lsm_app_type_cfg_control(
  15884. struct snd_kcontrol *kcontrol,
  15885. struct snd_ctl_elem_value *ucontrol)
  15886. {
  15887. int shift = ((struct soc_multi_mixer_control *)
  15888. kcontrol->private_value)->shift;
  15889. int i = 0, j;
  15890. int num_app_types = ucontrol->value.integer.value[i++];
  15891. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  15892. sizeof(struct msm_pcm_routing_app_type_data));
  15893. if (num_app_types > MAX_APP_TYPES) {
  15894. pr_err("%s: number of app types exceed the max supported\n",
  15895. __func__);
  15896. return -EINVAL;
  15897. }
  15898. for (j = 0; j < num_app_types; j++) {
  15899. lsm_app_type_cfg[j].app_type =
  15900. ucontrol->value.integer.value[i++];
  15901. lsm_app_type_cfg[j].sample_rate =
  15902. ucontrol->value.integer.value[i++];
  15903. lsm_app_type_cfg[j].bit_width =
  15904. ucontrol->value.integer.value[i++];
  15905. /* Shift of 1 indicates this is V2 mixer control */
  15906. if (shift == 1)
  15907. lsm_app_type_cfg[j].num_out_channels =
  15908. ucontrol->value.integer.value[i++];
  15909. }
  15910. return 0;
  15911. }
  15912. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  15913. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  15914. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  15915. msm_routing_put_lsm_app_type_cfg_control),
  15916. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  15917. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  15918. msm_routing_put_lsm_app_type_cfg_control),
  15919. };
  15920. static int msm_routing_get_use_ds1_or_ds2_control(
  15921. struct snd_kcontrol *kcontrol,
  15922. struct snd_ctl_elem_value *ucontrol)
  15923. {
  15924. ucontrol->value.integer.value[0] = is_ds2_on;
  15925. return 0;
  15926. }
  15927. static int msm_routing_put_use_ds1_or_ds2_control(
  15928. struct snd_kcontrol *kcontrol,
  15929. struct snd_ctl_elem_value *ucontrol)
  15930. {
  15931. is_ds2_on = ucontrol->value.integer.value[0];
  15932. return 0;
  15933. }
  15934. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  15935. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  15936. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  15937. msm_routing_put_use_ds1_or_ds2_control),
  15938. };
  15939. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  15940. struct snd_ctl_elem_value *ucontrol) {
  15941. int rc = 0;
  15942. int be_idx = 0;
  15943. char *param_value;
  15944. int *update_param_value;
  15945. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  15946. struct param_hdr_v3 param_hdr;
  15947. param_value = kzalloc(param_size, GFP_KERNEL);
  15948. if (!param_value)
  15949. return -ENOMEM;
  15950. memset(&param_hdr, 0, sizeof(param_hdr));
  15951. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  15952. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  15953. break;
  15954. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  15955. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  15956. param_hdr.instance_id = INSTANCE_ID_0;
  15957. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  15958. param_hdr.param_size = param_size;
  15959. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  15960. NULL, &param_hdr, (u8 *) param_value);
  15961. if (rc) {
  15962. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  15963. kfree(param_value);
  15964. return -EINVAL;
  15965. }
  15966. update_param_value = (int *)param_value;
  15967. ucontrol->value.integer.value[0] = update_param_value[0];
  15968. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  15969. __func__, update_param_value[0]);
  15970. }
  15971. kfree(param_value);
  15972. return 0;
  15973. }
  15974. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  15975. struct snd_ctl_elem_value *ucontrol)
  15976. {
  15977. voc_session_id = ucontrol->value.integer.value[0];
  15978. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  15979. return 0;
  15980. }
  15981. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  15982. struct snd_ctl_elem_value *ucontrol)
  15983. {
  15984. ucontrol->value.integer.value[0] = voc_session_id;
  15985. return 0;
  15986. }
  15987. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  15988. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  15989. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  15990. msm_voc_session_id_put),
  15991. };
  15992. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  15993. struct snd_ctl_elem_info *uinfo)
  15994. {
  15995. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  15996. uinfo->count = sizeof(struct sound_focus_param);
  15997. return 0;
  15998. }
  15999. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  16000. struct snd_ctl_elem_value *ucontrol)
  16001. {
  16002. int ret = 0;
  16003. struct sound_focus_param soundFocusData;
  16004. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16005. sizeof(struct sound_focus_param));
  16006. ret = voc_set_sound_focus(soundFocusData);
  16007. if (ret) {
  16008. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16009. __func__, ret);
  16010. ret = -EINVAL;
  16011. }
  16012. return ret;
  16013. }
  16014. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  16015. struct snd_ctl_elem_value *ucontrol)
  16016. {
  16017. int ret = 0;
  16018. struct sound_focus_param soundFocusData;
  16019. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  16020. ret = voc_get_sound_focus(&soundFocusData);
  16021. if (ret) {
  16022. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  16023. __func__, ret);
  16024. ret = -EINVAL;
  16025. goto done;
  16026. }
  16027. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16028. sizeof(struct sound_focus_param));
  16029. done:
  16030. return ret;
  16031. }
  16032. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  16033. struct snd_ctl_elem_info *uinfo)
  16034. {
  16035. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16036. uinfo->count = sizeof(struct source_tracking_param);
  16037. return 0;
  16038. }
  16039. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  16040. struct snd_ctl_elem_value *ucontrol)
  16041. {
  16042. int ret = 0;
  16043. struct source_tracking_param sourceTrackingData;
  16044. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  16045. ret = voc_get_source_tracking(&sourceTrackingData);
  16046. if (ret) {
  16047. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  16048. __func__, ret);
  16049. ret = -EINVAL;
  16050. goto done;
  16051. }
  16052. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  16053. sizeof(struct source_tracking_param));
  16054. done:
  16055. return ret;
  16056. }
  16057. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  16058. int *copp_idx)
  16059. {
  16060. int i, idx, be_idx;
  16061. int ret = 0;
  16062. unsigned long copp;
  16063. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  16064. ret = q6audio_validate_port(port_id);
  16065. if (ret < 0) {
  16066. pr_err("%s: port validation failed id 0x%x ret %d\n",
  16067. __func__, port_id, ret);
  16068. ret = -EINVAL;
  16069. goto done;
  16070. }
  16071. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  16072. if (msm_bedais[be_idx].port_id == port_id)
  16073. break;
  16074. }
  16075. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  16076. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  16077. ret = -EINVAL;
  16078. goto done;
  16079. }
  16080. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  16081. MSM_FRONTEND_DAI_MM_SIZE) {
  16082. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16083. copp = session_copp_map[i]
  16084. [session_type][be_idx];
  16085. if (test_bit(idx, &copp))
  16086. break;
  16087. }
  16088. if (idx >= MAX_COPPS_PER_PORT)
  16089. continue;
  16090. else
  16091. break;
  16092. }
  16093. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  16094. pr_err("%s: Invalid FE, exiting\n", __func__);
  16095. ret = -EINVAL;
  16096. goto done;
  16097. }
  16098. *copp_idx = idx;
  16099. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  16100. done:
  16101. return ret;
  16102. }
  16103. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  16104. const char *prefix, int *port_id)
  16105. {
  16106. int ret = 0;
  16107. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  16108. /*
  16109. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  16110. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  16111. * and compare the string with the backend name to derive the port id.
  16112. */
  16113. if (!strcmp(kcontrol->id.name + strlen(prefix),
  16114. "SLIMBUS_0")) {
  16115. *port_id = SLIMBUS_0_TX;
  16116. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16117. "TERT_MI2S")) {
  16118. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  16119. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16120. "INT3_MI2S")) {
  16121. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  16122. } else {
  16123. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  16124. __func__, kcontrol->id.name);
  16125. ret = -EINVAL;
  16126. goto done;
  16127. }
  16128. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  16129. __func__, kcontrol->id.name, *port_id);
  16130. done:
  16131. return ret;
  16132. }
  16133. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  16134. struct snd_ctl_elem_value *ucontrol)
  16135. {
  16136. int ret = 0;
  16137. struct sound_focus_param soundFocusData;
  16138. int port_id, copp_idx;
  16139. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16140. "Sound Focus Audio Tx ", &port_id);
  16141. if (ret != 0) {
  16142. pr_err("%s: Error in deriving port id, err=%d\n",
  16143. __func__, ret);
  16144. ret = -EINVAL;
  16145. goto done;
  16146. }
  16147. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16148. &copp_idx);
  16149. if (ret) {
  16150. pr_err("%s: Could not get copp idx for port_id=%d\n",
  16151. __func__, port_id);
  16152. ret = -EINVAL;
  16153. goto done;
  16154. }
  16155. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16156. sizeof(struct sound_focus_param));
  16157. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  16158. if (ret) {
  16159. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16160. __func__, ret);
  16161. ret = -EINVAL;
  16162. goto done;
  16163. }
  16164. done:
  16165. return ret;
  16166. }
  16167. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  16168. struct snd_ctl_elem_value *ucontrol)
  16169. {
  16170. int ret = 0;
  16171. struct sound_focus_param soundFocusData;
  16172. int port_id, copp_idx;
  16173. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16174. "Sound Focus Audio Tx ", &port_id);
  16175. if (ret) {
  16176. pr_err("%s: Error in deriving port id, err=%d\n",
  16177. __func__, ret);
  16178. ret = -EINVAL;
  16179. goto done;
  16180. }
  16181. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16182. &copp_idx);
  16183. if (ret) {
  16184. pr_err("%s: Could not get copp idx for port_id=%d\n",
  16185. __func__, port_id);
  16186. ret = -EINVAL;
  16187. goto done;
  16188. }
  16189. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  16190. if (ret) {
  16191. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  16192. __func__, ret);
  16193. ret = -EINVAL;
  16194. goto done;
  16195. }
  16196. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16197. sizeof(struct sound_focus_param));
  16198. done:
  16199. return ret;
  16200. }
  16201. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  16202. struct snd_ctl_elem_value *ucontrol)
  16203. {
  16204. int ret = 0;
  16205. struct source_tracking_param sourceTrackingData;
  16206. int port_id, copp_idx;
  16207. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16208. "Source Tracking Audio Tx ", &port_id);
  16209. if (ret) {
  16210. pr_err("%s: Error in deriving port id, err=%d\n",
  16211. __func__, ret);
  16212. ret = -EINVAL;
  16213. goto done;
  16214. }
  16215. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16216. &copp_idx);
  16217. if (ret) {
  16218. pr_err("%s: Could not get copp idx for port_id=%d\n",
  16219. __func__, port_id);
  16220. ret = -EINVAL;
  16221. goto done;
  16222. }
  16223. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  16224. if (ret) {
  16225. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  16226. __func__, ret);
  16227. ret = -EINVAL;
  16228. goto done;
  16229. }
  16230. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  16231. sizeof(struct source_tracking_param));
  16232. done:
  16233. return ret;
  16234. }
  16235. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  16236. {
  16237. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16238. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16239. .name = "Sound Focus Voice Tx SLIMBUS_0",
  16240. .info = msm_sound_focus_info,
  16241. .get = msm_voice_sound_focus_get,
  16242. .put = msm_voice_sound_focus_put,
  16243. },
  16244. {
  16245. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16246. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16247. .name = "Source Tracking Voice Tx SLIMBUS_0",
  16248. .info = msm_source_tracking_info,
  16249. .get = msm_voice_source_tracking_get,
  16250. },
  16251. {
  16252. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16253. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16254. .name = "Sound Focus Audio Tx SLIMBUS_0",
  16255. .info = msm_sound_focus_info,
  16256. .get = msm_audio_sound_focus_get,
  16257. .put = msm_audio_sound_focus_put,
  16258. },
  16259. {
  16260. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16261. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16262. .name = "Source Tracking Audio Tx SLIMBUS_0",
  16263. .info = msm_source_tracking_info,
  16264. .get = msm_audio_source_tracking_get,
  16265. },
  16266. {
  16267. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16268. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16269. .name = "Sound Focus Voice Tx TERT_MI2S",
  16270. .info = msm_sound_focus_info,
  16271. .get = msm_voice_sound_focus_get,
  16272. .put = msm_voice_sound_focus_put,
  16273. },
  16274. {
  16275. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16276. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16277. .name = "Source Tracking Voice Tx TERT_MI2S",
  16278. .info = msm_source_tracking_info,
  16279. .get = msm_voice_source_tracking_get,
  16280. },
  16281. {
  16282. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16283. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16284. .name = "Sound Focus Audio Tx TERT_MI2S",
  16285. .info = msm_sound_focus_info,
  16286. .get = msm_audio_sound_focus_get,
  16287. .put = msm_audio_sound_focus_put,
  16288. },
  16289. {
  16290. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16291. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16292. .name = "Source Tracking Audio Tx TERT_MI2S",
  16293. .info = msm_source_tracking_info,
  16294. .get = msm_audio_source_tracking_get,
  16295. },
  16296. {
  16297. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16298. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16299. .name = "Sound Focus Voice Tx INT3_MI2S",
  16300. .info = msm_sound_focus_info,
  16301. .get = msm_voice_sound_focus_get,
  16302. .put = msm_voice_sound_focus_put,
  16303. },
  16304. {
  16305. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16306. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16307. .name = "Source Tracking Voice Tx INT3_MI2S",
  16308. .info = msm_source_tracking_info,
  16309. .get = msm_voice_source_tracking_get,
  16310. },
  16311. {
  16312. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16313. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16314. .name = "Sound Focus Audio Tx INT3_MI2S",
  16315. .info = msm_sound_focus_info,
  16316. .get = msm_audio_sound_focus_get,
  16317. .put = msm_audio_sound_focus_put,
  16318. },
  16319. {
  16320. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16321. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16322. .name = "Source Tracking Audio Tx INT3_MI2S",
  16323. .info = msm_source_tracking_info,
  16324. .get = msm_audio_source_tracking_get,
  16325. },
  16326. };
  16327. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  16328. struct snd_ctl_elem_value *ucontrol)
  16329. {
  16330. int ret = 0;
  16331. int item;
  16332. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  16333. pr_debug("%s item is %d\n", __func__,
  16334. ucontrol->value.enumerated.item[0]);
  16335. mutex_lock(&routing_lock);
  16336. item = ucontrol->value.enumerated.item[0];
  16337. if (item < e->items) {
  16338. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  16339. __func__, e->shift_l, e->values[item]);
  16340. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  16341. e->values[item] < MSM_BACKEND_DAI_MAX)
  16342. /* Enable feedback TX path */
  16343. ret = afe_spk_prot_feed_back_cfg(
  16344. msm_bedais[e->values[item]].port_id,
  16345. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  16346. else {
  16347. pr_debug("%s values are out of range item %d\n",
  16348. __func__, e->values[item]);
  16349. /* Disable feedback TX path */
  16350. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  16351. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  16352. else
  16353. ret = -EINVAL;
  16354. }
  16355. } else {
  16356. pr_err("%s item value is out of range item\n", __func__);
  16357. ret = -EINVAL;
  16358. }
  16359. mutex_unlock(&routing_lock);
  16360. return ret;
  16361. }
  16362. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  16363. struct snd_ctl_elem_value *ucontrol)
  16364. {
  16365. int ret = 0;
  16366. int item;
  16367. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  16368. pr_debug("%s item is %d\n", __func__,
  16369. ucontrol->value.enumerated.item[0]);
  16370. mutex_lock(&routing_lock);
  16371. item = ucontrol->value.enumerated.item[0];
  16372. if (item < e->items) {
  16373. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  16374. __func__, e->shift_l, e->values[item]);
  16375. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  16376. e->values[item] < MSM_BACKEND_DAI_MAX)
  16377. /* Enable feedback TX path */
  16378. ret = afe_spk_prot_feed_back_cfg(
  16379. msm_bedais[e->values[item]].port_id,
  16380. msm_bedais[e->shift_l].port_id,
  16381. 1, 1, 1);
  16382. else {
  16383. pr_debug("%s values are out of range item %d\n",
  16384. __func__, e->values[item]);
  16385. /* Disable feedback TX path */
  16386. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  16387. ret = afe_spk_prot_feed_back_cfg(0,
  16388. 0, 0, 0, 0);
  16389. else
  16390. ret = -EINVAL;
  16391. }
  16392. } else {
  16393. pr_err("%s item value is out of range item\n", __func__);
  16394. ret = -EINVAL;
  16395. }
  16396. mutex_unlock(&routing_lock);
  16397. return ret;
  16398. }
  16399. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  16400. struct snd_ctl_elem_value *ucontrol)
  16401. {
  16402. pr_debug("%s\n", __func__);
  16403. return 0;
  16404. }
  16405. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  16406. struct snd_ctl_elem_value *ucontrol)
  16407. {
  16408. pr_debug("%s\n", __func__);
  16409. ucontrol->value.enumerated.item[0] = 0;
  16410. return 0;
  16411. }
  16412. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  16413. "ZERO", "SLIM4_TX"
  16414. };
  16415. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  16416. "ZERO", "SLIM4_TX"
  16417. };
  16418. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  16419. "ZERO", "WSA_CDC_DMA_TX_0"
  16420. };
  16421. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  16422. "ZERO", "WSA_CDC_DMA_TX_0"
  16423. };
  16424. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  16425. "ZERO", "SENARY_TX"
  16426. };
  16427. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  16428. "ZERO", "INT5_MI2S_TX"
  16429. };
  16430. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  16431. "ZERO", "INT5_MI2S_TX"
  16432. };
  16433. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  16434. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  16435. };
  16436. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  16437. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  16438. };
  16439. static const int const wsa_rx_0_vi_fb_tx_lch_value[] = {
  16440. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  16441. };
  16442. static const int const wsa_rx_0_vi_fb_tx_rch_value[] = {
  16443. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  16444. };
  16445. static const int const mi2s_rx_vi_fb_tx_value[] = {
  16446. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  16447. };
  16448. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  16449. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  16450. };
  16451. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  16452. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  16453. };
  16454. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  16455. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  16456. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  16457. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  16458. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  16459. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  16460. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  16461. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  16462. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  16463. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  16464. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  16465. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  16466. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  16467. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  16468. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  16469. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  16470. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  16471. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  16472. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  16473. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  16474. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  16475. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  16476. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  16477. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  16478. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  16479. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  16480. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  16481. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  16482. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  16483. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  16484. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  16485. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  16486. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  16487. spkr_prot_put_vi_lch_port);
  16488. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  16489. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  16490. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  16491. spkr_prot_put_vi_rch_port);
  16492. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  16493. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  16494. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  16495. spkr_prot_put_vi_lch_port);
  16496. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  16497. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  16498. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  16499. spkr_prot_put_vi_rch_port);
  16500. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  16501. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  16502. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  16503. spkr_prot_put_vi_lch_port);
  16504. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  16505. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  16506. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  16507. spkr_prot_put_vi_lch_port);
  16508. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  16509. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  16510. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  16511. spkr_prot_put_vi_rch_port);
  16512. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  16513. /* Frontend AIF */
  16514. /* Widget name equals to Front-End DAI name<Need confirmation>,
  16515. * Stream name must contains substring of front-end dai name
  16516. */
  16517. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  16518. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  16519. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  16520. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  16521. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  16522. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  16523. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  16524. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  16525. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  16526. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  16527. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  16528. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  16529. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  16530. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  16531. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  16532. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  16533. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  16534. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  16535. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  16536. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  16537. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  16538. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  16539. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  16540. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  16541. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  16542. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  16543. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  16544. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  16545. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  16546. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  16547. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  16548. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  16549. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  16550. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  16551. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  16552. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  16553. "VoiceMMode1 Playback", 0, 0, 0, 0),
  16554. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  16555. "VoiceMMode1 Capture", 0, 0, 0, 0),
  16556. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  16557. "VoiceMMode2 Playback", 0, 0, 0, 0),
  16558. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  16559. "VoiceMMode2 Capture", 0, 0, 0, 0),
  16560. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  16561. 0, 0, 0, 0),
  16562. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  16563. 0, 0, 0, 0),
  16564. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  16565. 0, 0, 0, 0),
  16566. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  16567. 0, 0, 0, 0),
  16568. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  16569. 0, 0, 0, 0),
  16570. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  16571. 0, 0, 0, 0),
  16572. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  16573. 0, 0, 0, 0),
  16574. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  16575. 0, 0, 0, 0),
  16576. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  16577. 0, 0, 0, 0),
  16578. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  16579. 0, 0, 0, 0),
  16580. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  16581. 0, 0, 0, 0),
  16582. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  16583. 0, 0, 0, 0),
  16584. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  16585. 0, 0, 0, 0),
  16586. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  16587. 0, 0, 0, 0),
  16588. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  16589. 0, 0, 0, 0),
  16590. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  16591. 0, 0, 0, 0),
  16592. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  16593. 0, 0, 0, 0),
  16594. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  16595. 0, 0, 0, 0),
  16596. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  16597. 0, 0, 0, 0),
  16598. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  16599. 0, 0, 0, 0),
  16600. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  16601. 0, 0, 0, 0),
  16602. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  16603. 0, 0, 0, 0),
  16604. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  16605. 0, 0, 0, 0),
  16606. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  16607. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  16608. 0, 0, 0, 0),
  16609. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  16610. "INT0 MI2S_RX Hostless Playback",
  16611. 0, 0, 0, 0),
  16612. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  16613. "INT4 MI2S_RX Hostless Playback",
  16614. 0, 0, 0, 0),
  16615. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  16616. "Primary MI2S_RX Hostless Playback",
  16617. 0, 0, 0, 0),
  16618. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  16619. "Secondary MI2S_RX Hostless Playback",
  16620. 0, 0, 0, 0),
  16621. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  16622. "Tertiary MI2S_RX Hostless Playback",
  16623. 0, 0, 0, 0),
  16624. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  16625. "Quaternary MI2S_RX Hostless Playback",
  16626. 0, 0, 0, 0),
  16627. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  16628. "Quinary MI2S_RX Hostless Playback",
  16629. 0, 0, 0, 0),
  16630. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  16631. 0, 0, 0, 0),
  16632. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  16633. 0, 0, 0, 0),
  16634. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  16635. 0, 0, 0, 0),
  16636. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  16637. 0, 0, 0, 0),
  16638. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  16639. 0, 0, 0, 0),
  16640. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  16641. "INT3 MI2S_TX Hostless Capture",
  16642. 0, 0, 0, 0),
  16643. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  16644. "Tertiary MI2S_TX Hostless Capture",
  16645. 0, 0, 0, 0),
  16646. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  16647. "Secondary MI2S_TX Hostless Capture",
  16648. 0, 0, 0, 0),
  16649. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  16650. "Primary MI2S_TX Hostless Capture",
  16651. 0, 0, 0, 0),
  16652. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  16653. 0, 0, 0, 0),
  16654. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  16655. 0, 0, 0, 0),
  16656. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  16657. "Quaternary MI2S_TX Hostless Capture",
  16658. 0, 0, 0, 0),
  16659. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  16660. "Quinary MI2S_TX Hostless Capture",
  16661. 0, 0, 0, 0),
  16662. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  16663. "Primary TDM0 Hostless Playback",
  16664. 0, 0, 0, 0),
  16665. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  16666. "Primary TDM0 Hostless Capture",
  16667. 0, 0, 0, 0),
  16668. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  16669. "Primary TDM1 Hostless Playback",
  16670. 0, 0, 0, 0),
  16671. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  16672. "Primary TDM1 Hostless Capture",
  16673. 0, 0, 0, 0),
  16674. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  16675. "Primary TDM2 Hostless Playback",
  16676. 0, 0, 0, 0),
  16677. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  16678. "Primary TDM2 Hostless Capture",
  16679. 0, 0, 0, 0),
  16680. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  16681. "Primary TDM3 Hostless Playback",
  16682. 0, 0, 0, 0),
  16683. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  16684. "Primary TDM3 Hostless Capture",
  16685. 0, 0, 0, 0),
  16686. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  16687. "Primary TDM4 Hostless Playback",
  16688. 0, 0, 0, 0),
  16689. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  16690. "Primary TDM4 Hostless Capture",
  16691. 0, 0, 0, 0),
  16692. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  16693. "Primary TDM5 Hostless Playback",
  16694. 0, 0, 0, 0),
  16695. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  16696. "Primary TDM5 Hostless Capture",
  16697. 0, 0, 0, 0),
  16698. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  16699. "Primary TDM6 Hostless Playback",
  16700. 0, 0, 0, 0),
  16701. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  16702. "Primary TDM6 Hostless Capture",
  16703. 0, 0, 0, 0),
  16704. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  16705. "Primary TDM7 Hostless Playback",
  16706. 0, 0, 0, 0),
  16707. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  16708. "Primary TDM7 Hostless Capture",
  16709. 0, 0, 0, 0),
  16710. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  16711. "Secondary TDM0 Hostless Playback",
  16712. 0, 0, 0, 0),
  16713. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  16714. "Secondary TDM0 Hostless Capture",
  16715. 0, 0, 0, 0),
  16716. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  16717. "Secondary TDM1 Hostless Playback",
  16718. 0, 0, 0, 0),
  16719. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  16720. "Secondary TDM1 Hostless Capture",
  16721. 0, 0, 0, 0),
  16722. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  16723. "Secondary TDM2 Hostless Playback",
  16724. 0, 0, 0, 0),
  16725. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  16726. "Secondary TDM2 Hostless Capture",
  16727. 0, 0, 0, 0),
  16728. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  16729. "Secondary TDM3 Hostless Playback",
  16730. 0, 0, 0, 0),
  16731. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  16732. "Secondary TDM3 Hostless Capture",
  16733. 0, 0, 0, 0),
  16734. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  16735. "Secondary TDM4 Hostless Playback",
  16736. 0, 0, 0, 0),
  16737. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  16738. "Secondary TDM4 Hostless Capture",
  16739. 0, 0, 0, 0),
  16740. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  16741. "Secondary TDM5 Hostless Playback",
  16742. 0, 0, 0, 0),
  16743. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  16744. "Secondary TDM5 Hostless Capture",
  16745. 0, 0, 0, 0),
  16746. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  16747. "Secondary TDM6 Hostless Playback",
  16748. 0, 0, 0, 0),
  16749. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  16750. "Secondary TDM6 Hostless Capture",
  16751. 0, 0, 0, 0),
  16752. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  16753. "Secondary TDM7 Hostless Playback",
  16754. 0, 0, 0, 0),
  16755. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  16756. "Secondary TDM7 Hostless Capture",
  16757. 0, 0, 0, 0),
  16758. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  16759. "Tertiary TDM0 Hostless Playback",
  16760. 0, 0, 0, 0),
  16761. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  16762. "Tertiary TDM0 Hostless Capture",
  16763. 0, 0, 0, 0),
  16764. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  16765. "Tertiary TDM1 Hostless Playback",
  16766. 0, 0, 0, 0),
  16767. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  16768. "Tertiary TDM1 Hostless Capture",
  16769. 0, 0, 0, 0),
  16770. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  16771. "Tertiary TDM2 Hostless Playback",
  16772. 0, 0, 0, 0),
  16773. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  16774. "Tertiary TDM2 Hostless Capture",
  16775. 0, 0, 0, 0),
  16776. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  16777. "Tertiary TDM3 Hostless Playback",
  16778. 0, 0, 0, 0),
  16779. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  16780. "Tertiary TDM3 Hostless Capture",
  16781. 0, 0, 0, 0),
  16782. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  16783. "Tertiary TDM4 Hostless Playback",
  16784. 0, 0, 0, 0),
  16785. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  16786. "Tertiary TDM4 Hostless Capture",
  16787. 0, 0, 0, 0),
  16788. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  16789. "Tertiary TDM5 Hostless Playback",
  16790. 0, 0, 0, 0),
  16791. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  16792. "Tertiary TDM5 Hostless Capture",
  16793. 0, 0, 0, 0),
  16794. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  16795. "Tertiary TDM6 Hostless Playback",
  16796. 0, 0, 0, 0),
  16797. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  16798. "Tertiary TDM6 Hostless Capture",
  16799. 0, 0, 0, 0),
  16800. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  16801. "Tertiary TDM7 Hostless Playback",
  16802. 0, 0, 0, 0),
  16803. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  16804. "Tertiary TDM7 Hostless Capture",
  16805. 0, 0, 0, 0),
  16806. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  16807. "Quaternary TDM0 Hostless Playback",
  16808. 0, 0, 0, 0),
  16809. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  16810. "Quaternary TDM0 Hostless Capture",
  16811. 0, 0, 0, 0),
  16812. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  16813. "Quaternary TDM1 Hostless Playback",
  16814. 0, 0, 0, 0),
  16815. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  16816. "Quaternary TDM1 Hostless Capture",
  16817. 0, 0, 0, 0),
  16818. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  16819. "Quaternary TDM2 Hostless Playback",
  16820. 0, 0, 0, 0),
  16821. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  16822. "Quaternary TDM2 Hostless Capture",
  16823. 0, 0, 0, 0),
  16824. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  16825. "Quaternary TDM3 Hostless Playback",
  16826. 0, 0, 0, 0),
  16827. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  16828. "Quaternary TDM3 Hostless Capture",
  16829. 0, 0, 0, 0),
  16830. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  16831. "Quaternary TDM4 Hostless Playback",
  16832. 0, 0, 0, 0),
  16833. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  16834. "Quaternary TDM4 Hostless Capture",
  16835. 0, 0, 0, 0),
  16836. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  16837. "Quaternary TDM5 Hostless Playback",
  16838. 0, 0, 0, 0),
  16839. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  16840. "Quaternary TDM5 Hostless Capture",
  16841. 0, 0, 0, 0),
  16842. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  16843. "Quaternary TDM6 Hostless Playback",
  16844. 0, 0, 0, 0),
  16845. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  16846. "Quaternary TDM6 Hostless Capture",
  16847. 0, 0, 0, 0),
  16848. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  16849. "Quaternary TDM7 Hostless Playback",
  16850. 0, 0, 0, 0),
  16851. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  16852. "Quaternary TDM7 Hostless Capture",
  16853. 0, 0, 0, 0),
  16854. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  16855. "Quinary TDM0 Hostless Playback",
  16856. 0, 0, 0, 0),
  16857. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  16858. "Quinary TDM0 Hostless Capture",
  16859. 0, 0, 0, 0),
  16860. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  16861. "Quinary TDM1 Hostless Playback",
  16862. 0, 0, 0, 0),
  16863. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  16864. "Quinary TDM1 Hostless Capture",
  16865. 0, 0, 0, 0),
  16866. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  16867. "Quinary TDM2 Hostless Playback",
  16868. 0, 0, 0, 0),
  16869. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  16870. "Quinary TDM2 Hostless Capture",
  16871. 0, 0, 0, 0),
  16872. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  16873. "Quinary TDM3 Hostless Playback",
  16874. 0, 0, 0, 0),
  16875. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  16876. "Quinary TDM3 Hostless Capture",
  16877. 0, 0, 0, 0),
  16878. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  16879. "Quinary TDM4 Hostless Playback",
  16880. 0, 0, 0, 0),
  16881. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  16882. "Quinary TDM4 Hostless Capture",
  16883. 0, 0, 0, 0),
  16884. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  16885. "Quinary TDM5 Hostless Playback",
  16886. 0, 0, 0, 0),
  16887. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  16888. "Quinary TDM5 Hostless Capture",
  16889. 0, 0, 0, 0),
  16890. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  16891. "Quinary TDM6 Hostless Playback",
  16892. 0, 0, 0, 0),
  16893. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  16894. "Quinary TDM6 Hostless Capture",
  16895. 0, 0, 0, 0),
  16896. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  16897. "Quinary TDM7 Hostless Playback",
  16898. 0, 0, 0, 0),
  16899. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  16900. "Quinary TDM7 Hostless Capture",
  16901. 0, 0, 0, 0),
  16902. /* LSM */
  16903. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  16904. 0, 0, 0, 0),
  16905. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  16906. 0, 0, 0, 0),
  16907. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  16908. 0, 0, 0, 0),
  16909. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  16910. 0, 0, 0, 0),
  16911. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  16912. 0, 0, 0, 0),
  16913. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  16914. 0, 0, 0, 0),
  16915. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  16916. 0, 0, 0, 0),
  16917. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  16918. 0, 0, 0, 0),
  16919. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  16920. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  16921. /* Backend AIF */
  16922. /* Stream name equals to backend dai link stream name */
  16923. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  16924. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  16925. 0, 0, 0, 0),
  16926. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  16927. 0, 0, 0, 0),
  16928. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  16929. 0, 0, 0, 0),
  16930. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  16931. 0, 0, 0, 0),
  16932. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  16933. 0, 0, 0, 0),
  16934. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  16935. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  16936. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  16937. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  16938. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  16939. 0, 0, 0, 0),
  16940. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  16941. 0, 0, 0, 0),
  16942. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  16943. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  16944. 0, 0, 0, 0),
  16945. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  16946. 0, 0, 0, 0),
  16947. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  16948. 0, 0, 0, 0),
  16949. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  16950. "Secondary MI2S Playback SD1",
  16951. 0, 0, 0, 0),
  16952. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  16953. 0, 0, 0, 0),
  16954. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  16955. 0, 0, 0, 0),
  16956. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  16957. 0, 0, 0, 0),
  16958. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  16959. 0, 0, 0, 0),
  16960. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  16961. 0, 0, 0, 0),
  16962. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  16963. 0, 0, 0, 0),
  16964. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  16965. 0, 0, 0, 0),
  16966. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  16967. 0, 0, 0, 0),
  16968. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  16969. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  16970. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  16971. 0, 0, 0, 0),
  16972. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  16973. 0, 0, 0, 0),
  16974. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  16975. 0, 0, 0, 0),
  16976. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  16977. 0, 0, 0, 0),
  16978. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  16979. 0, 0, 0, 0),
  16980. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  16981. 0, 0, 0, 0),
  16982. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  16983. 0, 0, 0, 0),
  16984. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  16985. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  16986. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  16987. 0, 0, 0, 0),
  16988. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  16989. 0, 0, 0, 0),
  16990. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  16991. 0, 0, 0, 0),
  16992. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  16993. 0, 0, 0, 0),
  16994. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  16995. 0, 0, 0, 0),
  16996. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  16997. 0, 0, 0, 0),
  16998. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  16999. 0, 0, 0, 0),
  17000. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  17001. 0, 0, 0, 0),
  17002. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  17003. 0, 0, 0, 0),
  17004. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  17005. 0, 0, 0, 0),
  17006. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  17007. 0, 0, 0, 0),
  17008. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  17009. 0, 0, 0, 0),
  17010. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  17011. 0, 0, 0, 0),
  17012. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  17013. 0, 0, 0, 0),
  17014. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  17015. 0, 0, 0, 0),
  17016. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  17017. 0, 0, 0, 0),
  17018. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  17019. 0, 0, 0, 0),
  17020. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  17021. 0, 0, 0, 0),
  17022. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  17023. 0, 0, 0, 0),
  17024. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  17025. 0, 0, 0, 0),
  17026. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  17027. 0, 0, 0, 0),
  17028. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  17029. 0, 0, 0, 0),
  17030. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  17031. 0, 0, 0, 0),
  17032. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  17033. 0, 0, 0, 0),
  17034. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  17035. 0, 0, 0, 0),
  17036. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  17037. 0, 0, 0, 0),
  17038. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  17039. 0, 0, 0, 0),
  17040. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  17041. 0, 0, 0, 0),
  17042. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  17043. 0, 0, 0, 0),
  17044. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  17045. 0, 0, 0, 0),
  17046. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  17047. 0, 0, 0, 0),
  17048. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  17049. 0, 0, 0, 0),
  17050. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  17051. 0, 0, 0, 0),
  17052. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  17053. 0, 0, 0, 0),
  17054. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  17055. 0, 0, 0, 0),
  17056. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  17057. 0, 0, 0, 0),
  17058. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  17059. 0, 0, 0, 0),
  17060. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  17061. 0, 0, 0, 0),
  17062. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  17063. 0, 0, 0, 0),
  17064. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  17065. 0, 0, 0, 0),
  17066. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  17067. 0, 0, 0, 0),
  17068. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  17069. 0, 0, 0, 0),
  17070. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  17071. 0, 0, 0, 0),
  17072. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  17073. 0, 0, 0, 0),
  17074. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  17075. 0, 0, 0, 0),
  17076. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  17077. 0, 0, 0, 0),
  17078. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  17079. 0, 0, 0, 0),
  17080. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  17081. 0, 0, 0, 0),
  17082. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  17083. 0, 0, 0, 0),
  17084. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  17085. 0, 0, 0, 0),
  17086. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  17087. 0, 0, 0, 0),
  17088. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  17089. 0, 0, 0, 0),
  17090. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  17091. 0, 0, 0, 0),
  17092. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  17093. 0, 0, 0, 0),
  17094. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  17095. 0, 0, 0, 0),
  17096. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  17097. 0, 0, 0, 0),
  17098. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  17099. 0, 0, 0, 0),
  17100. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  17101. 0, 0, 0, 0),
  17102. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  17103. 0, 0, 0, 0),
  17104. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  17105. 0, 0, 0, 0),
  17106. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  17107. 0, 0, 0, 0),
  17108. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  17109. 0, 0, 0, 0),
  17110. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  17111. 0, 0, 0, 0),
  17112. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  17113. 0, 0, 0, 0),
  17114. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  17115. 0, 0, 0, 0),
  17116. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  17117. 0, 0, 0, 0),
  17118. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  17119. 0, 0, 0, 0),
  17120. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  17121. 0, 0, 0, 0),
  17122. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  17123. 0, 0, 0, 0),
  17124. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  17125. 0, 0, 0, 0),
  17126. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  17127. 0, 0, 0, 0),
  17128. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  17129. 0, 0, 0, 0),
  17130. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  17131. 0, 0, 0, 0),
  17132. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  17133. 0, 0, 0, 0),
  17134. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  17135. 0, 0, 0, 0),
  17136. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  17137. 0, 0, 0, 0),
  17138. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  17139. 0, 0, 0, 0),
  17140. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  17141. 0, 0, 0, 0),
  17142. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  17143. 0, 0, 0, 0),
  17144. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  17145. 0, 0, 0, 0),
  17146. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  17147. 0, 0, 0, 0),
  17148. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  17149. 0, 0, 0, 0),
  17150. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  17151. 0, 0, 0, 0),
  17152. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  17153. 0, 0, 0, 0),
  17154. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  17155. 0, 0, 0, 0),
  17156. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  17157. 0, 0, 0, 0),
  17158. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  17159. 0, 0, 0, 0),
  17160. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  17161. 0, 0, 0, 0),
  17162. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  17163. 0, 0, 0, 0),
  17164. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  17165. 0, 0, 0, 0),
  17166. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  17167. 0, 0, 0, 0),
  17168. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  17169. 0, 0, 0, 0),
  17170. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  17171. 0, 0, 0, 0),
  17172. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  17173. 0, 0, 0, 0),
  17174. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  17175. 0, 0, 0, 0),
  17176. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  17177. 0, 0, 0, 0),
  17178. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  17179. 0, 0, 0, 0),
  17180. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  17181. 0, 0, 0, 0),
  17182. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  17183. 0, 0, 0, 0),
  17184. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  17185. 0, 0, 0, 0),
  17186. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  17187. 0, 0, 0, 0),
  17188. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  17189. 0, 0, 0, 0),
  17190. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  17191. 0, 0, 0, 0),
  17192. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  17193. 0, 0, 0, 0),
  17194. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  17195. 0, 0, 0, 0),
  17196. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  17197. 0, 0, 0, 0),
  17198. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  17199. 0, 0, 0, 0),
  17200. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  17201. 0, 0, 0, 0),
  17202. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  17203. 0, 0, 0, 0),
  17204. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  17205. 0, 0, 0, 0),
  17206. /* incall */
  17207. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  17208. 0, 0, 0, 0),
  17209. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  17210. 0, 0, 0, 0),
  17211. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  17212. 0, 0, 0, 0),
  17213. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  17214. 0, 0, 0, 0),
  17215. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  17216. 0, 0, 0, 0),
  17217. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  17218. 0, 0, 0, 0),
  17219. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  17220. 0, 0, 0, 0),
  17221. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  17222. 0, 0, 0, 0),
  17223. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  17224. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  17225. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  17226. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  17227. 0, 0, 0, 0),
  17228. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  17229. 0, 0, 0, 0),
  17230. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  17231. 0, 0, 0, 0),
  17232. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  17233. 0, 0, 0, 0),
  17234. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  17235. 0, 0, 0, 0),
  17236. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  17237. 0, 0, 0, 0),
  17238. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  17239. 0, 0, 0, 0),
  17240. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  17241. 0, 0, 0, 0),
  17242. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  17243. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  17244. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  17245. 0, 0, 0, 0),
  17246. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  17247. 0, 0, 0, 0),
  17248. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  17249. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  17250. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  17251. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  17252. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  17253. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  17254. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  17255. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  17256. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  17257. /* In- call recording */
  17258. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  17259. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  17260. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  17261. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  17262. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  17263. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  17264. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  17265. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  17266. /* Switch Definitions */
  17267. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  17268. &slim_fm_switch_mixer_controls),
  17269. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  17270. &slim1_fm_switch_mixer_controls),
  17271. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  17272. &slim3_fm_switch_mixer_controls),
  17273. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  17274. &slim4_fm_switch_mixer_controls),
  17275. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  17276. &slim6_fm_switch_mixer_controls),
  17277. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17278. &pcm_rx_switch_mixer_controls),
  17279. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17280. &int0_mi2s_rx_switch_mixer_controls),
  17281. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17282. &int4_mi2s_rx_switch_mixer_controls),
  17283. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17284. &pri_mi2s_rx_switch_mixer_controls),
  17285. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17286. &sec_mi2s_rx_switch_mixer_controls),
  17287. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17288. &tert_mi2s_rx_switch_mixer_controls),
  17289. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17290. &quat_mi2s_rx_switch_mixer_controls),
  17291. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  17292. &quin_mi2s_rx_switch_mixer_controls),
  17293. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  17294. &hfp_pri_aux_switch_mixer_controls),
  17295. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  17296. &hfp_aux_switch_mixer_controls),
  17297. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  17298. &hfp_int_switch_mixer_controls),
  17299. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  17300. &hfp_slim7_switch_mixer_controls),
  17301. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  17302. &usb_switch_mixer_controls),
  17303. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  17304. &a2dp_slim7_switch_mixer_controls),
  17305. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  17306. &cdc_dma_fm_switch_mixer_controls),
  17307. /* Mixer definitions */
  17308. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17309. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  17310. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17311. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  17312. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17313. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  17314. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17315. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  17316. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17317. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  17318. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17319. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  17320. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  17321. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  17322. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  17323. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  17324. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  17325. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  17326. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17327. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  17328. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17329. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  17330. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17331. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  17332. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17333. quaternary_mi2s_rx_mixer_controls,
  17334. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  17335. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17336. tertiary_mi2s_rx_mixer_controls,
  17337. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  17338. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17339. secondary_mi2s_rx_mixer_controls,
  17340. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  17341. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17342. secondary_mi2s_rx2_mixer_controls,
  17343. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  17344. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17345. primary_mi2s_rx_mixer_controls,
  17346. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  17347. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17348. int0_mi2s_rx_mixer_controls,
  17349. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  17350. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17351. int4_mi2s_rx_mixer_controls,
  17352. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  17353. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17354. quinary_mi2s_rx_mixer_controls,
  17355. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  17356. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17357. pri_tdm_rx_0_mixer_controls,
  17358. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  17359. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17360. pri_tdm_rx_1_mixer_controls,
  17361. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  17362. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17363. pri_tdm_rx_2_mixer_controls,
  17364. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  17365. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17366. pri_tdm_rx_3_mixer_controls,
  17367. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  17368. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17369. pri_tdm_tx_0_mixer_controls,
  17370. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  17371. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17372. sec_tdm_rx_0_mixer_controls,
  17373. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  17374. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17375. sec_tdm_rx_1_mixer_controls,
  17376. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  17377. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17378. sec_tdm_rx_2_mixer_controls,
  17379. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  17380. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17381. sec_tdm_rx_3_mixer_controls,
  17382. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  17383. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17384. sec_tdm_tx_0_mixer_controls,
  17385. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  17386. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17387. tert_tdm_rx_0_mixer_controls,
  17388. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  17389. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17390. tert_tdm_tx_0_mixer_controls,
  17391. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  17392. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17393. tert_tdm_rx_1_mixer_controls,
  17394. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  17395. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17396. tert_tdm_rx_2_mixer_controls,
  17397. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  17398. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17399. tert_tdm_rx_3_mixer_controls,
  17400. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  17401. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17402. tert_tdm_rx_4_mixer_controls,
  17403. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  17404. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17405. quat_tdm_rx_0_mixer_controls,
  17406. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  17407. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17408. quat_tdm_tx_0_mixer_controls,
  17409. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  17410. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17411. quat_tdm_rx_1_mixer_controls,
  17412. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  17413. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17414. quat_tdm_rx_2_mixer_controls,
  17415. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  17416. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17417. quat_tdm_rx_3_mixer_controls,
  17418. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  17419. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17420. quin_tdm_rx_0_mixer_controls,
  17421. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  17422. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17423. quin_tdm_tx_0_mixer_controls,
  17424. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  17425. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17426. quin_tdm_rx_1_mixer_controls,
  17427. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  17428. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17429. quin_tdm_rx_2_mixer_controls,
  17430. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  17431. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17432. quin_tdm_rx_3_mixer_controls,
  17433. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  17434. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17435. wsa_cdc_dma_rx_0_mixer_controls,
  17436. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  17437. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17438. wsa_cdc_dma_rx_1_mixer_controls,
  17439. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  17440. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17441. rx_cdc_dma_rx_0_mixer_controls,
  17442. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  17443. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17444. rx_cdc_dma_rx_1_mixer_controls,
  17445. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  17446. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17447. rx_cdc_dma_rx_2_mixer_controls,
  17448. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  17449. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17450. rx_cdc_dma_rx_3_mixer_controls,
  17451. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  17452. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17453. rx_cdc_dma_rx_4_mixer_controls,
  17454. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  17455. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17456. rx_cdc_dma_rx_5_mixer_controls,
  17457. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  17458. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17459. rx_cdc_dma_rx_6_mixer_controls,
  17460. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  17461. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17462. rx_cdc_dma_rx_7_mixer_controls,
  17463. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  17464. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  17465. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  17466. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  17467. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  17468. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  17469. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  17470. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  17471. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  17472. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  17473. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  17474. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  17475. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  17476. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  17477. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  17478. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  17479. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  17480. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  17481. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  17482. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  17483. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  17484. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  17485. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  17486. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  17487. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  17488. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  17489. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  17490. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  17491. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  17492. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  17493. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  17494. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  17495. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  17496. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17497. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  17498. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17499. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  17500. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17501. tert_auxpcm_rx_mixer_controls,
  17502. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  17503. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17504. quat_auxpcm_rx_mixer_controls,
  17505. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  17506. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17507. quin_auxpcm_rx_mixer_controls,
  17508. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  17509. /* incall */
  17510. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  17511. incall_music_delivery_mixer_controls,
  17512. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  17513. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  17514. incall_music2_delivery_mixer_controls,
  17515. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  17516. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17517. slimbus_4_rx_mixer_controls,
  17518. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  17519. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17520. slimbus_6_rx_mixer_controls,
  17521. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  17522. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17523. usb_audio_rx_mixer_controls,
  17524. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  17525. /* Voice Mixer */
  17526. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  17527. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  17528. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  17529. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  17530. SND_SOC_NOPM, 0, 0,
  17531. sec_i2s_rx_voice_mixer_controls,
  17532. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  17533. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  17534. SND_SOC_NOPM, 0, 0,
  17535. sec_mi2s_rx_voice_mixer_controls,
  17536. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  17537. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  17538. SND_SOC_NOPM, 0, 0,
  17539. slimbus_rx_voice_mixer_controls,
  17540. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  17541. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  17542. SND_SOC_NOPM, 0, 0,
  17543. bt_sco_rx_voice_mixer_controls,
  17544. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  17545. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  17546. SND_SOC_NOPM, 0, 0,
  17547. afe_pcm_rx_voice_mixer_controls,
  17548. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  17549. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  17550. SND_SOC_NOPM, 0, 0,
  17551. aux_pcm_rx_voice_mixer_controls,
  17552. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  17553. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  17554. SND_SOC_NOPM, 0, 0,
  17555. sec_aux_pcm_rx_voice_mixer_controls,
  17556. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  17557. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  17558. SND_SOC_NOPM, 0, 0,
  17559. tert_aux_pcm_rx_voice_mixer_controls,
  17560. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  17561. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  17562. SND_SOC_NOPM, 0, 0,
  17563. quat_aux_pcm_rx_voice_mixer_controls,
  17564. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  17565. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  17566. SND_SOC_NOPM, 0, 0,
  17567. quin_aux_pcm_rx_voice_mixer_controls,
  17568. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  17569. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  17570. SND_SOC_NOPM, 0, 0,
  17571. hdmi_rx_voice_mixer_controls,
  17572. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  17573. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  17574. SND_SOC_NOPM, 0, 0,
  17575. mi2s_rx_voice_mixer_controls,
  17576. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  17577. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  17578. SND_SOC_NOPM, 0, 0,
  17579. pri_mi2s_rx_voice_mixer_controls,
  17580. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  17581. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  17582. SND_SOC_NOPM, 0, 0,
  17583. int0_mi2s_rx_voice_mixer_controls,
  17584. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  17585. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  17586. SND_SOC_NOPM, 0, 0,
  17587. int4_mi2s_rx_voice_mixer_controls,
  17588. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  17589. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  17590. SND_SOC_NOPM, 0, 0,
  17591. tert_mi2s_rx_voice_mixer_controls,
  17592. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  17593. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  17594. SND_SOC_NOPM, 0, 0,
  17595. quat_mi2s_rx_voice_mixer_controls,
  17596. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  17597. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  17598. SND_SOC_NOPM, 0, 0,
  17599. quin_mi2s_rx_voice_mixer_controls,
  17600. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  17601. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  17602. SND_SOC_NOPM, 0, 0,
  17603. quat_tdm_rx_2_voice_mixer_controls,
  17604. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  17605. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  17606. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  17607. ARRAY_SIZE(tx_voip_mixer_controls)),
  17608. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  17609. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  17610. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  17611. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  17612. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  17613. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  17614. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17615. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  17616. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17617. int_bt_a2dp_rx_mixer_controls,
  17618. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  17619. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17620. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  17621. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  17622. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  17623. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  17624. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  17625. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  17626. tx_voice2_stub_mixer_controls,
  17627. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  17628. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  17629. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  17630. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  17631. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  17632. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  17633. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  17634. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  17635. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  17636. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  17637. SND_SOC_NOPM, 0, 0,
  17638. slimbus_6_rx_voice_mixer_controls,
  17639. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  17640. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  17641. slimbus_7_rx_voice_mixer_controls,
  17642. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  17643. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  17644. slimbus_8_rx_voice_mixer_controls,
  17645. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  17646. /* port mixer */
  17647. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  17648. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  17649. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  17650. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  17651. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  17652. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  17653. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  17654. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  17655. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  17656. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  17657. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  17658. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  17659. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  17660. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  17661. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  17662. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  17663. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  17664. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  17665. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17666. sbus_1_rx_port_mixer_controls,
  17667. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  17668. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17669. bt_sco_rx_port_mixer_controls,
  17670. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  17671. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  17672. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  17673. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  17674. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  17675. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  17676. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  17677. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  17678. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  17679. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  17680. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  17681. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  17682. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  17683. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  17684. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  17685. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  17686. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  17687. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  17688. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  17689. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  17690. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  17691. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  17692. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17693. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  17694. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17695. primary_mi2s_rx_port_mixer_controls,
  17696. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  17697. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17698. sec_mi2s_rx_port_mixer_controls,
  17699. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  17700. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17701. tert_mi2s_rx_port_mixer_controls,
  17702. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  17703. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17704. quat_mi2s_rx_port_mixer_controls,
  17705. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  17706. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17707. quin_mi2s_rx_port_mixer_controls,
  17708. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  17709. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  17710. pri_tdm_rx_0_port_mixer_controls,
  17711. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  17712. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  17713. pri_tdm_rx_1_port_mixer_controls,
  17714. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  17715. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  17716. pri_tdm_rx_2_port_mixer_controls,
  17717. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  17718. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  17719. pri_tdm_rx_3_port_mixer_controls,
  17720. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  17721. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  17722. sec_tdm_rx_0_port_mixer_controls,
  17723. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  17724. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  17725. sec_tdm_rx_1_port_mixer_controls,
  17726. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  17727. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  17728. sec_tdm_rx_2_port_mixer_controls,
  17729. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  17730. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  17731. sec_tdm_rx_3_port_mixer_controls,
  17732. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  17733. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  17734. tert_tdm_rx_0_port_mixer_controls,
  17735. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  17736. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  17737. tert_tdm_rx_1_port_mixer_controls,
  17738. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  17739. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  17740. tert_tdm_rx_2_port_mixer_controls,
  17741. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  17742. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  17743. tert_tdm_rx_3_port_mixer_controls,
  17744. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  17745. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  17746. quat_tdm_rx_0_port_mixer_controls,
  17747. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  17748. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  17749. quat_tdm_rx_1_port_mixer_controls,
  17750. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  17751. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  17752. quat_tdm_rx_2_port_mixer_controls,
  17753. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  17754. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  17755. quat_tdm_rx_3_port_mixer_controls,
  17756. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  17757. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  17758. quin_tdm_rx_0_port_mixer_controls,
  17759. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  17760. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  17761. quin_tdm_rx_1_port_mixer_controls,
  17762. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  17763. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  17764. quin_tdm_rx_2_port_mixer_controls,
  17765. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  17766. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  17767. quin_tdm_rx_3_port_mixer_controls,
  17768. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  17769. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17770. int0_mi2s_rx_port_mixer_controls,
  17771. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  17772. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  17773. int4_mi2s_rx_port_mixer_controls,
  17774. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  17775. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  17776. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  17777. ARRAY_SIZE(tx_qchat_mixer_controls)),
  17778. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  17779. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  17780. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  17781. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  17782. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  17783. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  17784. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  17785. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  17786. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  17787. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  17788. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  17789. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  17790. /* lsm mixer definitions */
  17791. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  17792. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  17793. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  17794. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  17795. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  17796. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  17797. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  17798. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  17799. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  17800. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  17801. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  17802. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  17803. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  17804. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  17805. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  17806. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  17807. /* Virtual Pins to force backends ON atm */
  17808. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  17809. SND_SOC_DAPM_INPUT("BE_IN"),
  17810. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  17811. &slim0_rx_vi_fb_lch_mux),
  17812. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  17813. &slim0_rx_vi_fb_rch_mux),
  17814. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  17815. &wsa_rx_0_vi_fb_lch_mux),
  17816. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  17817. &wsa_rx_0_vi_fb_rch_mux),
  17818. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  17819. &mi2s_rx_vi_fb_mux),
  17820. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  17821. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  17822. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  17823. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  17824. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  17825. &voc_ext_ec_mux),
  17826. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  17827. &ext_ec_ref_mux_ul1),
  17828. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  17829. &ext_ec_ref_mux_ul2),
  17830. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  17831. &ext_ec_ref_mux_ul3),
  17832. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  17833. &ext_ec_ref_mux_ul4),
  17834. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  17835. &ext_ec_ref_mux_ul5),
  17836. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  17837. &ext_ec_ref_mux_ul6),
  17838. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  17839. &ext_ec_ref_mux_ul8),
  17840. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  17841. &ext_ec_ref_mux_ul9),
  17842. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  17843. &ext_ec_ref_mux_ul10),
  17844. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  17845. &ext_ec_ref_mux_ul16),
  17846. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  17847. &ext_ec_ref_mux_ul17),
  17848. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  17849. &ext_ec_ref_mux_ul18),
  17850. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  17851. &ext_ec_ref_mux_ul19),
  17852. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  17853. &ext_ec_ref_mux_ul28),
  17854. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  17855. &ext_ec_ref_mux_ul29),
  17856. };
  17857. static const struct snd_soc_dapm_route intercon[] = {
  17858. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17859. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17860. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17861. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17862. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17863. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17864. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17865. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17866. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17867. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17868. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17869. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17870. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17871. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17872. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17873. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17874. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  17875. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17876. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17877. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17878. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17879. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17880. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17881. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17882. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17883. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17884. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17885. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17886. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17887. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17888. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17889. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17890. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17891. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  17892. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17893. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17894. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17895. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17896. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17897. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17898. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17899. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17900. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17901. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17902. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17903. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17904. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17905. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17906. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17907. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17908. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  17909. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17910. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17911. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17912. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17913. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17914. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17915. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17916. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17917. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17918. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17919. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17920. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17921. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17922. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17923. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17924. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17925. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  17926. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17927. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17928. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17929. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17930. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17931. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17932. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17933. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17934. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17935. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17936. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17937. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17938. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17939. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17940. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17941. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17942. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  17943. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17944. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17945. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17946. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17947. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17948. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17949. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17950. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17951. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17952. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17953. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17954. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17955. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17956. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17957. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17958. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17959. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  17960. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17961. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17962. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17963. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17964. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17965. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17966. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17967. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17968. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17969. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17970. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17971. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17972. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17973. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17974. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17975. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17976. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  17977. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17978. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17979. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17980. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17981. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17982. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17983. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17984. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17985. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17986. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17987. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17988. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17989. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17990. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17991. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17992. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17993. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  17994. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17995. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17996. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17997. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17998. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17999. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18000. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18001. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18002. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18003. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18004. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18005. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18006. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18007. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18008. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18009. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18010. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  18011. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18012. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18013. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18014. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18015. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18016. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18017. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18018. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18019. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18020. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18021. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18022. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18023. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18024. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18025. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18026. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18027. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  18028. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18029. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18030. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18031. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18032. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18033. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18034. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18035. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18036. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18037. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18038. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18039. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18040. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18041. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18042. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18043. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18044. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  18045. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18046. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18047. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18048. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18049. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18050. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18051. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18052. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18053. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18054. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18055. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18056. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18057. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18058. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18059. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18060. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18061. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  18062. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18063. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18064. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18065. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18066. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18067. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18068. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18069. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18070. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18071. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18072. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18073. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18074. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18075. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18076. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18077. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18078. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  18079. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18080. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18081. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18082. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18083. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18084. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18085. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18086. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18087. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18088. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18089. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18090. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18091. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18092. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18093. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18094. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18095. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  18096. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18097. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18098. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18099. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18100. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18101. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18102. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18103. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18104. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18105. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18106. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18107. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18108. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18109. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18110. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18111. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18112. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  18113. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  18114. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  18115. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  18116. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  18117. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  18118. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  18119. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  18120. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  18121. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  18122. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  18123. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  18124. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  18125. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  18126. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  18127. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  18128. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  18129. {"HDMI", NULL, "HDMI Mixer"},
  18130. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  18131. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  18132. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  18133. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  18134. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  18135. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  18136. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  18137. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  18138. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  18139. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  18140. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  18141. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  18142. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  18143. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  18144. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  18145. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  18146. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  18147. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  18148. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  18149. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  18150. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  18151. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  18152. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  18153. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  18154. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  18155. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  18156. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  18157. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  18158. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  18159. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  18160. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  18161. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  18162. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  18163. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  18164. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18165. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18166. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18167. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18168. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18169. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18170. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18171. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18172. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18173. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18174. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18175. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18176. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18177. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18178. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18179. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18180. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  18181. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18182. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18183. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18184. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18185. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18186. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18187. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18188. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18189. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18190. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18191. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18192. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18193. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18194. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18195. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18196. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18197. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  18198. /* incall */
  18199. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  18200. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  18201. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  18202. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  18203. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  18204. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18205. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18206. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18207. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18208. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  18209. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18210. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18211. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18212. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18213. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  18214. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18215. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18216. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18217. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18218. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18219. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18220. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18221. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18222. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18223. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18224. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18225. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18226. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18227. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18228. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18229. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18230. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  18231. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18232. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18233. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18234. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18235. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18236. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18237. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18238. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18239. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18240. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18241. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18242. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18243. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18244. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18245. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18246. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18247. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  18248. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18249. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18250. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18251. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18252. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18253. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18254. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18255. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18256. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18257. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18258. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18259. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18260. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18261. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18262. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18263. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18264. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  18265. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  18266. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  18267. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  18268. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  18269. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  18270. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  18271. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  18272. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  18273. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18274. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18275. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  18276. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18277. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18278. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18279. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18280. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18281. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18282. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18283. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18284. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18285. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18286. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18287. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18288. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18289. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18290. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18291. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18292. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18293. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18294. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18295. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18296. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18297. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18298. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18299. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18300. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18301. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18302. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18303. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18304. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18305. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18306. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18307. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18308. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18309. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18310. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18311. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  18312. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  18313. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18314. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18315. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18316. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18317. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18318. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18319. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18320. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18321. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18322. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18323. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18324. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18325. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18326. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18327. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18328. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18329. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  18330. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18331. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18332. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18333. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18334. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18335. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18336. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18337. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18338. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18339. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18340. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18341. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18342. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18343. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18344. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18345. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  18346. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18347. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18348. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18349. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18350. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18351. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18352. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18353. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18354. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18355. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18356. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18357. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18358. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18359. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18360. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  18361. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18362. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18363. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18364. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18365. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18366. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18367. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18368. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18369. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18370. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18371. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18372. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18373. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18374. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18375. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  18376. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18377. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  18378. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18379. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18380. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18381. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18382. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18383. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18384. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18385. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18386. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18387. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18388. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18389. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18390. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18391. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18392. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18393. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18394. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18395. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  18396. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18397. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18398. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18399. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18400. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18401. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18402. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18403. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18404. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18405. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18406. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18407. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18408. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18409. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18410. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18411. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  18412. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18413. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18414. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18415. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18416. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18417. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18418. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18419. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18420. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18421. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18422. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18423. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18424. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18425. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18426. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18427. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  18428. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18429. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18430. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18431. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18432. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18433. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18434. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18435. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18436. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18437. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18438. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18439. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18440. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18441. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18442. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18443. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18444. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18445. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  18446. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18447. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18448. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18449. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18450. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18451. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18452. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18453. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18454. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18455. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18456. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18457. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18458. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18459. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18460. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18461. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18462. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  18463. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18464. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18465. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18466. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18467. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18468. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18469. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18470. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18471. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18472. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18473. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18474. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18475. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18476. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18477. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18478. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18479. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  18480. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18481. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18482. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18483. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18484. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18485. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18486. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18487. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18488. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18489. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18490. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18491. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18492. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18493. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18494. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18495. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18496. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  18497. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18498. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18499. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18500. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18501. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18502. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18503. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18504. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18505. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18506. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18507. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18508. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18509. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18510. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18511. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18512. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18513. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  18514. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18515. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18516. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18517. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18518. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18519. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18520. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18521. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18522. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18523. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18524. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18525. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18526. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18527. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18528. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18529. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18530. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  18531. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18532. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18533. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18534. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18535. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18536. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18537. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18538. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18539. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18540. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18541. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18542. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18543. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18544. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18545. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18546. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18547. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  18548. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18549. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18550. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18551. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18552. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18553. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18554. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18555. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18556. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18557. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18558. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18559. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18560. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18561. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18562. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18563. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18564. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  18565. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18566. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18567. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18568. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18569. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18570. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18571. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18572. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18573. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18574. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18575. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18576. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18577. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18578. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18579. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18580. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18581. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  18582. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18583. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18584. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18585. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18586. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18587. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18588. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18589. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18590. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18591. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18592. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18593. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18594. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18595. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18596. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18597. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18598. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  18599. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18600. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18601. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18602. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18603. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18604. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18605. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18606. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18607. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18608. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18609. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18610. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18611. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18612. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18613. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18614. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18615. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  18616. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18617. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18618. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18619. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18620. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18621. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18622. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18623. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18624. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18625. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18626. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18627. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18628. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18629. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18630. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18631. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18632. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  18633. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18634. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18635. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18636. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18637. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18638. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18639. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18640. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18641. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18642. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18643. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18644. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18645. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18646. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18647. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18648. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18649. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  18650. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18651. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18652. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18653. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18654. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18655. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18656. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18657. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18658. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18659. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18660. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18661. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18662. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18663. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18664. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18665. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18666. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  18667. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18668. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18669. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18670. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18671. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18672. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18673. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18674. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18675. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18676. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18677. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18678. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18679. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18680. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18681. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18682. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18683. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  18684. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18685. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18686. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18687. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18688. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18689. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18690. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18691. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18692. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18693. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18694. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18695. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18696. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18697. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18698. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18699. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18700. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  18701. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18702. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18703. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18704. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18705. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18706. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18707. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18708. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18709. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18710. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18711. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18712. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18713. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18714. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18715. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18716. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18717. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  18718. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18719. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18720. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18721. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18722. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18723. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18724. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18725. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18726. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18727. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18728. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18729. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18730. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18731. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18732. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18733. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18734. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  18735. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  18736. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18737. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18738. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18739. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18740. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18741. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18742. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18743. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18744. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18745. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18746. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18747. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18748. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18749. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18750. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18751. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18752. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  18753. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18754. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18755. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18756. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18757. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18758. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18759. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18760. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18761. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18762. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18763. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18764. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18765. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18766. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18767. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18768. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18769. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  18770. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  18771. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18772. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18773. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18774. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18775. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18776. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18777. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18778. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18779. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18780. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18781. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18782. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18783. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18784. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18785. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18786. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18787. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  18788. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  18789. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18790. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18791. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18792. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18793. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18794. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18795. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18796. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18797. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18798. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18799. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18800. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18801. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18802. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18803. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18804. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18805. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  18806. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  18807. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18808. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18809. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18810. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18811. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18812. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18813. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18814. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18815. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18816. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18817. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18818. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18819. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18820. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18821. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18822. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18823. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  18824. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  18825. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18826. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18827. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18828. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18829. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18830. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18831. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18832. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18833. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18834. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18835. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18836. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18837. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18838. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18839. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18840. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18841. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  18842. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18843. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18844. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18845. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18846. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18847. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18848. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18849. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18850. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18851. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18852. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18853. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18854. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18855. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18856. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18857. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18858. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  18859. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  18860. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18861. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18862. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18863. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18864. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18865. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18866. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18867. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18868. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18869. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18870. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18871. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18872. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18873. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18874. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18875. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18876. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  18877. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  18878. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18879. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18880. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18881. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18882. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18883. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18884. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18885. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18886. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18887. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18888. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18889. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18890. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18891. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18892. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18893. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18894. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  18895. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  18896. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  18897. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  18898. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  18899. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  18900. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  18901. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  18902. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  18903. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18904. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18905. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18906. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18907. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18908. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18909. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18910. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  18911. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  18912. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18913. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18914. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18915. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18916. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  18917. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18918. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  18919. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18920. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  18921. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  18922. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  18923. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  18924. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  18925. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18926. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  18927. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  18928. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  18929. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18930. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  18931. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  18932. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  18933. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  18934. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18935. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  18936. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  18937. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18938. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  18939. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18940. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18941. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18942. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18943. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18944. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18945. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18946. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18947. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18948. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18949. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  18950. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  18951. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  18952. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  18953. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  18954. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18955. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18956. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18957. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18958. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18959. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18960. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18961. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18962. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18963. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18964. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18965. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18966. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18967. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18968. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18969. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18970. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18971. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18972. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18973. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18974. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18975. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18976. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18977. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18978. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18979. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18980. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18981. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18982. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18983. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18984. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18985. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18986. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18987. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18988. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18989. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  18990. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  18991. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  18992. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18993. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18994. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  18995. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  18996. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  18997. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  18998. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  18999. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19000. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19001. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19002. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19003. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19004. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19005. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19006. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19007. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19008. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19009. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19010. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19011. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19012. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19013. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19014. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19015. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19016. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19017. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19018. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19019. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19020. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19021. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19022. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19023. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19024. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19025. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19026. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19027. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19028. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19029. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19030. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19031. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19032. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19033. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19034. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19035. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19036. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19037. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19038. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19039. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19040. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19041. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19042. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19043. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19044. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19045. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19046. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19047. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19048. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19049. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19050. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19051. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19052. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19053. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19054. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19055. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19056. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19057. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19058. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19059. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19060. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19061. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19062. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19063. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19064. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19065. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19066. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19067. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19068. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19069. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19070. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19071. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19072. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19073. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19074. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19075. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19076. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19077. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19078. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19079. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19080. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19081. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19082. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19083. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19084. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19085. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19086. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19087. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19088. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19089. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19090. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19091. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19092. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19093. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19094. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19095. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19096. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19097. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19098. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19099. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19100. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19101. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19102. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19103. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19104. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19105. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19106. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19107. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19108. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19109. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19110. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19111. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19112. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19113. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19114. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19115. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19116. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19117. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19118. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19119. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19120. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19121. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19122. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19123. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19124. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19125. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19126. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19127. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19128. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19129. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19130. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19131. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19132. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19133. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19134. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19135. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19136. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19137. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19138. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19139. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19140. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19141. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19142. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19143. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19144. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19145. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19146. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19147. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19148. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19149. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19150. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19151. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19152. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19153. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19154. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19155. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19156. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19157. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19158. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19159. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19160. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19161. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19162. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19163. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19164. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19165. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19166. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19167. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19168. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19169. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19170. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19171. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19172. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19173. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19174. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19175. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19176. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19177. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19178. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19179. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19180. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19181. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19182. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19183. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19184. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19185. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19186. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19187. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19188. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19189. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19190. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19191. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19192. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19193. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19194. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19195. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19196. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19197. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19198. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19199. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19200. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19201. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19202. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19203. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19204. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19205. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19206. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19207. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19208. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19209. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19210. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19211. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19212. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19213. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19214. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19215. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19216. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19217. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19218. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19219. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19220. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19221. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19222. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19223. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19224. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19225. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19226. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19227. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19228. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19229. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19230. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19231. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19232. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19233. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19234. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19235. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19236. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19237. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19238. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19239. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19240. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19241. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19242. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19243. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19244. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19245. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19246. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19247. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19248. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19249. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19250. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19251. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19252. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19253. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19254. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19255. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19256. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19257. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19258. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19259. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19260. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19261. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19262. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19263. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19264. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19265. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19266. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19267. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19268. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19269. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19270. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19271. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19272. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19273. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19274. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19275. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19276. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19277. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19278. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19279. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19280. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19281. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19282. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19283. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19284. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19285. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19286. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19287. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19288. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19289. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19290. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19291. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19292. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19293. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19294. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19295. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19296. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19297. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19298. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19299. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19300. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19301. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19302. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19303. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  19304. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19305. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19306. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19307. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19308. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19309. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19310. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19311. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19312. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19313. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19314. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19315. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19316. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19317. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19318. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19319. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19320. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19321. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19322. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19323. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19324. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19325. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19326. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19327. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19328. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19329. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19330. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19331. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19332. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19333. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19334. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19335. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19336. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19337. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19338. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19339. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19340. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19341. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19342. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19343. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19344. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19345. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19346. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19347. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19348. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19349. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19350. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19351. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19352. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19353. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19354. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19355. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19356. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19357. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19358. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19359. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19360. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19361. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19362. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19363. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19364. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  19365. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  19366. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19367. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19368. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19369. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19370. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19371. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19372. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19373. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19374. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19375. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19376. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19377. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19378. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19379. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19380. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19381. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19382. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  19383. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  19384. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19385. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19386. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19387. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19388. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19389. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19390. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19391. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19392. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19393. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19394. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19395. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19396. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19397. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19398. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19399. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19400. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  19401. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19402. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19403. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19404. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19405. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19406. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19407. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19408. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19409. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19410. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19411. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19412. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19413. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19414. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19415. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19416. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19417. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  19418. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19419. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19420. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19421. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19422. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19423. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19424. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19425. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19426. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19427. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19428. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19429. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  19430. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19431. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19432. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19433. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19434. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19435. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19436. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19437. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19438. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19439. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19440. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19441. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19442. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19443. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19444. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19445. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19446. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19447. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19448. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19449. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19450. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19451. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19452. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  19453. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  19454. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19455. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  19456. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  19457. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  19458. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  19459. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  19460. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  19461. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  19462. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  19463. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  19464. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  19465. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  19466. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  19467. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  19468. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  19469. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  19470. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19471. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19472. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19473. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19474. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19475. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19476. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19477. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19478. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19479. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19480. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19481. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19482. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19483. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19484. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19485. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19486. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  19487. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19488. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19489. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19490. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19491. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19492. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19493. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19494. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19495. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19496. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19497. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19498. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19499. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19500. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19501. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19502. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19503. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  19504. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19505. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19506. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19507. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19508. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19509. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19510. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19511. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19512. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19513. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19514. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19515. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19516. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19517. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19518. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19519. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19520. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  19521. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19522. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19523. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19524. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19525. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19526. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19527. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19528. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19529. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19530. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19531. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19532. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19533. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19534. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19535. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19536. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19537. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  19538. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19539. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19540. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19541. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19542. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19543. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19544. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19545. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19546. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19547. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19548. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19549. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19550. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19551. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19552. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19553. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19554. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  19555. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19556. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19557. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19558. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19559. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19560. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  19561. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19562. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19563. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19564. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  19565. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19566. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19567. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19568. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19569. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19570. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  19571. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19572. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19573. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19574. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19575. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19576. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  19577. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19578. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19579. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19580. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19581. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19582. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  19583. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19584. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19585. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19586. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19587. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19588. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  19589. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19590. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19591. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19592. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19593. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19594. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  19595. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  19596. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19597. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19598. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19599. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19600. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  19601. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19602. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19603. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19604. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19605. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19606. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  19607. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19608. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19609. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19610. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19611. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19612. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  19613. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19614. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19615. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19616. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19617. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19618. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  19619. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19620. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19621. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19622. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19623. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19624. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  19625. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19626. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19627. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19628. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19629. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19630. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  19631. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19632. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19633. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19634. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19635. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19636. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  19637. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19638. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19639. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19640. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19641. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19642. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  19643. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19644. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19645. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19646. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19647. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19648. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  19649. {"HDMI", NULL, "HDMI_DL_HL"},
  19650. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19651. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19652. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19653. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19654. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19655. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  19656. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19657. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19658. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19659. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19660. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19661. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  19662. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19663. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19664. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19665. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19666. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19667. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  19668. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19669. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19670. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19671. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19672. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19673. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  19674. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19675. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19676. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  19677. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19678. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19679. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  19680. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19681. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19682. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19683. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19684. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  19685. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  19686. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  19687. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19688. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  19689. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  19690. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  19691. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  19692. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19693. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19694. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19695. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19696. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19697. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19698. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  19699. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  19700. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  19701. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19702. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19703. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19704. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19705. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19706. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19707. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  19708. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  19709. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  19710. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19711. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19712. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19713. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19714. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19715. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19716. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19717. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19718. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19719. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19720. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19721. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19722. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19723. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19724. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19725. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19726. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19727. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19728. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19729. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19730. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19731. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19732. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19733. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19734. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19735. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19736. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19737. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19738. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19739. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19740. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19741. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19742. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19743. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19744. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19745. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  19746. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  19747. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  19748. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19749. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19750. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19751. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19752. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19753. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19754. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19755. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19756. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19757. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19758. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19759. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19760. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19761. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19762. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19763. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19764. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19765. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19766. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19767. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19768. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19769. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19770. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19771. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19772. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19773. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  19774. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  19775. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  19776. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  19777. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  19778. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  19779. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  19780. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  19781. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  19782. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  19783. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  19784. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  19785. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  19786. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  19787. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  19788. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  19789. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  19790. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  19791. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  19792. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  19793. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  19794. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  19795. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  19796. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  19797. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  19798. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  19799. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  19800. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  19801. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  19802. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  19803. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  19804. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  19805. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  19806. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  19807. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  19808. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  19809. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  19810. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  19811. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  19812. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  19813. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  19814. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  19815. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  19816. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  19817. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  19818. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  19819. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  19820. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  19821. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  19822. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  19823. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  19824. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  19825. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  19826. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  19827. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  19828. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  19829. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  19830. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  19831. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  19832. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  19833. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  19834. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  19835. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  19836. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  19837. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  19838. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  19839. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  19840. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  19841. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  19842. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  19843. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  19844. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  19845. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  19846. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  19847. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  19848. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  19849. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  19850. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  19851. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  19852. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  19853. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  19854. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  19855. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  19856. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  19857. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  19858. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  19859. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  19860. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  19861. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  19862. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  19863. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  19864. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  19865. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  19866. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  19867. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  19868. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  19869. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  19870. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  19871. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19872. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19873. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19874. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19875. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19876. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  19877. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  19878. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  19879. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  19880. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  19881. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  19882. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19883. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19884. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19885. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19886. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19887. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  19888. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  19889. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  19890. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  19891. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  19892. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  19893. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19894. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19895. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19896. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19897. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19898. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  19899. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  19900. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  19901. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  19902. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  19903. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  19904. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19905. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19906. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19907. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19908. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19909. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  19910. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  19911. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  19912. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  19913. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  19914. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  19915. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19916. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19917. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19918. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19919. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19920. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  19921. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  19922. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  19923. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  19924. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  19925. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  19926. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19927. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19928. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19929. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  19930. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  19931. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  19932. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  19933. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  19934. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  19935. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19936. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19937. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19938. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  19939. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  19940. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  19941. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  19942. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  19943. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  19944. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19945. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19946. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19947. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  19948. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  19949. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  19950. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  19951. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  19952. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  19953. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  19954. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  19955. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  19956. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  19957. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  19958. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  19959. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  19960. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  19961. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  19962. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  19963. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  19964. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  19965. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  19966. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  19967. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  19968. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  19969. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  19970. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  19971. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  19972. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  19973. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  19974. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  19975. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  19976. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  19977. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  19978. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  19979. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  19980. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  19981. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  19982. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  19983. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  19984. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  19985. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  19986. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  19987. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  19988. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  19989. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  19990. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  19991. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  19992. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  19993. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  19994. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  19995. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  19996. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  19997. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  19998. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  19999. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  20000. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  20001. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  20002. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  20003. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  20004. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  20005. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  20006. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  20007. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  20008. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  20009. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  20010. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  20011. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  20012. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  20013. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  20014. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  20015. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  20016. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  20017. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  20018. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  20019. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  20020. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  20021. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  20022. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  20023. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  20024. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  20025. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  20026. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  20027. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  20028. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  20029. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  20030. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  20031. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  20032. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  20033. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  20034. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  20035. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  20036. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  20037. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  20038. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  20039. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  20040. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  20041. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  20042. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  20043. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  20044. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  20045. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  20046. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  20047. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  20048. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  20049. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  20050. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  20051. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  20052. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20053. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20054. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20055. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20056. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20057. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20058. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20059. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20060. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20061. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20062. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20063. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20064. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20065. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20066. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20067. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20068. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20069. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20070. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20071. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20072. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  20073. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20074. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20075. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20076. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20077. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20078. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20079. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20080. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20081. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20082. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20083. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20084. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20085. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20086. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20087. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20088. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20089. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20090. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20091. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20092. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20093. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  20094. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20095. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20096. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20097. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20098. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20099. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20100. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20101. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20102. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20103. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20104. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20105. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20106. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20107. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20108. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20109. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20110. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20111. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20112. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20113. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20114. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  20115. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20116. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20117. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20118. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20119. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20120. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20121. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20122. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20123. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20124. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20125. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20126. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20127. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20128. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20129. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20130. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20131. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20132. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20133. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20134. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20135. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  20136. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20137. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20138. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20139. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20140. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20141. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20142. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20143. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20144. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20145. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20146. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20147. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20148. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20149. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20150. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20151. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20152. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20153. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20154. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20155. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20156. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  20157. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20158. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20159. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20160. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20161. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20162. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20163. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20164. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20165. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20166. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20167. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20168. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20169. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20170. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20171. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20172. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20173. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20174. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20175. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20176. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20177. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  20178. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20179. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20180. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20181. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20182. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20183. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20184. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20185. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20186. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20187. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20188. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20189. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20190. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20191. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20192. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20193. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20194. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20195. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20196. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20197. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20198. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  20199. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20200. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20201. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20202. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20203. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20204. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20205. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20206. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20207. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20208. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20209. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20210. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20211. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20212. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20213. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20214. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20215. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20216. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20217. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20218. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20219. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  20220. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20221. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20222. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20223. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20224. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20225. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20226. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20227. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20228. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20229. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20230. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20231. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20232. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20233. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20234. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20235. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20236. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20237. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20238. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20239. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20240. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  20241. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20242. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20243. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20244. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20245. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20246. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20247. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20248. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20249. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20250. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20251. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20252. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20253. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20254. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20255. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20256. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20257. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20258. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20259. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20260. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20261. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  20262. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20263. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20264. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20265. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20266. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20267. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20268. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20269. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20270. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20271. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20272. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20273. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20274. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20275. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20276. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20277. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20278. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20279. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20280. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20281. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20282. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  20283. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20284. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20285. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20286. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20287. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20288. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20289. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20290. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20291. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20292. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20293. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20294. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20295. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20296. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20297. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20298. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20299. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20300. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20301. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20302. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20303. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  20304. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20305. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20306. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20307. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20308. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20309. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20310. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20311. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20312. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20313. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20314. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20315. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20316. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20317. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20318. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20319. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20320. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20321. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20322. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20323. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20324. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  20325. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20326. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20327. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20328. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20329. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20330. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20331. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20332. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20333. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20334. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20335. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20336. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20337. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20338. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20339. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20340. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20341. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20342. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20343. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20344. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20345. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  20346. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20347. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20348. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20349. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20350. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20351. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20352. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20353. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20354. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20355. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20356. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20357. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20358. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20359. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20360. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20361. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20362. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20363. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20364. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20365. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20366. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  20367. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20368. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20369. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20370. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20371. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20372. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20373. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20374. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20375. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20376. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20377. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20378. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20379. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20380. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20381. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20382. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20383. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20384. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20385. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20386. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20387. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  20388. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20389. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20390. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20391. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20392. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20393. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20394. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20395. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20396. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20397. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20398. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20399. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20400. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20401. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20402. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20403. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20404. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20405. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20406. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20407. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20408. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  20409. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20410. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20411. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20412. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20413. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20414. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20415. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20416. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20417. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20418. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20419. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20420. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20421. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20422. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20423. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20424. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20425. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20426. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20427. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20428. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20429. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  20430. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20431. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20432. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20433. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20434. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20435. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20436. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20437. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20438. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20439. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20440. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20441. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20442. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20443. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20444. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20445. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20446. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20447. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20448. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20449. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20450. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  20451. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20452. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20453. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20454. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20455. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20456. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20457. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20458. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20459. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20460. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20461. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20462. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20463. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20464. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20465. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20466. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20467. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20468. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20469. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20470. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20471. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  20472. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20473. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20474. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20475. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20476. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20477. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20478. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20479. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20480. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20481. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20482. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  20483. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20484. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20485. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20486. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20487. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20488. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20489. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20490. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20491. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20492. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20493. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  20494. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20495. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20496. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20497. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20498. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20499. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20500. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20501. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  20502. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  20503. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  20504. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  20505. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20506. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20507. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20508. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20509. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20510. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20511. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  20512. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20513. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20514. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  20515. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20516. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  20517. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  20518. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  20519. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  20520. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20521. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20522. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20523. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20524. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20525. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20526. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  20527. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20528. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20529. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20530. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20531. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  20532. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20533. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  20534. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20535. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  20536. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20537. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  20538. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20539. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  20540. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20541. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  20542. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20543. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  20544. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  20545. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20546. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20547. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  20548. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20549. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20550. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  20551. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  20552. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  20553. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  20554. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20555. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20556. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20557. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20558. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20559. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  20560. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20561. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20562. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  20563. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  20564. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  20565. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20566. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  20567. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20568. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20569. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  20570. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20571. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20572. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  20573. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20574. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20575. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  20576. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  20577. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20578. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  20579. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20580. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20581. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  20582. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20583. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20584. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  20585. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20586. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20587. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  20588. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20589. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20590. {"STUB_RX", NULL, "STUB_RX Mixer"},
  20591. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20592. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20593. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  20594. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20595. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20596. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  20597. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20598. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20599. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20600. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20601. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20602. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  20603. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20604. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20605. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20606. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20607. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20608. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  20609. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20610. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  20611. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20612. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  20613. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20614. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20615. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  20616. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  20617. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  20618. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  20619. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  20620. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  20621. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  20622. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20623. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20624. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20625. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20626. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20627. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20628. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20629. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  20630. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20631. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20632. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20633. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20634. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  20635. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  20636. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  20637. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  20638. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  20639. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  20640. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  20641. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  20642. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  20643. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20644. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  20645. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  20646. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20647. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20648. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20649. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20650. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20651. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20652. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20653. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20654. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20655. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20656. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  20657. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20658. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20659. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20660. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20661. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20662. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20663. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20664. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20665. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20666. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  20667. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20668. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20669. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20670. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20671. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20672. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20673. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20674. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  20675. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20676. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20677. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20678. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20679. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20680. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20681. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20682. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20683. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20684. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  20685. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20686. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20687. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20688. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20689. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20690. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20691. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20692. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  20693. /* Backend Enablement */
  20694. {"BE_OUT", NULL, "PRI_I2S_RX"},
  20695. {"BE_OUT", NULL, "SEC_I2S_RX"},
  20696. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  20697. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  20698. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  20699. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  20700. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  20701. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  20702. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  20703. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  20704. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  20705. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  20706. {"BE_OUT", NULL, "HDMI"},
  20707. {"BE_OUT", NULL, "DISPLAY_PORT"},
  20708. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  20709. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  20710. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  20711. {"BE_OUT", NULL, "MI2S_RX"},
  20712. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  20713. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  20714. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  20715. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  20716. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  20717. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  20718. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  20719. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  20720. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  20721. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  20722. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  20723. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  20724. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  20725. {"BE_OUT", NULL, "INT_FM_RX"},
  20726. {"BE_OUT", NULL, "PCM_RX"},
  20727. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  20728. {"BE_OUT", NULL, "AUX_PCM_RX"},
  20729. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  20730. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  20731. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  20732. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  20733. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  20734. {"BE_OUT", NULL, "INT_FM_RX"},
  20735. {"BE_OUT", NULL, "PCM_RX"},
  20736. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  20737. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  20738. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  20739. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  20740. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  20741. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  20742. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  20743. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  20744. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  20745. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  20746. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  20747. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  20748. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  20749. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  20750. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  20751. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  20752. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  20753. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  20754. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  20755. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  20756. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  20757. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  20758. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  20759. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  20760. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  20761. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  20762. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  20763. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  20764. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  20765. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  20766. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  20767. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  20768. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  20769. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  20770. {"PRI_I2S_TX", NULL, "BE_IN"},
  20771. {"MI2S_TX", NULL, "BE_IN"},
  20772. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  20773. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  20774. {"PRI_MI2S_TX", NULL, "BE_IN"},
  20775. {"TERT_MI2S_TX", NULL, "BE_IN"},
  20776. {"INT0_MI2S_TX", NULL, "BE_IN"},
  20777. {"INT2_MI2S_TX", NULL, "BE_IN"},
  20778. {"INT3_MI2S_TX", NULL, "BE_IN"},
  20779. {"INT4_MI2S_TX", NULL, "BE_IN"},
  20780. {"INT5_MI2S_TX", NULL, "BE_IN"},
  20781. {"SEC_MI2S_TX", NULL, "BE_IN"},
  20782. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  20783. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  20784. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  20785. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  20786. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  20787. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  20788. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  20789. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  20790. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  20791. {"USB_AUDIO_TX", NULL, "BE_IN" },
  20792. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  20793. {"INT_FM_TX", NULL, "BE_IN"},
  20794. {"PCM_TX", NULL, "BE_IN"},
  20795. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  20796. {"BE_OUT", NULL, "STUB_RX"},
  20797. {"STUB_TX", NULL, "BE_IN"},
  20798. {"STUB_1_TX", NULL, "BE_IN"},
  20799. {"BE_OUT", NULL, "AUX_PCM_RX"},
  20800. {"AUX_PCM_TX", NULL, "BE_IN"},
  20801. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  20802. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  20803. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  20804. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  20805. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  20806. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  20807. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  20808. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  20809. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20810. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20811. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  20812. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  20813. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  20814. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  20815. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  20816. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  20817. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  20818. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  20819. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  20820. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  20821. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  20822. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  20823. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  20824. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  20825. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  20826. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  20827. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  20828. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  20829. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  20830. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  20831. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  20832. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  20833. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  20834. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  20835. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  20836. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  20837. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  20838. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  20839. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  20840. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  20841. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  20842. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  20843. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  20844. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  20845. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  20846. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  20847. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  20848. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  20849. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  20850. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  20851. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  20852. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  20853. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  20854. };
  20855. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  20856. struct snd_pcm_hw_params *params)
  20857. {
  20858. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  20859. unsigned int be_id = rtd->dai_link->id;
  20860. if (be_id >= MSM_BACKEND_DAI_MAX) {
  20861. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  20862. return -EINVAL;
  20863. }
  20864. mutex_lock(&routing_lock);
  20865. msm_bedais[be_id].sample_rate = params_rate(params);
  20866. msm_bedais[be_id].channel = params_channels(params);
  20867. msm_bedais[be_id].format = params_format(params);
  20868. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  20869. __func__, msm_bedais[be_id].sample_rate,
  20870. msm_bedais[be_id].format, be_id);
  20871. mutex_unlock(&routing_lock);
  20872. return 0;
  20873. }
  20874. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  20875. {
  20876. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  20877. unsigned int be_id = rtd->dai_link->id;
  20878. int i, session_type, path_type, topology;
  20879. struct msm_pcm_routing_bdai_data *bedai;
  20880. struct msm_pcm_routing_fdai_data *fdai;
  20881. pr_debug("%s: substream->pcm->id:%s\n",
  20882. __func__, substream->pcm->id);
  20883. if (be_id >= MSM_BACKEND_DAI_MAX) {
  20884. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  20885. return -EINVAL;
  20886. }
  20887. bedai = &msm_bedais[be_id];
  20888. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  20889. 0 : 1);
  20890. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  20891. path_type = ADM_PATH_PLAYBACK;
  20892. else
  20893. path_type = ADM_PATH_LIVE_REC;
  20894. mutex_lock(&routing_lock);
  20895. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  20896. if (!is_mm_lsm_fe_id(i))
  20897. continue;
  20898. fdai = &fe_dai_map[i][session_type];
  20899. if (fdai->strm_id != INVALID_SESSION) {
  20900. int idx;
  20901. int port_id;
  20902. unsigned long copp =
  20903. session_copp_map[i][session_type][be_id];
  20904. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  20905. if (test_bit(idx, &copp))
  20906. break;
  20907. fdai->be_srate = bedai->sample_rate;
  20908. port_id = bedai->port_id;
  20909. topology = adm_get_topology_for_port_copp_idx(port_id,
  20910. idx);
  20911. msm_routing_unload_topology(topology);
  20912. adm_close(bedai->port_id, fdai->perf_mode, idx);
  20913. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  20914. __func__, copp, i, session_type, be_id,
  20915. topology);
  20916. clear_bit(idx,
  20917. &session_copp_map[i][session_type][be_id]);
  20918. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  20919. (bedai->passthr_mode[i] == LEGACY_PCM))
  20920. msm_pcm_routing_deinit_pp(bedai->port_id,
  20921. topology);
  20922. }
  20923. }
  20924. bedai->active = 0;
  20925. bedai->sample_rate = 0;
  20926. bedai->channel = 0;
  20927. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  20928. if (bedai->passthr_mode[i] != LISTEN)
  20929. bedai->passthr_mode[i] = LEGACY_PCM;
  20930. }
  20931. mutex_unlock(&routing_lock);
  20932. return 0;
  20933. }
  20934. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  20935. {
  20936. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  20937. unsigned int be_id = rtd->dai_link->id;
  20938. int i, path_type, topology;
  20939. int session_type = INVALID_SESSION;
  20940. struct msm_pcm_routing_bdai_data *bedai;
  20941. u32 channels, sample_rate;
  20942. uint16_t bits_per_sample = 16, voc_path_type;
  20943. struct msm_pcm_routing_fdai_data *fdai;
  20944. u32 session_id;
  20945. struct media_format_info voc_be_media_format;
  20946. bool is_lsm;
  20947. pr_debug("%s: substream->pcm->id:%s\n",
  20948. __func__, substream->pcm->id);
  20949. if (be_id >= MSM_BACKEND_DAI_MAX) {
  20950. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  20951. return -EINVAL;
  20952. }
  20953. bedai = &msm_bedais[be_id];
  20954. mutex_lock(&routing_lock);
  20955. if (bedai->active == 1)
  20956. goto done; /* Ignore prepare if back-end already active */
  20957. /* AFE port is not active at this point. However, still
  20958. * go ahead setting active flag under the notion that
  20959. * QDSP6 is able to handle ADM starting before AFE port
  20960. * is started.
  20961. */
  20962. bedai->active = 1;
  20963. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  20964. if (!(is_mm_lsm_fe_id(i) &&
  20965. route_check_fe_id_adm_support(i)))
  20966. continue;
  20967. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  20968. if (bedai->passthr_mode[i] != LEGACY_PCM)
  20969. path_type = ADM_PATH_COMPRESSED_RX;
  20970. else
  20971. path_type = ADM_PATH_PLAYBACK;
  20972. session_type = SESSION_TYPE_RX;
  20973. } else {
  20974. if ((bedai->passthr_mode[i] != LEGACY_PCM) &&
  20975. (bedai->passthr_mode[i] != LISTEN))
  20976. path_type = ADM_PATH_COMPRESSED_TX;
  20977. else
  20978. path_type = ADM_PATH_LIVE_REC;
  20979. session_type = SESSION_TYPE_TX;
  20980. }
  20981. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  20982. (i <= MSM_FRONTEND_DAI_LSM8);
  20983. fdai = &fe_dai_map[i][session_type];
  20984. if (fdai->strm_id != INVALID_SESSION) {
  20985. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  20986. if (session_type == SESSION_TYPE_TX &&
  20987. fdai->be_srate &&
  20988. (fdai->be_srate != bedai->sample_rate)) {
  20989. pr_debug("%s: flush strm %d diff BE rates\n",
  20990. __func__,
  20991. fdai->strm_id);
  20992. if (fdai->event_info.event_func)
  20993. fdai->event_info.event_func(
  20994. MSM_PCM_RT_EVT_BUF_RECFG,
  20995. fdai->event_info.priv_data);
  20996. fdai->be_srate = 0; /* might not need it */
  20997. }
  20998. bits_per_sample = msm_routing_get_bit_width(
  20999. bedai->format);
  21000. app_type =
  21001. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  21002. if (app_type && is_lsm) {
  21003. app_type_idx =
  21004. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  21005. sample_rate =
  21006. fe_dai_app_type_cfg[i][session_type][be_id]
  21007. .sample_rate;
  21008. bits_per_sample =
  21009. lsm_app_type_cfg[app_type_idx].bit_width;
  21010. } else if (app_type) {
  21011. app_type_idx =
  21012. msm_pcm_routing_get_app_type_idx(app_type);
  21013. sample_rate =
  21014. fe_dai_app_type_cfg[i][session_type]
  21015. [be_id].sample_rate;
  21016. bits_per_sample =
  21017. app_type_cfg[app_type_idx].bit_width;
  21018. } else
  21019. sample_rate = bedai->sample_rate;
  21020. /*
  21021. * check if ADM needs to be configured with different
  21022. * channel mapping than backend
  21023. */
  21024. if (!bedai->adm_override_ch)
  21025. channels = bedai->channel;
  21026. else
  21027. channels = bedai->adm_override_ch;
  21028. acdb_dev_id =
  21029. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  21030. topology = msm_routing_get_adm_topology(i, session_type,
  21031. be_id);
  21032. if ((bedai->passthr_mode[i] ==
  21033. COMPRESSED_PASSTHROUGH_DSD)
  21034. || (bedai->passthr_mode[i] ==
  21035. COMPRESSED_PASSTHROUGH_GEN)
  21036. || (bedai->passthr_mode[i] ==
  21037. COMPRESSED_PASSTHROUGH_IEC61937))
  21038. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  21039. copp_idx = adm_open(bedai->port_id, path_type,
  21040. sample_rate, channels, topology,
  21041. fdai->perf_mode, bits_per_sample,
  21042. app_type, acdb_dev_id);
  21043. if ((copp_idx < 0) ||
  21044. (copp_idx >= MAX_COPPS_PER_PORT)) {
  21045. pr_err("%s: adm open failed\n", __func__);
  21046. mutex_unlock(&routing_lock);
  21047. return -EINVAL;
  21048. }
  21049. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  21050. __func__, i, session_type, be_id);
  21051. set_bit(copp_idx,
  21052. &session_copp_map[i][session_type][be_id]);
  21053. if (msm_is_resample_needed(
  21054. sample_rate,
  21055. bedai->sample_rate))
  21056. adm_copp_mfc_cfg(
  21057. bedai->port_id, copp_idx,
  21058. bedai->sample_rate);
  21059. msm_pcm_routing_build_matrix(i, session_type, path_type,
  21060. fdai->perf_mode,
  21061. bedai->passthr_mode[i]);
  21062. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  21063. (bedai->passthr_mode[i] == LEGACY_PCM))
  21064. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  21065. topology, channels);
  21066. }
  21067. }
  21068. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  21069. session_id = msm_pcm_routing_get_voc_sessionid(i);
  21070. if (session_id) {
  21071. pr_debug("%s voice session_id: 0x%x\n", __func__,
  21072. session_id);
  21073. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  21074. voc_path_type = RX_PATH;
  21075. else
  21076. voc_path_type = TX_PATH;
  21077. voc_set_route_flag(session_id, voc_path_type, 1);
  21078. memset(&voc_be_media_format, 0,
  21079. sizeof(struct media_format_info));
  21080. voc_be_media_format.port_id = bedai->port_id;
  21081. voc_be_media_format.num_channels = bedai->channel;
  21082. voc_be_media_format.sample_rate = bedai->sample_rate;
  21083. voc_be_media_format.bits_per_sample = bedai->format;
  21084. /* Defaulting this to 1 for voice call usecases */
  21085. voc_be_media_format.channel_mapping[0] = 1;
  21086. voc_set_device_config(session_id, voc_path_type,
  21087. &voc_be_media_format);
  21088. if (voc_get_route_flag(session_id, RX_PATH) &&
  21089. voc_get_route_flag(session_id, TX_PATH))
  21090. voc_enable_device(session_id);
  21091. }
  21092. }
  21093. /* Check if backend is an external ec ref port and set as needed */
  21094. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  21095. memset(&voc_be_media_format, 0,
  21096. sizeof(struct media_format_info));
  21097. /* Get format info for ec ref port from msm_bedais[] */
  21098. voc_be_media_format.port_id = bedai->port_id;
  21099. voc_be_media_format.num_channels = bedai->channel;
  21100. voc_be_media_format.bits_per_sample = bedai->format;
  21101. voc_be_media_format.sample_rate = bedai->sample_rate;
  21102. /* Defaulting this to 1 for voice call usecases */
  21103. voc_be_media_format.channel_mapping[0] = 1;
  21104. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  21105. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  21106. __func__, voc_be_media_format.port_id,
  21107. voc_be_media_format.num_channels,
  21108. voc_be_media_format.bits_per_sample,
  21109. voc_be_media_format.sample_rate);
  21110. }
  21111. done:
  21112. mutex_unlock(&routing_lock);
  21113. return 0;
  21114. }
  21115. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  21116. int fe_id)
  21117. {
  21118. int index, topo_id, be_idx;
  21119. unsigned long pp_config = 0;
  21120. bool mute_on;
  21121. int latency;
  21122. bool compr_passthr_mode = true;
  21123. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  21124. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  21125. pr_err("%s: Device pp params on invalid port %d\n",
  21126. __func__, port_id);
  21127. return -EINVAL;
  21128. }
  21129. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  21130. if (port_id == msm_bedais[be_idx].port_id)
  21131. break;
  21132. }
  21133. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  21134. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  21135. return -EINVAL;
  21136. }
  21137. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  21138. if (msm_bedais_pp_params[index].port_id == port_id)
  21139. break;
  21140. }
  21141. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  21142. pr_err("%s: Invalid backend pp params index %d\n",
  21143. __func__, index);
  21144. return -EINVAL;
  21145. }
  21146. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  21147. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  21148. pr_err("%s: Invalid passthrough topology 0x%x\n",
  21149. __func__, topo_id);
  21150. return -EINVAL;
  21151. }
  21152. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  21153. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  21154. compr_passthr_mode = false;
  21155. pp_config = msm_bedais_pp_params[index].pp_params_config;
  21156. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  21157. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  21158. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  21159. mute_on = msm_bedais_pp_params[index].mute_on;
  21160. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  21161. adm_send_compressed_device_mute(port_id,
  21162. copp_idx,
  21163. mute_on);
  21164. }
  21165. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  21166. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  21167. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  21168. &pp_config);
  21169. latency = msm_bedais_pp_params[index].latency;
  21170. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  21171. adm_send_compressed_device_latency(port_id,
  21172. copp_idx,
  21173. latency);
  21174. }
  21175. return 0;
  21176. }
  21177. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  21178. {
  21179. uint32_t topology = NULL_COPP_TOPOLOGY;
  21180. void *cal_info = NULL;
  21181. uint32_t size = 0;
  21182. /* Retrieve cal_info size from cal data*/
  21183. size = data_size - sizeof(struct audio_cal_type_basic);
  21184. cal_info = kzalloc(size, GFP_KERNEL);
  21185. if (!cal_info)
  21186. goto done;
  21187. memcpy(cal_info,
  21188. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  21189. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  21190. kfree(cal_info);
  21191. cal_info = NULL;
  21192. done:
  21193. pr_debug("%s: Using topology %d\n", __func__, topology);
  21194. return topology;
  21195. }
  21196. static void msm_routing_load_topology(size_t data_size, void *data)
  21197. {
  21198. uint32_t topology_id;
  21199. int ret = -EINVAL;
  21200. topology_id = msm_routing_get_topology(data_size, data);
  21201. if (topology_id != NULL_COPP_TOPOLOGY)
  21202. ret = q6core_load_unload_topo_modules(topology_id,
  21203. CORE_LOAD_TOPOLOGY);
  21204. if (ret < 0)
  21205. pr_debug("%s %d load topology failed\n",
  21206. __func__, topology_id);
  21207. }
  21208. static void msm_routing_unload_topology(uint32_t topology_id)
  21209. {
  21210. int ret = -EINVAL;
  21211. if (topology_id != NULL_COPP_TOPOLOGY)
  21212. ret = q6core_load_unload_topo_modules(topology_id,
  21213. CORE_UNLOAD_TOPOLOGY);
  21214. if (ret < 0)
  21215. pr_debug("%s %d unload topology failed\n",
  21216. __func__, topology_id);
  21217. }
  21218. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  21219. struct snd_ctl_elem_value *ucontrol)
  21220. {
  21221. int pp_id = ucontrol->value.integer.value[0];
  21222. int port_id = 0;
  21223. int index, be_idx, i, topo_id, idx;
  21224. bool mute;
  21225. int latency;
  21226. bool compr_passthr_mode = true;
  21227. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  21228. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  21229. port_id = msm_bedais[be_idx].port_id;
  21230. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  21231. break;
  21232. }
  21233. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  21234. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  21235. return -EINVAL;
  21236. }
  21237. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  21238. if (msm_bedais_pp_params[index].port_id == port_id)
  21239. break;
  21240. }
  21241. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  21242. pr_err("%s: Invalid pp params backend index %d\n",
  21243. __func__, index);
  21244. return -EINVAL;
  21245. }
  21246. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  21247. MSM_FRONTEND_DAI_MM_SIZE) {
  21248. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  21249. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  21250. compr_passthr_mode = false;
  21251. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21252. unsigned long copp =
  21253. session_copp_map[i]
  21254. [SESSION_TYPE_RX][be_idx];
  21255. if (!test_bit(idx, &copp))
  21256. continue;
  21257. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  21258. idx);
  21259. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  21260. continue;
  21261. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  21262. __func__, port_id, copp, msm_bedais[be_idx].active,
  21263. msm_bedais[be_idx].passthr_mode[i]);
  21264. switch (pp_id) {
  21265. case ADM_PP_PARAM_MUTE_ID:
  21266. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  21267. mute = ucontrol->value.integer.value[1] ? true : false;
  21268. msm_bedais_pp_params[index].mute_on = mute;
  21269. set_bit(ADM_PP_PARAM_MUTE_BIT,
  21270. &msm_bedais_pp_params[index].pp_params_config);
  21271. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  21272. adm_send_compressed_device_mute(port_id,
  21273. idx, mute);
  21274. break;
  21275. case ADM_PP_PARAM_LATENCY_ID:
  21276. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  21277. msm_bedais_pp_params[index].latency =
  21278. ucontrol->value.integer.value[1];
  21279. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  21280. &msm_bedais_pp_params[index].pp_params_config);
  21281. latency = msm_bedais_pp_params[index].latency =
  21282. ucontrol->value.integer.value[1];
  21283. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  21284. adm_send_compressed_device_latency(port_id,
  21285. idx, latency);
  21286. break;
  21287. default:
  21288. pr_info("%s, device pp param %d not supported\n",
  21289. __func__, pp_id);
  21290. break;
  21291. }
  21292. }
  21293. }
  21294. return 0;
  21295. }
  21296. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  21297. struct snd_ctl_elem_value *ucontrol)
  21298. {
  21299. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  21300. return 0;
  21301. }
  21302. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  21303. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  21304. 0, 3, msm_routing_get_device_pp_params_mixer,
  21305. msm_routing_put_device_pp_params_mixer),
  21306. };
  21307. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  21308. struct snd_ctl_elem_value *ucontrol)
  21309. {
  21310. ucontrol->value.integer.value[0] =
  21311. core_get_license_status(ASM_MEDIA_FMT_APTX);
  21312. pr_debug("%s: status %ld\n", __func__,
  21313. ucontrol->value.integer.value[0]);
  21314. return 0;
  21315. }
  21316. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  21317. struct snd_ctl_elem_value *ucontrol)
  21318. {
  21319. int32_t status = 0;
  21320. status = core_set_license(ucontrol->value.integer.value[0],
  21321. APTX_CLASSIC_DEC_LICENSE_ID);
  21322. pr_debug("%s: status %d\n", __func__, status);
  21323. return status;
  21324. }
  21325. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  21326. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  21327. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  21328. msm_aptx_dec_license_control_put),
  21329. };
  21330. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  21331. struct snd_ctl_elem_info *uinfo)
  21332. {
  21333. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21334. uinfo->count = sizeof(be_dai_name_table);
  21335. return 0;
  21336. }
  21337. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  21338. unsigned int __user *bytes,
  21339. unsigned int size)
  21340. {
  21341. int i;
  21342. int ret = 0;
  21343. if (size < sizeof(be_dai_name_table)) {
  21344. pr_err("%s: invalid size %d requested, returning\n",
  21345. __func__, size);
  21346. ret = -EINVAL;
  21347. goto done;
  21348. }
  21349. /*
  21350. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  21351. * needed when adding new backends
  21352. */
  21353. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  21354. be_dai_name_table[i].be_id = i;
  21355. strlcpy(be_dai_name_table[i].be_name,
  21356. msm_bedais[i].name,
  21357. LPASS_BE_NAME_MAX_LENGTH);
  21358. }
  21359. ret = copy_to_user(bytes, &be_dai_name_table,
  21360. sizeof(be_dai_name_table));
  21361. if (ret) {
  21362. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  21363. ret = -EFAULT;
  21364. }
  21365. done:
  21366. return ret;
  21367. }
  21368. static const struct snd_kcontrol_new
  21369. msm_routing_be_dai_name_table_mixer_controls[] = {
  21370. {
  21371. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  21372. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  21373. .info = msm_routing_be_dai_name_table_info,
  21374. .name = "Backend DAI Name Table",
  21375. .tlv.c = snd_soc_bytes_tlv_callback,
  21376. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  21377. .max = sizeof(be_dai_name_table),
  21378. .get = msm_routing_be_dai_name_table_tlv_get,
  21379. }
  21380. },
  21381. };
  21382. static int msm_routing_stereo_channel_reverse_control_get(
  21383. struct snd_kcontrol *kcontrol,
  21384. struct snd_ctl_elem_value *ucontrol)
  21385. {
  21386. ucontrol->value.integer.value[0] = swap_ch;
  21387. pr_debug("%s: Swap channel value: %ld\n", __func__,
  21388. ucontrol->value.integer.value[0]);
  21389. return 0;
  21390. }
  21391. static int msm_routing_stereo_channel_reverse_control_put(
  21392. struct snd_kcontrol *kcontrol,
  21393. struct snd_ctl_elem_value *ucontrol)
  21394. {
  21395. int i, idx, be_index, port_id;
  21396. int ret = 0;
  21397. unsigned long copp;
  21398. pr_debug("%s Swap channel value:%ld\n", __func__,
  21399. ucontrol->value.integer.value[0]);
  21400. swap_ch = ucontrol->value.integer.value[0];
  21401. mutex_lock(&routing_lock);
  21402. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  21403. port_id = msm_bedais[be_index].port_id;
  21404. if (!msm_bedais[be_index].active)
  21405. continue;
  21406. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  21407. MSM_FRONTEND_DAI_MM_SIZE) {
  21408. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  21409. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21410. if (!test_bit(idx, &copp))
  21411. continue;
  21412. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  21413. __func__, port_id, idx);
  21414. ret = adm_swap_speaker_channels(
  21415. port_id, idx,
  21416. msm_bedais[be_index].sample_rate,
  21417. swap_ch);
  21418. if (ret) {
  21419. pr_err("%s:Swap_channel failed, err=%d\n",
  21420. __func__, ret);
  21421. goto done;
  21422. }
  21423. }
  21424. }
  21425. }
  21426. done:
  21427. mutex_unlock(&routing_lock);
  21428. return ret;
  21429. }
  21430. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  21431. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  21432. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  21433. msm_routing_stereo_channel_reverse_control_put),
  21434. };
  21435. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  21436. struct snd_ctl_elem_info *uinfo)
  21437. {
  21438. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  21439. uinfo->count = 1;
  21440. return 0;
  21441. }
  21442. static int msm_routing_instance_id_support_put(
  21443. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  21444. {
  21445. bool supported = ucontrol->value.integer.value[0] ? true : false;
  21446. q6common_update_instance_id_support(supported);
  21447. return 0;
  21448. }
  21449. static int msm_routing_instance_id_support_get(
  21450. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  21451. {
  21452. bool supported = false;
  21453. supported = q6common_is_instance_id_supported();
  21454. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  21455. return 0;
  21456. }
  21457. static const struct snd_kcontrol_new
  21458. msm_routing_feature_support_mixer_controls[] = {
  21459. {
  21460. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  21461. SNDRV_CTL_ELEM_ACCESS_WRITE,
  21462. .info = msm_routing_instance_id_support_info,
  21463. .name = "Instance ID Support",
  21464. .put = msm_routing_instance_id_support_put,
  21465. .get = msm_routing_instance_id_support_get,
  21466. },
  21467. };
  21468. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  21469. .hw_params = msm_pcm_routing_hw_params,
  21470. .close = msm_pcm_routing_close,
  21471. .prepare = msm_pcm_routing_prepare,
  21472. };
  21473. /* Not used but frame seems to require it */
  21474. static int msm_routing_probe(struct snd_soc_platform *platform)
  21475. {
  21476. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  21477. ARRAY_SIZE(msm_qdsp6_widgets));
  21478. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  21479. ARRAY_SIZE(intercon));
  21480. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  21481. snd_soc_add_platform_controls(platform, lsm_controls,
  21482. ARRAY_SIZE(lsm_controls));
  21483. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  21484. ARRAY_SIZE(aanc_slim_0_rx_mux));
  21485. snd_soc_add_platform_controls(platform, aanc_noise_level,
  21486. ARRAY_SIZE(aanc_noise_level));
  21487. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  21488. ARRAY_SIZE(msm_voc_session_controls));
  21489. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  21490. ARRAY_SIZE(app_type_cfg_controls));
  21491. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  21492. ARRAY_SIZE(lsm_app_type_cfg_controls));
  21493. snd_soc_add_platform_controls(platform, module_cfg_controls,
  21494. ARRAY_SIZE(module_cfg_controls));
  21495. snd_soc_add_platform_controls(platform,
  21496. stereo_to_custom_stereo_controls,
  21497. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  21498. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  21499. ARRAY_SIZE(ec_ref_param_controls));
  21500. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  21501. ARRAY_SIZE(channel_mixer_controls));
  21502. msm_qti_pp_add_controls(platform);
  21503. msm_dts_srs_tm_add_controls(platform);
  21504. msm_dolby_dap_add_controls(platform);
  21505. snd_soc_add_platform_controls(platform,
  21506. use_ds1_or_ds2_controls,
  21507. ARRAY_SIZE(use_ds1_or_ds2_controls));
  21508. snd_soc_add_platform_controls(platform,
  21509. device_pp_params_mixer_controls,
  21510. ARRAY_SIZE(device_pp_params_mixer_controls));
  21511. snd_soc_add_platform_controls(platform,
  21512. msm_routing_be_dai_name_table_mixer_controls,
  21513. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  21514. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  21515. ARRAY_SIZE(msm_source_tracking_controls));
  21516. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  21517. ARRAY_SIZE(adm_channel_config_controls));
  21518. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  21519. ARRAY_SIZE(aptx_dec_license_controls));
  21520. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  21521. ARRAY_SIZE(stereo_channel_reverse_control));
  21522. snd_soc_add_platform_controls(
  21523. platform, msm_routing_feature_support_mixer_controls,
  21524. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  21525. return 0;
  21526. }
  21527. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  21528. {
  21529. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  21530. }
  21531. void msm_routing_pcm_free(struct snd_pcm *pcm)
  21532. {
  21533. msm_pcm_routing_hwdep_free(pcm);
  21534. }
  21535. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  21536. .ops = &msm_routing_pcm_ops,
  21537. .probe = msm_routing_probe,
  21538. .pcm_new = msm_routing_pcm_new,
  21539. .pcm_free = msm_routing_pcm_free,
  21540. };
  21541. static int msm_routing_pcm_probe(struct platform_device *pdev)
  21542. {
  21543. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  21544. return snd_soc_register_platform(&pdev->dev,
  21545. &msm_soc_routing_platform);
  21546. }
  21547. static int msm_routing_pcm_remove(struct platform_device *pdev)
  21548. {
  21549. snd_soc_unregister_platform(&pdev->dev);
  21550. return 0;
  21551. }
  21552. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  21553. {.compatible = "qcom,msm-pcm-routing"},
  21554. {}
  21555. };
  21556. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  21557. static struct platform_driver msm_routing_pcm_driver = {
  21558. .driver = {
  21559. .name = "msm-pcm-routing",
  21560. .owner = THIS_MODULE,
  21561. .of_match_table = msm_pcm_routing_dt_match,
  21562. },
  21563. .probe = msm_routing_pcm_probe,
  21564. .remove = msm_routing_pcm_remove,
  21565. };
  21566. int msm_routing_check_backend_enabled(int fedai_id)
  21567. {
  21568. int i;
  21569. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  21570. /* bad ID assigned in machine driver */
  21571. pr_err("%s: bad MM ID\n", __func__);
  21572. return 0;
  21573. }
  21574. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  21575. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  21576. return msm_bedais[i].active;
  21577. }
  21578. return 0;
  21579. }
  21580. static int get_cal_type_index(int32_t cal_type)
  21581. {
  21582. int ret = -EINVAL;
  21583. switch (cal_type) {
  21584. case ADM_TOPOLOGY_CAL_TYPE:
  21585. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  21586. break;
  21587. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  21588. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  21589. break;
  21590. default:
  21591. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  21592. }
  21593. return ret;
  21594. }
  21595. static int msm_routing_set_cal(int32_t cal_type,
  21596. size_t data_size, void *data)
  21597. {
  21598. int ret = 0;
  21599. int cal_index;
  21600. pr_debug("%s\n", __func__);
  21601. cal_index = get_cal_type_index(cal_type);
  21602. if (cal_index < 0) {
  21603. pr_err("%s: Could not get cal index %d\n",
  21604. __func__, cal_index);
  21605. ret = -EINVAL;
  21606. goto done;
  21607. }
  21608. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  21609. if (ret < 0) {
  21610. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  21611. __func__, ret, cal_type);
  21612. ret = -EINVAL;
  21613. goto done;
  21614. }
  21615. /* Pre-load if it is ADM topology */
  21616. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  21617. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  21618. msm_routing_load_topology(data_size, data);
  21619. }
  21620. done:
  21621. return ret;
  21622. }
  21623. static void msm_routing_delete_cal_data(void)
  21624. {
  21625. pr_debug("%s\n", __func__);
  21626. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  21627. }
  21628. static int msm_routing_init_cal_data(void)
  21629. {
  21630. int ret = 0;
  21631. struct cal_type_info cal_type_info[] = {
  21632. {{ADM_TOPOLOGY_CAL_TYPE,
  21633. {NULL, NULL, NULL,
  21634. msm_routing_set_cal, NULL, NULL} },
  21635. {NULL, NULL, cal_utils_match_buf_num} },
  21636. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  21637. {NULL, NULL, NULL,
  21638. msm_routing_set_cal, NULL, NULL} },
  21639. {NULL, NULL, cal_utils_match_buf_num} },
  21640. };
  21641. pr_debug("%s\n", __func__);
  21642. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  21643. &cal_type_info[0]);
  21644. if (ret < 0) {
  21645. pr_err("%s: could not create cal type!\n",
  21646. __func__);
  21647. ret = -EINVAL;
  21648. goto err;
  21649. }
  21650. return ret;
  21651. err:
  21652. msm_routing_delete_cal_data();
  21653. return ret;
  21654. }
  21655. int __init msm_soc_routing_platform_init(void)
  21656. {
  21657. mutex_init(&routing_lock);
  21658. if (msm_routing_init_cal_data())
  21659. pr_err("%s: could not init cal data!\n", __func__);
  21660. afe_set_routing_callback(
  21661. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  21662. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  21663. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  21664. return platform_driver_register(&msm_routing_pcm_driver);
  21665. }
  21666. void msm_soc_routing_platform_exit(void)
  21667. {
  21668. msm_routing_delete_cal_data();
  21669. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  21670. mutex_destroy(&routing_lock);
  21671. platform_driver_unregister(&msm_routing_pcm_driver);
  21672. }
  21673. MODULE_DESCRIPTION("MSM routing platform driver");
  21674. MODULE_LICENSE("GPL v2");