msm-pcm-routing-v2.c 944 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820
  1. // SPDX-License-Identifier: GPL-2.0
  2. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
  3. */
  4. #include <linux/init.h>
  5. #include <linux/err.h>
  6. #include <linux/module.h>
  7. #include <linux/moduleparam.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/bitops.h>
  10. #include <linux/mutex.h>
  11. #include <linux/of_device.h>
  12. #include <linux/slab.h>
  13. #include <sound/core.h>
  14. #include <sound/soc.h>
  15. #include <sound/soc-dapm.h>
  16. #include <sound/pcm.h>
  17. #include <sound/initval.h>
  18. #include <sound/control.h>
  19. #include <sound/tlv.h>
  20. #include <sound/asound.h>
  21. #include <sound/pcm_params.h>
  22. #include <sound/hwdep.h>
  23. #include <sound/audio_effects.h>
  24. #include <dsp/msm-dts-srs-tm-config.h>
  25. #include <dsp/q6voice.h>
  26. #include <dsp/q6adm-v2.h>
  27. #include <dsp/q6asm-v2.h>
  28. #include <dsp/q6afe-v2.h>
  29. #include <dsp/q6lsm.h>
  30. #include <dsp/q6core.h>
  31. #include <dsp/q6common.h>
  32. #include <dsp/audio_cal_utils.h>
  33. #include "msm-pcm-routing-v2.h"
  34. #include "msm-pcm-routing-devdep.h"
  35. #include "msm-qti-pp-config.h"
  36. #include "msm-dolby-dap-config.h"
  37. #include "msm-ds2-dap-config.h"
  38. #ifndef CONFIG_DOLBY_DAP
  39. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  40. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  41. #endif
  42. #ifndef CONFIG_DOLBY_DS2
  43. #undef DS2_ADM_COPP_TOPOLOGY_ID
  44. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  45. #endif
  46. static struct mutex routing_lock;
  47. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  48. static int fm_switch_enable;
  49. static int hfp_switch_enable;
  50. static int a2dp_switch_enable;
  51. static int int0_mi2s_switch_enable;
  52. static int int4_mi2s_switch_enable;
  53. static int pri_mi2s_switch_enable;
  54. static int sec_mi2s_switch_enable;
  55. static int tert_mi2s_switch_enable;
  56. static int quat_mi2s_switch_enable;
  57. static int quin_mi2s_switch_enable;
  58. static int fm_pcmrx_switch_enable;
  59. static int usb_switch_enable;
  60. static int lsm_port_index;
  61. static int slim0_rx_aanc_fb_port;
  62. static int msm_route_ec_ref_rx;
  63. static int msm_ec_ref_ch = 4;
  64. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  65. static int msm_ec_ref_sampling_rate = 48000;
  66. static uint32_t voc_session_id = ALL_SESSION_VSID;
  67. static int msm_route_ext_ec_ref;
  68. static bool is_custom_stereo_on;
  69. static bool is_ds2_on;
  70. static bool swap_ch;
  71. static int aanc_level;
  72. #define WEIGHT_0_DB 0x4000
  73. /* all the FEs which can support channel mixer */
  74. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  75. /* input BE for each FE */
  76. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  77. enum {
  78. MADNONE,
  79. MADAUDIO,
  80. MADBEACON,
  81. MADULTRASOUND,
  82. MADSWAUDIO,
  83. };
  84. #define ADM_LSM_PORT_INDEX 9
  85. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  86. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  87. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  88. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  89. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  90. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  91. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  92. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  93. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  94. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  95. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  96. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  97. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  98. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  99. #define LSM_FUNCTION_TEXT "LSM Function"
  100. static const char * const lsm_port_text[] = {
  101. "None",
  102. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  103. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  104. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  105. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  106. TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT
  107. };
  108. struct msm_pcm_route_bdai_pp_params {
  109. u16 port_id; /* AFE port ID */
  110. unsigned long pp_params_config;
  111. bool mute_on;
  112. int latency;
  113. };
  114. static struct msm_pcm_route_bdai_pp_params
  115. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  116. {HDMI_RX, 0, 0, 0},
  117. {DISPLAY_PORT_RX, 0, 0, 0},
  118. };
  119. /*
  120. * The be_dai_name_table is passed to HAL so that it can specify the
  121. * BE ID for the BE it wants to enable based on the name. Thus there
  122. * is a matching table and structure in HAL that need to be updated
  123. * if any changes to these are made.
  124. */
  125. struct msm_pcm_route_bdai_name {
  126. unsigned int be_id;
  127. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  128. };
  129. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  130. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  131. int fe_id);
  132. static void msm_routing_load_topology(size_t data_size, void *data);
  133. static void msm_routing_unload_topology(uint32_t topology_id);
  134. static int msm_routing_get_bit_width(unsigned int format)
  135. {
  136. int bit_width;
  137. switch (format) {
  138. case SNDRV_PCM_FORMAT_S32_LE:
  139. bit_width = 32;
  140. break;
  141. case SNDRV_PCM_FORMAT_S24_LE:
  142. case SNDRV_PCM_FORMAT_S24_3LE:
  143. bit_width = 24;
  144. break;
  145. case SNDRV_PCM_FORMAT_S16_LE:
  146. default:
  147. bit_width = 16;
  148. }
  149. return bit_width;
  150. }
  151. static bool msm_is_resample_needed(int input_sr, int output_sr)
  152. {
  153. bool rc = false;
  154. if (input_sr != output_sr)
  155. rc = true;
  156. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  157. (rc ? "oh yes" : "not really"),
  158. input_sr, output_sr);
  159. return rc;
  160. }
  161. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  162. int channels)
  163. {
  164. int rc = 0;
  165. switch (topology) {
  166. case SRS_TRUMEDIA_TOPOLOGY_ID:
  167. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  168. msm_dts_srs_tm_init(port_id, copp_idx);
  169. break;
  170. case DS2_ADM_COPP_TOPOLOGY_ID:
  171. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  172. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  173. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  174. is_custom_stereo_on);
  175. if (rc < 0)
  176. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  177. __func__, topology, port_id,
  178. is_custom_stereo_on, rc);
  179. break;
  180. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  181. if (is_ds2_on) {
  182. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  183. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  184. is_custom_stereo_on);
  185. if (rc < 0)
  186. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  187. __func__, topology, port_id, rc);
  188. } else {
  189. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  190. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  191. is_custom_stereo_on);
  192. if (rc < 0)
  193. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  194. __func__, topology, port_id, rc);
  195. }
  196. break;
  197. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  198. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  199. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  200. if (rc < 0)
  201. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  202. __func__, topology, port_id, copp_idx, rc);
  203. break;
  204. default:
  205. /* custom topology specific feature param handlers */
  206. break;
  207. }
  208. }
  209. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  210. {
  211. switch (topology) {
  212. case SRS_TRUMEDIA_TOPOLOGY_ID:
  213. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  214. msm_dts_srs_tm_deinit(port_id);
  215. break;
  216. case DS2_ADM_COPP_TOPOLOGY_ID:
  217. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  218. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  219. msm_ds2_dap_deinit(port_id);
  220. break;
  221. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  222. if (is_ds2_on) {
  223. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  224. msm_ds2_dap_deinit(port_id);
  225. } else {
  226. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  227. msm_dolby_dap_deinit(port_id);
  228. }
  229. break;
  230. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  231. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  232. msm_qti_pp_asphere_deinit(port_id);
  233. break;
  234. default:
  235. /* custom topology specific feature deinit handlers */
  236. break;
  237. }
  238. }
  239. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  240. int path_type, int perf_mode)
  241. {
  242. int itr = 0, rc = 0;
  243. if ((path_type == ADM_PATH_PLAYBACK) &&
  244. (perf_mode == LEGACY_PCM_MODE) &&
  245. is_custom_stereo_on) {
  246. for (itr = 0; itr < payload.num_copps; itr++) {
  247. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  248. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  249. continue;
  250. }
  251. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  252. payload.port_id[itr],
  253. payload.copp_idx[itr],
  254. payload.session_id,
  255. Q14_GAIN_ZERO_POINT_FIVE,
  256. Q14_GAIN_ZERO_POINT_FIVE,
  257. Q14_GAIN_ZERO_POINT_FIVE,
  258. Q14_GAIN_ZERO_POINT_FIVE);
  259. if (rc < 0)
  260. pr_err("%s: err setting custom stereo\n",
  261. __func__);
  262. }
  263. }
  264. }
  265. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  266. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  267. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  268. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  269. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  270. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  271. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  272. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  273. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  274. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  275. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  276. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  277. LPASS_BE_AFE_PCM_RX},
  278. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  279. LPASS_BE_AFE_PCM_TX},
  280. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  281. LPASS_BE_AUXPCM_RX},
  282. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  283. LPASS_BE_AUXPCM_TX},
  284. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  285. LPASS_BE_VOICE_PLAYBACK_TX},
  286. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  287. LPASS_BE_VOICE2_PLAYBACK_TX},
  288. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  289. LPASS_BE_INCALL_RECORD_RX},
  290. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  291. LPASS_BE_INCALL_RECORD_TX},
  292. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  293. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  294. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  295. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  296. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  297. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  298. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  299. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  300. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  301. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  302. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  303. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  304. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  305. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  306. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  307. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  308. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  309. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  310. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  311. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  312. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  313. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  314. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  315. LPASS_BE_QUAT_MI2S_RX},
  316. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  317. LPASS_BE_QUAT_MI2S_TX},
  318. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  319. LPASS_BE_SEC_MI2S_RX},
  320. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  321. LPASS_BE_SEC_MI2S_TX},
  322. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  323. LPASS_BE_PRI_MI2S_RX},
  324. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  325. LPASS_BE_PRI_MI2S_TX},
  326. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  327. LPASS_BE_TERT_MI2S_RX},
  328. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  329. LPASS_BE_TERT_MI2S_TX},
  330. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  331. LPASS_BE_AUDIO_I2S_RX},
  332. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  333. LPASS_BE_SEC_AUXPCM_RX},
  334. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  335. LPASS_BE_SEC_AUXPCM_TX},
  336. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  337. LPASS_BE_PRI_SPDIF_RX},
  338. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  339. LPASS_BE_SEC_MI2S_RX_SD1},
  340. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  341. LPASS_BE_QUIN_MI2S_RX},
  342. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  343. LPASS_BE_QUIN_MI2S_TX},
  344. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  345. LPASS_BE_SENARY_MI2S_TX},
  346. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  347. LPASS_BE_PRI_TDM_RX_0},
  348. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  349. LPASS_BE_PRI_TDM_TX_0},
  350. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  351. LPASS_BE_PRI_TDM_RX_1},
  352. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  353. LPASS_BE_PRI_TDM_TX_1},
  354. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  355. LPASS_BE_PRI_TDM_RX_2},
  356. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  357. LPASS_BE_PRI_TDM_TX_2},
  358. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  359. LPASS_BE_PRI_TDM_RX_3},
  360. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  361. LPASS_BE_PRI_TDM_TX_3},
  362. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  363. LPASS_BE_PRI_TDM_RX_4},
  364. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  365. LPASS_BE_PRI_TDM_TX_4},
  366. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  367. LPASS_BE_PRI_TDM_RX_5},
  368. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  369. LPASS_BE_PRI_TDM_TX_5},
  370. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  371. LPASS_BE_PRI_TDM_RX_6},
  372. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  373. LPASS_BE_PRI_TDM_TX_6},
  374. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  375. LPASS_BE_PRI_TDM_RX_7},
  376. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  377. LPASS_BE_PRI_TDM_TX_7},
  378. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  379. LPASS_BE_SEC_TDM_RX_0},
  380. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  381. LPASS_BE_SEC_TDM_TX_0},
  382. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  383. LPASS_BE_SEC_TDM_RX_1},
  384. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  385. LPASS_BE_SEC_TDM_TX_1},
  386. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  387. LPASS_BE_SEC_TDM_RX_2},
  388. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  389. LPASS_BE_SEC_TDM_TX_2},
  390. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  391. LPASS_BE_SEC_TDM_RX_3},
  392. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  393. LPASS_BE_SEC_TDM_TX_3},
  394. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  395. LPASS_BE_SEC_TDM_RX_4},
  396. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  397. LPASS_BE_SEC_TDM_TX_4},
  398. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  399. LPASS_BE_SEC_TDM_RX_5},
  400. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  401. LPASS_BE_SEC_TDM_TX_5},
  402. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  403. LPASS_BE_SEC_TDM_RX_6},
  404. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  405. LPASS_BE_SEC_TDM_TX_6},
  406. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  407. LPASS_BE_SEC_TDM_RX_7},
  408. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  409. LPASS_BE_SEC_TDM_TX_7},
  410. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  411. LPASS_BE_TERT_TDM_RX_0},
  412. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  413. LPASS_BE_TERT_TDM_TX_0},
  414. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  415. LPASS_BE_TERT_TDM_RX_1},
  416. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  417. LPASS_BE_TERT_TDM_TX_1},
  418. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  419. LPASS_BE_TERT_TDM_RX_2},
  420. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  421. LPASS_BE_TERT_TDM_TX_2},
  422. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  423. LPASS_BE_TERT_TDM_RX_3},
  424. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  425. LPASS_BE_TERT_TDM_TX_3},
  426. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  427. LPASS_BE_TERT_TDM_RX_4},
  428. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  429. LPASS_BE_TERT_TDM_TX_4},
  430. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  431. LPASS_BE_TERT_TDM_RX_5},
  432. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  433. LPASS_BE_TERT_TDM_TX_5},
  434. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  435. LPASS_BE_TERT_TDM_RX_6},
  436. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  437. LPASS_BE_TERT_TDM_TX_6},
  438. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  439. LPASS_BE_TERT_TDM_RX_7},
  440. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  441. LPASS_BE_TERT_TDM_TX_7},
  442. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  443. LPASS_BE_QUAT_TDM_RX_0},
  444. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  445. LPASS_BE_QUAT_TDM_TX_0},
  446. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  447. LPASS_BE_QUAT_TDM_RX_1},
  448. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  449. LPASS_BE_QUAT_TDM_TX_1},
  450. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  451. LPASS_BE_QUAT_TDM_RX_2},
  452. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  453. LPASS_BE_QUAT_TDM_TX_2},
  454. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  455. LPASS_BE_QUAT_TDM_RX_3},
  456. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  457. LPASS_BE_QUAT_TDM_TX_3},
  458. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  459. LPASS_BE_QUAT_TDM_RX_4},
  460. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  461. LPASS_BE_QUAT_TDM_TX_4},
  462. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  463. LPASS_BE_QUAT_TDM_RX_5},
  464. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  465. LPASS_BE_QUAT_TDM_TX_5},
  466. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  467. LPASS_BE_QUAT_TDM_RX_6},
  468. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  469. LPASS_BE_QUAT_TDM_TX_6},
  470. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  471. LPASS_BE_QUAT_TDM_RX_7},
  472. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  473. LPASS_BE_QUAT_TDM_TX_7},
  474. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  475. LPASS_BE_QUIN_TDM_RX_0},
  476. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  477. LPASS_BE_QUIN_TDM_TX_0},
  478. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  479. LPASS_BE_QUIN_TDM_RX_1},
  480. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  481. LPASS_BE_QUIN_TDM_TX_1},
  482. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  483. LPASS_BE_QUIN_TDM_RX_2},
  484. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  485. LPASS_BE_QUIN_TDM_TX_2},
  486. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  487. LPASS_BE_QUIN_TDM_RX_3},
  488. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  489. LPASS_BE_QUIN_TDM_TX_3},
  490. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  491. LPASS_BE_QUIN_TDM_RX_4},
  492. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  493. LPASS_BE_QUIN_TDM_TX_4},
  494. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  495. LPASS_BE_QUIN_TDM_RX_5},
  496. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  497. LPASS_BE_QUIN_TDM_TX_5},
  498. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  499. LPASS_BE_QUIN_TDM_RX_6},
  500. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  501. LPASS_BE_QUIN_TDM_TX_6},
  502. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  503. LPASS_BE_QUIN_TDM_RX_7},
  504. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  505. LPASS_BE_QUIN_TDM_TX_7},
  506. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  507. LPASS_BE_INT_BT_A2DP_RX},
  508. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  509. LPASS_BE_USB_AUDIO_RX},
  510. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  511. LPASS_BE_USB_AUDIO_TX},
  512. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  513. LPASS_BE_DISPLAY_PORT},
  514. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  515. LPASS_BE_DISPLAY_PORT1},
  516. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  517. LPASS_BE_TERT_AUXPCM_RX},
  518. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  519. LPASS_BE_TERT_AUXPCM_TX},
  520. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  521. LPASS_BE_QUAT_AUXPCM_RX},
  522. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  523. LPASS_BE_QUAT_AUXPCM_TX},
  524. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  525. LPASS_BE_QUIN_AUXPCM_RX},
  526. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  527. LPASS_BE_QUIN_AUXPCM_TX},
  528. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  529. LPASS_BE_INT0_MI2S_RX},
  530. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  531. LPASS_BE_INT0_MI2S_TX},
  532. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  533. LPASS_BE_INT1_MI2S_RX},
  534. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  535. LPASS_BE_INT1_MI2S_TX},
  536. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  537. LPASS_BE_INT2_MI2S_RX},
  538. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  539. LPASS_BE_INT2_MI2S_TX},
  540. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  541. LPASS_BE_INT3_MI2S_RX},
  542. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  543. LPASS_BE_INT3_MI2S_TX},
  544. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  545. LPASS_BE_INT4_MI2S_RX},
  546. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  547. LPASS_BE_INT4_MI2S_TX},
  548. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  549. LPASS_BE_INT5_MI2S_RX},
  550. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  551. LPASS_BE_INT5_MI2S_TX},
  552. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  553. LPASS_BE_INT6_MI2S_RX},
  554. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  555. LPASS_BE_INT6_MI2S_TX},
  556. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  557. LPASS_BE_SEN_AUXPCM_RX},
  558. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  559. LPASS_BE_SEN_AUXPCM_TX},
  560. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  561. LPASS_BE_SENARY_MI2S_RX},
  562. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  563. LPASS_BE_WSA_CDC_DMA_RX_0},
  564. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  565. LPASS_BE_WSA_CDC_DMA_TX_0},
  566. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  567. LPASS_BE_WSA_CDC_DMA_RX_1},
  568. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  569. LPASS_BE_WSA_CDC_DMA_TX_1},
  570. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  571. LPASS_BE_WSA_CDC_DMA_TX_2},
  572. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  573. LPASS_BE_VA_CDC_DMA_TX_0},
  574. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  575. LPASS_BE_VA_CDC_DMA_TX_1},
  576. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  577. LPASS_BE_RX_CDC_DMA_RX_0},
  578. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  579. LPASS_BE_TX_CDC_DMA_TX_0},
  580. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  581. LPASS_BE_RX_CDC_DMA_RX_1},
  582. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  583. LPASS_BE_TX_CDC_DMA_TX_1},
  584. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  585. LPASS_BE_RX_CDC_DMA_RX_2},
  586. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  587. LPASS_BE_TX_CDC_DMA_TX_2},
  588. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  589. LPASS_BE_RX_CDC_DMA_RX_3},
  590. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  591. LPASS_BE_TX_CDC_DMA_TX_3},
  592. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  593. LPASS_BE_RX_CDC_DMA_RX_4},
  594. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  595. LPASS_BE_TX_CDC_DMA_TX_4},
  596. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  597. LPASS_BE_RX_CDC_DMA_RX_5},
  598. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  599. LPASS_BE_TX_CDC_DMA_TX_5},
  600. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  601. LPASS_BE_RX_CDC_DMA_RX_6},
  602. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  603. LPASS_BE_RX_CDC_DMA_RX_7},
  604. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  605. LPASS_BE_PRI_SPDIF_TX},
  606. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  607. LPASS_BE_SEC_SPDIF_RX},
  608. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  609. LPASS_BE_SEC_SPDIF_TX},
  610. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  611. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  612. };
  613. /* Track ASM playback & capture sessions of DAI
  614. * Track LSM listen sessions
  615. */
  616. static struct msm_pcm_routing_fdai_data
  617. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  618. /* MULTIMEDIA1 */
  619. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  620. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  621. /* MULTIMEDIA2 */
  622. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  623. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  624. /* MULTIMEDIA3 */
  625. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  626. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  627. /* MULTIMEDIA4 */
  628. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  629. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  630. /* MULTIMEDIA5 */
  631. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  632. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  633. /* MULTIMEDIA6 */
  634. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  635. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  636. /* MULTIMEDIA7*/
  637. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  638. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  639. /* MULTIMEDIA8 */
  640. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  641. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  642. /* MULTIMEDIA9 */
  643. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  644. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  645. /* MULTIMEDIA10 */
  646. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  647. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  648. /* MULTIMEDIA11 */
  649. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  650. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  651. /* MULTIMEDIA12 */
  652. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  653. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  654. /* MULTIMEDIA13 */
  655. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  656. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  657. /* MULTIMEDIA14 */
  658. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  659. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  660. /* MULTIMEDIA15 */
  661. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  662. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  663. /* MULTIMEDIA16 */
  664. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  665. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  666. /* MULTIMEDIA17 */
  667. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  668. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  669. /* MULTIMEDIA18 */
  670. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  671. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  672. /* MULTIMEDIA19 */
  673. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  674. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  675. /* MULTIMEDIA20 */
  676. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  677. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  678. /* MULTIMEDIA21 */
  679. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  680. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  681. /* MULTIMEDIA26 */
  682. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  683. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  684. /* MULTIMEDIA27 */
  685. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  686. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  687. /* MULTIMEDIA28 */
  688. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  689. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  690. /* MULTIMEDIA29 */
  691. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  692. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  693. /* VOIP */
  694. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  695. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  696. /* AFE_RX */
  697. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  698. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  699. /* AFE_TX */
  700. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  701. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  702. /* VOICE_STUB */
  703. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  704. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  705. /* DTMF_RX */
  706. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  707. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  708. /* QCHAT */
  709. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  710. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  711. /* VOLTE_STUB */
  712. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  713. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  714. /* LSM1 */
  715. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  716. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  717. /* LSM2 */
  718. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  719. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  720. /* LSM3 */
  721. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  722. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  723. /* LSM4 */
  724. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  725. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  726. /* LSM5 */
  727. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  728. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  729. /* LSM6 */
  730. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  731. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  732. /* LSM7 */
  733. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  734. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  735. /* LSM8 */
  736. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  737. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  738. /* VOICE2_STUB */
  739. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  740. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  741. /* VOICEMMODE1 */
  742. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  743. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  744. /* VOICEMMODE2 */
  745. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  746. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  747. };
  748. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  749. [MSM_BACKEND_DAI_MAX];
  750. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  751. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  752. static struct msm_pcm_stream_app_type_cfg
  753. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  754. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  755. /* The caller of this should acquire routing lock */
  756. void msm_pcm_routing_get_bedai_info(int be_idx,
  757. struct msm_pcm_routing_bdai_data *be_dai)
  758. {
  759. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  760. memcpy(be_dai, &msm_bedais[be_idx],
  761. sizeof(struct msm_pcm_routing_bdai_data));
  762. }
  763. /* The caller of this should acquire routing lock */
  764. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  765. struct msm_pcm_routing_fdai_data *fe_dai)
  766. {
  767. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  768. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  769. sizeof(struct msm_pcm_routing_fdai_data));
  770. }
  771. void msm_pcm_routing_acquire_lock(void)
  772. {
  773. mutex_lock(&routing_lock);
  774. }
  775. void msm_pcm_routing_release_lock(void)
  776. {
  777. mutex_unlock(&routing_lock);
  778. }
  779. static int msm_pcm_routing_get_app_type_idx(int app_type)
  780. {
  781. int idx;
  782. pr_debug("%s: app_type: %d\n", __func__, app_type);
  783. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  784. if (app_type_cfg[idx].app_type == app_type)
  785. return idx;
  786. }
  787. pr_info("%s: App type not available, fallback to default\n", __func__);
  788. return 0;
  789. }
  790. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  791. {
  792. int idx;
  793. pr_debug("%s: app_type: %d\n", __func__, app_type);
  794. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  795. if (lsm_app_type_cfg[idx].app_type == app_type)
  796. return idx;
  797. }
  798. pr_debug("%s: App type not available, fallback to default\n", __func__);
  799. return 0;
  800. }
  801. static bool is_mm_lsm_fe_id(int fe_id)
  802. {
  803. bool rc = true;
  804. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  805. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  806. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  807. rc = false;
  808. }
  809. return rc;
  810. }
  811. /*
  812. * msm_pcm_routing_send_chmix_cfg:
  813. * send the channel mixer command to mix the input channels
  814. * into output channels.
  815. *
  816. * @fe_id: front end id
  817. * @ip_channel_cnt: input channel count
  818. * @op_channel_cnt: output channel count
  819. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  820. * @session_type: indicates session is of type TX or RX
  821. * @stream_type: indicates either Audio or Listen stream type
  822. */
  823. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  824. int op_channel_cnt, int *ch_wght_coeff,
  825. int session_type, int stream_type)
  826. {
  827. int rc = 0, idx = 0;
  828. int be_index = 0, port_id;
  829. unsigned int session_id = 0;
  830. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  831. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  832. stream_type);
  833. if (!is_mm_lsm_fe_id(fe_id)) {
  834. /* bad ID assigned in machine driver */
  835. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  836. return -EINVAL;
  837. }
  838. if (ch_wght_coeff == NULL) {
  839. pr_err("%s: Null channel weightage coefficients passed\n",
  840. __func__);
  841. return -EINVAL;
  842. }
  843. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  844. port_id = msm_bedais[be_index].port_id;
  845. if (!msm_bedais[be_index].active ||
  846. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  847. continue;
  848. session_id = fe_dai_map[fe_id][session_type].strm_id;
  849. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  850. unsigned long copp =
  851. session_copp_map[fe_id][session_type][be_index];
  852. if (!test_bit(idx, &copp))
  853. continue;
  854. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  855. session_id, ip_channel_cnt,
  856. op_channel_cnt, ch_wght_coeff,
  857. session_type, stream_type);
  858. if (rc < 0)
  859. pr_err("%s: err setting channel mix config\n",
  860. __func__);
  861. }
  862. }
  863. return 0;
  864. }
  865. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  866. int msm_pcm_routing_reg_stream_app_type_cfg(
  867. int fedai_id, int session_type, int be_id,
  868. struct msm_pcm_stream_app_type_cfg *cfg_data)
  869. {
  870. int ret = 0;
  871. if (cfg_data == NULL) {
  872. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  873. ret = -EINVAL;
  874. goto done;
  875. }
  876. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  877. __func__, fedai_id, session_type, be_id,
  878. cfg_data->app_type, cfg_data->acdb_dev_id,
  879. cfg_data->sample_rate);
  880. if (!is_mm_lsm_fe_id(fedai_id)) {
  881. pr_err("%s: Invalid machine driver ID %d\n",
  882. __func__, fedai_id);
  883. ret = -EINVAL;
  884. goto done;
  885. }
  886. if (session_type != SESSION_TYPE_RX &&
  887. session_type != SESSION_TYPE_TX) {
  888. pr_err("%s: Invalid session type %d\n",
  889. __func__, session_type);
  890. ret = -EINVAL;
  891. goto done;
  892. }
  893. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  894. pr_err("%s: Received out of bounds be_id %d\n",
  895. __func__, be_id);
  896. ret = -EINVAL;
  897. goto done;
  898. }
  899. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  900. /*
  901. * Store the BE ID of the configuration information set as the latest so
  902. * the get mixer control knows what to return.
  903. */
  904. last_be_id_configured[fedai_id][session_type] = be_id;
  905. done:
  906. return ret;
  907. }
  908. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  909. /**
  910. * msm_pcm_routing_get_stream_app_type_cfg
  911. *
  912. * Receives fedai_id, session_type, be_id, and populates app_type,
  913. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  914. * -EINVAL and does not alter passed values.
  915. *
  916. * fedai_id - Passed value, front end ID for which app type config is wanted
  917. * session_type - Passed value, session type for which app type config
  918. * is wanted
  919. * be_id - Returned value, back end device id the app type config data is for
  920. * cfg_data - Returned value, configuration data used by app type config
  921. */
  922. int msm_pcm_routing_get_stream_app_type_cfg(
  923. int fedai_id, int session_type, int *bedai_id,
  924. struct msm_pcm_stream_app_type_cfg *cfg_data)
  925. {
  926. int be_id;
  927. int ret = 0;
  928. if (bedai_id == NULL) {
  929. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  930. ret = -EINVAL;
  931. goto done;
  932. } else if (cfg_data == NULL) {
  933. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  934. ret = -EINVAL;
  935. goto done;
  936. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  937. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  938. ret = -EINVAL;
  939. goto done;
  940. } else if (session_type != SESSION_TYPE_RX &&
  941. session_type != SESSION_TYPE_TX) {
  942. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  943. ret = -EINVAL;
  944. goto done;
  945. }
  946. be_id = last_be_id_configured[fedai_id][session_type];
  947. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  948. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  949. ret = -EINVAL;
  950. goto done;
  951. }
  952. *bedai_id = be_id;
  953. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  954. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  955. __func__, fedai_id, session_type, *bedai_id,
  956. cfg_data->app_type, cfg_data->acdb_dev_id,
  957. cfg_data->sample_rate);
  958. done:
  959. return ret;
  960. }
  961. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  962. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  963. int cal_index)
  964. {
  965. struct list_head *ptr, *next;
  966. struct cal_block_data *cal_block = NULL;
  967. pr_debug("%s\n", __func__);
  968. list_for_each_safe(ptr, next,
  969. &cal_data[cal_index]->cal_blocks) {
  970. cal_block = list_entry(ptr,
  971. struct cal_block_data, list);
  972. if (cal_utils_is_cal_stale(cal_block))
  973. continue;
  974. if (((struct audio_cal_info_adm_top *)cal_block
  975. ->cal_info)->path == path) {
  976. return cal_block;
  977. }
  978. }
  979. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  980. return NULL;
  981. }
  982. static struct cal_block_data *msm_routing_find_topology(int path,
  983. int app_type,
  984. int acdb_id,
  985. int cal_index)
  986. {
  987. struct list_head *ptr, *next;
  988. struct cal_block_data *cal_block = NULL;
  989. struct audio_cal_info_adm_top *cal_info;
  990. pr_debug("%s\n", __func__);
  991. list_for_each_safe(ptr, next,
  992. &cal_data[cal_index]->cal_blocks) {
  993. cal_block = list_entry(ptr,
  994. struct cal_block_data, list);
  995. if (cal_utils_is_cal_stale(cal_block))
  996. continue;
  997. cal_info = (struct audio_cal_info_adm_top *)
  998. cal_block->cal_info;
  999. if ((cal_info->path == path) &&
  1000. (cal_info->app_type == app_type) &&
  1001. (cal_info->acdb_id == acdb_id)) {
  1002. return cal_block;
  1003. }
  1004. }
  1005. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  1006. __func__, path, app_type, acdb_id);
  1007. return msm_routing_find_topology_by_path(path, cal_index);
  1008. }
  1009. /*
  1010. * Retrieving cal_block will mark cal_block as stale.
  1011. * Hence it cannot be reused or resent unless the flag
  1012. * is reset.
  1013. */
  1014. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1015. int be_id)
  1016. {
  1017. int topology = NULL_COPP_TOPOLOGY;
  1018. struct cal_block_data *cal_block = NULL;
  1019. int app_type = 0, acdb_dev_id = 0;
  1020. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1021. __func__, fedai_id, session_type, be_id);
  1022. if (cal_data == NULL)
  1023. goto done;
  1024. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1025. acdb_dev_id =
  1026. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1027. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1028. cal_block = msm_routing_find_topology(session_type, app_type,
  1029. acdb_dev_id,
  1030. ADM_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. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1036. } else {
  1037. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1038. pr_debug("%s: Check for LSM topology\n", __func__);
  1039. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1040. cal_block = msm_routing_find_topology(session_type, app_type,
  1041. acdb_dev_id,
  1042. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  1043. if (cal_block != NULL) {
  1044. topology = ((struct audio_cal_info_adm_top *)
  1045. cal_block->cal_info)->topology;
  1046. cal_utils_mark_cal_used(cal_block);
  1047. }
  1048. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1049. }
  1050. done:
  1051. pr_debug("%s: Using topology %d\n", __func__, topology);
  1052. return topology;
  1053. }
  1054. static uint8_t is_be_dai_extproc(int be_dai)
  1055. {
  1056. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1057. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1058. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1059. return 1;
  1060. else
  1061. return 0;
  1062. }
  1063. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1064. int path_type, int perf_mode,
  1065. uint32_t passthr_mode)
  1066. {
  1067. int i, port_type, j, num_copps = 0;
  1068. struct route_payload payload;
  1069. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1070. path_type == ADM_PATH_COMPRESSED_RX) ?
  1071. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1072. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1073. if (!is_be_dai_extproc(i) &&
  1074. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1075. (msm_bedais[i].active) &&
  1076. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1077. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1078. unsigned long copp =
  1079. session_copp_map[fedai_id][sess_type][i];
  1080. if (test_bit(j, &copp)) {
  1081. payload.port_id[num_copps] =
  1082. msm_bedais[i].port_id;
  1083. payload.copp_idx[num_copps] = j;
  1084. payload.app_type[num_copps] =
  1085. fe_dai_app_type_cfg
  1086. [fedai_id][sess_type][i]
  1087. .app_type;
  1088. payload.acdb_dev_id[num_copps] =
  1089. fe_dai_app_type_cfg
  1090. [fedai_id][sess_type][i]
  1091. .acdb_dev_id;
  1092. payload.sample_rate[num_copps] =
  1093. fe_dai_app_type_cfg
  1094. [fedai_id][sess_type][i]
  1095. .sample_rate;
  1096. num_copps++;
  1097. }
  1098. }
  1099. }
  1100. }
  1101. if (num_copps) {
  1102. payload.num_copps = num_copps;
  1103. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1104. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1105. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1106. }
  1107. }
  1108. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1109. int stream_type)
  1110. {
  1111. int i, session_type, path_type, port_type;
  1112. u32 mode = 0;
  1113. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1114. /* bad ID assigned in machine driver */
  1115. pr_err("%s: bad MM ID\n", __func__);
  1116. return;
  1117. }
  1118. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1119. session_type = SESSION_TYPE_RX;
  1120. path_type = ADM_PATH_PLAYBACK;
  1121. port_type = MSM_AFE_PORT_TYPE_RX;
  1122. } else {
  1123. session_type = SESSION_TYPE_TX;
  1124. path_type = ADM_PATH_LIVE_REC;
  1125. port_type = MSM_AFE_PORT_TYPE_TX;
  1126. }
  1127. mutex_lock(&routing_lock);
  1128. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1129. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1130. if (!is_be_dai_extproc(i) &&
  1131. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1132. (msm_bedais[i].active) &&
  1133. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1134. mode = afe_get_port_type(msm_bedais[i].port_id);
  1135. adm_connect_afe_port(mode, dspst_id,
  1136. msm_bedais[i].port_id);
  1137. break;
  1138. }
  1139. }
  1140. mutex_unlock(&routing_lock);
  1141. }
  1142. static bool route_check_fe_id_adm_support(int fe_id)
  1143. {
  1144. bool rc = true;
  1145. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1146. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1147. /* fe id is listen while port is set to afe */
  1148. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1149. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1150. __func__, fe_id, lsm_port_index);
  1151. rc = false;
  1152. }
  1153. }
  1154. return rc;
  1155. }
  1156. /*
  1157. * msm_pcm_routing_get_pp_ch_cnt:
  1158. * Read the processed channel count
  1159. *
  1160. * @fe_id: Front end ID
  1161. * @session_type: Inidicates RX or TX session type
  1162. */
  1163. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1164. {
  1165. struct msm_pcm_stream_app_type_cfg cfg_data;
  1166. int be_id = 0, app_type_idx = 0, app_type = 0;
  1167. int ret = -EINVAL;
  1168. memset(&cfg_data, 0, sizeof(cfg_data));
  1169. if (!is_mm_lsm_fe_id(fe_id)) {
  1170. pr_err("%s: bad MM ID\n", __func__);
  1171. return -EINVAL;
  1172. }
  1173. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1174. &be_id, &cfg_data);
  1175. if (ret) {
  1176. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1177. return ret;
  1178. }
  1179. app_type = cfg_data.app_type;
  1180. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1181. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1182. }
  1183. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1184. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1185. int dspst_id, int stream_type,
  1186. uint32_t passthr_mode)
  1187. {
  1188. int i, j, session_type, path_type, port_type, topology;
  1189. int num_copps = 0;
  1190. struct route_payload payload;
  1191. u32 channels, sample_rate;
  1192. u16 bit_width = 16;
  1193. bool is_lsm;
  1194. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1195. __func__, fe_id, perf_mode, dspst_id,
  1196. stream_type, passthr_mode);
  1197. if (!is_mm_lsm_fe_id(fe_id)) {
  1198. /* bad ID assigned in machine driver */
  1199. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1200. return -EINVAL;
  1201. }
  1202. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1203. session_type = SESSION_TYPE_RX;
  1204. if (passthr_mode != LEGACY_PCM)
  1205. path_type = ADM_PATH_COMPRESSED_RX;
  1206. else
  1207. path_type = ADM_PATH_PLAYBACK;
  1208. port_type = MSM_AFE_PORT_TYPE_RX;
  1209. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1210. session_type = SESSION_TYPE_TX;
  1211. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1212. path_type = ADM_PATH_COMPRESSED_TX;
  1213. else
  1214. path_type = ADM_PATH_LIVE_REC;
  1215. port_type = MSM_AFE_PORT_TYPE_TX;
  1216. } else {
  1217. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1218. return -EINVAL;
  1219. }
  1220. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1221. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1222. mutex_lock(&routing_lock);
  1223. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1224. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1225. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1226. if (!route_check_fe_id_adm_support(fe_id)) {
  1227. /* ignore adm open if not supported for fe_id */
  1228. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1229. mutex_unlock(&routing_lock);
  1230. return 0;
  1231. }
  1232. payload.num_copps = 0; /* only RX needs to use payload */
  1233. /* re-enable EQ if active */
  1234. msm_qti_pp_send_eq_values(fe_id);
  1235. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1236. if (!is_be_dai_extproc(i) &&
  1237. (afe_get_port_type(msm_bedais[i].port_id) ==
  1238. port_type) &&
  1239. (msm_bedais[i].active) &&
  1240. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1241. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1242. /*
  1243. * check if ADM needs to be configured with different
  1244. * channel mapping than backend
  1245. */
  1246. if (!msm_bedais[i].adm_override_ch)
  1247. channels = msm_bedais[i].channel;
  1248. else
  1249. channels = msm_bedais[i].adm_override_ch;
  1250. bit_width = msm_routing_get_bit_width(
  1251. msm_bedais[i].format);
  1252. app_type =
  1253. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1254. if (app_type && is_lsm) {
  1255. app_type_idx =
  1256. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1257. sample_rate =
  1258. fe_dai_app_type_cfg[fe_id][session_type][i]
  1259. .sample_rate;
  1260. bit_width =
  1261. lsm_app_type_cfg[app_type_idx].bit_width;
  1262. } else if (app_type) {
  1263. app_type_idx =
  1264. msm_pcm_routing_get_app_type_idx(
  1265. app_type);
  1266. sample_rate =
  1267. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1268. bit_width =
  1269. app_type_cfg[app_type_idx].bit_width;
  1270. } else {
  1271. sample_rate = msm_bedais[i].sample_rate;
  1272. }
  1273. acdb_dev_id =
  1274. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1275. topology = msm_routing_get_adm_topology(fe_id,
  1276. session_type,
  1277. i);
  1278. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1279. || (passthr_mode ==
  1280. COMPRESSED_PASSTHROUGH_GEN)
  1281. || (passthr_mode ==
  1282. COMPRESSED_PASSTHROUGH_IEC61937))
  1283. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1284. pr_debug("%s: Before adm open topology %d\n", __func__,
  1285. topology);
  1286. copp_idx =
  1287. adm_open(msm_bedais[i].port_id,
  1288. path_type, sample_rate, channels,
  1289. topology, perf_mode, bit_width,
  1290. app_type, acdb_dev_id);
  1291. if ((copp_idx < 0) ||
  1292. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1293. pr_err("%s:adm open failed coppid:%d\n",
  1294. __func__, copp_idx);
  1295. mutex_unlock(&routing_lock);
  1296. return -EINVAL;
  1297. }
  1298. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1299. __func__, fe_id, session_type, i);
  1300. set_bit(copp_idx,
  1301. &session_copp_map[fe_id][session_type][i]);
  1302. if (msm_is_resample_needed(
  1303. sample_rate,
  1304. msm_bedais[i].sample_rate))
  1305. adm_copp_mfc_cfg(
  1306. msm_bedais[i].port_id, copp_idx,
  1307. msm_bedais[i].sample_rate);
  1308. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1309. unsigned long copp =
  1310. session_copp_map[fe_id][session_type][i];
  1311. if (test_bit(j, &copp)) {
  1312. payload.port_id[num_copps] =
  1313. msm_bedais[i].port_id;
  1314. payload.copp_idx[num_copps] = j;
  1315. payload.app_type[num_copps] =
  1316. fe_dai_app_type_cfg
  1317. [fe_id][session_type][i]
  1318. .app_type;
  1319. payload.acdb_dev_id[num_copps] =
  1320. fe_dai_app_type_cfg
  1321. [fe_id][session_type][i]
  1322. .acdb_dev_id;
  1323. payload.sample_rate[num_copps] =
  1324. fe_dai_app_type_cfg
  1325. [fe_id][session_type][i]
  1326. .sample_rate;
  1327. num_copps++;
  1328. }
  1329. }
  1330. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1331. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1332. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1333. msm_routing_send_device_pp_params(
  1334. msm_bedais[i].port_id,
  1335. copp_idx, fe_id);
  1336. }
  1337. }
  1338. if (num_copps) {
  1339. payload.num_copps = num_copps;
  1340. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1341. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1342. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1343. }
  1344. mutex_unlock(&routing_lock);
  1345. return 0;
  1346. }
  1347. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1348. {
  1349. u32 session_id;
  1350. switch (val) {
  1351. case MSM_FRONTEND_DAI_QCHAT:
  1352. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1353. break;
  1354. case MSM_FRONTEND_DAI_VOIP:
  1355. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1356. break;
  1357. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1358. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1359. break;
  1360. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1361. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1362. break;
  1363. default:
  1364. session_id = 0;
  1365. }
  1366. pr_debug("%s session_id 0x%x", __func__, session_id);
  1367. return session_id;
  1368. }
  1369. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1370. int dspst_id, int stream_type)
  1371. {
  1372. int copp_idx = 0;
  1373. int sess_type = 0;
  1374. int i = 0, j = 0, be_id;
  1375. int ret = 0;
  1376. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1377. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1378. return 0;
  1379. }
  1380. if (!(channel_mixer[fe_id].enable)) {
  1381. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1382. __func__, fe_id);
  1383. return 0;
  1384. }
  1385. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1386. sess_type = SESSION_TYPE_RX;
  1387. else
  1388. sess_type = SESSION_TYPE_TX;
  1389. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1390. ++i) {
  1391. be_id = channel_input[fe_id][i] - 1;
  1392. channel_mixer[fe_id].input_channels[i] =
  1393. msm_bedais[be_id].channel;
  1394. if ((msm_bedais[be_id].active) &&
  1395. test_bit(fe_id,
  1396. &msm_bedais[be_id].fe_sessions[0])) {
  1397. unsigned long copp =
  1398. session_copp_map[fe_id][sess_type][be_id];
  1399. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1400. if (test_bit(j, &copp)) {
  1401. copp_idx = j;
  1402. break;
  1403. }
  1404. }
  1405. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1406. __func__,
  1407. fe_id, be_id, msm_bedais[be_id].channel,
  1408. copp_idx);
  1409. ret = adm_programable_channel_mixer(
  1410. msm_bedais[be_id].port_id,
  1411. copp_idx, dspst_id, sess_type,
  1412. channel_mixer + fe_id, i);
  1413. }
  1414. }
  1415. return ret;
  1416. }
  1417. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1418. int dspst_id, int stream_type)
  1419. {
  1420. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1421. struct route_payload payload;
  1422. u32 channels, sample_rate;
  1423. uint16_t bits_per_sample = 16;
  1424. uint32_t passthr_mode = LEGACY_PCM;
  1425. int ret = 0;
  1426. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1427. /* bad ID assigned in machine driver */
  1428. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1429. return -EINVAL;
  1430. }
  1431. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1432. session_type = SESSION_TYPE_RX;
  1433. path_type = ADM_PATH_PLAYBACK;
  1434. port_type = MSM_AFE_PORT_TYPE_RX;
  1435. } else {
  1436. session_type = SESSION_TYPE_TX;
  1437. path_type = ADM_PATH_LIVE_REC;
  1438. port_type = MSM_AFE_PORT_TYPE_TX;
  1439. }
  1440. mutex_lock(&routing_lock);
  1441. payload.num_copps = 0; /* only RX needs to use payload */
  1442. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1443. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1444. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1445. /* re-enable EQ if active */
  1446. msm_qti_pp_send_eq_values(fedai_id);
  1447. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1448. if (!is_be_dai_extproc(i) &&
  1449. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1450. (msm_bedais[i].active) &&
  1451. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1452. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1453. /*
  1454. * check if ADM needs to be configured with different
  1455. * channel mapping than backend
  1456. */
  1457. if (!msm_bedais[i].adm_override_ch)
  1458. channels = msm_bedais[i].channel;
  1459. else
  1460. channels = msm_bedais[i].adm_override_ch;
  1461. bits_per_sample = msm_routing_get_bit_width(
  1462. msm_bedais[i].format);
  1463. app_type =
  1464. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1465. if (app_type) {
  1466. app_type_idx =
  1467. msm_pcm_routing_get_app_type_idx(app_type);
  1468. sample_rate =
  1469. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1470. .sample_rate;
  1471. bits_per_sample =
  1472. app_type_cfg[app_type_idx].bit_width;
  1473. } else
  1474. sample_rate = msm_bedais[i].sample_rate;
  1475. acdb_dev_id =
  1476. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1477. .acdb_dev_id;
  1478. topology = msm_routing_get_adm_topology(fedai_id,
  1479. session_type,
  1480. i);
  1481. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1482. sample_rate, channels, topology,
  1483. perf_mode, bits_per_sample,
  1484. app_type, acdb_dev_id);
  1485. if ((copp_idx < 0) ||
  1486. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1487. pr_err("%s: adm open failed copp_idx:%d\n",
  1488. __func__, copp_idx);
  1489. mutex_unlock(&routing_lock);
  1490. return -EINVAL;
  1491. }
  1492. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1493. __func__, fedai_id, session_type, i);
  1494. set_bit(copp_idx,
  1495. &session_copp_map[fedai_id][session_type][i]);
  1496. if (msm_is_resample_needed(
  1497. sample_rate,
  1498. msm_bedais[i].sample_rate))
  1499. adm_copp_mfc_cfg(
  1500. msm_bedais[i].port_id, copp_idx,
  1501. msm_bedais[i].sample_rate);
  1502. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1503. unsigned long copp =
  1504. session_copp_map[fedai_id][session_type][i];
  1505. if (test_bit(j, &copp)) {
  1506. payload.port_id[num_copps] =
  1507. msm_bedais[i].port_id;
  1508. payload.copp_idx[num_copps] = j;
  1509. payload.app_type[num_copps] =
  1510. fe_dai_app_type_cfg
  1511. [fedai_id][session_type]
  1512. [i].app_type;
  1513. payload.acdb_dev_id[num_copps] =
  1514. fe_dai_app_type_cfg
  1515. [fedai_id][session_type]
  1516. [i].acdb_dev_id;
  1517. payload.sample_rate[num_copps] =
  1518. fe_dai_app_type_cfg
  1519. [fedai_id][session_type]
  1520. [i].sample_rate;
  1521. num_copps++;
  1522. }
  1523. }
  1524. if (perf_mode == LEGACY_PCM_MODE)
  1525. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1526. copp_idx, topology, channels);
  1527. }
  1528. }
  1529. if (num_copps) {
  1530. payload.num_copps = num_copps;
  1531. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1532. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1533. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1534. }
  1535. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1536. dspst_id, stream_type);
  1537. mutex_unlock(&routing_lock);
  1538. return ret;
  1539. }
  1540. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1541. int dspst_id, int stream_type,
  1542. struct msm_pcm_routing_evt event_info)
  1543. {
  1544. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1545. stream_type)) {
  1546. pr_err("%s: failed to reg phy stream\n", __func__);
  1547. return -EINVAL;
  1548. }
  1549. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1550. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1551. else
  1552. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1553. return 0;
  1554. }
  1555. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1556. {
  1557. int i, port_type, session_type, path_type, topology;
  1558. struct msm_pcm_routing_fdai_data *fdai;
  1559. if (!is_mm_lsm_fe_id(fedai_id)) {
  1560. /* bad ID assigned in machine driver */
  1561. pr_err("%s: bad MM ID\n", __func__);
  1562. return;
  1563. }
  1564. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1565. port_type = MSM_AFE_PORT_TYPE_RX;
  1566. session_type = SESSION_TYPE_RX;
  1567. path_type = ADM_PATH_PLAYBACK;
  1568. } else {
  1569. port_type = MSM_AFE_PORT_TYPE_TX;
  1570. session_type = SESSION_TYPE_TX;
  1571. path_type = ADM_PATH_LIVE_REC;
  1572. }
  1573. mutex_lock(&routing_lock);
  1574. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1575. if (!is_be_dai_extproc(i) &&
  1576. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1577. (msm_bedais[i].active) &&
  1578. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1579. int idx;
  1580. unsigned long copp =
  1581. session_copp_map[fedai_id][session_type][i];
  1582. fdai = &fe_dai_map[fedai_id][session_type];
  1583. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1584. if (test_bit(idx, &copp))
  1585. break;
  1586. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1587. pr_debug("%s: copp idx is invalid, exiting\n",
  1588. __func__);
  1589. continue;
  1590. }
  1591. topology = adm_get_topology_for_port_copp_idx(
  1592. msm_bedais[i].port_id, idx);
  1593. msm_routing_unload_topology(topology);
  1594. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1595. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1596. __func__, copp, fedai_id, session_type, i);
  1597. clear_bit(idx,
  1598. &session_copp_map[fedai_id][session_type][i]);
  1599. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1600. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1601. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1602. (fdai->passthr_mode == LEGACY_PCM))
  1603. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1604. topology);
  1605. }
  1606. }
  1607. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1608. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1609. mutex_unlock(&routing_lock);
  1610. }
  1611. /* Check if FE/BE route is set */
  1612. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1613. {
  1614. bool rc = false;
  1615. if (!is_mm_lsm_fe_id(fe_id)) {
  1616. /* recheck FE ID in the mixer control defined in this file */
  1617. pr_err("%s: bad MM ID\n", __func__);
  1618. return rc;
  1619. }
  1620. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1621. rc = true;
  1622. return rc;
  1623. }
  1624. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1625. {
  1626. int session_type, path_type, topology;
  1627. u32 channels, sample_rate;
  1628. uint16_t bits_per_sample = 16;
  1629. struct msm_pcm_routing_fdai_data *fdai;
  1630. uint32_t passthr_mode;
  1631. bool is_lsm;
  1632. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1633. if (!is_mm_lsm_fe_id(val)) {
  1634. /* recheck FE ID in the mixer control defined in this file */
  1635. pr_err("%s: bad MM ID\n", __func__);
  1636. return;
  1637. }
  1638. if (!route_check_fe_id_adm_support(val)) {
  1639. /* ignore adm open if not supported for fe_id */
  1640. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1641. return;
  1642. }
  1643. session_type =
  1644. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1645. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1646. fdai = &fe_dai_map[val][session_type];
  1647. passthr_mode = fdai->passthr_mode;
  1648. if (session_type == SESSION_TYPE_RX) {
  1649. if (passthr_mode != LEGACY_PCM)
  1650. path_type = ADM_PATH_COMPRESSED_RX;
  1651. else
  1652. path_type = ADM_PATH_PLAYBACK;
  1653. } else {
  1654. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1655. path_type = ADM_PATH_COMPRESSED_TX;
  1656. else
  1657. path_type = ADM_PATH_LIVE_REC;
  1658. }
  1659. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1660. (val <= MSM_FRONTEND_DAI_LSM8);
  1661. mutex_lock(&routing_lock);
  1662. if (set) {
  1663. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1664. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1665. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1666. voc_start_playback(set, msm_bedais[reg].port_id);
  1667. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1668. if (msm_bedais[reg].active && fdai->strm_id !=
  1669. INVALID_SESSION) {
  1670. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1671. /*
  1672. * check if ADM needs to be configured with different
  1673. * channel mapping than backend
  1674. */
  1675. if (!msm_bedais[reg].adm_override_ch)
  1676. channels = msm_bedais[reg].channel;
  1677. else
  1678. channels = msm_bedais[reg].adm_override_ch;
  1679. if (session_type == SESSION_TYPE_TX &&
  1680. fdai->be_srate &&
  1681. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1682. pr_debug("%s: flush strm %d diff BE rates\n",
  1683. __func__, fdai->strm_id);
  1684. if (fdai->event_info.event_func)
  1685. fdai->event_info.event_func(
  1686. MSM_PCM_RT_EVT_BUF_RECFG,
  1687. fdai->event_info.priv_data);
  1688. fdai->be_srate = 0; /* might not need it */
  1689. }
  1690. bits_per_sample = msm_routing_get_bit_width(
  1691. msm_bedais[reg].format);
  1692. app_type =
  1693. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1694. if (app_type && is_lsm) {
  1695. app_type_idx =
  1696. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1697. sample_rate =
  1698. fe_dai_app_type_cfg[val][session_type][reg]
  1699. .sample_rate;
  1700. bits_per_sample =
  1701. lsm_app_type_cfg[app_type_idx].bit_width;
  1702. } else if (app_type) {
  1703. app_type_idx =
  1704. msm_pcm_routing_get_app_type_idx(app_type);
  1705. sample_rate =
  1706. fe_dai_app_type_cfg[val][session_type][reg]
  1707. .sample_rate;
  1708. bits_per_sample =
  1709. app_type_cfg[app_type_idx].bit_width;
  1710. } else
  1711. sample_rate = msm_bedais[reg].sample_rate;
  1712. topology = msm_routing_get_adm_topology(val,
  1713. session_type,
  1714. reg);
  1715. acdb_dev_id =
  1716. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1717. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1718. sample_rate, channels, topology,
  1719. fdai->perf_mode, bits_per_sample,
  1720. app_type, acdb_dev_id);
  1721. if ((copp_idx < 0) ||
  1722. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1723. pr_err("%s: adm open failed\n", __func__);
  1724. mutex_unlock(&routing_lock);
  1725. return;
  1726. }
  1727. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1728. __func__, val, session_type, reg);
  1729. set_bit(copp_idx,
  1730. &session_copp_map[val][session_type][reg]);
  1731. if (msm_is_resample_needed(
  1732. sample_rate,
  1733. msm_bedais[reg].sample_rate))
  1734. adm_copp_mfc_cfg(
  1735. msm_bedais[reg].port_id, copp_idx,
  1736. msm_bedais[reg].sample_rate);
  1737. if (session_type == SESSION_TYPE_RX &&
  1738. fdai->event_info.event_func)
  1739. fdai->event_info.event_func(
  1740. MSM_PCM_RT_EVT_DEVSWITCH,
  1741. fdai->event_info.priv_data);
  1742. msm_pcm_routing_build_matrix(val, session_type,
  1743. path_type,
  1744. fdai->perf_mode,
  1745. passthr_mode);
  1746. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1747. (passthr_mode == LEGACY_PCM))
  1748. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1749. copp_idx, topology,
  1750. channels);
  1751. }
  1752. } else {
  1753. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1754. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1755. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1756. voc_start_playback(set, msm_bedais[reg].port_id);
  1757. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1758. if (msm_bedais[reg].active && fdai->strm_id !=
  1759. INVALID_SESSION) {
  1760. int idx;
  1761. int port_id;
  1762. unsigned long copp =
  1763. session_copp_map[val][session_type][reg];
  1764. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1765. if (test_bit(idx, &copp))
  1766. break;
  1767. if (idx >= MAX_COPPS_PER_PORT) {
  1768. pr_debug("%s: copp idx is invalid, exiting\n",
  1769. __func__);
  1770. mutex_unlock(&routing_lock);
  1771. return;
  1772. }
  1773. port_id = msm_bedais[reg].port_id;
  1774. topology = adm_get_topology_for_port_copp_idx(port_id,
  1775. idx);
  1776. msm_routing_unload_topology(topology);
  1777. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1778. idx);
  1779. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1780. __func__, copp, val, session_type, reg,
  1781. topology);
  1782. clear_bit(idx,
  1783. &session_copp_map[val][session_type][reg]);
  1784. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1785. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1786. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1787. (passthr_mode == LEGACY_PCM))
  1788. msm_pcm_routing_deinit_pp(
  1789. msm_bedais[reg].port_id,
  1790. topology);
  1791. msm_pcm_routing_build_matrix(val, session_type,
  1792. path_type,
  1793. fdai->perf_mode,
  1794. passthr_mode);
  1795. }
  1796. }
  1797. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1798. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1799. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1800. mutex_unlock(&routing_lock);
  1801. }
  1802. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1803. struct snd_ctl_elem_value *ucontrol)
  1804. {
  1805. struct soc_mixer_control *mc =
  1806. (struct soc_mixer_control *)kcontrol->private_value;
  1807. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1808. ucontrol->value.integer.value[0] = 1;
  1809. else
  1810. ucontrol->value.integer.value[0] = 0;
  1811. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1812. ucontrol->value.integer.value[0]);
  1813. return 0;
  1814. }
  1815. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1816. struct snd_ctl_elem_value *ucontrol)
  1817. {
  1818. struct snd_soc_dapm_widget *widget =
  1819. snd_soc_dapm_kcontrol_widget(kcontrol);
  1820. struct soc_mixer_control *mc =
  1821. (struct soc_mixer_control *)kcontrol->private_value;
  1822. struct snd_soc_dapm_update *update = NULL;
  1823. if (ucontrol->value.integer.value[0] &&
  1824. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  1825. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1826. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1827. update);
  1828. } else if (!ucontrol->value.integer.value[0] &&
  1829. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  1830. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1831. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1832. update);
  1833. }
  1834. return 1;
  1835. }
  1836. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1837. struct snd_ctl_elem_value *ucontrol)
  1838. {
  1839. struct soc_mixer_control *mc =
  1840. (struct soc_mixer_control *)kcontrol->private_value;
  1841. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1842. ucontrol->value.integer.value[0] = 1;
  1843. else
  1844. ucontrol->value.integer.value[0] = 0;
  1845. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1846. ucontrol->value.integer.value[0]);
  1847. return 0;
  1848. }
  1849. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1850. struct snd_ctl_elem_value *ucontrol)
  1851. {
  1852. struct snd_soc_dapm_widget *widget =
  1853. snd_soc_dapm_kcontrol_widget(kcontrol);
  1854. struct soc_mixer_control *mc =
  1855. (struct soc_mixer_control *)kcontrol->private_value;
  1856. struct snd_soc_dapm_update *update = NULL;
  1857. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1858. ucontrol->value.integer.value[0]);
  1859. if (ucontrol->value.integer.value[0]) {
  1860. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  1861. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1862. snd_soc_dapm_mixer_update_power(widget->dapm,
  1863. kcontrol, 1, update);
  1864. } else if (!ucontrol->value.integer.value[0]) {
  1865. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  1866. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1867. snd_soc_dapm_mixer_update_power(widget->dapm,
  1868. kcontrol, 0, update);
  1869. }
  1870. return 1;
  1871. }
  1872. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1873. {
  1874. u32 session_id = 0;
  1875. u16 path_type;
  1876. struct media_format_info voc_be_media_format;
  1877. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1878. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1879. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1880. __func__, val, session_id);
  1881. mutex_lock(&routing_lock);
  1882. if (set)
  1883. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1884. else
  1885. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1886. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1887. afe_get_port_type(msm_bedais[reg].port_id) ==
  1888. MSM_AFE_PORT_TYPE_RX) {
  1889. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1890. __func__, set, msm_bedais[reg].port_id);
  1891. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1892. }
  1893. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1894. MSM_AFE_PORT_TYPE_RX)
  1895. path_type = RX_PATH;
  1896. else
  1897. path_type = TX_PATH;
  1898. if (set) {
  1899. if (msm_bedais[reg].active) {
  1900. voc_set_route_flag(session_id, path_type, 1);
  1901. memset(&voc_be_media_format, 0,
  1902. sizeof(struct media_format_info));
  1903. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1904. voc_be_media_format.num_channels =
  1905. msm_bedais[reg].channel;
  1906. voc_be_media_format.sample_rate =
  1907. msm_bedais[reg].sample_rate;
  1908. voc_be_media_format.bits_per_sample =
  1909. msm_bedais[reg].format;
  1910. /* Defaulting this to 1 for voice call usecases */
  1911. voc_be_media_format.channel_mapping[0] = 1;
  1912. voc_set_device_config(session_id, path_type,
  1913. &voc_be_media_format);
  1914. if (voc_get_route_flag(session_id, TX_PATH) &&
  1915. voc_get_route_flag(session_id, RX_PATH))
  1916. voc_enable_device(session_id);
  1917. } else {
  1918. pr_debug("%s BE is not active\n", __func__);
  1919. }
  1920. } else {
  1921. voc_set_route_flag(session_id, path_type, 0);
  1922. voc_disable_device(session_id);
  1923. }
  1924. mutex_unlock(&routing_lock);
  1925. }
  1926. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1927. struct snd_ctl_elem_value *ucontrol)
  1928. {
  1929. struct soc_mixer_control *mc =
  1930. (struct soc_mixer_control *)kcontrol->private_value;
  1931. mutex_lock(&routing_lock);
  1932. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1933. ucontrol->value.integer.value[0] = 1;
  1934. else
  1935. ucontrol->value.integer.value[0] = 0;
  1936. mutex_unlock(&routing_lock);
  1937. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1938. ucontrol->value.integer.value[0]);
  1939. return 0;
  1940. }
  1941. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1942. struct snd_ctl_elem_value *ucontrol)
  1943. {
  1944. struct snd_soc_dapm_widget *widget =
  1945. snd_soc_dapm_kcontrol_widget(kcontrol);
  1946. struct soc_mixer_control *mc =
  1947. (struct soc_mixer_control *)kcontrol->private_value;
  1948. struct snd_soc_dapm_update *update = NULL;
  1949. if (ucontrol->value.integer.value[0]) {
  1950. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  1951. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1952. update);
  1953. } else {
  1954. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  1955. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1956. update);
  1957. }
  1958. return 1;
  1959. }
  1960. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1961. struct snd_ctl_elem_value *ucontrol)
  1962. {
  1963. struct soc_mixer_control *mc =
  1964. (struct soc_mixer_control *)kcontrol->private_value;
  1965. mutex_lock(&routing_lock);
  1966. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1967. ucontrol->value.integer.value[0] = 1;
  1968. else
  1969. ucontrol->value.integer.value[0] = 0;
  1970. mutex_unlock(&routing_lock);
  1971. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1972. ucontrol->value.integer.value[0]);
  1973. return 0;
  1974. }
  1975. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1976. struct snd_ctl_elem_value *ucontrol)
  1977. {
  1978. struct snd_soc_dapm_widget *widget =
  1979. snd_soc_dapm_kcontrol_widget(kcontrol);
  1980. struct soc_mixer_control *mc =
  1981. (struct soc_mixer_control *)kcontrol->private_value;
  1982. struct snd_soc_dapm_update *update = NULL;
  1983. if (ucontrol->value.integer.value[0]) {
  1984. mutex_lock(&routing_lock);
  1985. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1986. mutex_unlock(&routing_lock);
  1987. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1988. update);
  1989. } else {
  1990. mutex_lock(&routing_lock);
  1991. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1992. mutex_unlock(&routing_lock);
  1993. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1994. update);
  1995. }
  1996. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1997. ucontrol->value.integer.value[0]);
  1998. return 1;
  1999. }
  2000. /*
  2001. * Return the mapping between port ID and backend ID to enable the AFE callback
  2002. * to determine the acdb_dev_id from the port id
  2003. */
  2004. int msm_pcm_get_be_id_from_port_id(int port_id)
  2005. {
  2006. int i;
  2007. int be_id = -EINVAL;
  2008. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2009. if (msm_bedais[i].port_id == port_id) {
  2010. be_id = i;
  2011. break;
  2012. }
  2013. }
  2014. return be_id;
  2015. }
  2016. /*
  2017. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2018. * correct AFE calibration information by comparing the header information.
  2019. */
  2020. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2021. {
  2022. int acdb_id = -EINVAL;
  2023. int i = 0;
  2024. int session;
  2025. int port_type = afe_get_port_type(port_id);
  2026. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2027. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2028. __func__, port_id, be_id, port_type);
  2029. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2030. session = SESSION_TYPE_TX;
  2031. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2032. session = SESSION_TYPE_RX;
  2033. } else {
  2034. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2035. acdb_id = -EINVAL;
  2036. goto exit;
  2037. }
  2038. if (be_id < 0) {
  2039. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2040. goto exit;
  2041. }
  2042. mutex_lock(&routing_lock);
  2043. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2044. MSM_FRONTEND_DAI_MAX);
  2045. if (i < MSM_FRONTEND_DAI_MAX)
  2046. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2047. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2048. __func__, i, session, be_id, acdb_id);
  2049. mutex_unlock(&routing_lock);
  2050. exit:
  2051. return acdb_id;
  2052. }
  2053. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2054. struct snd_ctl_elem_value *ucontrol)
  2055. {
  2056. ucontrol->value.integer.value[0] = fm_switch_enable;
  2057. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2058. ucontrol->value.integer.value[0]);
  2059. return 0;
  2060. }
  2061. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2062. struct snd_ctl_elem_value *ucontrol)
  2063. {
  2064. struct snd_soc_dapm_widget *widget =
  2065. snd_soc_dapm_kcontrol_widget(kcontrol);
  2066. struct snd_soc_dapm_update *update = NULL;
  2067. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2068. ucontrol->value.integer.value[0]);
  2069. if (ucontrol->value.integer.value[0])
  2070. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2071. update);
  2072. else
  2073. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2074. update);
  2075. fm_switch_enable = ucontrol->value.integer.value[0];
  2076. return 1;
  2077. }
  2078. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2079. struct snd_ctl_elem_value *ucontrol)
  2080. {
  2081. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2082. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2083. ucontrol->value.integer.value[0]);
  2084. return 0;
  2085. }
  2086. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2087. struct snd_ctl_elem_value *ucontrol)
  2088. {
  2089. struct snd_soc_dapm_widget *widget =
  2090. snd_soc_dapm_kcontrol_widget(kcontrol);
  2091. struct snd_soc_dapm_update *update = NULL;
  2092. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2093. ucontrol->value.integer.value[0]);
  2094. if (ucontrol->value.integer.value[0])
  2095. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2096. 1, update);
  2097. else
  2098. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2099. 0, update);
  2100. hfp_switch_enable = ucontrol->value.integer.value[0];
  2101. return 1;
  2102. }
  2103. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2104. struct snd_ctl_elem_value *ucontrol)
  2105. {
  2106. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2107. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2108. ucontrol->value.integer.value[0]);
  2109. return 0;
  2110. }
  2111. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2112. struct snd_ctl_elem_value *ucontrol)
  2113. {
  2114. struct snd_soc_dapm_widget *widget =
  2115. snd_soc_dapm_kcontrol_widget(kcontrol);
  2116. struct snd_soc_dapm_update *update = NULL;
  2117. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2118. ucontrol->value.integer.value[0]);
  2119. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2120. if (a2dp_switch_enable)
  2121. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2122. 1, update);
  2123. else
  2124. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2125. 0, update);
  2126. return 1;
  2127. }
  2128. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2129. struct snd_ctl_elem_value *ucontrol)
  2130. {
  2131. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2132. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2133. ucontrol->value.integer.value[0]);
  2134. return 0;
  2135. }
  2136. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2137. struct snd_ctl_elem_value *ucontrol)
  2138. {
  2139. struct snd_soc_dapm_widget *widget =
  2140. snd_soc_dapm_kcontrol_widget(kcontrol);
  2141. struct snd_soc_dapm_update *update = NULL;
  2142. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2143. ucontrol->value.integer.value[0]);
  2144. if (ucontrol->value.integer.value[0])
  2145. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2146. update);
  2147. else
  2148. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2149. update);
  2150. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2151. return 1;
  2152. }
  2153. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2154. struct snd_ctl_elem_value *ucontrol)
  2155. {
  2156. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2157. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2158. ucontrol->value.integer.value[0]);
  2159. return 0;
  2160. }
  2161. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2162. struct snd_ctl_elem_value *ucontrol)
  2163. {
  2164. struct snd_soc_dapm_widget *widget =
  2165. snd_soc_dapm_kcontrol_widget(kcontrol);
  2166. struct snd_soc_dapm_update *update = NULL;
  2167. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2168. ucontrol->value.integer.value[0]);
  2169. if (ucontrol->value.integer.value[0])
  2170. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2171. update);
  2172. else
  2173. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2174. update);
  2175. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2176. return 1;
  2177. }
  2178. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2179. struct snd_ctl_elem_value *ucontrol)
  2180. {
  2181. ucontrol->value.integer.value[0] = usb_switch_enable;
  2182. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2183. ucontrol->value.integer.value[0]);
  2184. return 0;
  2185. }
  2186. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2187. struct snd_ctl_elem_value *ucontrol)
  2188. {
  2189. struct snd_soc_dapm_widget *widget =
  2190. snd_soc_dapm_kcontrol_widget(kcontrol);
  2191. struct snd_soc_dapm_update *update = NULL;
  2192. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2193. ucontrol->value.integer.value[0]);
  2194. if (ucontrol->value.integer.value[0])
  2195. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2196. 1, update);
  2197. else
  2198. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2199. 0, update);
  2200. usb_switch_enable = ucontrol->value.integer.value[0];
  2201. return 1;
  2202. }
  2203. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2204. struct snd_ctl_elem_value *ucontrol)
  2205. {
  2206. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2207. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2208. ucontrol->value.integer.value[0]);
  2209. return 0;
  2210. }
  2211. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2212. struct snd_ctl_elem_value *ucontrol)
  2213. {
  2214. struct snd_soc_dapm_widget *widget =
  2215. snd_soc_dapm_kcontrol_widget(kcontrol);
  2216. struct snd_soc_dapm_update *update = NULL;
  2217. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2218. ucontrol->value.integer.value[0]);
  2219. if (ucontrol->value.integer.value[0])
  2220. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2221. update);
  2222. else
  2223. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2224. update);
  2225. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2226. return 1;
  2227. }
  2228. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2229. struct snd_ctl_elem_value *ucontrol)
  2230. {
  2231. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2232. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2233. ucontrol->value.integer.value[0]);
  2234. return 0;
  2235. }
  2236. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2237. struct snd_ctl_elem_value *ucontrol)
  2238. {
  2239. struct snd_soc_dapm_widget *widget =
  2240. snd_soc_dapm_kcontrol_widget(kcontrol);
  2241. struct snd_soc_dapm_update *update = NULL;
  2242. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2243. ucontrol->value.integer.value[0]);
  2244. if (ucontrol->value.integer.value[0])
  2245. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2246. update);
  2247. else
  2248. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2249. update);
  2250. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2251. return 1;
  2252. }
  2253. static int msm_routing_get_tert_mi2s_switch_mixer(
  2254. struct snd_kcontrol *kcontrol,
  2255. struct snd_ctl_elem_value *ucontrol)
  2256. {
  2257. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2258. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2259. ucontrol->value.integer.value[0]);
  2260. return 0;
  2261. }
  2262. static int msm_routing_put_tert_mi2s_switch_mixer(
  2263. struct snd_kcontrol *kcontrol,
  2264. struct snd_ctl_elem_value *ucontrol)
  2265. {
  2266. struct snd_soc_dapm_widget *widget =
  2267. snd_soc_dapm_kcontrol_widget(kcontrol);
  2268. struct snd_soc_dapm_update *update = NULL;
  2269. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2270. ucontrol->value.integer.value[0]);
  2271. if (ucontrol->value.integer.value[0])
  2272. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2273. update);
  2274. else
  2275. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2276. update);
  2277. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2278. return 1;
  2279. }
  2280. static int msm_routing_get_quat_mi2s_switch_mixer(
  2281. struct snd_kcontrol *kcontrol,
  2282. struct snd_ctl_elem_value *ucontrol)
  2283. {
  2284. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2285. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2286. ucontrol->value.integer.value[0]);
  2287. return 0;
  2288. }
  2289. static int msm_routing_put_quat_mi2s_switch_mixer(
  2290. struct snd_kcontrol *kcontrol,
  2291. struct snd_ctl_elem_value *ucontrol)
  2292. {
  2293. struct snd_soc_dapm_widget *widget =
  2294. snd_soc_dapm_kcontrol_widget(kcontrol);
  2295. struct snd_soc_dapm_update *update = NULL;
  2296. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2297. ucontrol->value.integer.value[0]);
  2298. if (ucontrol->value.integer.value[0])
  2299. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2300. update);
  2301. else
  2302. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2303. update);
  2304. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2305. return 1;
  2306. }
  2307. static int msm_routing_get_quin_mi2s_switch_mixer(
  2308. struct snd_kcontrol *kcontrol,
  2309. struct snd_ctl_elem_value *ucontrol)
  2310. {
  2311. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2312. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2313. ucontrol->value.integer.value[0]);
  2314. return 0;
  2315. }
  2316. static int msm_routing_put_quin_mi2s_switch_mixer(
  2317. struct snd_kcontrol *kcontrol,
  2318. struct snd_ctl_elem_value *ucontrol)
  2319. {
  2320. struct snd_soc_dapm_widget *widget =
  2321. snd_soc_dapm_kcontrol_widget(kcontrol);
  2322. struct snd_soc_dapm_update *update = NULL;
  2323. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2324. ucontrol->value.integer.value[0]);
  2325. if (ucontrol->value.integer.value[0])
  2326. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2327. update);
  2328. else
  2329. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2330. update);
  2331. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2332. return 1;
  2333. }
  2334. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2335. struct snd_ctl_elem_value *ucontrol)
  2336. {
  2337. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2338. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2339. ucontrol->value.integer.value[0]);
  2340. return 0;
  2341. }
  2342. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2343. struct snd_ctl_elem_value *ucontrol)
  2344. {
  2345. struct snd_soc_dapm_widget *widget =
  2346. snd_soc_dapm_kcontrol_widget(kcontrol);
  2347. struct snd_soc_dapm_update *update = NULL;
  2348. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2349. ucontrol->value.integer.value[0]);
  2350. if (ucontrol->value.integer.value[0])
  2351. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2352. update);
  2353. else
  2354. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2355. update);
  2356. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2357. return 1;
  2358. }
  2359. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2360. struct snd_ctl_elem_value *ucontrol)
  2361. {
  2362. ucontrol->value.integer.value[0] = lsm_port_index;
  2363. return 0;
  2364. }
  2365. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2366. struct snd_ctl_elem_value *ucontrol)
  2367. {
  2368. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2369. int mux = ucontrol->value.enumerated.item[0];
  2370. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2371. if (mux >= e->items) {
  2372. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2373. return -EINVAL;
  2374. }
  2375. pr_debug("%s: LSM enable %ld\n", __func__,
  2376. ucontrol->value.integer.value[0]);
  2377. switch (ucontrol->value.integer.value[0]) {
  2378. case 1:
  2379. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2380. break;
  2381. case 2:
  2382. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2383. break;
  2384. case 3:
  2385. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2386. break;
  2387. case 4:
  2388. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2389. break;
  2390. case 5:
  2391. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2392. break;
  2393. case 6:
  2394. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2395. break;
  2396. case 7:
  2397. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2398. break;
  2399. case 8:
  2400. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2401. break;
  2402. case 9:
  2403. lsm_port = ADM_LSM_PORT_ID;
  2404. break;
  2405. case 10:
  2406. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2407. break;
  2408. case 11:
  2409. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2410. break;
  2411. case 12:
  2412. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2413. break;
  2414. case 13:
  2415. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2416. break;
  2417. case 14:
  2418. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2419. break;
  2420. default:
  2421. pr_err("Default lsm port");
  2422. break;
  2423. }
  2424. set_lsm_port(lsm_port);
  2425. lsm_port_index = ucontrol->value.integer.value[0];
  2426. return 0;
  2427. }
  2428. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2429. struct snd_ctl_elem_value *ucontrol)
  2430. {
  2431. int i;
  2432. u16 port_id;
  2433. enum afe_mad_type mad_type;
  2434. pr_debug("%s: enter\n", __func__);
  2435. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2436. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2437. strlen(lsm_port_text[i])))
  2438. break;
  2439. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2440. pr_warn("%s: Invalid id name %s\n", __func__,
  2441. kcontrol->id.name);
  2442. return -EINVAL;
  2443. }
  2444. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2445. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2446. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2447. strlen(lsm_port_text[7])))
  2448. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2449. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2450. strlen(lsm_port_text[8])))
  2451. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2452. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2453. strlen(lsm_port_text[10])))
  2454. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2455. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2456. strlen(lsm_port_text[13])))
  2457. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2458. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2459. strlen(lsm_port_text[14])))
  2460. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2461. mad_type = afe_port_get_mad_type(port_id);
  2462. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2463. mad_type);
  2464. switch (mad_type) {
  2465. case MAD_HW_NONE:
  2466. ucontrol->value.integer.value[0] = MADNONE;
  2467. break;
  2468. case MAD_HW_AUDIO:
  2469. ucontrol->value.integer.value[0] = MADAUDIO;
  2470. break;
  2471. case MAD_HW_BEACON:
  2472. ucontrol->value.integer.value[0] = MADBEACON;
  2473. break;
  2474. case MAD_HW_ULTRASOUND:
  2475. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2476. break;
  2477. case MAD_SW_AUDIO:
  2478. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2479. break;
  2480. default:
  2481. pr_warn("%s: Unknown\n", __func__);
  2482. return -EINVAL;
  2483. }
  2484. return 0;
  2485. }
  2486. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2487. struct snd_ctl_elem_value *ucontrol)
  2488. {
  2489. int i;
  2490. u16 port_id;
  2491. enum afe_mad_type mad_type;
  2492. pr_debug("%s: enter\n", __func__);
  2493. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2494. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2495. strlen(lsm_port_text[i])))
  2496. break;
  2497. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2498. pr_warn("%s: Invalid id name %s\n", __func__,
  2499. kcontrol->id.name);
  2500. return -EINVAL;
  2501. }
  2502. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2503. switch (ucontrol->value.integer.value[0]) {
  2504. case MADNONE:
  2505. mad_type = MAD_HW_NONE;
  2506. break;
  2507. case MADAUDIO:
  2508. mad_type = MAD_HW_AUDIO;
  2509. break;
  2510. case MADBEACON:
  2511. mad_type = MAD_HW_BEACON;
  2512. break;
  2513. case MADULTRASOUND:
  2514. mad_type = MAD_HW_ULTRASOUND;
  2515. break;
  2516. case MADSWAUDIO:
  2517. mad_type = MAD_SW_AUDIO;
  2518. break;
  2519. default:
  2520. pr_warn("%s: Unknown\n", __func__);
  2521. return -EINVAL;
  2522. }
  2523. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2524. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2525. strlen(lsm_port_text[7])))
  2526. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2527. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2528. strlen(lsm_port_text[8])))
  2529. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2530. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2531. strlen(lsm_port_text[10])))
  2532. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2533. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2534. strlen(lsm_port_text[13])))
  2535. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2536. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2537. strlen(lsm_port_text[14])))
  2538. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2539. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2540. mad_type);
  2541. return afe_port_set_mad_type(port_id, mad_type);
  2542. }
  2543. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2544. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2545. adm_override_chs_text);
  2546. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2547. {
  2548. int backend_id;
  2549. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2550. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2551. } else {
  2552. pr_err("%s: unsupported backend id: %s",
  2553. __func__, kcontrol->id.name);
  2554. return -EINVAL;
  2555. }
  2556. return backend_id;
  2557. }
  2558. static int msm_routing_adm_channel_config_get(
  2559. struct snd_kcontrol *kcontrol,
  2560. struct snd_ctl_elem_value *ucontrol)
  2561. {
  2562. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2563. if (backend_id >= 0) {
  2564. mutex_lock(&routing_lock);
  2565. ucontrol->value.integer.value[0] =
  2566. msm_bedais[backend_id].adm_override_ch;
  2567. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2568. ucontrol->value.integer.value[0], backend_id);
  2569. mutex_unlock(&routing_lock);
  2570. }
  2571. return 0;
  2572. }
  2573. static int msm_routing_adm_channel_config_put(
  2574. struct snd_kcontrol *kcontrol,
  2575. struct snd_ctl_elem_value *ucontrol)
  2576. {
  2577. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2578. if (backend_id >= 0) {
  2579. mutex_lock(&routing_lock);
  2580. msm_bedais[backend_id].adm_override_ch =
  2581. ucontrol->value.integer.value[0];
  2582. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2583. __func__, backend_id,
  2584. msm_bedais[backend_id].adm_override_ch);
  2585. mutex_unlock(&routing_lock);
  2586. }
  2587. return 0;
  2588. }
  2589. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2590. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2591. msm_routing_adm_channel_config_get,
  2592. msm_routing_adm_channel_config_put),
  2593. };
  2594. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2595. struct snd_ctl_elem_value *ucontrol)
  2596. {
  2597. mutex_lock(&routing_lock);
  2598. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2599. mutex_unlock(&routing_lock);
  2600. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2601. ucontrol->value.integer.value[0]);
  2602. return 0;
  2603. };
  2604. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2605. struct snd_ctl_elem_value *ucontrol)
  2606. {
  2607. struct aanc_data aanc_info;
  2608. mutex_lock(&routing_lock);
  2609. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2610. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2611. ucontrol->value.integer.value[0]);
  2612. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2613. if (ucontrol->value.integer.value[0] == 0) {
  2614. aanc_info.aanc_active = false;
  2615. aanc_info.aanc_tx_port = 0;
  2616. aanc_info.aanc_rx_port = 0;
  2617. } else {
  2618. aanc_info.aanc_active = true;
  2619. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2620. aanc_info.aanc_tx_port =
  2621. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2622. }
  2623. afe_set_aanc_info(&aanc_info);
  2624. mutex_unlock(&routing_lock);
  2625. return 0;
  2626. };
  2627. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2628. struct snd_ctl_elem_value *ucontrol)
  2629. {
  2630. int idx = 0, shift = 0;
  2631. struct soc_mixer_control *mc =
  2632. (struct soc_mixer_control *)kcontrol->private_value;
  2633. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2634. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2635. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2636. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2637. return -EINVAL;
  2638. }
  2639. if (test_bit(shift,
  2640. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2641. ucontrol->value.integer.value[0] = 1;
  2642. else
  2643. ucontrol->value.integer.value[0] = 0;
  2644. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2645. ucontrol->value.integer.value[0]);
  2646. return 0;
  2647. }
  2648. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2649. struct snd_ctl_elem_value *ucontrol)
  2650. {
  2651. int idx = 0, shift = 0;
  2652. struct soc_mixer_control *mc =
  2653. (struct soc_mixer_control *)kcontrol->private_value;
  2654. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2655. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2656. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2657. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2658. return -EINVAL;
  2659. }
  2660. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2661. __func__, mc->shift, mc->rshift,
  2662. ucontrol->value.integer.value[0], idx, shift);
  2663. if (ucontrol->value.integer.value[0]) {
  2664. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2665. msm_bedais[mc->rshift].port_id);
  2666. set_bit(shift,
  2667. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2668. } else {
  2669. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2670. msm_bedais[mc->rshift].port_id);
  2671. clear_bit(shift,
  2672. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2673. }
  2674. return 1;
  2675. }
  2676. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2677. struct snd_ctl_elem_value *ucontrol)
  2678. {
  2679. u16 fe_id = 0;
  2680. fe_id = ((struct soc_mixer_control *)
  2681. kcontrol->private_value)->shift;
  2682. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2683. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2684. return -EINVAL;
  2685. }
  2686. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2687. return 0;
  2688. }
  2689. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2690. struct snd_ctl_elem_value *ucontrol)
  2691. {
  2692. u16 fe_id = 0;
  2693. fe_id = ((struct soc_mixer_control *)
  2694. kcontrol->private_value)->shift;
  2695. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2696. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2697. return -EINVAL;
  2698. }
  2699. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2700. return 1;
  2701. }
  2702. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2703. struct snd_ctl_elem_value *ucontrol)
  2704. {
  2705. u16 fe_id = 0;
  2706. fe_id = ((struct soc_multi_mixer_control *)
  2707. kcontrol->private_value)->shift;
  2708. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2709. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2710. return -EINVAL;
  2711. }
  2712. ucontrol->value.integer.value[0] =
  2713. channel_mixer[fe_id].output_channel;
  2714. return 0;
  2715. }
  2716. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2717. struct snd_ctl_elem_value *ucontrol)
  2718. {
  2719. u16 fe_id = 0;
  2720. fe_id = ((struct soc_multi_mixer_control *)
  2721. kcontrol->private_value)->shift;
  2722. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2723. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2724. return -EINVAL;
  2725. }
  2726. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2727. fe_id,
  2728. (unsigned int)(ucontrol->value.integer.value[0]));
  2729. channel_mixer[fe_id].output_channel =
  2730. (unsigned int)(ucontrol->value.integer.value[0]);
  2731. return 1;
  2732. }
  2733. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2734. /* If new backend is added, need update this array */
  2735. static const char *const be_name[] = {
  2736. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2737. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2738. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2739. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2740. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2741. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2742. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2743. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2744. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2745. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2746. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2747. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2748. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  2749. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2750. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2751. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2752. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2753. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2754. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2755. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2756. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2757. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2758. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2759. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2760. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2761. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2762. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2763. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2764. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2765. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2766. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2767. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2768. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2769. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2770. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX", "DISPLAY_PORT_RX1",
  2771. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2772. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2773. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2774. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2775. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2776. "INT6_MI2S_RX", "INT6_MI2S_TX", "WSA_CDC_DMA_RX_0",
  2777. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1", "WSA_CDC_DMA_TX_1",
  2778. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1",
  2779. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  2780. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  2781. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  2782. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  2783. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  2784. };
  2785. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2786. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2787. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2788. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2789. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2790. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2791. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2792. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2793. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2794. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2795. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2796. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2797. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2798. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2799. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2800. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2801. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2802. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2803. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2804. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2805. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2806. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2807. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2808. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2809. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2810. unsigned int channels,
  2811. unsigned int items, const char *const names[])
  2812. {
  2813. if (uinfo->value.enumerated.item >= items)
  2814. uinfo->value.enumerated.item = items - 1;
  2815. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2816. sizeof(uinfo->value.enumerated.name),
  2817. "ALSA: too long item name '%s'\n",
  2818. names[uinfo->value.enumerated.item]);
  2819. strlcpy(uinfo->value.enumerated.name,
  2820. names[uinfo->value.enumerated.item],
  2821. sizeof(uinfo->value.enumerated.name));
  2822. return 0;
  2823. }
  2824. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2825. struct snd_ctl_elem_info *uinfo)
  2826. {
  2827. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2828. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2829. uinfo->count = 1;
  2830. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2831. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2832. return 0;
  2833. }
  2834. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2835. struct snd_ctl_elem_value *ucontrol)
  2836. {
  2837. u16 fe_id = 0;
  2838. fe_id = ((struct soc_enum *)
  2839. kcontrol->private_value)->shift_l;
  2840. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2841. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2842. return -EINVAL;
  2843. }
  2844. pr_debug("%s: FE %d %s\n", __func__,
  2845. fe_id,
  2846. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2847. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2848. return 0;
  2849. }
  2850. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2851. struct snd_ctl_elem_value *ucontrol)
  2852. {
  2853. u16 fe_id = 0;
  2854. fe_id = ((struct soc_enum *)
  2855. kcontrol->private_value)->shift_l;
  2856. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2857. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2858. return -EINVAL;
  2859. }
  2860. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2861. pr_debug("%s: %s FE %d\n", __func__,
  2862. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2863. fe_id);
  2864. return 0;
  2865. }
  2866. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2867. struct snd_ctl_elem_info *uinfo)
  2868. {
  2869. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2870. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2871. uinfo->count = 1;
  2872. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2873. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2874. return 0;
  2875. }
  2876. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2877. struct snd_ctl_elem_value *ucontrol)
  2878. {
  2879. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2880. u16 fe_id = 0, in_ch = 0;
  2881. fe_id = e->shift_l;
  2882. in_ch = e->shift_r;
  2883. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2884. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2885. return -EINVAL;
  2886. }
  2887. if (in_ch >= ADM_MAX_CHANNELS) {
  2888. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2889. return -EINVAL;
  2890. }
  2891. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2892. return 1;
  2893. }
  2894. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2895. struct snd_ctl_elem_value *ucontrol)
  2896. {
  2897. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2898. u16 fe_id = 0, in_ch = 0;
  2899. fe_id = e->shift_l;
  2900. in_ch = e->shift_r;
  2901. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2902. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2903. return -EINVAL;
  2904. }
  2905. if (in_ch >= ADM_MAX_CHANNELS) {
  2906. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2907. return -EINVAL;
  2908. }
  2909. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2910. return 1;
  2911. }
  2912. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2913. struct snd_ctl_elem_info *uinfo)
  2914. {
  2915. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2916. uinfo->count = ADM_MAX_CHANNELS;
  2917. uinfo->value.integer.min = 0;
  2918. uinfo->value.integer.max = WEIGHT_0_DB;
  2919. return 0;
  2920. }
  2921. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2922. struct snd_ctl_elem_value *ucontrol)
  2923. {
  2924. u16 fe_id = 0, out_ch = 0;
  2925. int i, weight;
  2926. fe_id = ((struct soc_multi_mixer_control *)
  2927. kcontrol->private_value)->shift;
  2928. out_ch = ((struct soc_multi_mixer_control *)
  2929. kcontrol->private_value)->rshift;
  2930. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2931. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2932. return -EINVAL;
  2933. }
  2934. if (out_ch >= ADM_MAX_CHANNELS) {
  2935. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2936. return -EINVAL;
  2937. }
  2938. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2939. __func__, fe_id,
  2940. ucontrol->value.integer.value[0],
  2941. ucontrol->value.integer.value[1],
  2942. ucontrol->value.integer.value[2],
  2943. ucontrol->value.integer.value[3],
  2944. ucontrol->value.integer.value[4],
  2945. ucontrol->value.integer.value[5],
  2946. ucontrol->value.integer.value[6],
  2947. ucontrol->value.integer.value[7]);
  2948. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2949. weight = ucontrol->value.integer.value[i];
  2950. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2951. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2952. __func__, fe_id, out_ch, i,
  2953. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2954. }
  2955. return 0;
  2956. }
  2957. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2958. struct snd_ctl_elem_value *ucontrol)
  2959. {
  2960. u16 fe_id = 0, out_ch = 0;
  2961. int i;
  2962. fe_id = ((struct soc_multi_mixer_control *)
  2963. kcontrol->private_value)->shift;
  2964. out_ch = ((struct soc_multi_mixer_control *)
  2965. kcontrol->private_value)->rshift;
  2966. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2967. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2968. return -EINVAL;
  2969. }
  2970. if (out_ch >= ADM_MAX_CHANNELS) {
  2971. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2972. return -EINVAL;
  2973. }
  2974. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2975. ucontrol->value.integer.value[i] =
  2976. channel_mixer[fe_id].channel_weight[out_ch][i];
  2977. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2978. __func__, fe_id,
  2979. ucontrol->value.integer.value[0],
  2980. ucontrol->value.integer.value[1],
  2981. ucontrol->value.integer.value[2],
  2982. ucontrol->value.integer.value[3],
  2983. ucontrol->value.integer.value[4],
  2984. ucontrol->value.integer.value[5],
  2985. ucontrol->value.integer.value[6],
  2986. ucontrol->value.integer.value[7]);
  2987. return 0;
  2988. }
  2989. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2990. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2991. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2992. msm_pcm_get_channel_rule_index,
  2993. msm_pcm_put_channel_rule_index),
  2994. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2995. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2996. msm_pcm_get_channel_rule_index,
  2997. msm_pcm_put_channel_rule_index),
  2998. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2999. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3000. msm_pcm_get_channel_rule_index,
  3001. msm_pcm_put_channel_rule_index),
  3002. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3003. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3004. msm_pcm_get_channel_rule_index,
  3005. msm_pcm_put_channel_rule_index),
  3006. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3007. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3008. msm_pcm_get_channel_rule_index,
  3009. msm_pcm_put_channel_rule_index),
  3010. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3011. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3012. msm_pcm_get_channel_rule_index,
  3013. msm_pcm_put_channel_rule_index),
  3014. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3015. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3016. msm_pcm_get_out_chs,
  3017. msm_pcm_put_out_chs),
  3018. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3019. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3020. msm_pcm_get_out_chs,
  3021. msm_pcm_put_out_chs),
  3022. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3023. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3024. msm_pcm_get_out_chs,
  3025. msm_pcm_put_out_chs),
  3026. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3027. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3028. msm_pcm_get_out_chs,
  3029. msm_pcm_put_out_chs),
  3030. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3031. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3032. msm_pcm_get_out_chs,
  3033. msm_pcm_put_out_chs),
  3034. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3035. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3036. msm_pcm_get_out_chs,
  3037. msm_pcm_put_out_chs),
  3038. {
  3039. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3040. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3041. .name = "MultiMedia1 Channel Mixer",
  3042. .info = msm_pcm_channel_mixer_info,
  3043. .get = msm_pcm_channel_mixer_get,
  3044. .put = msm_pcm_channel_mixer_put,
  3045. .private_value = (unsigned long)&(mm1_channel_mux)
  3046. },
  3047. {
  3048. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3049. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3050. .name = "MultiMedia2 Channel Mixer",
  3051. .info = msm_pcm_channel_mixer_info,
  3052. .get = msm_pcm_channel_mixer_get,
  3053. .put = msm_pcm_channel_mixer_put,
  3054. .private_value = (unsigned long)&(mm2_channel_mux)
  3055. },
  3056. {
  3057. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3058. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3059. .name = "MultiMedia3 Channel Mixer",
  3060. .info = msm_pcm_channel_mixer_info,
  3061. .get = msm_pcm_channel_mixer_get,
  3062. .put = msm_pcm_channel_mixer_put,
  3063. .private_value = (unsigned long)&(mm3_channel_mux)
  3064. },
  3065. {
  3066. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3067. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3068. .name = "MultiMedia4 Channel Mixer",
  3069. .info = msm_pcm_channel_mixer_info,
  3070. .get = msm_pcm_channel_mixer_get,
  3071. .put = msm_pcm_channel_mixer_put,
  3072. .private_value = (unsigned long)&(mm4_channel_mux)
  3073. },
  3074. {
  3075. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3076. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3077. .name = "MultiMedia1 Output Channel1",
  3078. .info = msm_pcm_channel_weight_info,
  3079. .get = msm_pcm_channel_weight_get,
  3080. .put = msm_pcm_channel_weight_put,
  3081. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3082. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3083. },
  3084. {
  3085. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3086. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3087. .name = "MultiMedia1 Output Channel2",
  3088. .info = msm_pcm_channel_weight_info,
  3089. .get = msm_pcm_channel_weight_get,
  3090. .put = msm_pcm_channel_weight_put,
  3091. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3092. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3093. },
  3094. {
  3095. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3096. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3097. .name = "MultiMedia1 Output Channel3",
  3098. .info = msm_pcm_channel_weight_info,
  3099. .get = msm_pcm_channel_weight_get,
  3100. .put = msm_pcm_channel_weight_put,
  3101. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3102. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3103. },
  3104. {
  3105. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3106. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3107. .name = "MultiMedia1 Output Channel4",
  3108. .info = msm_pcm_channel_weight_info,
  3109. .get = msm_pcm_channel_weight_get,
  3110. .put = msm_pcm_channel_weight_put,
  3111. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3112. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3113. },
  3114. {
  3115. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3116. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3117. .name = "MultiMedia1 Output Channel5",
  3118. .info = msm_pcm_channel_weight_info,
  3119. .get = msm_pcm_channel_weight_get,
  3120. .put = msm_pcm_channel_weight_put,
  3121. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3122. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3123. },
  3124. {
  3125. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3126. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3127. .name = "MultiMedia1 Output Channel6",
  3128. .info = msm_pcm_channel_weight_info,
  3129. .get = msm_pcm_channel_weight_get,
  3130. .put = msm_pcm_channel_weight_put,
  3131. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3132. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3133. },
  3134. {
  3135. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3136. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3137. .name = "MultiMedia1 Output Channel7",
  3138. .info = msm_pcm_channel_weight_info,
  3139. .get = msm_pcm_channel_weight_get,
  3140. .put = msm_pcm_channel_weight_put,
  3141. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3142. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3143. },
  3144. {
  3145. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3146. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3147. .name = "MultiMedia1 Output Channel8",
  3148. .info = msm_pcm_channel_weight_info,
  3149. .get = msm_pcm_channel_weight_get,
  3150. .put = msm_pcm_channel_weight_put,
  3151. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3152. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3153. },
  3154. {
  3155. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3156. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3157. .name = "MultiMedia2 Output Channel1",
  3158. .info = msm_pcm_channel_weight_info,
  3159. .get = msm_pcm_channel_weight_get,
  3160. .put = msm_pcm_channel_weight_put,
  3161. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3162. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3163. },
  3164. {
  3165. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3166. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3167. .name = "MultiMedia2 Output Channel2",
  3168. .info = msm_pcm_channel_weight_info,
  3169. .get = msm_pcm_channel_weight_get,
  3170. .put = msm_pcm_channel_weight_put,
  3171. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3172. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3173. },
  3174. {
  3175. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3176. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3177. .name = "MultiMedia2 Output Channel3",
  3178. .info = msm_pcm_channel_weight_info,
  3179. .get = msm_pcm_channel_weight_get,
  3180. .put = msm_pcm_channel_weight_put,
  3181. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3182. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3183. },
  3184. {
  3185. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3186. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3187. .name = "MultiMedia3 Output Channel1",
  3188. .info = msm_pcm_channel_weight_info,
  3189. .get = msm_pcm_channel_weight_get,
  3190. .put = msm_pcm_channel_weight_put,
  3191. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3192. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3193. },
  3194. {
  3195. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3196. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3197. .name = "MultiMedia3 Output Channel2",
  3198. .info = msm_pcm_channel_weight_info,
  3199. .get = msm_pcm_channel_weight_get,
  3200. .put = msm_pcm_channel_weight_put,
  3201. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3202. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3203. },
  3204. {
  3205. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3206. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3207. .name = "MultiMedia1 Channel1",
  3208. .info = msm_pcm_channel_input_be_info,
  3209. .get = msm_pcm_channel_input_be_get,
  3210. .put = msm_pcm_channel_input_be_put,
  3211. .private_value = (unsigned long)&(mm1_ch1_enum)
  3212. },
  3213. {
  3214. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3215. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3216. .name = "MultiMedia1 Channel2",
  3217. .info = msm_pcm_channel_input_be_info,
  3218. .get = msm_pcm_channel_input_be_get,
  3219. .put = msm_pcm_channel_input_be_put,
  3220. .private_value = (unsigned long)&(mm1_ch2_enum)
  3221. },
  3222. {
  3223. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3224. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3225. .name = "MultiMedia1 Channel3",
  3226. .info = msm_pcm_channel_input_be_info,
  3227. .get = msm_pcm_channel_input_be_get,
  3228. .put = msm_pcm_channel_input_be_put,
  3229. .private_value = (unsigned long)&(mm1_ch3_enum)
  3230. },
  3231. {
  3232. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3233. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3234. .name = "MultiMedia1 Channel4",
  3235. .info = msm_pcm_channel_input_be_info,
  3236. .get = msm_pcm_channel_input_be_get,
  3237. .put = msm_pcm_channel_input_be_put,
  3238. .private_value = (unsigned long)&(mm1_ch4_enum)
  3239. },
  3240. {
  3241. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3242. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3243. .name = "MultiMedia1 Channel5",
  3244. .info = msm_pcm_channel_input_be_info,
  3245. .get = msm_pcm_channel_input_be_get,
  3246. .put = msm_pcm_channel_input_be_put,
  3247. .private_value = (unsigned long)&(mm1_ch5_enum)
  3248. },
  3249. {
  3250. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3251. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3252. .name = "MultiMedia1 Channel6",
  3253. .info = msm_pcm_channel_input_be_info,
  3254. .get = msm_pcm_channel_input_be_get,
  3255. .put = msm_pcm_channel_input_be_put,
  3256. .private_value = (unsigned long)&(mm1_ch6_enum)
  3257. },
  3258. {
  3259. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3260. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3261. .name = "MultiMedia1 Channel7",
  3262. .info = msm_pcm_channel_input_be_info,
  3263. .get = msm_pcm_channel_input_be_get,
  3264. .put = msm_pcm_channel_input_be_put,
  3265. .private_value = (unsigned long)&(mm1_ch7_enum)
  3266. },
  3267. {
  3268. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3269. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3270. .name = "MultiMedia1 Channel8",
  3271. .info = msm_pcm_channel_input_be_info,
  3272. .get = msm_pcm_channel_input_be_get,
  3273. .put = msm_pcm_channel_input_be_put,
  3274. .private_value = (unsigned long)&(mm1_ch8_enum)
  3275. },
  3276. };
  3277. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3278. struct snd_ctl_elem_value *ucontrol)
  3279. {
  3280. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3281. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3282. ucontrol->value.integer.value[0]);
  3283. return 0;
  3284. }
  3285. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3286. struct snd_ctl_elem_value *ucontrol)
  3287. {
  3288. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3289. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3290. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3291. return 0;
  3292. }
  3293. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3294. "Four", "Five", "Six", "Seven", "Eight"};
  3295. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3296. struct snd_ctl_elem_value *ucontrol)
  3297. {
  3298. switch (msm_ec_ref_bit_format) {
  3299. case SNDRV_PCM_FORMAT_S24_LE:
  3300. ucontrol->value.integer.value[0] = 2;
  3301. break;
  3302. case SNDRV_PCM_FORMAT_S16_LE:
  3303. ucontrol->value.integer.value[0] = 1;
  3304. break;
  3305. default:
  3306. ucontrol->value.integer.value[0] = 0;
  3307. break;
  3308. }
  3309. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3310. __func__, ucontrol->value.integer.value[0]);
  3311. return 0;
  3312. }
  3313. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3314. struct snd_ctl_elem_value *ucontrol)
  3315. {
  3316. u16 bit_width = 0;
  3317. switch (ucontrol->value.integer.value[0]) {
  3318. case 2:
  3319. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3320. break;
  3321. case 1:
  3322. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3323. break;
  3324. default:
  3325. msm_ec_ref_bit_format = 0;
  3326. break;
  3327. }
  3328. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3329. bit_width = 16;
  3330. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3331. bit_width = 24;
  3332. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3333. __func__, msm_ec_ref_bit_format);
  3334. adm_ec_ref_rx_bit_width(bit_width);
  3335. return 0;
  3336. }
  3337. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3338. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3339. struct snd_ctl_elem_value *ucontrol)
  3340. {
  3341. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3342. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3343. __func__, ucontrol->value.integer.value[0]);
  3344. return 0;
  3345. }
  3346. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3347. struct snd_ctl_elem_value *ucontrol)
  3348. {
  3349. switch (ucontrol->value.integer.value[0]) {
  3350. case 0:
  3351. msm_ec_ref_sampling_rate = 0;
  3352. break;
  3353. case 1:
  3354. msm_ec_ref_sampling_rate = 8000;
  3355. break;
  3356. case 2:
  3357. msm_ec_ref_sampling_rate = 16000;
  3358. break;
  3359. case 3:
  3360. msm_ec_ref_sampling_rate = 32000;
  3361. break;
  3362. case 4:
  3363. msm_ec_ref_sampling_rate = 44100;
  3364. break;
  3365. case 5:
  3366. msm_ec_ref_sampling_rate = 48000;
  3367. break;
  3368. case 6:
  3369. msm_ec_ref_sampling_rate = 96000;
  3370. break;
  3371. case 7:
  3372. msm_ec_ref_sampling_rate = 192000;
  3373. break;
  3374. case 8:
  3375. msm_ec_ref_sampling_rate = 384000;
  3376. break;
  3377. default:
  3378. msm_ec_ref_sampling_rate = 48000;
  3379. break;
  3380. }
  3381. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3382. __func__, msm_ec_ref_sampling_rate);
  3383. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3384. return 0;
  3385. }
  3386. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3387. "32000", "44100", "48000", "96000", "192000", "384000"};
  3388. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3389. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3390. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3391. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3392. };
  3393. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3394. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3395. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3396. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3397. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3398. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3399. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3400. };
  3401. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3402. struct snd_ctl_elem_value *ucontrol)
  3403. {
  3404. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3405. mutex_lock(&routing_lock);
  3406. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3407. mutex_unlock(&routing_lock);
  3408. return 0;
  3409. }
  3410. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3411. struct snd_ctl_elem_value *ucontrol)
  3412. {
  3413. int ec_ref_port_id;
  3414. struct snd_soc_dapm_widget *widget =
  3415. snd_soc_dapm_kcontrol_widget(kcontrol);
  3416. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3417. struct snd_soc_dapm_update *update = NULL;
  3418. mutex_lock(&routing_lock);
  3419. switch (ucontrol->value.integer.value[0]) {
  3420. case 0:
  3421. msm_route_ec_ref_rx = 0;
  3422. ec_ref_port_id = AFE_PORT_INVALID;
  3423. break;
  3424. case 1:
  3425. msm_route_ec_ref_rx = 1;
  3426. ec_ref_port_id = SLIMBUS_0_RX;
  3427. break;
  3428. case 2:
  3429. msm_route_ec_ref_rx = 2;
  3430. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3431. break;
  3432. case 3:
  3433. msm_route_ec_ref_rx = 3;
  3434. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3435. break;
  3436. case 4:
  3437. msm_route_ec_ref_rx = 4;
  3438. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3439. break;
  3440. case 5:
  3441. msm_route_ec_ref_rx = 5;
  3442. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3443. break;
  3444. case 6:
  3445. msm_route_ec_ref_rx = 6;
  3446. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3447. break;
  3448. case 7:
  3449. msm_route_ec_ref_rx = 7;
  3450. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3451. break;
  3452. case 9:
  3453. msm_route_ec_ref_rx = 9;
  3454. ec_ref_port_id = SLIMBUS_5_RX;
  3455. break;
  3456. case 10:
  3457. msm_route_ec_ref_rx = 10;
  3458. ec_ref_port_id = SLIMBUS_1_TX;
  3459. break;
  3460. case 11:
  3461. msm_route_ec_ref_rx = 11;
  3462. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3463. break;
  3464. case 12:
  3465. msm_route_ec_ref_rx = 12;
  3466. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3467. break;
  3468. case 13:
  3469. msm_route_ec_ref_rx = 13;
  3470. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3471. break;
  3472. case 14:
  3473. msm_route_ec_ref_rx = 14;
  3474. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3475. break;
  3476. case 15:
  3477. msm_route_ec_ref_rx = 15;
  3478. ec_ref_port_id = SLIMBUS_6_RX;
  3479. break;
  3480. case 16:
  3481. msm_route_ec_ref_rx = 16;
  3482. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3483. break;
  3484. case 17:
  3485. msm_route_ec_ref_rx = 17;
  3486. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3487. break;
  3488. case 18:
  3489. msm_route_ec_ref_rx = 18;
  3490. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3491. break;
  3492. case 19:
  3493. msm_route_ec_ref_rx = 19;
  3494. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3495. break;
  3496. case 20:
  3497. msm_route_ec_ref_rx = 20;
  3498. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3499. break;
  3500. case 21:
  3501. msm_route_ec_ref_rx = 21;
  3502. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3503. break;
  3504. case 22:
  3505. msm_route_ec_ref_rx = 22;
  3506. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3507. break;
  3508. case 23:
  3509. msm_route_ec_ref_rx = 23;
  3510. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3511. break;
  3512. case 24:
  3513. msm_route_ec_ref_rx = 24;
  3514. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3515. break;
  3516. case 25:
  3517. msm_route_ec_ref_rx = 25;
  3518. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3519. break;
  3520. case 26:
  3521. msm_route_ec_ref_rx = 26;
  3522. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3523. break;
  3524. case 27:
  3525. msm_route_ec_ref_rx = 27;
  3526. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3527. break;
  3528. case 28:
  3529. msm_route_ec_ref_rx = 28;
  3530. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3531. break;
  3532. case 29:
  3533. msm_route_ec_ref_rx = 29;
  3534. ec_ref_port_id = SLIMBUS_7_RX;
  3535. break;
  3536. case 30:
  3537. msm_route_ec_ref_rx = 30;
  3538. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  3539. break;
  3540. case 31:
  3541. msm_route_ec_ref_rx = 31;
  3542. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  3543. break;
  3544. case 32:
  3545. msm_route_ec_ref_rx = 32;
  3546. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  3547. break;
  3548. case 33:
  3549. msm_route_ec_ref_rx = 33;
  3550. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  3551. break;
  3552. case 34:
  3553. msm_route_ec_ref_rx = 34;
  3554. ec_ref_port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  3555. break;
  3556. case 35:
  3557. msm_route_ec_ref_rx = 35;
  3558. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  3559. break;
  3560. case 36:
  3561. msm_route_ec_ref_rx = 36;
  3562. ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3563. break;
  3564. default:
  3565. msm_route_ec_ref_rx = 0; /* NONE */
  3566. pr_err("%s EC ref rx %ld not valid\n",
  3567. __func__, ucontrol->value.integer.value[0]);
  3568. ec_ref_port_id = AFE_PORT_INVALID;
  3569. break;
  3570. }
  3571. adm_ec_ref_rx_id(ec_ref_port_id);
  3572. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3573. __func__, msm_route_ec_ref_rx);
  3574. mutex_unlock(&routing_lock);
  3575. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3576. msm_route_ec_ref_rx, e, update);
  3577. return 0;
  3578. }
  3579. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3580. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3581. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3582. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3583. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3584. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3585. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3586. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3587. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  3588. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  3589. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  3590. };
  3591. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3592. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3593. };
  3594. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3595. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 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_ul2 =
  3599. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 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_ul3 =
  3603. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 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_ul4 =
  3607. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 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_ul5 =
  3611. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3612. msm_route_ec_ref_rx_enum[0],
  3613. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3614. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3615. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3616. msm_route_ec_ref_rx_enum[0],
  3617. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3618. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3619. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3620. msm_route_ec_ref_rx_enum[0],
  3621. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3622. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3623. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3624. msm_route_ec_ref_rx_enum[0],
  3625. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3626. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3627. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3628. msm_route_ec_ref_rx_enum[0],
  3629. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3630. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3631. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3632. msm_route_ec_ref_rx_enum[0],
  3633. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3634. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3635. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3636. msm_route_ec_ref_rx_enum[0],
  3637. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3638. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3639. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3640. msm_route_ec_ref_rx_enum[0],
  3641. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3642. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3643. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3644. msm_route_ec_ref_rx_enum[0],
  3645. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3646. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3647. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3648. msm_route_ec_ref_rx_enum[0],
  3649. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3650. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3651. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3652. msm_route_ec_ref_rx_enum[0],
  3653. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3654. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3655. struct snd_ctl_elem_value *ucontrol)
  3656. {
  3657. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3658. mutex_lock(&routing_lock);
  3659. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3660. mutex_unlock(&routing_lock);
  3661. return 0;
  3662. }
  3663. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3664. struct snd_ctl_elem_value *ucontrol)
  3665. {
  3666. struct snd_soc_dapm_widget *widget =
  3667. snd_soc_dapm_kcontrol_widget(kcontrol);
  3668. int mux = ucontrol->value.enumerated.item[0];
  3669. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3670. int ret = 1;
  3671. bool state = true;
  3672. uint16_t ext_ec_ref_port_id;
  3673. struct snd_soc_dapm_update *update = NULL;
  3674. if (mux >= e->items) {
  3675. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3676. return -EINVAL;
  3677. }
  3678. mutex_lock(&routing_lock);
  3679. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3680. switch (msm_route_ext_ec_ref) {
  3681. case EXT_EC_REF_PRI_MI2S_TX:
  3682. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3683. break;
  3684. case EXT_EC_REF_SEC_MI2S_TX:
  3685. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3686. break;
  3687. case EXT_EC_REF_TERT_MI2S_TX:
  3688. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3689. break;
  3690. case EXT_EC_REF_QUAT_MI2S_TX:
  3691. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3692. break;
  3693. case EXT_EC_REF_QUIN_MI2S_TX:
  3694. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3695. break;
  3696. case EXT_EC_REF_SLIM_1_TX:
  3697. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3698. break;
  3699. case EXT_EC_REF_SEC_TDM_TX:
  3700. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3701. break;
  3702. case EXT_EC_REF_NONE:
  3703. default:
  3704. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3705. state = false;
  3706. break;
  3707. }
  3708. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3709. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3710. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3711. mutex_unlock(&routing_lock);
  3712. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3713. update);
  3714. } else {
  3715. ret = -EINVAL;
  3716. mutex_unlock(&routing_lock);
  3717. }
  3718. return ret;
  3719. }
  3720. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3721. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3722. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3723. "SLIM_1_TX", "SEC_TDM_TX"};
  3724. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3725. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3726. };
  3727. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3728. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3729. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3730. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3731. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3732. MSM_BACKEND_DAI_PRI_I2S_RX,
  3733. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3734. msm_routing_put_audio_mixer),
  3735. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3736. MSM_BACKEND_DAI_PRI_I2S_RX,
  3737. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3738. msm_routing_put_audio_mixer),
  3739. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3740. MSM_BACKEND_DAI_PRI_I2S_RX,
  3741. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3742. msm_routing_put_audio_mixer),
  3743. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3744. MSM_BACKEND_DAI_PRI_I2S_RX,
  3745. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3746. msm_routing_put_audio_mixer),
  3747. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3748. MSM_BACKEND_DAI_PRI_I2S_RX,
  3749. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3750. msm_routing_put_audio_mixer),
  3751. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3752. MSM_BACKEND_DAI_PRI_I2S_RX,
  3753. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3754. msm_routing_put_audio_mixer),
  3755. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3756. MSM_BACKEND_DAI_PRI_I2S_RX,
  3757. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3758. msm_routing_put_audio_mixer),
  3759. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3760. MSM_BACKEND_DAI_PRI_I2S_RX,
  3761. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3762. msm_routing_put_audio_mixer),
  3763. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3764. MSM_BACKEND_DAI_PRI_I2S_RX,
  3765. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3766. msm_routing_put_audio_mixer),
  3767. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3768. MSM_BACKEND_DAI_PRI_I2S_RX,
  3769. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3770. msm_routing_put_audio_mixer),
  3771. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3772. MSM_BACKEND_DAI_PRI_I2S_RX,
  3773. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3774. msm_routing_put_audio_mixer),
  3775. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3776. MSM_BACKEND_DAI_PRI_I2S_RX,
  3777. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3778. msm_routing_put_audio_mixer),
  3779. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3780. MSM_BACKEND_DAI_PRI_I2S_RX,
  3781. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3782. msm_routing_put_audio_mixer),
  3783. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3784. MSM_BACKEND_DAI_PRI_I2S_RX,
  3785. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3786. msm_routing_put_audio_mixer),
  3787. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3788. MSM_BACKEND_DAI_PRI_I2S_RX,
  3789. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3790. msm_routing_put_audio_mixer),
  3791. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3792. MSM_BACKEND_DAI_PRI_I2S_RX,
  3793. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3794. msm_routing_put_audio_mixer),
  3795. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3796. MSM_BACKEND_DAI_PRI_I2S_RX,
  3797. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3798. msm_routing_put_audio_mixer),
  3799. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3800. MSM_BACKEND_DAI_PRI_I2S_RX,
  3801. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3802. msm_routing_put_audio_mixer),
  3803. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3804. MSM_BACKEND_DAI_PRI_I2S_RX,
  3805. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3806. msm_routing_put_audio_mixer),
  3807. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3808. MSM_BACKEND_DAI_PRI_I2S_RX,
  3809. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3810. msm_routing_put_audio_mixer),
  3811. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3812. MSM_BACKEND_DAI_PRI_I2S_RX,
  3813. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3814. msm_routing_put_audio_mixer),
  3815. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3816. MSM_BACKEND_DAI_PRI_I2S_RX,
  3817. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3818. msm_routing_put_audio_mixer),
  3819. };
  3820. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3821. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3822. MSM_BACKEND_DAI_SEC_I2S_RX,
  3823. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3824. msm_routing_put_audio_mixer),
  3825. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3826. MSM_BACKEND_DAI_SEC_I2S_RX,
  3827. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3828. msm_routing_put_audio_mixer),
  3829. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3830. MSM_BACKEND_DAI_SEC_I2S_RX,
  3831. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3832. msm_routing_put_audio_mixer),
  3833. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3834. MSM_BACKEND_DAI_SEC_I2S_RX,
  3835. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3836. msm_routing_put_audio_mixer),
  3837. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3838. MSM_BACKEND_DAI_SEC_I2S_RX,
  3839. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3840. msm_routing_put_audio_mixer),
  3841. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3842. MSM_BACKEND_DAI_SEC_I2S_RX,
  3843. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3844. msm_routing_put_audio_mixer),
  3845. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3846. MSM_BACKEND_DAI_SEC_I2S_RX,
  3847. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3848. msm_routing_put_audio_mixer),
  3849. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3850. MSM_BACKEND_DAI_SEC_I2S_RX,
  3851. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3852. msm_routing_put_audio_mixer),
  3853. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3854. MSM_BACKEND_DAI_SEC_I2S_RX,
  3855. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3856. msm_routing_put_audio_mixer),
  3857. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3858. MSM_BACKEND_DAI_SEC_I2S_RX,
  3859. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3860. msm_routing_put_audio_mixer),
  3861. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3862. MSM_BACKEND_DAI_SEC_I2S_RX,
  3863. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3864. msm_routing_put_audio_mixer),
  3865. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3866. MSM_BACKEND_DAI_SEC_I2S_RX,
  3867. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3868. msm_routing_put_audio_mixer),
  3869. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3870. MSM_BACKEND_DAI_SEC_I2S_RX,
  3871. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3872. msm_routing_put_audio_mixer),
  3873. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3874. MSM_BACKEND_DAI_SEC_I2S_RX,
  3875. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3876. msm_routing_put_audio_mixer),
  3877. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3878. MSM_BACKEND_DAI_SEC_I2S_RX,
  3879. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3880. msm_routing_put_audio_mixer),
  3881. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3882. MSM_BACKEND_DAI_SEC_I2S_RX,
  3883. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3884. msm_routing_put_audio_mixer),
  3885. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3886. MSM_BACKEND_DAI_SEC_I2S_RX,
  3887. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3888. msm_routing_put_audio_mixer),
  3889. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3890. MSM_BACKEND_DAI_SEC_I2S_RX,
  3891. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3892. msm_routing_put_audio_mixer),
  3893. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3894. MSM_BACKEND_DAI_SEC_I2S_RX,
  3895. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3896. msm_routing_put_audio_mixer),
  3897. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3898. MSM_BACKEND_DAI_SEC_I2S_RX,
  3899. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3900. msm_routing_put_audio_mixer),
  3901. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3902. MSM_BACKEND_DAI_SEC_I2S_RX,
  3903. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3904. msm_routing_put_audio_mixer),
  3905. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3906. MSM_BACKEND_DAI_SEC_I2S_RX,
  3907. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3908. msm_routing_put_audio_mixer),
  3909. };
  3910. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  3911. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3912. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3913. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3914. msm_routing_put_audio_mixer),
  3915. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3916. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3917. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3918. msm_routing_put_audio_mixer),
  3919. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3920. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3921. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3922. msm_routing_put_audio_mixer),
  3923. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3924. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3925. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3926. msm_routing_put_audio_mixer),
  3927. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3928. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3929. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3930. msm_routing_put_audio_mixer),
  3931. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3932. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3933. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3934. msm_routing_put_audio_mixer),
  3935. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3936. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3937. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3938. msm_routing_put_audio_mixer),
  3939. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3940. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3941. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3942. msm_routing_put_audio_mixer),
  3943. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3944. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3945. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3946. msm_routing_put_audio_mixer),
  3947. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3948. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3949. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3950. msm_routing_put_audio_mixer),
  3951. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3952. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3953. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3954. msm_routing_put_audio_mixer),
  3955. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3956. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3957. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3958. msm_routing_put_audio_mixer),
  3959. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3960. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3961. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3962. msm_routing_put_audio_mixer),
  3963. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3964. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3965. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3966. msm_routing_put_audio_mixer),
  3967. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3968. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3969. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3970. msm_routing_put_audio_mixer),
  3971. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3972. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3973. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3974. msm_routing_put_audio_mixer),
  3975. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3976. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3977. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3978. msm_routing_put_audio_mixer),
  3979. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3980. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3981. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3982. msm_routing_put_audio_mixer),
  3983. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3984. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3985. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3986. msm_routing_put_audio_mixer),
  3987. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3988. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3989. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3990. msm_routing_put_audio_mixer),
  3991. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3992. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3993. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3994. msm_routing_put_audio_mixer),
  3995. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3996. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3997. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3998. msm_routing_put_audio_mixer),
  3999. };
  4000. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  4001. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4002. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4003. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4004. msm_routing_put_audio_mixer),
  4005. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4006. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4007. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4008. msm_routing_put_audio_mixer),
  4009. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4010. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4011. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4012. msm_routing_put_audio_mixer),
  4013. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4014. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4015. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4016. msm_routing_put_audio_mixer),
  4017. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4018. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4019. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4020. msm_routing_put_audio_mixer),
  4021. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4022. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4023. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4024. msm_routing_put_audio_mixer),
  4025. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4026. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4027. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4028. msm_routing_put_audio_mixer),
  4029. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4030. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4031. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4032. msm_routing_put_audio_mixer),
  4033. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4034. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4035. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4036. msm_routing_put_audio_mixer),
  4037. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4038. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4039. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4040. msm_routing_put_audio_mixer),
  4041. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4042. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4043. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4044. msm_routing_put_audio_mixer),
  4045. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4046. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4047. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4048. msm_routing_put_audio_mixer),
  4049. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4050. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4051. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4052. msm_routing_put_audio_mixer),
  4053. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4054. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4055. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4056. msm_routing_put_audio_mixer),
  4057. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4058. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4059. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4060. msm_routing_put_audio_mixer),
  4061. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4062. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4063. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4064. msm_routing_put_audio_mixer),
  4065. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4066. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4067. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4068. msm_routing_put_audio_mixer),
  4069. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4070. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4071. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4072. msm_routing_put_audio_mixer),
  4073. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4074. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4075. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4076. msm_routing_put_audio_mixer),
  4077. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4078. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4079. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4080. msm_routing_put_audio_mixer),
  4081. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4082. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4083. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4084. msm_routing_put_audio_mixer),
  4085. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4086. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4087. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4088. msm_routing_put_audio_mixer),
  4089. };
  4090. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  4091. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4092. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4093. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4094. msm_routing_put_audio_mixer),
  4095. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4096. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4097. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4098. msm_routing_put_audio_mixer),
  4099. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4100. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4101. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4102. msm_routing_put_audio_mixer),
  4103. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4104. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4105. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4106. msm_routing_put_audio_mixer),
  4107. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4108. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4109. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4110. msm_routing_put_audio_mixer),
  4111. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4112. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4113. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4114. msm_routing_put_audio_mixer),
  4115. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4116. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4117. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4118. msm_routing_put_audio_mixer),
  4119. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4120. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4121. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4122. msm_routing_put_audio_mixer),
  4123. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4124. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4125. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4126. msm_routing_put_audio_mixer),
  4127. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4128. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4129. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4130. msm_routing_put_audio_mixer),
  4131. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4132. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4133. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4134. msm_routing_put_audio_mixer),
  4135. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4136. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4137. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4138. msm_routing_put_audio_mixer),
  4139. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4140. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4141. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4142. msm_routing_put_audio_mixer),
  4143. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4144. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4145. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4146. msm_routing_put_audio_mixer),
  4147. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4148. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4149. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4150. msm_routing_put_audio_mixer),
  4151. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4152. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4153. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4154. msm_routing_put_audio_mixer),
  4155. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4156. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4157. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4158. msm_routing_put_audio_mixer),
  4159. };
  4160. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  4161. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4162. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4163. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4164. msm_routing_put_audio_mixer),
  4165. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4166. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4167. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4168. msm_routing_put_audio_mixer),
  4169. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4170. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4171. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4172. msm_routing_put_audio_mixer),
  4173. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4174. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4175. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4176. msm_routing_put_audio_mixer),
  4177. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4178. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4179. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4180. msm_routing_put_audio_mixer),
  4181. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4182. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4183. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4184. msm_routing_put_audio_mixer),
  4185. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4186. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4187. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4188. msm_routing_put_audio_mixer),
  4189. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4190. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4191. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4192. msm_routing_put_audio_mixer),
  4193. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4194. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4195. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4196. msm_routing_put_audio_mixer),
  4197. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4198. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4199. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4200. msm_routing_put_audio_mixer),
  4201. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4202. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4203. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4204. msm_routing_put_audio_mixer),
  4205. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4206. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4207. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4208. msm_routing_put_audio_mixer),
  4209. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4210. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4211. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4212. msm_routing_put_audio_mixer),
  4213. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4214. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4215. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4216. msm_routing_put_audio_mixer),
  4217. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4218. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4219. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4220. msm_routing_put_audio_mixer),
  4221. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4222. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4223. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4224. msm_routing_put_audio_mixer),
  4225. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4226. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4227. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4228. msm_routing_put_audio_mixer),
  4229. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4230. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4231. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4232. msm_routing_put_audio_mixer),
  4233. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4234. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4235. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4236. msm_routing_put_audio_mixer),
  4237. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4238. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4239. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4240. msm_routing_put_audio_mixer),
  4241. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4242. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4243. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4244. msm_routing_put_audio_mixer),
  4245. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4246. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4247. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4248. msm_routing_put_audio_mixer),
  4249. };
  4250. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4251. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4252. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4253. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4254. msm_routing_put_audio_mixer),
  4255. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4256. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4257. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4258. msm_routing_put_audio_mixer),
  4259. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4260. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4261. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4262. msm_routing_put_audio_mixer),
  4263. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4264. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4265. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4266. msm_routing_put_audio_mixer),
  4267. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4268. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4269. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4270. msm_routing_put_audio_mixer),
  4271. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4272. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4273. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4274. msm_routing_put_audio_mixer),
  4275. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4276. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4277. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4278. msm_routing_put_audio_mixer),
  4279. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4280. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4281. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4282. msm_routing_put_audio_mixer),
  4283. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4284. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4285. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4286. msm_routing_put_audio_mixer),
  4287. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4288. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4289. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4290. msm_routing_put_audio_mixer),
  4291. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4292. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4293. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4294. msm_routing_put_audio_mixer),
  4295. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4296. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4297. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4298. msm_routing_put_audio_mixer),
  4299. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4300. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4301. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4302. msm_routing_put_audio_mixer),
  4303. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4304. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4305. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4306. msm_routing_put_audio_mixer),
  4307. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4308. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4309. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4310. msm_routing_put_audio_mixer),
  4311. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4312. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4313. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4314. msm_routing_put_audio_mixer),
  4315. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4316. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4317. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4318. msm_routing_put_audio_mixer),
  4319. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4320. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4321. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4322. msm_routing_put_audio_mixer),
  4323. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4324. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4325. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4326. msm_routing_put_audio_mixer),
  4327. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4328. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4329. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4330. msm_routing_put_audio_mixer),
  4331. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4332. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4333. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4334. msm_routing_put_audio_mixer),
  4335. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4336. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4337. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4338. msm_routing_put_audio_mixer),
  4339. };
  4340. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4341. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4342. MSM_BACKEND_DAI_MI2S_RX,
  4343. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4344. msm_routing_put_audio_mixer),
  4345. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4346. MSM_BACKEND_DAI_MI2S_RX,
  4347. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4348. msm_routing_put_audio_mixer),
  4349. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4350. MSM_BACKEND_DAI_MI2S_RX,
  4351. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4352. msm_routing_put_audio_mixer),
  4353. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4354. MSM_BACKEND_DAI_MI2S_RX,
  4355. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4356. msm_routing_put_audio_mixer),
  4357. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4358. MSM_BACKEND_DAI_MI2S_RX,
  4359. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4360. msm_routing_put_audio_mixer),
  4361. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4362. MSM_BACKEND_DAI_MI2S_RX,
  4363. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4364. msm_routing_put_audio_mixer),
  4365. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4366. MSM_BACKEND_DAI_MI2S_RX,
  4367. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4368. msm_routing_put_audio_mixer),
  4369. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4370. MSM_BACKEND_DAI_MI2S_RX,
  4371. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4372. msm_routing_put_audio_mixer),
  4373. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4374. MSM_BACKEND_DAI_MI2S_RX,
  4375. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4376. msm_routing_put_audio_mixer),
  4377. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4378. MSM_BACKEND_DAI_MI2S_RX,
  4379. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4380. msm_routing_put_audio_mixer),
  4381. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4382. MSM_BACKEND_DAI_MI2S_RX,
  4383. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4384. msm_routing_put_audio_mixer),
  4385. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4386. MSM_BACKEND_DAI_MI2S_RX,
  4387. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4388. msm_routing_put_audio_mixer),
  4389. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4390. MSM_BACKEND_DAI_MI2S_RX,
  4391. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4392. msm_routing_put_audio_mixer),
  4393. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4394. MSM_BACKEND_DAI_MI2S_RX,
  4395. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4396. msm_routing_put_audio_mixer),
  4397. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4398. MSM_BACKEND_DAI_MI2S_RX,
  4399. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4400. msm_routing_put_audio_mixer),
  4401. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4402. MSM_BACKEND_DAI_MI2S_RX,
  4403. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4404. msm_routing_put_audio_mixer),
  4405. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4406. MSM_BACKEND_DAI_MI2S_RX,
  4407. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4408. msm_routing_put_audio_mixer),
  4409. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4410. MSM_BACKEND_DAI_MI2S_RX,
  4411. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4412. msm_routing_put_audio_mixer),
  4413. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4414. MSM_BACKEND_DAI_MI2S_RX,
  4415. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4416. msm_routing_put_audio_mixer),
  4417. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4418. MSM_BACKEND_DAI_MI2S_RX,
  4419. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4420. msm_routing_put_audio_mixer),
  4421. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4422. MSM_BACKEND_DAI_MI2S_RX,
  4423. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4424. msm_routing_put_audio_mixer),
  4425. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4426. MSM_BACKEND_DAI_MI2S_RX,
  4427. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4428. msm_routing_put_audio_mixer),
  4429. };
  4430. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4431. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4432. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4433. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4434. msm_routing_put_audio_mixer),
  4435. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4436. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4437. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4438. msm_routing_put_audio_mixer),
  4439. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4440. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4441. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4442. msm_routing_put_audio_mixer),
  4443. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4444. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4445. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4446. msm_routing_put_audio_mixer),
  4447. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4448. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4449. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4450. msm_routing_put_audio_mixer),
  4451. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4452. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4453. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4454. msm_routing_put_audio_mixer),
  4455. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4456. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4457. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4458. msm_routing_put_audio_mixer),
  4459. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4460. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4461. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4462. msm_routing_put_audio_mixer),
  4463. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4464. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4465. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4466. msm_routing_put_audio_mixer),
  4467. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4468. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4469. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4470. msm_routing_put_audio_mixer),
  4471. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4472. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4473. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4474. msm_routing_put_audio_mixer),
  4475. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4476. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4477. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4478. msm_routing_put_audio_mixer),
  4479. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4480. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4481. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4482. msm_routing_put_audio_mixer),
  4483. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4484. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4485. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4486. msm_routing_put_audio_mixer),
  4487. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4488. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4489. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4490. msm_routing_put_audio_mixer),
  4491. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4492. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4493. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4494. msm_routing_put_audio_mixer),
  4495. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4496. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4497. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4498. msm_routing_put_audio_mixer),
  4499. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4500. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4501. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4502. msm_routing_put_audio_mixer),
  4503. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4504. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4505. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4506. msm_routing_put_audio_mixer),
  4507. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4508. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4509. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4510. msm_routing_put_audio_mixer),
  4511. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4512. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4513. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4514. msm_routing_put_audio_mixer),
  4515. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4516. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4517. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4518. msm_routing_put_audio_mixer),
  4519. };
  4520. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4521. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4522. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4523. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4524. msm_routing_put_audio_mixer),
  4525. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4526. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4527. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4528. msm_routing_put_audio_mixer),
  4529. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4530. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4531. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4532. msm_routing_put_audio_mixer),
  4533. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4534. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4535. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4536. msm_routing_put_audio_mixer),
  4537. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4538. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4539. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4540. msm_routing_put_audio_mixer),
  4541. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4542. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4543. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4544. msm_routing_put_audio_mixer),
  4545. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4546. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4547. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4548. msm_routing_put_audio_mixer),
  4549. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4550. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4551. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4552. msm_routing_put_audio_mixer),
  4553. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4554. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4555. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4556. msm_routing_put_audio_mixer),
  4557. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4558. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4559. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4560. msm_routing_put_audio_mixer),
  4561. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4562. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4563. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4564. msm_routing_put_audio_mixer),
  4565. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4566. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4567. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4568. msm_routing_put_audio_mixer),
  4569. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4570. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4571. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4572. msm_routing_put_audio_mixer),
  4573. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4574. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4575. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4576. msm_routing_put_audio_mixer),
  4577. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4578. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4579. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4580. msm_routing_put_audio_mixer),
  4581. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4582. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4583. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4584. msm_routing_put_audio_mixer),
  4585. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4586. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4587. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4588. msm_routing_put_audio_mixer),
  4589. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4590. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4591. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4592. msm_routing_put_audio_mixer),
  4593. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4594. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4595. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4596. msm_routing_put_audio_mixer),
  4597. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4598. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4599. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4600. msm_routing_put_audio_mixer),
  4601. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4602. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4603. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4604. msm_routing_put_audio_mixer),
  4605. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4606. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4607. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4608. msm_routing_put_audio_mixer),
  4609. };
  4610. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4611. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4612. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4613. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4614. msm_routing_put_audio_mixer),
  4615. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4616. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4617. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4618. msm_routing_put_audio_mixer),
  4619. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4620. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4621. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4622. msm_routing_put_audio_mixer),
  4623. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4624. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4625. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4626. msm_routing_put_audio_mixer),
  4627. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4628. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4629. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4630. msm_routing_put_audio_mixer),
  4631. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4632. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4633. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4634. msm_routing_put_audio_mixer),
  4635. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4636. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4637. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4638. msm_routing_put_audio_mixer),
  4639. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4640. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4641. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4642. msm_routing_put_audio_mixer),
  4643. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4644. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4645. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4646. msm_routing_put_audio_mixer),
  4647. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4648. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4649. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4650. msm_routing_put_audio_mixer),
  4651. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4652. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4653. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4654. msm_routing_put_audio_mixer),
  4655. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4656. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4657. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4658. msm_routing_put_audio_mixer),
  4659. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4660. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4661. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4662. msm_routing_put_audio_mixer),
  4663. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4664. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4665. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4666. msm_routing_put_audio_mixer),
  4667. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4668. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4669. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4670. msm_routing_put_audio_mixer),
  4671. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4672. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4673. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4674. msm_routing_put_audio_mixer),
  4675. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4676. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4677. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4678. msm_routing_put_audio_mixer),
  4679. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4680. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4681. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4682. msm_routing_put_audio_mixer),
  4683. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4684. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4685. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4686. msm_routing_put_audio_mixer),
  4687. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4688. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4689. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4690. msm_routing_put_audio_mixer),
  4691. };
  4692. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4693. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4694. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4695. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4696. msm_routing_put_audio_mixer),
  4697. };
  4698. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4699. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4700. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4701. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4702. msm_routing_put_audio_mixer),
  4703. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4704. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4705. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4706. msm_routing_put_audio_mixer),
  4707. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4708. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4709. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4710. msm_routing_put_audio_mixer),
  4711. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4712. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4713. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4714. msm_routing_put_audio_mixer),
  4715. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4716. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4717. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4718. msm_routing_put_audio_mixer),
  4719. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4720. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4721. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4722. msm_routing_put_audio_mixer),
  4723. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4724. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4725. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4726. msm_routing_put_audio_mixer),
  4727. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4728. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4729. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4730. msm_routing_put_audio_mixer),
  4731. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4732. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4733. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4734. msm_routing_put_audio_mixer),
  4735. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4736. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4737. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4738. msm_routing_put_audio_mixer),
  4739. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4740. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4741. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4742. msm_routing_put_audio_mixer),
  4743. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4744. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4745. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4746. msm_routing_put_audio_mixer),
  4747. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4748. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4749. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4750. msm_routing_put_audio_mixer),
  4751. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4752. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4753. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4754. msm_routing_put_audio_mixer),
  4755. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4756. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4757. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4758. msm_routing_put_audio_mixer),
  4759. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4760. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4761. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4762. msm_routing_put_audio_mixer),
  4763. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4764. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4765. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4766. msm_routing_put_audio_mixer),
  4767. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4768. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4769. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4770. msm_routing_put_audio_mixer),
  4771. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4772. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4773. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4774. msm_routing_put_audio_mixer),
  4775. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4776. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4777. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4778. msm_routing_put_audio_mixer),
  4779. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4780. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4781. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4782. msm_routing_put_audio_mixer),
  4783. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4784. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4785. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4786. msm_routing_put_audio_mixer),
  4787. };
  4788. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4789. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4790. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4791. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4792. msm_routing_put_audio_mixer),
  4793. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4794. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4795. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4796. msm_routing_put_audio_mixer),
  4797. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4798. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4799. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4800. msm_routing_put_audio_mixer),
  4801. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4802. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4803. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4804. msm_routing_put_audio_mixer),
  4805. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4806. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4807. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4808. msm_routing_put_audio_mixer),
  4809. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4810. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4811. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4812. msm_routing_put_audio_mixer),
  4813. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4814. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4815. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4816. msm_routing_put_audio_mixer),
  4817. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4818. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4819. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4820. msm_routing_put_audio_mixer),
  4821. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4822. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4823. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4824. msm_routing_put_audio_mixer),
  4825. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4826. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4827. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4828. msm_routing_put_audio_mixer),
  4829. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4830. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4831. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4832. msm_routing_put_audio_mixer),
  4833. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4834. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4835. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4836. msm_routing_put_audio_mixer),
  4837. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4838. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4839. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4840. msm_routing_put_audio_mixer),
  4841. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4842. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4843. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4844. msm_routing_put_audio_mixer),
  4845. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4846. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4847. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4848. msm_routing_put_audio_mixer),
  4849. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4850. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4851. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4852. msm_routing_put_audio_mixer),
  4853. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4854. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4855. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4856. msm_routing_put_audio_mixer),
  4857. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4858. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4859. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4860. msm_routing_put_audio_mixer),
  4861. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4862. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4863. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4864. msm_routing_put_audio_mixer),
  4865. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4866. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4867. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4868. msm_routing_put_audio_mixer),
  4869. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4870. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4871. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4872. msm_routing_put_audio_mixer),
  4873. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4874. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4875. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4876. msm_routing_put_audio_mixer),
  4877. };
  4878. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4879. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4880. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4881. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4882. msm_routing_put_audio_mixer),
  4883. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4884. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4885. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4886. msm_routing_put_audio_mixer),
  4887. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4888. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4889. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4890. msm_routing_put_audio_mixer),
  4891. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4892. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4893. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4894. msm_routing_put_audio_mixer),
  4895. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4896. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4897. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4898. msm_routing_put_audio_mixer),
  4899. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4900. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4901. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4902. msm_routing_put_audio_mixer),
  4903. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4904. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4905. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4906. msm_routing_put_audio_mixer),
  4907. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4908. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4909. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4910. msm_routing_put_audio_mixer),
  4911. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4912. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4913. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4914. msm_routing_put_audio_mixer),
  4915. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4916. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4917. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4918. msm_routing_put_audio_mixer),
  4919. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4920. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4921. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4922. msm_routing_put_audio_mixer),
  4923. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4924. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4925. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4926. msm_routing_put_audio_mixer),
  4927. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4928. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4929. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4930. msm_routing_put_audio_mixer),
  4931. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4932. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4933. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4934. msm_routing_put_audio_mixer),
  4935. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4936. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4937. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4938. msm_routing_put_audio_mixer),
  4939. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4940. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4941. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4942. msm_routing_put_audio_mixer),
  4943. };
  4944. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4945. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4946. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4947. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4948. msm_routing_put_audio_mixer),
  4949. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4950. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4951. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4952. msm_routing_put_audio_mixer),
  4953. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4954. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4955. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4956. msm_routing_put_audio_mixer),
  4957. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4958. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4959. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4960. msm_routing_put_audio_mixer),
  4961. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4962. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4963. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4964. msm_routing_put_audio_mixer),
  4965. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4966. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4967. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4968. msm_routing_put_audio_mixer),
  4969. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4970. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4971. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4972. msm_routing_put_audio_mixer),
  4973. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4974. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4975. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4976. msm_routing_put_audio_mixer),
  4977. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4978. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4979. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4980. msm_routing_put_audio_mixer),
  4981. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4982. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4983. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4984. msm_routing_put_audio_mixer),
  4985. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4986. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4987. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4988. msm_routing_put_audio_mixer),
  4989. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4990. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4991. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4992. msm_routing_put_audio_mixer),
  4993. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4994. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4995. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4996. msm_routing_put_audio_mixer),
  4997. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4998. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4999. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5000. msm_routing_put_audio_mixer),
  5001. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5002. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5003. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5004. msm_routing_put_audio_mixer),
  5005. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5006. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5007. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5008. msm_routing_put_audio_mixer),
  5009. };
  5010. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  5011. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5012. MSM_BACKEND_DAI_HDMI_RX,
  5013. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5014. msm_routing_put_audio_mixer),
  5015. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5016. MSM_BACKEND_DAI_HDMI_RX,
  5017. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5018. msm_routing_put_audio_mixer),
  5019. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5020. MSM_BACKEND_DAI_HDMI_RX,
  5021. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5022. msm_routing_put_audio_mixer),
  5023. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5024. MSM_BACKEND_DAI_HDMI_RX,
  5025. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5026. msm_routing_put_audio_mixer),
  5027. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5028. MSM_BACKEND_DAI_HDMI_RX,
  5029. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5030. msm_routing_put_audio_mixer),
  5031. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5032. MSM_BACKEND_DAI_HDMI_RX,
  5033. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5034. msm_routing_put_audio_mixer),
  5035. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5036. MSM_BACKEND_DAI_HDMI_RX,
  5037. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5038. msm_routing_put_audio_mixer),
  5039. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5040. MSM_BACKEND_DAI_HDMI_RX,
  5041. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5042. msm_routing_put_audio_mixer),
  5043. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5044. MSM_BACKEND_DAI_HDMI_RX,
  5045. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5046. msm_routing_put_audio_mixer),
  5047. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5048. MSM_BACKEND_DAI_HDMI_RX,
  5049. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5050. msm_routing_put_audio_mixer),
  5051. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5052. MSM_BACKEND_DAI_HDMI_RX,
  5053. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5054. msm_routing_put_audio_mixer),
  5055. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5056. MSM_BACKEND_DAI_HDMI_RX,
  5057. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5058. msm_routing_put_audio_mixer),
  5059. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5060. MSM_BACKEND_DAI_HDMI_RX,
  5061. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5062. msm_routing_put_audio_mixer),
  5063. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5064. MSM_BACKEND_DAI_HDMI_RX,
  5065. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5066. msm_routing_put_audio_mixer),
  5067. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5068. MSM_BACKEND_DAI_HDMI_RX,
  5069. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5070. msm_routing_put_audio_mixer),
  5071. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5072. MSM_BACKEND_DAI_HDMI_RX,
  5073. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5074. msm_routing_put_audio_mixer),
  5075. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5076. MSM_BACKEND_DAI_HDMI_RX,
  5077. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5078. msm_routing_put_audio_mixer),
  5079. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5080. MSM_BACKEND_DAI_HDMI_RX,
  5081. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5082. msm_routing_put_audio_mixer),
  5083. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5084. MSM_BACKEND_DAI_HDMI_RX,
  5085. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5086. msm_routing_put_audio_mixer),
  5087. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5088. MSM_BACKEND_DAI_HDMI_RX,
  5089. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5090. msm_routing_put_audio_mixer),
  5091. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5092. MSM_BACKEND_DAI_HDMI_RX,
  5093. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5094. msm_routing_put_audio_mixer),
  5095. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5096. MSM_BACKEND_DAI_HDMI_RX,
  5097. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5098. msm_routing_put_audio_mixer),
  5099. };
  5100. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  5101. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5102. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5103. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5104. msm_routing_put_audio_mixer),
  5105. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5106. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5107. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5108. msm_routing_put_audio_mixer),
  5109. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5110. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5111. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5112. msm_routing_put_audio_mixer),
  5113. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5114. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5115. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5116. msm_routing_put_audio_mixer),
  5117. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5118. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5119. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5120. msm_routing_put_audio_mixer),
  5121. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5122. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5123. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5124. msm_routing_put_audio_mixer),
  5125. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5126. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5127. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5128. msm_routing_put_audio_mixer),
  5129. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5130. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5131. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5132. msm_routing_put_audio_mixer),
  5133. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5134. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5135. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5136. msm_routing_put_audio_mixer),
  5137. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5138. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5139. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5140. msm_routing_put_audio_mixer),
  5141. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5142. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5143. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5144. msm_routing_put_audio_mixer),
  5145. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5146. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5147. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5148. msm_routing_put_audio_mixer),
  5149. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5150. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5151. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5152. msm_routing_put_audio_mixer),
  5153. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5154. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5155. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5156. msm_routing_put_audio_mixer),
  5157. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5158. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5159. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5160. msm_routing_put_audio_mixer),
  5161. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5162. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5163. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5164. msm_routing_put_audio_mixer),
  5165. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5166. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5167. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5168. msm_routing_put_audio_mixer),
  5169. };
  5170. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  5171. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5172. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5173. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5174. msm_routing_put_audio_mixer),
  5175. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5176. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5177. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5178. msm_routing_put_audio_mixer),
  5179. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5180. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5181. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5182. msm_routing_put_audio_mixer),
  5183. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5184. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5185. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5186. msm_routing_put_audio_mixer),
  5187. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5188. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5189. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5190. msm_routing_put_audio_mixer),
  5191. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5192. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5193. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5194. msm_routing_put_audio_mixer),
  5195. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5196. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5197. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5198. msm_routing_put_audio_mixer),
  5199. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5200. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5201. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5202. msm_routing_put_audio_mixer),
  5203. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5204. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5205. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5206. msm_routing_put_audio_mixer),
  5207. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5208. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5209. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5210. msm_routing_put_audio_mixer),
  5211. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5212. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5213. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5214. msm_routing_put_audio_mixer),
  5215. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5216. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5217. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5218. msm_routing_put_audio_mixer),
  5219. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5220. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5221. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5222. msm_routing_put_audio_mixer),
  5223. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5224. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5225. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5226. msm_routing_put_audio_mixer),
  5227. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5228. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5229. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5230. msm_routing_put_audio_mixer),
  5231. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5232. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5233. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5234. msm_routing_put_audio_mixer),
  5235. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5236. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5237. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5238. msm_routing_put_audio_mixer),
  5239. };
  5240. /* incall music delivery mixer */
  5241. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  5242. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5243. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5244. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5245. msm_routing_put_audio_mixer),
  5246. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5247. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5248. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5249. msm_routing_put_audio_mixer),
  5250. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5251. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5252. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5253. msm_routing_put_audio_mixer),
  5254. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5255. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5256. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5257. msm_routing_put_audio_mixer),
  5258. };
  5259. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  5260. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5261. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5262. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5263. msm_routing_put_audio_mixer),
  5264. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5265. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5266. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5267. msm_routing_put_audio_mixer),
  5268. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5269. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5270. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5271. msm_routing_put_audio_mixer),
  5272. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5273. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5274. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5275. msm_routing_put_audio_mixer),
  5276. };
  5277. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5278. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5279. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5280. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5281. msm_routing_put_audio_mixer),
  5282. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5283. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5284. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5285. msm_routing_put_audio_mixer),
  5286. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5287. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA5, 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_SLIMBUS_4_RX,
  5292. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5293. msm_routing_put_audio_mixer),
  5294. };
  5295. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5296. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5297. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5298. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5299. msm_routing_put_audio_mixer),
  5300. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5301. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5302. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5303. msm_routing_put_audio_mixer),
  5304. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5305. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5306. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5307. msm_routing_put_audio_mixer),
  5308. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5309. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5310. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5311. msm_routing_put_audio_mixer),
  5312. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5313. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5314. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5315. msm_routing_put_audio_mixer),
  5316. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5317. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5318. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5319. msm_routing_put_audio_mixer),
  5320. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5321. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5322. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5323. msm_routing_put_audio_mixer),
  5324. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5325. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5326. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5327. msm_routing_put_audio_mixer),
  5328. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5329. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5330. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5331. msm_routing_put_audio_mixer),
  5332. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5333. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5334. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5335. msm_routing_put_audio_mixer),
  5336. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5337. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5338. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5339. msm_routing_put_audio_mixer),
  5340. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5341. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5342. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5343. msm_routing_put_audio_mixer),
  5344. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5345. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5346. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5347. msm_routing_put_audio_mixer),
  5348. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5349. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5350. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5351. msm_routing_put_audio_mixer),
  5352. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5353. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5354. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5355. msm_routing_put_audio_mixer),
  5356. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5357. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5358. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5359. msm_routing_put_audio_mixer),
  5360. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5361. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. };
  5365. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5366. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5367. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5368. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5369. msm_routing_put_audio_mixer),
  5370. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5371. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5372. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5373. msm_routing_put_audio_mixer),
  5374. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5375. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5376. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5377. msm_routing_put_audio_mixer),
  5378. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5379. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5380. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5381. msm_routing_put_audio_mixer),
  5382. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5383. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5384. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5385. msm_routing_put_audio_mixer),
  5386. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5387. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5388. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5389. msm_routing_put_audio_mixer),
  5390. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5391. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5392. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5393. msm_routing_put_audio_mixer),
  5394. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5395. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5396. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5397. msm_routing_put_audio_mixer),
  5398. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5399. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5400. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5401. msm_routing_put_audio_mixer),
  5402. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5403. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5404. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5405. msm_routing_put_audio_mixer),
  5406. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5407. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5408. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5409. msm_routing_put_audio_mixer),
  5410. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5411. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5412. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5413. msm_routing_put_audio_mixer),
  5414. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5415. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5416. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5417. msm_routing_put_audio_mixer),
  5418. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5419. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5420. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5421. msm_routing_put_audio_mixer),
  5422. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5423. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5424. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5425. msm_routing_put_audio_mixer),
  5426. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5427. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5428. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5429. msm_routing_put_audio_mixer),
  5430. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5431. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5432. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5433. msm_routing_put_audio_mixer),
  5434. };
  5435. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5436. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5437. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5438. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5439. msm_routing_put_audio_mixer),
  5440. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5441. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5442. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5443. msm_routing_put_audio_mixer),
  5444. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5445. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5446. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5447. msm_routing_put_audio_mixer),
  5448. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5449. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5453. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5454. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5455. msm_routing_put_audio_mixer),
  5456. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5457. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5458. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5459. msm_routing_put_audio_mixer),
  5460. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5461. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5462. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5463. msm_routing_put_audio_mixer),
  5464. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5465. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5466. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5467. msm_routing_put_audio_mixer),
  5468. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5469. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5470. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5471. msm_routing_put_audio_mixer),
  5472. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5473. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5474. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5475. msm_routing_put_audio_mixer),
  5476. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5477. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5478. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5479. msm_routing_put_audio_mixer),
  5480. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5481. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5482. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5483. msm_routing_put_audio_mixer),
  5484. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5485. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5486. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5487. msm_routing_put_audio_mixer),
  5488. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5489. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5490. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5491. msm_routing_put_audio_mixer),
  5492. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5493. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5494. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5495. msm_routing_put_audio_mixer),
  5496. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5497. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5498. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5499. msm_routing_put_audio_mixer),
  5500. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5501. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5502. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5503. msm_routing_put_audio_mixer),
  5504. };
  5505. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  5506. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5507. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5508. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5509. msm_routing_put_audio_mixer),
  5510. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5511. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5515. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5516. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5517. msm_routing_put_audio_mixer),
  5518. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5519. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5520. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5521. msm_routing_put_audio_mixer),
  5522. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5523. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5524. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5525. msm_routing_put_audio_mixer),
  5526. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5527. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5531. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5535. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5536. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5537. msm_routing_put_audio_mixer),
  5538. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5539. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5540. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5541. msm_routing_put_audio_mixer),
  5542. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5543. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5547. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5548. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5549. msm_routing_put_audio_mixer),
  5550. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5551. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5552. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5553. msm_routing_put_audio_mixer),
  5554. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5555. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5556. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5557. msm_routing_put_audio_mixer),
  5558. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5559. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5560. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5561. msm_routing_put_audio_mixer),
  5562. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5563. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5564. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5565. msm_routing_put_audio_mixer),
  5566. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5567. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5568. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5569. msm_routing_put_audio_mixer),
  5570. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5571. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5572. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5573. msm_routing_put_audio_mixer),
  5574. };
  5575. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  5576. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5577. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5578. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5579. msm_routing_put_audio_mixer),
  5580. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5581. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5585. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5601. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5602. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5603. msm_routing_put_audio_mixer),
  5604. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5605. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5609. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5613. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5614. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5615. msm_routing_put_audio_mixer),
  5616. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5617. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5621. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5625. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5629. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5630. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5631. msm_routing_put_audio_mixer),
  5632. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5633. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5634. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5635. msm_routing_put_audio_mixer),
  5636. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5637. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5638. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5639. msm_routing_put_audio_mixer),
  5640. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5641. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5642. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5643. msm_routing_put_audio_mixer),
  5644. };
  5645. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  5646. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5647. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5648. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5649. msm_routing_put_audio_mixer),
  5650. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5651. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5655. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5659. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5663. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5671. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5675. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5679. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5680. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5681. msm_routing_put_audio_mixer),
  5682. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5683. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5687. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5691. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5692. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5693. msm_routing_put_audio_mixer),
  5694. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5695. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5696. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5697. msm_routing_put_audio_mixer),
  5698. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5699. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5703. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5707. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5708. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5709. msm_routing_put_audio_mixer),
  5710. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5711. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5712. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5713. msm_routing_put_audio_mixer),
  5714. };
  5715. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  5716. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5717. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5718. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5719. msm_routing_put_audio_mixer),
  5720. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5721. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5722. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5723. msm_routing_put_audio_mixer),
  5724. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5725. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5729. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5730. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5731. msm_routing_put_audio_mixer),
  5732. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5733. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5749. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5765. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5769. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5773. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5774. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5775. msm_routing_put_audio_mixer),
  5776. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5777. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5781. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA26, 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_4_mixer_controls[] = {
  5786. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5787. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  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_4,
  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_4,
  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_4,
  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_4,
  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_4,
  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_4,
  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_4,
  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_4,
  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_4,
  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_4,
  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_4,
  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_4,
  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_4,
  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_4,
  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_4,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5851. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. };
  5855. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  5856. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5857. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5858. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5859. msm_routing_put_audio_mixer),
  5860. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5861. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5862. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5863. msm_routing_put_audio_mixer),
  5864. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5865. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5866. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5867. msm_routing_put_audio_mixer),
  5868. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5869. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5870. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5871. msm_routing_put_audio_mixer),
  5872. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5873. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5874. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5875. msm_routing_put_audio_mixer),
  5876. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5877. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5878. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5879. msm_routing_put_audio_mixer),
  5880. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5881. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5882. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5883. msm_routing_put_audio_mixer),
  5884. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5885. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5886. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5887. msm_routing_put_audio_mixer),
  5888. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5889. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5890. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5891. msm_routing_put_audio_mixer),
  5892. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5893. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5894. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5895. msm_routing_put_audio_mixer),
  5896. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5897. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5898. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5899. msm_routing_put_audio_mixer),
  5900. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5901. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5902. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5903. msm_routing_put_audio_mixer),
  5904. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5905. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5906. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5907. msm_routing_put_audio_mixer),
  5908. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5909. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5910. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5911. msm_routing_put_audio_mixer),
  5912. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5913. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5914. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5915. msm_routing_put_audio_mixer),
  5916. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5917. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5918. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5919. msm_routing_put_audio_mixer),
  5920. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5921. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5922. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5923. msm_routing_put_audio_mixer),
  5924. };
  5925. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  5926. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5927. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5928. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5929. msm_routing_put_audio_mixer),
  5930. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5931. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5932. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5933. msm_routing_put_audio_mixer),
  5934. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5935. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5936. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5937. msm_routing_put_audio_mixer),
  5938. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5939. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5940. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5941. msm_routing_put_audio_mixer),
  5942. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5943. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5944. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5945. msm_routing_put_audio_mixer),
  5946. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5947. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5948. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5949. msm_routing_put_audio_mixer),
  5950. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5951. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5952. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5953. msm_routing_put_audio_mixer),
  5954. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5955. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5956. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5957. msm_routing_put_audio_mixer),
  5958. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5959. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5960. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5961. msm_routing_put_audio_mixer),
  5962. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5963. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5964. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5965. msm_routing_put_audio_mixer),
  5966. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5967. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5968. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5969. msm_routing_put_audio_mixer),
  5970. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5971. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5972. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5973. msm_routing_put_audio_mixer),
  5974. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5975. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5976. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5977. msm_routing_put_audio_mixer),
  5978. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5979. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5980. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5981. msm_routing_put_audio_mixer),
  5982. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5983. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5984. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5985. msm_routing_put_audio_mixer),
  5986. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5987. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5988. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5989. msm_routing_put_audio_mixer),
  5990. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5991. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5992. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5993. msm_routing_put_audio_mixer),
  5994. };
  5995. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  5996. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5997. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5998. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5999. msm_routing_put_audio_mixer),
  6000. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6001. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6002. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6003. msm_routing_put_audio_mixer),
  6004. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6005. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6006. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6007. msm_routing_put_audio_mixer),
  6008. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6009. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6010. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6011. msm_routing_put_audio_mixer),
  6012. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6013. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6014. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6015. msm_routing_put_audio_mixer),
  6016. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6017. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6018. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6019. msm_routing_put_audio_mixer),
  6020. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6021. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6022. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6023. msm_routing_put_audio_mixer),
  6024. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6025. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6026. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6027. msm_routing_put_audio_mixer),
  6028. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6029. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6030. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6031. msm_routing_put_audio_mixer),
  6032. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6033. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6034. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6035. msm_routing_put_audio_mixer),
  6036. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6037. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6038. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6039. msm_routing_put_audio_mixer),
  6040. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6041. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6042. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6043. msm_routing_put_audio_mixer),
  6044. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6045. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6046. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6047. msm_routing_put_audio_mixer),
  6048. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6049. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6050. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6051. msm_routing_put_audio_mixer),
  6052. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6053. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6054. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6055. msm_routing_put_audio_mixer),
  6056. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6057. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6058. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6059. msm_routing_put_audio_mixer),
  6060. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6061. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6062. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6063. msm_routing_put_audio_mixer),
  6064. };
  6065. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  6066. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6067. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6068. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6069. msm_routing_put_audio_mixer),
  6070. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6071. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6072. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6073. msm_routing_put_audio_mixer),
  6074. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6075. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6076. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6077. msm_routing_put_audio_mixer),
  6078. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6079. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6080. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6081. msm_routing_put_audio_mixer),
  6082. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6083. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6084. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6085. msm_routing_put_audio_mixer),
  6086. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6087. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6088. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6089. msm_routing_put_audio_mixer),
  6090. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6091. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6092. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6093. msm_routing_put_audio_mixer),
  6094. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6095. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6096. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6097. msm_routing_put_audio_mixer),
  6098. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6099. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6100. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6101. msm_routing_put_audio_mixer),
  6102. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6103. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6104. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6105. msm_routing_put_audio_mixer),
  6106. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6107. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6108. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6109. msm_routing_put_audio_mixer),
  6110. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6111. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6112. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6113. msm_routing_put_audio_mixer),
  6114. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6115. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6116. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6117. msm_routing_put_audio_mixer),
  6118. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6119. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6120. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6121. msm_routing_put_audio_mixer),
  6122. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6123. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6124. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6125. msm_routing_put_audio_mixer),
  6126. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6127. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6128. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6129. msm_routing_put_audio_mixer),
  6130. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6131. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6132. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6133. msm_routing_put_audio_mixer),
  6134. };
  6135. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  6136. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6137. MSM_BACKEND_DAI_SLIMBUS_9_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_SLIMBUS_9_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_SLIMBUS_9_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_SLIMBUS_9_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_SLIMBUS_9_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_SLIMBUS_9_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_SLIMBUS_9_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_SLIMBUS_9_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_SLIMBUS_9_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_SLIMBUS_9_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_SLIMBUS_9_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_SLIMBUS_9_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_SLIMBUS_9_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_SLIMBUS_9_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_SLIMBUS_9_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_SLIMBUS_9_RX,
  6198. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6199. msm_routing_put_audio_mixer),
  6200. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6201. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6202. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6203. msm_routing_put_audio_mixer),
  6204. };
  6205. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  6206. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6207. MSM_BACKEND_DAI_USB_RX,
  6208. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6209. msm_routing_put_audio_mixer),
  6210. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6211. MSM_BACKEND_DAI_USB_RX,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6215. MSM_BACKEND_DAI_USB_RX,
  6216. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6217. msm_routing_put_audio_mixer),
  6218. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6219. MSM_BACKEND_DAI_USB_RX,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6223. MSM_BACKEND_DAI_USB_RX,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6227. MSM_BACKEND_DAI_USB_RX,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6231. MSM_BACKEND_DAI_USB_RX,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6235. MSM_BACKEND_DAI_USB_RX,
  6236. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6237. msm_routing_put_audio_mixer),
  6238. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6239. MSM_BACKEND_DAI_USB_RX,
  6240. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6241. msm_routing_put_audio_mixer),
  6242. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6243. MSM_BACKEND_DAI_USB_RX,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6247. MSM_BACKEND_DAI_USB_RX,
  6248. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6249. msm_routing_put_audio_mixer),
  6250. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6251. MSM_BACKEND_DAI_USB_RX,
  6252. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6253. msm_routing_put_audio_mixer),
  6254. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6255. MSM_BACKEND_DAI_USB_RX,
  6256. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6257. msm_routing_put_audio_mixer),
  6258. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6259. MSM_BACKEND_DAI_USB_RX,
  6260. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6261. msm_routing_put_audio_mixer),
  6262. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6263. MSM_BACKEND_DAI_USB_RX,
  6264. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6265. msm_routing_put_audio_mixer),
  6266. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6267. MSM_BACKEND_DAI_USB_RX,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6271. MSM_BACKEND_DAI_USB_RX,
  6272. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6273. msm_routing_put_audio_mixer),
  6274. };
  6275. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  6276. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6277. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6278. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6279. msm_routing_put_audio_mixer),
  6280. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6281. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6282. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6283. msm_routing_put_audio_mixer),
  6284. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6285. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6286. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6287. msm_routing_put_audio_mixer),
  6288. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6289. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6293. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6297. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6298. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6299. msm_routing_put_audio_mixer),
  6300. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6301. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6302. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6303. msm_routing_put_audio_mixer),
  6304. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6305. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6309. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6310. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6311. msm_routing_put_audio_mixer),
  6312. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6313. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6314. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6315. msm_routing_put_audio_mixer),
  6316. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6317. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6321. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6322. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6323. msm_routing_put_audio_mixer),
  6324. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6325. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6329. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6345. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6349. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6357. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6358. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6359. msm_routing_put_audio_mixer),
  6360. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6361. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6362. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6363. msm_routing_put_audio_mixer),
  6364. };
  6365. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  6366. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6367. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6368. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6369. msm_routing_put_audio_mixer),
  6370. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6371. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6372. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6373. msm_routing_put_audio_mixer),
  6374. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6375. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6376. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6377. msm_routing_put_audio_mixer),
  6378. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6379. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6380. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6381. msm_routing_put_audio_mixer),
  6382. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6383. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6384. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6385. msm_routing_put_audio_mixer),
  6386. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6387. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6388. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6389. msm_routing_put_audio_mixer),
  6390. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6391. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6392. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6393. msm_routing_put_audio_mixer),
  6394. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6395. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6396. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6397. msm_routing_put_audio_mixer),
  6398. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6399. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6400. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6401. msm_routing_put_audio_mixer),
  6402. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6403. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6404. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6405. msm_routing_put_audio_mixer),
  6406. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6407. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6408. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6409. msm_routing_put_audio_mixer),
  6410. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6411. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6412. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6413. msm_routing_put_audio_mixer),
  6414. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6415. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6416. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6417. msm_routing_put_audio_mixer),
  6418. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6419. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6420. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6421. msm_routing_put_audio_mixer),
  6422. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6423. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6424. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6425. msm_routing_put_audio_mixer),
  6426. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6427. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6428. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6429. msm_routing_put_audio_mixer),
  6430. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6431. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6432. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6433. msm_routing_put_audio_mixer),
  6434. };
  6435. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  6436. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6437. MSM_BACKEND_DAI_INT_FM_RX,
  6438. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6439. msm_routing_put_audio_mixer),
  6440. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6441. MSM_BACKEND_DAI_INT_FM_RX,
  6442. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6443. msm_routing_put_audio_mixer),
  6444. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6445. MSM_BACKEND_DAI_INT_FM_RX,
  6446. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6447. msm_routing_put_audio_mixer),
  6448. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6449. MSM_BACKEND_DAI_INT_FM_RX,
  6450. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6451. msm_routing_put_audio_mixer),
  6452. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6453. MSM_BACKEND_DAI_INT_FM_RX,
  6454. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6455. msm_routing_put_audio_mixer),
  6456. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6457. MSM_BACKEND_DAI_INT_FM_RX,
  6458. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6459. msm_routing_put_audio_mixer),
  6460. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6461. MSM_BACKEND_DAI_INT_FM_RX,
  6462. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6463. msm_routing_put_audio_mixer),
  6464. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6465. MSM_BACKEND_DAI_INT_FM_RX,
  6466. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6467. msm_routing_put_audio_mixer),
  6468. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6469. MSM_BACKEND_DAI_INT_FM_RX,
  6470. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6471. msm_routing_put_audio_mixer),
  6472. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6473. MSM_BACKEND_DAI_INT_FM_RX,
  6474. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6475. msm_routing_put_audio_mixer),
  6476. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6477. MSM_BACKEND_DAI_INT_FM_RX,
  6478. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6479. msm_routing_put_audio_mixer),
  6480. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6481. MSM_BACKEND_DAI_INT_FM_RX,
  6482. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6483. msm_routing_put_audio_mixer),
  6484. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6485. MSM_BACKEND_DAI_INT_FM_RX,
  6486. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6487. msm_routing_put_audio_mixer),
  6488. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6489. MSM_BACKEND_DAI_INT_FM_RX,
  6490. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6491. msm_routing_put_audio_mixer),
  6492. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6493. MSM_BACKEND_DAI_INT_FM_RX,
  6494. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6495. msm_routing_put_audio_mixer),
  6496. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6497. MSM_BACKEND_DAI_INT_FM_RX,
  6498. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6499. msm_routing_put_audio_mixer),
  6500. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6501. MSM_BACKEND_DAI_INT_FM_RX,
  6502. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6503. msm_routing_put_audio_mixer),
  6504. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6505. MSM_BACKEND_DAI_INT_FM_RX,
  6506. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6507. msm_routing_put_audio_mixer),
  6508. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6509. MSM_BACKEND_DAI_INT_FM_RX,
  6510. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6511. msm_routing_put_audio_mixer),
  6512. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6513. MSM_BACKEND_DAI_INT_FM_RX,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6517. MSM_BACKEND_DAI_INT_FM_RX,
  6518. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6519. msm_routing_put_audio_mixer),
  6520. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6521. MSM_BACKEND_DAI_INT_FM_RX,
  6522. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6523. msm_routing_put_audio_mixer),
  6524. };
  6525. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  6526. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6527. MSM_BACKEND_DAI_AFE_PCM_RX,
  6528. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6529. msm_routing_put_audio_mixer),
  6530. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6531. MSM_BACKEND_DAI_AFE_PCM_RX,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6535. MSM_BACKEND_DAI_AFE_PCM_RX,
  6536. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6537. msm_routing_put_audio_mixer),
  6538. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6539. MSM_BACKEND_DAI_AFE_PCM_RX,
  6540. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6541. msm_routing_put_audio_mixer),
  6542. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6543. MSM_BACKEND_DAI_AFE_PCM_RX,
  6544. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6545. msm_routing_put_audio_mixer),
  6546. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6547. MSM_BACKEND_DAI_AFE_PCM_RX,
  6548. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6549. msm_routing_put_audio_mixer),
  6550. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6551. MSM_BACKEND_DAI_AFE_PCM_RX,
  6552. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6553. msm_routing_put_audio_mixer),
  6554. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6555. MSM_BACKEND_DAI_AFE_PCM_RX,
  6556. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6557. msm_routing_put_audio_mixer),
  6558. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6559. MSM_BACKEND_DAI_AFE_PCM_RX,
  6560. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6561. msm_routing_put_audio_mixer),
  6562. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6563. MSM_BACKEND_DAI_AFE_PCM_RX,
  6564. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6565. msm_routing_put_audio_mixer),
  6566. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6567. MSM_BACKEND_DAI_AFE_PCM_RX,
  6568. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6569. msm_routing_put_audio_mixer),
  6570. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6571. MSM_BACKEND_DAI_AFE_PCM_RX,
  6572. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6573. msm_routing_put_audio_mixer),
  6574. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6575. MSM_BACKEND_DAI_AFE_PCM_RX,
  6576. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6577. msm_routing_put_audio_mixer),
  6578. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6579. MSM_BACKEND_DAI_AFE_PCM_RX,
  6580. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6583. MSM_BACKEND_DAI_AFE_PCM_RX,
  6584. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6585. msm_routing_put_audio_mixer),
  6586. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6587. MSM_BACKEND_DAI_AFE_PCM_RX,
  6588. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6589. msm_routing_put_audio_mixer),
  6590. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6591. MSM_BACKEND_DAI_AFE_PCM_RX,
  6592. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6593. msm_routing_put_audio_mixer),
  6594. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6595. MSM_BACKEND_DAI_AFE_PCM_RX,
  6596. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6597. msm_routing_put_audio_mixer),
  6598. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6599. MSM_BACKEND_DAI_AFE_PCM_RX,
  6600. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6601. msm_routing_put_audio_mixer),
  6602. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6603. MSM_BACKEND_DAI_AFE_PCM_RX,
  6604. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6605. msm_routing_put_audio_mixer),
  6606. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6607. MSM_BACKEND_DAI_AFE_PCM_RX,
  6608. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6609. msm_routing_put_audio_mixer),
  6610. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6611. MSM_BACKEND_DAI_AFE_PCM_RX,
  6612. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6613. msm_routing_put_audio_mixer),
  6614. };
  6615. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  6616. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6617. MSM_BACKEND_DAI_AUXPCM_RX,
  6618. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6619. msm_routing_put_audio_mixer),
  6620. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6621. MSM_BACKEND_DAI_AUXPCM_RX,
  6622. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6623. msm_routing_put_audio_mixer),
  6624. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6625. MSM_BACKEND_DAI_AUXPCM_RX,
  6626. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6627. msm_routing_put_audio_mixer),
  6628. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6629. MSM_BACKEND_DAI_AUXPCM_RX,
  6630. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6631. msm_routing_put_audio_mixer),
  6632. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6633. MSM_BACKEND_DAI_AUXPCM_RX,
  6634. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6635. msm_routing_put_audio_mixer),
  6636. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6637. MSM_BACKEND_DAI_AUXPCM_RX,
  6638. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6639. msm_routing_put_audio_mixer),
  6640. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6641. MSM_BACKEND_DAI_AUXPCM_RX,
  6642. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6643. msm_routing_put_audio_mixer),
  6644. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6645. MSM_BACKEND_DAI_AUXPCM_RX,
  6646. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6647. msm_routing_put_audio_mixer),
  6648. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6649. MSM_BACKEND_DAI_AUXPCM_RX,
  6650. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6651. msm_routing_put_audio_mixer),
  6652. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6653. MSM_BACKEND_DAI_AUXPCM_RX,
  6654. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6655. msm_routing_put_audio_mixer),
  6656. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6657. MSM_BACKEND_DAI_AUXPCM_RX,
  6658. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6659. msm_routing_put_audio_mixer),
  6660. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6661. MSM_BACKEND_DAI_AUXPCM_RX,
  6662. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6663. msm_routing_put_audio_mixer),
  6664. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6665. MSM_BACKEND_DAI_AUXPCM_RX,
  6666. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6667. msm_routing_put_audio_mixer),
  6668. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6669. MSM_BACKEND_DAI_AUXPCM_RX,
  6670. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6671. msm_routing_put_audio_mixer),
  6672. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6673. MSM_BACKEND_DAI_AUXPCM_RX,
  6674. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6675. msm_routing_put_audio_mixer),
  6676. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6677. MSM_BACKEND_DAI_AUXPCM_RX,
  6678. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6679. msm_routing_put_audio_mixer),
  6680. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6681. MSM_BACKEND_DAI_AUXPCM_RX,
  6682. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6683. msm_routing_put_audio_mixer),
  6684. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6685. MSM_BACKEND_DAI_AUXPCM_RX,
  6686. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6687. msm_routing_put_audio_mixer),
  6688. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6689. MSM_BACKEND_DAI_AUXPCM_RX,
  6690. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6691. msm_routing_put_audio_mixer),
  6692. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6693. MSM_BACKEND_DAI_AUXPCM_RX,
  6694. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6695. msm_routing_put_audio_mixer),
  6696. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6697. MSM_BACKEND_DAI_AUXPCM_RX,
  6698. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6699. msm_routing_put_audio_mixer),
  6700. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6701. MSM_BACKEND_DAI_AUXPCM_RX,
  6702. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6703. msm_routing_put_audio_mixer),
  6704. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6705. MSM_BACKEND_DAI_AUXPCM_RX,
  6706. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6707. msm_routing_put_audio_mixer),
  6708. };
  6709. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  6710. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6711. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6712. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6713. msm_routing_put_audio_mixer),
  6714. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6715. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6716. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6717. msm_routing_put_audio_mixer),
  6718. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6719. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6720. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6721. msm_routing_put_audio_mixer),
  6722. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6723. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6724. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6725. msm_routing_put_audio_mixer),
  6726. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6727. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6728. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6729. msm_routing_put_audio_mixer),
  6730. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6731. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6732. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6733. msm_routing_put_audio_mixer),
  6734. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6735. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6736. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6737. msm_routing_put_audio_mixer),
  6738. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6739. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6740. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6741. msm_routing_put_audio_mixer),
  6742. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6743. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6744. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6745. msm_routing_put_audio_mixer),
  6746. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6747. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6748. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6749. msm_routing_put_audio_mixer),
  6750. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6751. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6752. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6753. msm_routing_put_audio_mixer),
  6754. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6755. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6756. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6757. msm_routing_put_audio_mixer),
  6758. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6759. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6760. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6761. msm_routing_put_audio_mixer),
  6762. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6763. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6764. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6765. msm_routing_put_audio_mixer),
  6766. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6767. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6768. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6769. msm_routing_put_audio_mixer),
  6770. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6771. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6772. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6773. msm_routing_put_audio_mixer),
  6774. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6775. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6776. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6777. msm_routing_put_audio_mixer),
  6778. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6779. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6780. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6781. msm_routing_put_audio_mixer),
  6782. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6783. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6784. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6785. msm_routing_put_audio_mixer),
  6786. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6787. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6788. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6789. msm_routing_put_audio_mixer),
  6790. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6791. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6792. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6793. msm_routing_put_audio_mixer),
  6794. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6795. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6796. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6799. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6800. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6801. msm_routing_put_audio_mixer),
  6802. };
  6803. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  6804. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6805. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6806. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6807. msm_routing_put_audio_mixer),
  6808. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6809. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6810. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6811. msm_routing_put_audio_mixer),
  6812. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6813. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6814. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6815. msm_routing_put_audio_mixer),
  6816. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6817. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6818. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6819. msm_routing_put_audio_mixer),
  6820. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6821. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6822. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6823. msm_routing_put_audio_mixer),
  6824. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6825. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6826. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6827. msm_routing_put_audio_mixer),
  6828. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6829. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6830. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6831. msm_routing_put_audio_mixer),
  6832. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6833. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6834. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6835. msm_routing_put_audio_mixer),
  6836. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6837. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6838. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6839. msm_routing_put_audio_mixer),
  6840. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6841. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6842. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6843. msm_routing_put_audio_mixer),
  6844. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6845. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6846. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6847. msm_routing_put_audio_mixer),
  6848. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6849. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6850. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6851. msm_routing_put_audio_mixer),
  6852. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6853. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6854. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6855. msm_routing_put_audio_mixer),
  6856. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6857. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6858. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6859. msm_routing_put_audio_mixer),
  6860. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6861. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6862. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6863. msm_routing_put_audio_mixer),
  6864. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6865. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6866. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6867. msm_routing_put_audio_mixer),
  6868. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6869. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6870. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6871. msm_routing_put_audio_mixer),
  6872. };
  6873. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  6874. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6875. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6876. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6877. msm_routing_put_audio_mixer),
  6878. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6879. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6880. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6881. msm_routing_put_audio_mixer),
  6882. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6883. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6884. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6885. msm_routing_put_audio_mixer),
  6886. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6887. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6888. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6889. msm_routing_put_audio_mixer),
  6890. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6891. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6892. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6893. msm_routing_put_audio_mixer),
  6894. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6895. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6896. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6897. msm_routing_put_audio_mixer),
  6898. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6899. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6900. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6901. msm_routing_put_audio_mixer),
  6902. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6903. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6904. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6905. msm_routing_put_audio_mixer),
  6906. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6907. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6908. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6909. msm_routing_put_audio_mixer),
  6910. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6911. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6912. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6913. msm_routing_put_audio_mixer),
  6914. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6915. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6916. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6917. msm_routing_put_audio_mixer),
  6918. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6919. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6920. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6921. msm_routing_put_audio_mixer),
  6922. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6923. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6924. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6925. msm_routing_put_audio_mixer),
  6926. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6927. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6928. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6929. msm_routing_put_audio_mixer),
  6930. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6931. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6932. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6933. msm_routing_put_audio_mixer),
  6934. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6935. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6936. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6937. msm_routing_put_audio_mixer),
  6938. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6939. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6940. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6941. msm_routing_put_audio_mixer),
  6942. };
  6943. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  6944. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6945. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6946. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6947. msm_routing_put_audio_mixer),
  6948. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6949. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6950. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6951. msm_routing_put_audio_mixer),
  6952. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6953. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6954. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6955. msm_routing_put_audio_mixer),
  6956. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6957. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6958. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6959. msm_routing_put_audio_mixer),
  6960. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6961. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6962. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6963. msm_routing_put_audio_mixer),
  6964. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6965. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6966. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6967. msm_routing_put_audio_mixer),
  6968. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6969. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6970. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6971. msm_routing_put_audio_mixer),
  6972. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6973. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6974. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6975. msm_routing_put_audio_mixer),
  6976. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6977. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6978. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6979. msm_routing_put_audio_mixer),
  6980. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6981. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6982. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6983. msm_routing_put_audio_mixer),
  6984. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6985. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6986. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6987. msm_routing_put_audio_mixer),
  6988. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6989. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6990. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6991. msm_routing_put_audio_mixer),
  6992. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6993. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6994. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6995. msm_routing_put_audio_mixer),
  6996. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6997. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6998. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6999. msm_routing_put_audio_mixer),
  7000. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7001. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7002. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7003. msm_routing_put_audio_mixer),
  7004. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7005. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7006. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7007. msm_routing_put_audio_mixer),
  7008. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7009. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7010. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7011. msm_routing_put_audio_mixer),
  7012. };
  7013. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  7014. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7015. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7016. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7017. msm_routing_put_audio_mixer),
  7018. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7019. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7020. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7021. msm_routing_put_audio_mixer),
  7022. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7023. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7024. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7025. msm_routing_put_audio_mixer),
  7026. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7027. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7028. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7029. msm_routing_put_audio_mixer),
  7030. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7031. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7032. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7033. msm_routing_put_audio_mixer),
  7034. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7035. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7036. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7037. msm_routing_put_audio_mixer),
  7038. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7039. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7040. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7041. msm_routing_put_audio_mixer),
  7042. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7043. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7044. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7045. msm_routing_put_audio_mixer),
  7046. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7047. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7048. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7049. msm_routing_put_audio_mixer),
  7050. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7051. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7052. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7053. msm_routing_put_audio_mixer),
  7054. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7055. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7056. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7057. msm_routing_put_audio_mixer),
  7058. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7059. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7060. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7061. msm_routing_put_audio_mixer),
  7062. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7063. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7064. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7065. msm_routing_put_audio_mixer),
  7066. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7067. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7068. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7069. msm_routing_put_audio_mixer),
  7070. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7071. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7072. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7073. msm_routing_put_audio_mixer),
  7074. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7075. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7076. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7077. msm_routing_put_audio_mixer),
  7078. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7079. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7080. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7081. msm_routing_put_audio_mixer),
  7082. };
  7083. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  7084. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7085. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7086. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7087. msm_routing_put_audio_mixer),
  7088. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7089. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7090. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7091. msm_routing_put_audio_mixer),
  7092. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7093. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7094. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7095. msm_routing_put_audio_mixer),
  7096. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7097. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7098. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7099. msm_routing_put_audio_mixer),
  7100. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7101. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7102. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7103. msm_routing_put_audio_mixer),
  7104. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7105. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7106. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7107. msm_routing_put_audio_mixer),
  7108. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7109. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7110. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7111. msm_routing_put_audio_mixer),
  7112. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7113. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7114. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7115. msm_routing_put_audio_mixer),
  7116. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7117. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7118. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7119. msm_routing_put_audio_mixer),
  7120. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7121. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7122. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7123. msm_routing_put_audio_mixer),
  7124. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7125. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7126. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7127. msm_routing_put_audio_mixer),
  7128. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7129. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7130. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7131. msm_routing_put_audio_mixer),
  7132. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7133. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7134. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7135. msm_routing_put_audio_mixer),
  7136. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7137. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7138. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7139. msm_routing_put_audio_mixer),
  7140. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7141. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7142. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7143. msm_routing_put_audio_mixer),
  7144. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7145. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7146. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7147. msm_routing_put_audio_mixer),
  7148. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7149. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7150. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7151. msm_routing_put_audio_mixer),
  7152. };
  7153. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  7154. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7155. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7156. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7157. msm_routing_put_audio_mixer),
  7158. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7159. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7160. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7161. msm_routing_put_audio_mixer),
  7162. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7163. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7164. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7165. msm_routing_put_audio_mixer),
  7166. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7167. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7168. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7169. msm_routing_put_audio_mixer),
  7170. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7171. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7172. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7173. msm_routing_put_audio_mixer),
  7174. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7175. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7176. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7177. msm_routing_put_audio_mixer),
  7178. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7179. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7180. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7181. msm_routing_put_audio_mixer),
  7182. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7183. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7184. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7185. msm_routing_put_audio_mixer),
  7186. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7187. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7188. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7189. msm_routing_put_audio_mixer),
  7190. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7191. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7192. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7193. msm_routing_put_audio_mixer),
  7194. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7195. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7196. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7197. msm_routing_put_audio_mixer),
  7198. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7199. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7200. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7201. msm_routing_put_audio_mixer),
  7202. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7203. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7204. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7205. msm_routing_put_audio_mixer),
  7206. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7207. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7208. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7209. msm_routing_put_audio_mixer),
  7210. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7211. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7212. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7213. msm_routing_put_audio_mixer),
  7214. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7215. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7216. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7217. msm_routing_put_audio_mixer),
  7218. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7219. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7220. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7221. msm_routing_put_audio_mixer),
  7222. };
  7223. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  7224. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7225. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7226. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7227. msm_routing_put_audio_mixer),
  7228. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7229. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7230. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7231. msm_routing_put_audio_mixer),
  7232. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7233. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7234. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7235. msm_routing_put_audio_mixer),
  7236. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7237. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7238. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7239. msm_routing_put_audio_mixer),
  7240. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7241. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7242. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7243. msm_routing_put_audio_mixer),
  7244. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7245. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7246. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7247. msm_routing_put_audio_mixer),
  7248. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7249. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7250. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7251. msm_routing_put_audio_mixer),
  7252. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7253. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7254. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7255. msm_routing_put_audio_mixer),
  7256. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7257. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7258. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7259. msm_routing_put_audio_mixer),
  7260. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7261. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7262. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7263. msm_routing_put_audio_mixer),
  7264. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7265. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7266. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7267. msm_routing_put_audio_mixer),
  7268. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7269. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7270. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7271. msm_routing_put_audio_mixer),
  7272. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7273. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7274. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7275. msm_routing_put_audio_mixer),
  7276. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7277. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7278. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7279. msm_routing_put_audio_mixer),
  7280. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7281. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7282. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7283. msm_routing_put_audio_mixer),
  7284. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7285. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7286. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7287. msm_routing_put_audio_mixer),
  7288. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7289. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7290. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7291. msm_routing_put_audio_mixer),
  7292. };
  7293. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  7294. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7295. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7296. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7297. msm_routing_put_audio_mixer),
  7298. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7299. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7300. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7301. msm_routing_put_audio_mixer),
  7302. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7303. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7304. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7305. msm_routing_put_audio_mixer),
  7306. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7307. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7308. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7309. msm_routing_put_audio_mixer),
  7310. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7311. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7312. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7313. msm_routing_put_audio_mixer),
  7314. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7315. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7316. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7317. msm_routing_put_audio_mixer),
  7318. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7319. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7320. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7321. msm_routing_put_audio_mixer),
  7322. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7323. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7324. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7325. msm_routing_put_audio_mixer),
  7326. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7327. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7328. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7329. msm_routing_put_audio_mixer),
  7330. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7331. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7332. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7333. msm_routing_put_audio_mixer),
  7334. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7335. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7336. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7337. msm_routing_put_audio_mixer),
  7338. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7339. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7340. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7341. msm_routing_put_audio_mixer),
  7342. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7343. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7344. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7345. msm_routing_put_audio_mixer),
  7346. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7347. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7348. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7349. msm_routing_put_audio_mixer),
  7350. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7351. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7352. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7353. msm_routing_put_audio_mixer),
  7354. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7355. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7356. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7357. msm_routing_put_audio_mixer),
  7358. };
  7359. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  7360. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7361. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7362. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7363. msm_routing_put_audio_mixer),
  7364. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7365. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7366. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7367. msm_routing_put_audio_mixer),
  7368. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7369. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7370. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7371. msm_routing_put_audio_mixer),
  7372. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7373. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7374. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7375. msm_routing_put_audio_mixer),
  7376. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7377. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7378. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7379. msm_routing_put_audio_mixer),
  7380. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7381. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7382. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7383. msm_routing_put_audio_mixer),
  7384. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7385. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7386. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7387. msm_routing_put_audio_mixer),
  7388. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7389. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7390. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7391. msm_routing_put_audio_mixer),
  7392. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7393. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7394. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7395. msm_routing_put_audio_mixer),
  7396. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7397. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7398. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7399. msm_routing_put_audio_mixer),
  7400. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7401. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7402. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7403. msm_routing_put_audio_mixer),
  7404. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7405. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7406. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7407. msm_routing_put_audio_mixer),
  7408. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7409. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7410. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7411. msm_routing_put_audio_mixer),
  7412. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7413. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7414. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7415. msm_routing_put_audio_mixer),
  7416. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7417. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7418. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7419. msm_routing_put_audio_mixer),
  7420. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7421. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7422. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7423. msm_routing_put_audio_mixer),
  7424. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7425. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7426. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7427. msm_routing_put_audio_mixer),
  7428. };
  7429. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  7430. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7431. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7432. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7433. msm_routing_put_audio_mixer),
  7434. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7435. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7436. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7437. msm_routing_put_audio_mixer),
  7438. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7439. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7440. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7441. msm_routing_put_audio_mixer),
  7442. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7443. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7444. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7445. msm_routing_put_audio_mixer),
  7446. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7447. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7448. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7449. msm_routing_put_audio_mixer),
  7450. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7451. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7452. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7453. msm_routing_put_audio_mixer),
  7454. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7455. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7456. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7457. msm_routing_put_audio_mixer),
  7458. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7459. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7460. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7461. msm_routing_put_audio_mixer),
  7462. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7463. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7464. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7465. msm_routing_put_audio_mixer),
  7466. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7467. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7468. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7469. msm_routing_put_audio_mixer),
  7470. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7471. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7472. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7473. msm_routing_put_audio_mixer),
  7474. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7475. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7476. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7477. msm_routing_put_audio_mixer),
  7478. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7479. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7480. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7481. msm_routing_put_audio_mixer),
  7482. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7483. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7484. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7485. msm_routing_put_audio_mixer),
  7486. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7487. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7488. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7489. msm_routing_put_audio_mixer),
  7490. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7491. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7492. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7493. msm_routing_put_audio_mixer),
  7494. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7495. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7496. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7497. msm_routing_put_audio_mixer),
  7498. };
  7499. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  7500. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7501. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7502. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7503. msm_routing_put_audio_mixer),
  7504. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7505. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7506. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7507. msm_routing_put_audio_mixer),
  7508. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7509. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7510. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7511. msm_routing_put_audio_mixer),
  7512. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7513. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7514. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7515. msm_routing_put_audio_mixer),
  7516. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7517. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7518. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7519. msm_routing_put_audio_mixer),
  7520. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7521. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7522. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7523. msm_routing_put_audio_mixer),
  7524. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7525. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7526. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7527. msm_routing_put_audio_mixer),
  7528. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7529. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7530. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7531. msm_routing_put_audio_mixer),
  7532. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7533. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7534. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7535. msm_routing_put_audio_mixer),
  7536. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7537. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7538. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7539. msm_routing_put_audio_mixer),
  7540. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7541. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7542. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7543. msm_routing_put_audio_mixer),
  7544. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7545. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7546. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7547. msm_routing_put_audio_mixer),
  7548. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7549. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7550. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7551. msm_routing_put_audio_mixer),
  7552. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7553. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7554. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7555. msm_routing_put_audio_mixer),
  7556. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7557. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7558. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7559. msm_routing_put_audio_mixer),
  7560. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7561. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7562. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7563. msm_routing_put_audio_mixer),
  7564. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7565. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7566. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7567. msm_routing_put_audio_mixer),
  7568. };
  7569. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  7570. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7571. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7572. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7573. msm_routing_put_audio_mixer),
  7574. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7575. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7576. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7577. msm_routing_put_audio_mixer),
  7578. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7579. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7580. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7581. msm_routing_put_audio_mixer),
  7582. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7583. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7584. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7585. msm_routing_put_audio_mixer),
  7586. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7587. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7588. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7589. msm_routing_put_audio_mixer),
  7590. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7591. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7592. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7593. msm_routing_put_audio_mixer),
  7594. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7595. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7596. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7597. msm_routing_put_audio_mixer),
  7598. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7599. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7600. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7601. msm_routing_put_audio_mixer),
  7602. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7603. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7604. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7605. msm_routing_put_audio_mixer),
  7606. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7607. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7608. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7609. msm_routing_put_audio_mixer),
  7610. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7611. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7612. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7613. msm_routing_put_audio_mixer),
  7614. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7615. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7616. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7617. msm_routing_put_audio_mixer),
  7618. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7619. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7620. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7621. msm_routing_put_audio_mixer),
  7622. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7623. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7624. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7625. msm_routing_put_audio_mixer),
  7626. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7627. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7628. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7629. msm_routing_put_audio_mixer),
  7630. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7631. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7632. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7633. msm_routing_put_audio_mixer),
  7634. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7635. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7636. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7637. msm_routing_put_audio_mixer),
  7638. };
  7639. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  7640. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7641. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7642. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7643. msm_routing_put_audio_mixer),
  7644. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7645. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7646. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7647. msm_routing_put_audio_mixer),
  7648. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7649. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7650. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7651. msm_routing_put_audio_mixer),
  7652. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7653. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7654. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7655. msm_routing_put_audio_mixer),
  7656. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7657. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7658. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7659. msm_routing_put_audio_mixer),
  7660. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7661. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7662. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7663. msm_routing_put_audio_mixer),
  7664. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7665. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7666. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7667. msm_routing_put_audio_mixer),
  7668. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7669. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7670. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7671. msm_routing_put_audio_mixer),
  7672. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7673. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7674. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7675. msm_routing_put_audio_mixer),
  7676. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7677. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7678. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7679. msm_routing_put_audio_mixer),
  7680. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7681. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7682. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7683. msm_routing_put_audio_mixer),
  7684. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7685. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7686. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7687. msm_routing_put_audio_mixer),
  7688. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7689. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7690. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7691. msm_routing_put_audio_mixer),
  7692. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7693. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7694. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7695. msm_routing_put_audio_mixer),
  7696. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7697. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7698. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7699. msm_routing_put_audio_mixer),
  7700. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7701. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7702. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7703. msm_routing_put_audio_mixer),
  7704. };
  7705. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  7706. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7707. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7708. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7709. msm_routing_put_audio_mixer),
  7710. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7711. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7712. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7713. msm_routing_put_audio_mixer),
  7714. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7715. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7716. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7717. msm_routing_put_audio_mixer),
  7718. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7719. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7720. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7721. msm_routing_put_audio_mixer),
  7722. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7723. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7724. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7725. msm_routing_put_audio_mixer),
  7726. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7727. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7728. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7729. msm_routing_put_audio_mixer),
  7730. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7731. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7732. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7733. msm_routing_put_audio_mixer),
  7734. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7735. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7736. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7737. msm_routing_put_audio_mixer),
  7738. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7739. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7740. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7741. msm_routing_put_audio_mixer),
  7742. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7743. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7744. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7745. msm_routing_put_audio_mixer),
  7746. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7747. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7748. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7749. msm_routing_put_audio_mixer),
  7750. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7751. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7752. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7753. msm_routing_put_audio_mixer),
  7754. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7755. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7756. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7757. msm_routing_put_audio_mixer),
  7758. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7759. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7760. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7761. msm_routing_put_audio_mixer),
  7762. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7763. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7764. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7765. msm_routing_put_audio_mixer),
  7766. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7767. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7768. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7769. msm_routing_put_audio_mixer),
  7770. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7771. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7772. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7773. msm_routing_put_audio_mixer),
  7774. };
  7775. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  7776. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7777. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7778. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7779. msm_routing_put_audio_mixer),
  7780. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7781. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7782. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7783. msm_routing_put_audio_mixer),
  7784. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7785. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7786. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7787. msm_routing_put_audio_mixer),
  7788. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7789. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7790. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7791. msm_routing_put_audio_mixer),
  7792. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7793. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7794. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7795. msm_routing_put_audio_mixer),
  7796. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7797. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7798. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7799. msm_routing_put_audio_mixer),
  7800. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7801. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7802. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7803. msm_routing_put_audio_mixer),
  7804. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7805. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7806. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7807. msm_routing_put_audio_mixer),
  7808. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7809. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7810. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7811. msm_routing_put_audio_mixer),
  7812. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7813. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7814. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7815. msm_routing_put_audio_mixer),
  7816. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7817. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7818. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7819. msm_routing_put_audio_mixer),
  7820. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7821. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7822. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7823. msm_routing_put_audio_mixer),
  7824. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7825. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7826. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7827. msm_routing_put_audio_mixer),
  7828. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7829. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7830. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7831. msm_routing_put_audio_mixer),
  7832. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7833. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7834. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7835. msm_routing_put_audio_mixer),
  7836. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7837. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7838. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7839. msm_routing_put_audio_mixer),
  7840. };
  7841. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  7842. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7843. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7844. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7845. msm_routing_put_audio_mixer),
  7846. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7847. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7848. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7849. msm_routing_put_audio_mixer),
  7850. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7851. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7852. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7853. msm_routing_put_audio_mixer),
  7854. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7855. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7856. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7857. msm_routing_put_audio_mixer),
  7858. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7859. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7860. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7861. msm_routing_put_audio_mixer),
  7862. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7863. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7864. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7865. msm_routing_put_audio_mixer),
  7866. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7867. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7868. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7869. msm_routing_put_audio_mixer),
  7870. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7871. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7872. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7873. msm_routing_put_audio_mixer),
  7874. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7875. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7876. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7877. msm_routing_put_audio_mixer),
  7878. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7879. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7880. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7881. msm_routing_put_audio_mixer),
  7882. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7883. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7884. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7885. msm_routing_put_audio_mixer),
  7886. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7887. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7888. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7889. msm_routing_put_audio_mixer),
  7890. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7891. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7892. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7893. msm_routing_put_audio_mixer),
  7894. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7895. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7896. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7897. msm_routing_put_audio_mixer),
  7898. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7899. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7900. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7901. msm_routing_put_audio_mixer),
  7902. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7903. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7904. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7905. msm_routing_put_audio_mixer),
  7906. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7907. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7908. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7909. msm_routing_put_audio_mixer),
  7910. };
  7911. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  7912. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7913. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7914. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7915. msm_routing_put_audio_mixer),
  7916. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7917. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7918. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7919. msm_routing_put_audio_mixer),
  7920. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7921. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7922. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7923. msm_routing_put_audio_mixer),
  7924. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7925. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7926. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7927. msm_routing_put_audio_mixer),
  7928. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7929. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7930. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7931. msm_routing_put_audio_mixer),
  7932. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7933. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7934. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7935. msm_routing_put_audio_mixer),
  7936. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7937. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7938. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7939. msm_routing_put_audio_mixer),
  7940. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7941. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7942. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7943. msm_routing_put_audio_mixer),
  7944. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7945. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7946. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7947. msm_routing_put_audio_mixer),
  7948. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7949. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7950. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7951. msm_routing_put_audio_mixer),
  7952. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7953. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7954. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7955. msm_routing_put_audio_mixer),
  7956. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7957. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7958. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7959. msm_routing_put_audio_mixer),
  7960. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7961. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7962. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7963. msm_routing_put_audio_mixer),
  7964. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7965. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7966. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7967. msm_routing_put_audio_mixer),
  7968. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7969. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7970. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7971. msm_routing_put_audio_mixer),
  7972. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7973. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7974. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7975. msm_routing_put_audio_mixer),
  7976. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7977. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7978. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7979. msm_routing_put_audio_mixer),
  7980. };
  7981. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  7982. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7983. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7984. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7985. msm_routing_put_audio_mixer),
  7986. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7987. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7988. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7989. msm_routing_put_audio_mixer),
  7990. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7991. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7992. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7993. msm_routing_put_audio_mixer),
  7994. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7995. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7996. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7997. msm_routing_put_audio_mixer),
  7998. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7999. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8000. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8001. msm_routing_put_audio_mixer),
  8002. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8003. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8004. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8005. msm_routing_put_audio_mixer),
  8006. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8007. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8008. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8009. msm_routing_put_audio_mixer),
  8010. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8011. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8012. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8013. msm_routing_put_audio_mixer),
  8014. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8015. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8016. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8017. msm_routing_put_audio_mixer),
  8018. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8019. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8020. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8021. msm_routing_put_audio_mixer),
  8022. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8023. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8024. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8025. msm_routing_put_audio_mixer),
  8026. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8027. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8028. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8029. msm_routing_put_audio_mixer),
  8030. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8031. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8032. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8033. msm_routing_put_audio_mixer),
  8034. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8035. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8036. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8037. msm_routing_put_audio_mixer),
  8038. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8039. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8040. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8041. msm_routing_put_audio_mixer),
  8042. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8043. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8044. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8045. msm_routing_put_audio_mixer),
  8046. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8047. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8048. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8049. msm_routing_put_audio_mixer),
  8050. };
  8051. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  8052. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8053. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8054. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8055. msm_routing_put_audio_mixer),
  8056. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8057. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8058. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8059. msm_routing_put_audio_mixer),
  8060. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8061. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8062. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8063. msm_routing_put_audio_mixer),
  8064. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8065. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8066. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8067. msm_routing_put_audio_mixer),
  8068. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8069. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8070. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8071. msm_routing_put_audio_mixer),
  8072. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8073. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8074. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8075. msm_routing_put_audio_mixer),
  8076. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8077. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8078. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8079. msm_routing_put_audio_mixer),
  8080. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8081. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8082. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8083. msm_routing_put_audio_mixer),
  8084. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8085. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8086. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8087. msm_routing_put_audio_mixer),
  8088. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8089. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8090. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8091. msm_routing_put_audio_mixer),
  8092. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8093. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8094. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8095. msm_routing_put_audio_mixer),
  8096. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8097. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8098. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8099. msm_routing_put_audio_mixer),
  8100. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8101. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8102. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8103. msm_routing_put_audio_mixer),
  8104. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8105. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8106. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8107. msm_routing_put_audio_mixer),
  8108. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8109. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8110. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8111. msm_routing_put_audio_mixer),
  8112. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8113. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8114. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8115. msm_routing_put_audio_mixer),
  8116. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8117. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8118. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8119. msm_routing_put_audio_mixer),
  8120. };
  8121. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  8122. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8123. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8124. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8125. msm_routing_put_audio_mixer),
  8126. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8127. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8128. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8129. msm_routing_put_audio_mixer),
  8130. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8131. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8132. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8133. msm_routing_put_audio_mixer),
  8134. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8135. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8136. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8137. msm_routing_put_audio_mixer),
  8138. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8139. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8140. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8141. msm_routing_put_audio_mixer),
  8142. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8143. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8144. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8145. msm_routing_put_audio_mixer),
  8146. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8147. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8148. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8149. msm_routing_put_audio_mixer),
  8150. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8151. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8152. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8153. msm_routing_put_audio_mixer),
  8154. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8155. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8156. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8157. msm_routing_put_audio_mixer),
  8158. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8159. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8160. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8161. msm_routing_put_audio_mixer),
  8162. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8163. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8164. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8165. msm_routing_put_audio_mixer),
  8166. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8167. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8168. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8169. msm_routing_put_audio_mixer),
  8170. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8171. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8172. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8173. msm_routing_put_audio_mixer),
  8174. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8175. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8176. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8177. msm_routing_put_audio_mixer),
  8178. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8179. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8180. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8181. msm_routing_put_audio_mixer),
  8182. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8183. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8184. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8185. msm_routing_put_audio_mixer),
  8186. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8187. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8188. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8189. msm_routing_put_audio_mixer),
  8190. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8191. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8192. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8193. msm_routing_put_audio_mixer),
  8194. };
  8195. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  8196. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8197. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8198. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8199. msm_routing_put_audio_mixer),
  8200. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8201. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8202. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8203. msm_routing_put_audio_mixer),
  8204. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8205. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8206. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8207. msm_routing_put_audio_mixer),
  8208. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8209. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8210. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8211. msm_routing_put_audio_mixer),
  8212. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8213. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8214. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8215. msm_routing_put_audio_mixer),
  8216. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8217. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8218. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8219. msm_routing_put_audio_mixer),
  8220. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8221. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8222. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8223. msm_routing_put_audio_mixer),
  8224. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8225. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8226. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8227. msm_routing_put_audio_mixer),
  8228. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8229. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8230. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8231. msm_routing_put_audio_mixer),
  8232. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8233. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8234. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8235. msm_routing_put_audio_mixer),
  8236. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8237. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8238. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8239. msm_routing_put_audio_mixer),
  8240. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8241. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8242. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8243. msm_routing_put_audio_mixer),
  8244. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8245. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8246. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8247. msm_routing_put_audio_mixer),
  8248. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8249. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8250. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8251. msm_routing_put_audio_mixer),
  8252. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8253. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8254. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8255. msm_routing_put_audio_mixer),
  8256. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8257. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8258. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8259. msm_routing_put_audio_mixer),
  8260. };
  8261. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  8262. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8263. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8264. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8265. msm_routing_put_audio_mixer),
  8266. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8267. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8268. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8269. msm_routing_put_audio_mixer),
  8270. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8271. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8272. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8273. msm_routing_put_audio_mixer),
  8274. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8275. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8276. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8277. msm_routing_put_audio_mixer),
  8278. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8279. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8280. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8281. msm_routing_put_audio_mixer),
  8282. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8283. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8284. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8285. msm_routing_put_audio_mixer),
  8286. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8287. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8288. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8289. msm_routing_put_audio_mixer),
  8290. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8291. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8292. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8293. msm_routing_put_audio_mixer),
  8294. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8295. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8296. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8297. msm_routing_put_audio_mixer),
  8298. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8299. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8300. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8301. msm_routing_put_audio_mixer),
  8302. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8303. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8304. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8305. msm_routing_put_audio_mixer),
  8306. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8307. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8308. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8309. msm_routing_put_audio_mixer),
  8310. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8311. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8312. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8313. msm_routing_put_audio_mixer),
  8314. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8315. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8316. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8317. msm_routing_put_audio_mixer),
  8318. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8319. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8320. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8321. msm_routing_put_audio_mixer),
  8322. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8323. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8324. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8325. msm_routing_put_audio_mixer),
  8326. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8327. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8328. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8329. msm_routing_put_audio_mixer),
  8330. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8331. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8332. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8333. msm_routing_put_audio_mixer),
  8334. };
  8335. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  8336. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8337. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8338. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8339. msm_routing_put_audio_mixer),
  8340. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8341. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8342. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8343. msm_routing_put_audio_mixer),
  8344. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8345. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8346. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8347. msm_routing_put_audio_mixer),
  8348. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8349. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8350. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8351. msm_routing_put_audio_mixer),
  8352. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8353. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8354. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8355. msm_routing_put_audio_mixer),
  8356. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8357. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8358. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8359. msm_routing_put_audio_mixer),
  8360. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8361. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8362. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8363. msm_routing_put_audio_mixer),
  8364. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8365. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8366. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8367. msm_routing_put_audio_mixer),
  8368. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8369. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8370. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8371. msm_routing_put_audio_mixer),
  8372. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8373. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8374. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8375. msm_routing_put_audio_mixer),
  8376. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8377. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8378. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8379. msm_routing_put_audio_mixer),
  8380. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8381. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8382. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8383. msm_routing_put_audio_mixer),
  8384. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8385. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8386. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8387. msm_routing_put_audio_mixer),
  8388. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8389. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8390. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8391. msm_routing_put_audio_mixer),
  8392. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8393. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8394. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8395. msm_routing_put_audio_mixer),
  8396. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8397. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8398. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8399. msm_routing_put_audio_mixer),
  8400. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8401. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8402. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8403. msm_routing_put_audio_mixer),
  8404. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8405. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8406. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8407. msm_routing_put_audio_mixer),
  8408. };
  8409. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  8410. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8411. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8412. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8413. msm_routing_put_audio_mixer),
  8414. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8415. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8416. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8417. msm_routing_put_audio_mixer),
  8418. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8419. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8420. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8421. msm_routing_put_audio_mixer),
  8422. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8423. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8424. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8425. msm_routing_put_audio_mixer),
  8426. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8427. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8428. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8429. msm_routing_put_audio_mixer),
  8430. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8431. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8432. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8433. msm_routing_put_audio_mixer),
  8434. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8435. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8436. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8437. msm_routing_put_audio_mixer),
  8438. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8439. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8440. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8441. msm_routing_put_audio_mixer),
  8442. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8443. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8444. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8445. msm_routing_put_audio_mixer),
  8446. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8447. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8448. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8449. msm_routing_put_audio_mixer),
  8450. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8451. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8452. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8453. msm_routing_put_audio_mixer),
  8454. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8455. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8456. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8457. msm_routing_put_audio_mixer),
  8458. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8459. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8460. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8461. msm_routing_put_audio_mixer),
  8462. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8463. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8464. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8465. msm_routing_put_audio_mixer),
  8466. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8467. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8468. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8469. msm_routing_put_audio_mixer),
  8470. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8471. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8472. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8473. msm_routing_put_audio_mixer),
  8474. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8475. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8476. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8477. msm_routing_put_audio_mixer),
  8478. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8479. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8480. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8481. msm_routing_put_audio_mixer),
  8482. };
  8483. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  8484. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8485. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8486. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8487. msm_routing_put_audio_mixer),
  8488. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8489. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8490. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8491. msm_routing_put_audio_mixer),
  8492. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8493. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8494. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8495. msm_routing_put_audio_mixer),
  8496. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8497. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8498. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8499. msm_routing_put_audio_mixer),
  8500. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8501. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8502. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8503. msm_routing_put_audio_mixer),
  8504. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8505. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8506. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8507. msm_routing_put_audio_mixer),
  8508. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8509. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8510. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8511. msm_routing_put_audio_mixer),
  8512. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8513. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8514. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8515. msm_routing_put_audio_mixer),
  8516. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8517. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8518. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8519. msm_routing_put_audio_mixer),
  8520. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8521. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8522. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8523. msm_routing_put_audio_mixer),
  8524. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8525. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8526. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8527. msm_routing_put_audio_mixer),
  8528. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8529. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8530. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8531. msm_routing_put_audio_mixer),
  8532. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8533. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8534. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8535. msm_routing_put_audio_mixer),
  8536. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8537. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8538. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8539. msm_routing_put_audio_mixer),
  8540. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8541. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8542. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8543. msm_routing_put_audio_mixer),
  8544. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8545. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8546. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8547. msm_routing_put_audio_mixer),
  8548. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8549. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8550. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8551. msm_routing_put_audio_mixer),
  8552. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8553. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8554. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8555. msm_routing_put_audio_mixer),
  8556. };
  8557. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  8558. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8559. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8560. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8561. msm_routing_put_audio_mixer),
  8562. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8563. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8564. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8565. msm_routing_put_audio_mixer),
  8566. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8567. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8568. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8569. msm_routing_put_audio_mixer),
  8570. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8571. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8572. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8573. msm_routing_put_audio_mixer),
  8574. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8575. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8576. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8577. msm_routing_put_audio_mixer),
  8578. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8579. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8580. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8581. msm_routing_put_audio_mixer),
  8582. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8583. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8584. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8585. msm_routing_put_audio_mixer),
  8586. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8587. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8588. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8589. msm_routing_put_audio_mixer),
  8590. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8591. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8592. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8593. msm_routing_put_audio_mixer),
  8594. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8595. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8596. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8597. msm_routing_put_audio_mixer),
  8598. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8599. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8600. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8601. msm_routing_put_audio_mixer),
  8602. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8603. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8604. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8605. msm_routing_put_audio_mixer),
  8606. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8607. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8608. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8609. msm_routing_put_audio_mixer),
  8610. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8611. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8612. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8613. msm_routing_put_audio_mixer),
  8614. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8615. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8616. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8617. msm_routing_put_audio_mixer),
  8618. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8619. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8620. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8621. msm_routing_put_audio_mixer),
  8622. };
  8623. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  8624. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8625. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8626. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8627. msm_routing_put_audio_mixer),
  8628. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8629. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8630. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8631. msm_routing_put_audio_mixer),
  8632. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8633. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8634. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8635. msm_routing_put_audio_mixer),
  8636. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8637. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8638. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8639. msm_routing_put_audio_mixer),
  8640. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8641. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8642. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8643. msm_routing_put_audio_mixer),
  8644. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8645. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8646. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8647. msm_routing_put_audio_mixer),
  8648. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8649. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8650. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8651. msm_routing_put_audio_mixer),
  8652. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8653. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8654. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8655. msm_routing_put_audio_mixer),
  8656. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8657. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8658. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8659. msm_routing_put_audio_mixer),
  8660. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8661. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8662. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8663. msm_routing_put_audio_mixer),
  8664. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8665. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8666. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8667. msm_routing_put_audio_mixer),
  8668. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8669. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8670. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8671. msm_routing_put_audio_mixer),
  8672. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8673. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8674. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8675. msm_routing_put_audio_mixer),
  8676. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8677. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8678. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8679. msm_routing_put_audio_mixer),
  8680. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8681. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8682. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8683. msm_routing_put_audio_mixer),
  8684. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8685. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8686. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8687. msm_routing_put_audio_mixer),
  8688. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8689. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8690. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8691. msm_routing_put_audio_mixer),
  8692. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8693. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8694. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8695. msm_routing_put_audio_mixer),
  8696. };
  8697. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  8698. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8699. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8700. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8701. msm_routing_put_audio_mixer),
  8702. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8703. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8704. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8705. msm_routing_put_audio_mixer),
  8706. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8707. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8708. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8709. msm_routing_put_audio_mixer),
  8710. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8711. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8712. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8713. msm_routing_put_audio_mixer),
  8714. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8715. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8716. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8717. msm_routing_put_audio_mixer),
  8718. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8719. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8720. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8721. msm_routing_put_audio_mixer),
  8722. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8723. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8724. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8725. msm_routing_put_audio_mixer),
  8726. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8727. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8728. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8729. msm_routing_put_audio_mixer),
  8730. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8731. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8732. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8733. msm_routing_put_audio_mixer),
  8734. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8735. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8736. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8737. msm_routing_put_audio_mixer),
  8738. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8739. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8740. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8741. msm_routing_put_audio_mixer),
  8742. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8743. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8744. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8745. msm_routing_put_audio_mixer),
  8746. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8747. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8748. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8749. msm_routing_put_audio_mixer),
  8750. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8751. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8752. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8753. msm_routing_put_audio_mixer),
  8754. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8755. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8756. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8757. msm_routing_put_audio_mixer),
  8758. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8759. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8760. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8761. msm_routing_put_audio_mixer),
  8762. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8763. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8764. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8765. msm_routing_put_audio_mixer),
  8766. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8767. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8768. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8769. msm_routing_put_audio_mixer),
  8770. };
  8771. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  8772. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8773. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8774. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8775. msm_routing_put_audio_mixer),
  8776. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8777. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8778. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8779. msm_routing_put_audio_mixer),
  8780. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8781. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8782. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8783. msm_routing_put_audio_mixer),
  8784. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8785. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8786. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8787. msm_routing_put_audio_mixer),
  8788. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8789. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8790. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8791. msm_routing_put_audio_mixer),
  8792. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8793. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8794. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8795. msm_routing_put_audio_mixer),
  8796. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8797. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8798. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8799. msm_routing_put_audio_mixer),
  8800. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8801. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8802. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8803. msm_routing_put_audio_mixer),
  8804. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8805. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8806. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8807. msm_routing_put_audio_mixer),
  8808. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8809. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8810. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8811. msm_routing_put_audio_mixer),
  8812. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8813. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8814. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8815. msm_routing_put_audio_mixer),
  8816. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8817. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8818. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8819. msm_routing_put_audio_mixer),
  8820. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8821. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8822. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8823. msm_routing_put_audio_mixer),
  8824. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8825. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8826. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8827. msm_routing_put_audio_mixer),
  8828. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8829. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8830. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8831. msm_routing_put_audio_mixer),
  8832. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8833. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8834. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8835. msm_routing_put_audio_mixer),
  8836. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8837. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8838. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8839. msm_routing_put_audio_mixer),
  8840. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8841. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8842. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8843. msm_routing_put_audio_mixer),
  8844. };
  8845. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  8846. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  8847. MSM_BACKEND_DAI_PRI_I2S_TX,
  8848. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8849. msm_routing_put_audio_mixer),
  8850. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8851. MSM_BACKEND_DAI_MI2S_TX,
  8852. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8853. msm_routing_put_audio_mixer),
  8854. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8855. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8856. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8857. msm_routing_put_audio_mixer),
  8858. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8859. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8860. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8861. msm_routing_put_audio_mixer),
  8862. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8863. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8864. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8865. msm_routing_put_audio_mixer),
  8866. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8867. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8868. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8869. msm_routing_put_audio_mixer),
  8870. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8871. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8872. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8873. msm_routing_put_audio_mixer),
  8874. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8875. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8876. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8877. msm_routing_put_audio_mixer),
  8878. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8879. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8880. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8881. msm_routing_put_audio_mixer),
  8882. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8883. MSM_BACKEND_DAI_AUXPCM_TX,
  8884. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8885. msm_routing_put_audio_mixer),
  8886. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  8887. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8888. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8889. msm_routing_put_audio_mixer),
  8890. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8891. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8892. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8893. msm_routing_put_audio_mixer),
  8894. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8895. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8896. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8897. msm_routing_put_audio_mixer),
  8898. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  8899. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8900. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8901. msm_routing_put_audio_mixer),
  8902. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8903. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8904. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8905. msm_routing_put_audio_mixer),
  8906. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8907. MSM_BACKEND_DAI_INT_FM_TX,
  8908. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8909. msm_routing_put_audio_mixer),
  8910. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8911. MSM_BACKEND_DAI_AFE_PCM_TX,
  8912. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8913. msm_routing_put_audio_mixer),
  8914. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8915. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8916. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8917. msm_routing_put_audio_mixer),
  8918. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8919. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8920. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8921. msm_routing_put_audio_mixer),
  8922. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  8923. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  8924. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8925. msm_routing_put_audio_mixer),
  8926. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8927. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8928. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8929. msm_routing_put_audio_mixer),
  8930. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8931. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8932. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8933. msm_routing_put_audio_mixer),
  8934. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8935. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8936. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8937. msm_routing_put_audio_mixer),
  8938. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8939. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8940. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8941. msm_routing_put_audio_mixer),
  8942. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8943. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8944. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8945. msm_routing_put_audio_mixer),
  8946. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8947. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8948. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8949. msm_routing_put_audio_mixer),
  8950. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8951. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8952. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8953. msm_routing_put_audio_mixer),
  8954. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8955. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8956. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8957. msm_routing_put_audio_mixer),
  8958. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8959. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8960. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8961. msm_routing_put_audio_mixer),
  8962. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8963. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8964. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8965. msm_routing_put_audio_mixer),
  8966. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8967. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8968. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8969. msm_routing_put_audio_mixer),
  8970. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8971. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8972. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8973. msm_routing_put_audio_mixer),
  8974. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8975. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8976. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8977. msm_routing_put_audio_mixer),
  8978. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8979. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8980. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8981. msm_routing_put_audio_mixer),
  8982. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8983. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8984. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8985. msm_routing_put_audio_mixer),
  8986. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8987. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8988. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8989. msm_routing_put_audio_mixer),
  8990. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8991. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8992. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8993. msm_routing_put_audio_mixer),
  8994. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8995. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8996. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8997. msm_routing_put_audio_mixer),
  8998. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8999. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9000. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9001. msm_routing_put_audio_mixer),
  9002. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9003. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9004. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9005. msm_routing_put_audio_mixer),
  9006. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9007. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9008. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9009. msm_routing_put_audio_mixer),
  9010. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9011. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9012. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9013. msm_routing_put_audio_mixer),
  9014. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9015. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9016. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9017. msm_routing_put_audio_mixer),
  9018. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9019. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9020. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9021. msm_routing_put_audio_mixer),
  9022. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9023. MSM_BACKEND_DAI_USB_TX,
  9024. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9025. msm_routing_put_audio_mixer),
  9026. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9027. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9028. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9029. msm_routing_put_audio_mixer),
  9030. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9031. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9032. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9033. msm_routing_put_audio_mixer),
  9034. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9035. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9036. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9037. msm_routing_put_audio_mixer),
  9038. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9039. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9040. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9041. msm_routing_put_audio_mixer),
  9042. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9043. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9044. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9045. msm_routing_put_audio_mixer),
  9046. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9047. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9048. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9049. msm_routing_put_audio_mixer),
  9050. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9051. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9052. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9053. msm_routing_put_audio_mixer),
  9054. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9055. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9056. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9057. msm_routing_put_audio_mixer),
  9058. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9059. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9060. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9061. msm_routing_put_audio_mixer),
  9062. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9063. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9064. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9065. msm_routing_put_audio_mixer),
  9066. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9067. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9068. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9069. msm_routing_put_audio_mixer),
  9070. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9071. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9072. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9073. msm_routing_put_audio_mixer),
  9074. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9075. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9076. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9077. msm_routing_put_audio_mixer),
  9078. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9079. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9080. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9081. msm_routing_put_audio_mixer),
  9082. };
  9083. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  9084. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9085. MSM_BACKEND_DAI_INT_FM_TX,
  9086. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9087. msm_routing_put_audio_mixer),
  9088. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9089. MSM_BACKEND_DAI_MI2S_TX,
  9090. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9091. msm_routing_put_audio_mixer),
  9092. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9093. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9094. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9095. msm_routing_put_audio_mixer),
  9096. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9097. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9098. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9099. msm_routing_put_audio_mixer),
  9100. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9101. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9102. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9103. msm_routing_put_audio_mixer),
  9104. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9105. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9106. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9107. msm_routing_put_audio_mixer),
  9108. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9109. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9110. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9111. msm_routing_put_audio_mixer),
  9112. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9113. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9114. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9115. msm_routing_put_audio_mixer),
  9116. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9117. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9118. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9119. msm_routing_put_audio_mixer),
  9120. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9121. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9122. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9123. msm_routing_put_audio_mixer),
  9124. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  9125. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9126. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9127. msm_routing_put_audio_mixer),
  9128. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9129. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9130. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9131. msm_routing_put_audio_mixer),
  9132. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9133. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9134. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9135. msm_routing_put_audio_mixer),
  9136. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9137. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9138. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9139. msm_routing_put_audio_mixer),
  9140. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9141. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9142. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9143. msm_routing_put_audio_mixer),
  9144. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9145. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9146. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9147. msm_routing_put_audio_mixer),
  9148. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9149. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9150. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9151. msm_routing_put_audio_mixer),
  9152. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9153. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9154. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9155. msm_routing_put_audio_mixer),
  9156. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9157. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9158. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9159. msm_routing_put_audio_mixer),
  9160. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9161. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9162. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9163. msm_routing_put_audio_mixer),
  9164. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9165. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9166. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9167. msm_routing_put_audio_mixer),
  9168. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9169. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9170. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9171. msm_routing_put_audio_mixer),
  9172. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9173. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9174. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9175. msm_routing_put_audio_mixer),
  9176. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9177. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9178. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9179. msm_routing_put_audio_mixer),
  9180. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9181. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9182. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9183. msm_routing_put_audio_mixer),
  9184. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9185. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9186. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9187. msm_routing_put_audio_mixer),
  9188. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9189. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9190. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9191. msm_routing_put_audio_mixer),
  9192. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9193. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9194. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9195. msm_routing_put_audio_mixer),
  9196. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9197. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9198. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9199. msm_routing_put_audio_mixer),
  9200. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9201. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9202. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9203. msm_routing_put_audio_mixer),
  9204. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9205. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9206. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9207. msm_routing_put_audio_mixer),
  9208. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9209. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9210. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9211. msm_routing_put_audio_mixer),
  9212. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9213. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9214. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9215. msm_routing_put_audio_mixer),
  9216. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9217. MSM_BACKEND_DAI_USB_TX,
  9218. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9219. msm_routing_put_audio_mixer),
  9220. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9221. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9222. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9223. msm_routing_put_audio_mixer),
  9224. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9225. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9226. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9227. msm_routing_put_audio_mixer),
  9228. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9229. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9230. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9231. msm_routing_put_audio_mixer),
  9232. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9233. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9234. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9235. msm_routing_put_audio_mixer),
  9236. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9237. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9238. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9239. msm_routing_put_audio_mixer),
  9240. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9241. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9242. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9243. msm_routing_put_audio_mixer),
  9244. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9245. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9246. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9247. msm_routing_put_audio_mixer),
  9248. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9249. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9250. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9251. msm_routing_put_audio_mixer),
  9252. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9253. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9254. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9255. msm_routing_put_audio_mixer),
  9256. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9257. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9258. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9259. msm_routing_put_audio_mixer),
  9260. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9261. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9262. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9263. msm_routing_put_audio_mixer),
  9264. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9265. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9266. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9267. msm_routing_put_audio_mixer),
  9268. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9269. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9270. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9271. msm_routing_put_audio_mixer),
  9272. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9273. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9274. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9275. msm_routing_put_audio_mixer),
  9276. };
  9277. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  9278. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9279. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9280. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9281. msm_routing_put_audio_mixer),
  9282. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9283. MSM_BACKEND_DAI_INT_FM_TX,
  9284. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9285. msm_routing_put_audio_mixer),
  9286. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9287. MSM_BACKEND_DAI_MI2S_TX,
  9288. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9289. msm_routing_put_audio_mixer),
  9290. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9291. MSM_BACKEND_DAI_AFE_PCM_TX,
  9292. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9293. msm_routing_put_audio_mixer),
  9294. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9295. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9296. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9297. msm_routing_put_audio_mixer),
  9298. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9299. MSM_BACKEND_DAI_AUXPCM_TX,
  9300. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9301. msm_routing_put_audio_mixer),
  9302. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9303. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9304. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9305. msm_routing_put_audio_mixer),
  9306. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9307. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9308. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9309. msm_routing_put_audio_mixer),
  9310. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9311. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9312. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9313. msm_routing_put_audio_mixer),
  9314. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9315. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9316. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9317. msm_routing_put_audio_mixer),
  9318. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9319. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9320. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9321. msm_routing_put_audio_mixer),
  9322. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9323. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9324. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9325. msm_routing_put_audio_mixer),
  9326. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9327. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9328. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9329. msm_routing_put_audio_mixer),
  9330. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9331. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9332. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9333. msm_routing_put_audio_mixer),
  9334. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9335. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9336. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9337. msm_routing_put_audio_mixer),
  9338. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9339. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9340. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9341. msm_routing_put_audio_mixer),
  9342. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9343. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9344. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9345. msm_routing_put_audio_mixer),
  9346. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9347. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9348. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9349. msm_routing_put_audio_mixer),
  9350. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9351. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9352. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9353. msm_routing_put_audio_mixer),
  9354. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9355. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9356. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9357. msm_routing_put_audio_mixer),
  9358. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9359. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9360. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9361. msm_routing_put_audio_mixer),
  9362. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9363. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9364. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9365. msm_routing_put_audio_mixer),
  9366. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9367. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9368. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9369. msm_routing_put_audio_mixer),
  9370. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9371. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9372. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9373. msm_routing_put_audio_mixer),
  9374. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9375. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9376. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9377. msm_routing_put_audio_mixer),
  9378. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9379. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9380. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9381. msm_routing_put_audio_mixer),
  9382. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9383. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9384. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9385. msm_routing_put_audio_mixer),
  9386. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9387. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9388. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9389. msm_routing_put_audio_mixer),
  9390. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9391. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9392. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9393. msm_routing_put_audio_mixer),
  9394. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9395. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9396. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9397. msm_routing_put_audio_mixer),
  9398. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9399. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9400. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9401. msm_routing_put_audio_mixer),
  9402. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9403. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9404. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9405. msm_routing_put_audio_mixer),
  9406. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9407. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9408. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9409. msm_routing_put_audio_mixer),
  9410. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9411. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9412. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9413. msm_routing_put_audio_mixer),
  9414. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9415. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9416. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9417. msm_routing_put_audio_mixer),
  9418. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9419. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9420. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9421. msm_routing_put_audio_mixer),
  9422. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9423. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9424. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9425. msm_routing_put_audio_mixer),
  9426. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9427. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9428. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9429. msm_routing_put_audio_mixer),
  9430. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9431. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9432. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9433. msm_routing_put_audio_mixer),
  9434. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9435. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9436. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9437. msm_routing_put_audio_mixer),
  9438. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9439. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9440. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9441. msm_routing_put_audio_mixer),
  9442. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9443. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9444. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9445. msm_routing_put_audio_mixer),
  9446. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9447. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9448. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9449. msm_routing_put_audio_mixer),
  9450. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9451. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9452. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9453. msm_routing_put_audio_mixer),
  9454. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9455. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9456. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9457. msm_routing_put_audio_mixer),
  9458. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9459. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9460. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9461. msm_routing_put_audio_mixer),
  9462. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9463. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9464. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9465. msm_routing_put_audio_mixer),
  9466. };
  9467. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  9468. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9469. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9470. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9471. msm_routing_put_audio_mixer),
  9472. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9473. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9474. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9475. msm_routing_put_audio_mixer),
  9476. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9477. MSM_BACKEND_DAI_INT_FM_TX,
  9478. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9479. msm_routing_put_audio_mixer),
  9480. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9481. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9482. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9483. msm_routing_put_audio_mixer),
  9484. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9485. MSM_BACKEND_DAI_AFE_PCM_TX,
  9486. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9487. msm_routing_put_audio_mixer),
  9488. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9489. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9490. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9491. msm_routing_put_audio_mixer),
  9492. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9493. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9494. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9495. msm_routing_put_audio_mixer),
  9496. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9497. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9498. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9499. msm_routing_put_audio_mixer),
  9500. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9501. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9502. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9503. msm_routing_put_audio_mixer),
  9504. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9505. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9506. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9507. msm_routing_put_audio_mixer),
  9508. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9509. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9510. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9511. msm_routing_put_audio_mixer),
  9512. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9513. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9514. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9515. msm_routing_put_audio_mixer),
  9516. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9517. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9518. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9519. msm_routing_put_audio_mixer),
  9520. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9521. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9522. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9523. msm_routing_put_audio_mixer),
  9524. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9525. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9526. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9527. msm_routing_put_audio_mixer),
  9528. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9529. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9530. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9531. msm_routing_put_audio_mixer),
  9532. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9533. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9534. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9535. msm_routing_put_audio_mixer),
  9536. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9537. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9538. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9539. msm_routing_put_audio_mixer),
  9540. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9541. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9542. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9543. msm_routing_put_audio_mixer),
  9544. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9545. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9546. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9547. msm_routing_put_audio_mixer),
  9548. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9549. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9550. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9551. msm_routing_put_audio_mixer),
  9552. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9553. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9554. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9555. msm_routing_put_audio_mixer),
  9556. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9557. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9558. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9559. msm_routing_put_audio_mixer),
  9560. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9561. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9562. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9563. msm_routing_put_audio_mixer),
  9564. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9565. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9566. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9567. msm_routing_put_audio_mixer),
  9568. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9569. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9570. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9571. msm_routing_put_audio_mixer),
  9572. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9573. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9574. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9575. msm_routing_put_audio_mixer),
  9576. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9577. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9578. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9579. msm_routing_put_audio_mixer),
  9580. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9581. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9582. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9583. msm_routing_put_audio_mixer),
  9584. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9585. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9586. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9587. msm_routing_put_audio_mixer),
  9588. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9589. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9590. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9591. msm_routing_put_audio_mixer),
  9592. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9593. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9594. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9595. msm_routing_put_audio_mixer),
  9596. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9597. MSM_BACKEND_DAI_USB_TX,
  9598. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9599. msm_routing_put_audio_mixer),
  9600. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9601. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9602. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9603. msm_routing_put_audio_mixer),
  9604. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9605. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9606. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9607. msm_routing_put_audio_mixer),
  9608. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9609. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9610. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9611. msm_routing_put_audio_mixer),
  9612. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9613. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9614. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9615. msm_routing_put_audio_mixer),
  9616. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9617. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9618. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9619. msm_routing_put_audio_mixer),
  9620. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9621. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9622. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9623. msm_routing_put_audio_mixer),
  9624. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9625. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9626. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9627. msm_routing_put_audio_mixer),
  9628. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9629. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9630. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9631. msm_routing_put_audio_mixer),
  9632. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9633. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9634. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9635. msm_routing_put_audio_mixer),
  9636. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9637. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9638. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9639. msm_routing_put_audio_mixer),
  9640. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9641. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9642. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9643. msm_routing_put_audio_mixer),
  9644. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9645. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9646. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9647. msm_routing_put_audio_mixer),
  9648. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9649. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9650. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9651. msm_routing_put_audio_mixer),
  9652. };
  9653. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  9654. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9655. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9656. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9657. msm_routing_put_audio_mixer),
  9658. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9659. MSM_BACKEND_DAI_INT_FM_TX,
  9660. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9661. msm_routing_put_audio_mixer),
  9662. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9663. MSM_BACKEND_DAI_MI2S_TX,
  9664. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9665. msm_routing_put_audio_mixer),
  9666. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9667. MSM_BACKEND_DAI_AFE_PCM_TX,
  9668. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9669. msm_routing_put_audio_mixer),
  9670. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9671. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9672. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9673. msm_routing_put_audio_mixer),
  9674. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9675. MSM_BACKEND_DAI_AUXPCM_TX,
  9676. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9677. msm_routing_put_audio_mixer),
  9678. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9679. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9680. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9681. msm_routing_put_audio_mixer),
  9682. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9683. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9684. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9685. msm_routing_put_audio_mixer),
  9686. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9687. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9688. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9689. msm_routing_put_audio_mixer),
  9690. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9691. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9692. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9693. msm_routing_put_audio_mixer),
  9694. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9695. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9696. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9697. msm_routing_put_audio_mixer),
  9698. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9699. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9700. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9701. msm_routing_put_audio_mixer),
  9702. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9703. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9704. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9705. msm_routing_put_audio_mixer),
  9706. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9707. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9708. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9709. msm_routing_put_audio_mixer),
  9710. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9711. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9712. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9713. msm_routing_put_audio_mixer),
  9714. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9715. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9716. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9717. msm_routing_put_audio_mixer),
  9718. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9719. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9720. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9721. msm_routing_put_audio_mixer),
  9722. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9723. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9724. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9725. msm_routing_put_audio_mixer),
  9726. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9727. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9728. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9729. msm_routing_put_audio_mixer),
  9730. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9731. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9732. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9733. msm_routing_put_audio_mixer),
  9734. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9735. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9736. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9737. msm_routing_put_audio_mixer),
  9738. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9739. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9740. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9741. msm_routing_put_audio_mixer),
  9742. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9743. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9744. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9745. msm_routing_put_audio_mixer),
  9746. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9747. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9748. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9749. msm_routing_put_audio_mixer),
  9750. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9751. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9752. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9753. msm_routing_put_audio_mixer),
  9754. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9755. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9756. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9757. msm_routing_put_audio_mixer),
  9758. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9759. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9760. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9761. msm_routing_put_audio_mixer),
  9762. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9763. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9764. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9765. msm_routing_put_audio_mixer),
  9766. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9767. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9768. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9769. msm_routing_put_audio_mixer),
  9770. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9771. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9772. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9773. msm_routing_put_audio_mixer),
  9774. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9775. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9776. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9777. msm_routing_put_audio_mixer),
  9778. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9779. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9780. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9781. msm_routing_put_audio_mixer),
  9782. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9783. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9784. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9785. msm_routing_put_audio_mixer),
  9786. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9787. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9788. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9789. msm_routing_put_audio_mixer),
  9790. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9791. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9792. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9793. msm_routing_put_audio_mixer),
  9794. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9795. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9796. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9797. msm_routing_put_audio_mixer),
  9798. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9799. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9800. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9801. msm_routing_put_audio_mixer),
  9802. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9803. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9804. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9805. msm_routing_put_audio_mixer),
  9806. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9807. MSM_BACKEND_DAI_USB_TX,
  9808. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9809. msm_routing_put_audio_mixer),
  9810. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9811. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9812. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9813. msm_routing_put_audio_mixer),
  9814. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9815. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9816. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9817. msm_routing_put_audio_mixer),
  9818. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9819. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9820. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9821. msm_routing_put_audio_mixer),
  9822. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9823. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9824. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9825. msm_routing_put_audio_mixer),
  9826. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9827. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9828. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9829. msm_routing_put_audio_mixer),
  9830. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9831. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9832. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9833. msm_routing_put_audio_mixer),
  9834. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9835. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9836. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9837. msm_routing_put_audio_mixer),
  9838. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9839. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9840. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9841. msm_routing_put_audio_mixer),
  9842. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9843. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9844. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9845. msm_routing_put_audio_mixer),
  9846. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9847. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9848. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9849. msm_routing_put_audio_mixer),
  9850. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9851. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9852. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9853. msm_routing_put_audio_mixer),
  9854. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9855. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9856. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9857. msm_routing_put_audio_mixer),
  9858. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9859. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9860. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9861. msm_routing_put_audio_mixer),
  9862. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9863. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9864. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9865. msm_routing_put_audio_mixer),
  9866. };
  9867. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  9868. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9869. MSM_BACKEND_DAI_INT_FM_TX,
  9870. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9871. msm_routing_put_audio_mixer),
  9872. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9873. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9874. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9875. msm_routing_put_audio_mixer),
  9876. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9877. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9878. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9879. msm_routing_put_audio_mixer),
  9880. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9881. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9882. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9883. msm_routing_put_audio_mixer),
  9884. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9885. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9886. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9887. msm_routing_put_audio_mixer),
  9888. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9889. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9890. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9891. msm_routing_put_audio_mixer),
  9892. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9893. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9894. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9895. msm_routing_put_audio_mixer),
  9896. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9897. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9898. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9899. msm_routing_put_audio_mixer),
  9900. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9901. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9902. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9903. msm_routing_put_audio_mixer),
  9904. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9905. MSM_BACKEND_DAI_AUXPCM_TX,
  9906. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9907. msm_routing_put_audio_mixer),
  9908. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  9909. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9910. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9911. msm_routing_put_audio_mixer),
  9912. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9913. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9914. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9915. msm_routing_put_audio_mixer),
  9916. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9917. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9918. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9919. msm_routing_put_audio_mixer),
  9920. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9921. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9922. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9923. msm_routing_put_audio_mixer),
  9924. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9925. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9926. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9927. msm_routing_put_audio_mixer),
  9928. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9929. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9930. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9931. msm_routing_put_audio_mixer),
  9932. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9933. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9934. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9935. msm_routing_put_audio_mixer),
  9936. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9937. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9938. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9939. msm_routing_put_audio_mixer),
  9940. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9941. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9942. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9943. msm_routing_put_audio_mixer),
  9944. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9945. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9946. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9947. msm_routing_put_audio_mixer),
  9948. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9949. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9950. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9951. msm_routing_put_audio_mixer),
  9952. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9953. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9954. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9955. msm_routing_put_audio_mixer),
  9956. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9957. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9958. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9959. msm_routing_put_audio_mixer),
  9960. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9961. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9962. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9963. msm_routing_put_audio_mixer),
  9964. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9965. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9966. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9967. msm_routing_put_audio_mixer),
  9968. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9969. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9970. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9971. msm_routing_put_audio_mixer),
  9972. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9973. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9974. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9975. msm_routing_put_audio_mixer),
  9976. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9977. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9978. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9979. msm_routing_put_audio_mixer),
  9980. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9981. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9982. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9983. msm_routing_put_audio_mixer),
  9984. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9985. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9986. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9987. msm_routing_put_audio_mixer),
  9988. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9989. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9990. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9991. msm_routing_put_audio_mixer),
  9992. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9993. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9994. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9995. msm_routing_put_audio_mixer),
  9996. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9997. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9998. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9999. msm_routing_put_audio_mixer),
  10000. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10001. MSM_BACKEND_DAI_USB_TX,
  10002. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10003. msm_routing_put_audio_mixer),
  10004. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10005. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10006. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10007. msm_routing_put_audio_mixer),
  10008. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10009. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10010. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10011. msm_routing_put_audio_mixer),
  10012. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10013. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10014. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10015. msm_routing_put_audio_mixer),
  10016. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10017. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10018. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10019. msm_routing_put_audio_mixer),
  10020. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10021. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10022. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10023. msm_routing_put_audio_mixer),
  10024. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10025. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10026. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10027. msm_routing_put_audio_mixer),
  10028. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10029. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10030. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10031. msm_routing_put_audio_mixer),
  10032. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10033. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10034. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10035. msm_routing_put_audio_mixer),
  10036. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10037. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10038. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10039. msm_routing_put_audio_mixer),
  10040. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10041. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10042. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10043. msm_routing_put_audio_mixer),
  10044. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10045. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10046. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10047. msm_routing_put_audio_mixer),
  10048. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10049. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10050. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10051. msm_routing_put_audio_mixer),
  10052. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10053. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10054. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10055. msm_routing_put_audio_mixer),
  10056. };
  10057. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  10058. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10059. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10060. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10061. msm_routing_put_audio_mixer),
  10062. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10063. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10064. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10065. msm_routing_put_audio_mixer),
  10066. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10067. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10068. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10069. msm_routing_put_audio_mixer),
  10070. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10071. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10072. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10073. msm_routing_put_audio_mixer),
  10074. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10075. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10076. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10077. msm_routing_put_audio_mixer),
  10078. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10079. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10080. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10081. msm_routing_put_audio_mixer),
  10082. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10083. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10084. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10085. msm_routing_put_audio_mixer),
  10086. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10087. MSM_BACKEND_DAI_INT_FM_TX,
  10088. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10089. msm_routing_put_audio_mixer),
  10090. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10091. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10092. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10093. msm_routing_put_audio_mixer),
  10094. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10095. MSM_BACKEND_DAI_AFE_PCM_TX,
  10096. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10097. msm_routing_put_audio_mixer),
  10098. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10099. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10100. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10101. msm_routing_put_audio_mixer),
  10102. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10103. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10104. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10105. msm_routing_put_audio_mixer),
  10106. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10107. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10108. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10109. msm_routing_put_audio_mixer),
  10110. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10111. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10112. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10113. msm_routing_put_audio_mixer),
  10114. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10115. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10116. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10117. msm_routing_put_audio_mixer),
  10118. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10119. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10120. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10121. msm_routing_put_audio_mixer),
  10122. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10123. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10124. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10125. msm_routing_put_audio_mixer),
  10126. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10127. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10128. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10129. msm_routing_put_audio_mixer),
  10130. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10131. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10132. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10133. msm_routing_put_audio_mixer),
  10134. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10135. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10136. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10137. msm_routing_put_audio_mixer),
  10138. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10139. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10140. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10141. msm_routing_put_audio_mixer),
  10142. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10143. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10144. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10145. msm_routing_put_audio_mixer),
  10146. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10147. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10148. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10149. msm_routing_put_audio_mixer),
  10150. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10151. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10152. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10153. msm_routing_put_audio_mixer),
  10154. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10155. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10156. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10157. msm_routing_put_audio_mixer),
  10158. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10159. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10160. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10161. msm_routing_put_audio_mixer),
  10162. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10163. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10164. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10165. msm_routing_put_audio_mixer),
  10166. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10167. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10168. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10169. msm_routing_put_audio_mixer),
  10170. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10171. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10172. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10173. msm_routing_put_audio_mixer),
  10174. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10175. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10176. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10177. msm_routing_put_audio_mixer),
  10178. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10179. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10180. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10181. msm_routing_put_audio_mixer),
  10182. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10183. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10184. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10185. msm_routing_put_audio_mixer),
  10186. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10187. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10188. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10189. msm_routing_put_audio_mixer),
  10190. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10191. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10192. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10193. msm_routing_put_audio_mixer),
  10194. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10195. MSM_BACKEND_DAI_USB_TX,
  10196. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10197. msm_routing_put_audio_mixer),
  10198. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10199. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10200. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10201. msm_routing_put_audio_mixer),
  10202. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10203. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10204. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10205. msm_routing_put_audio_mixer),
  10206. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10207. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10208. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10209. msm_routing_put_audio_mixer),
  10210. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10211. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10212. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10213. msm_routing_put_audio_mixer),
  10214. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10215. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10216. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10217. msm_routing_put_audio_mixer),
  10218. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10219. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10220. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10221. msm_routing_put_audio_mixer),
  10222. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10223. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10224. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10225. msm_routing_put_audio_mixer),
  10226. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10227. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10228. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10229. msm_routing_put_audio_mixer),
  10230. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10231. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10232. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10233. msm_routing_put_audio_mixer),
  10234. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10235. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10236. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10237. msm_routing_put_audio_mixer),
  10238. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10239. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10240. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10241. msm_routing_put_audio_mixer),
  10242. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10243. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10244. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10245. msm_routing_put_audio_mixer),
  10246. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10247. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10248. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10249. msm_routing_put_audio_mixer),
  10250. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10251. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10252. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10253. msm_routing_put_audio_mixer),
  10254. };
  10255. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  10256. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10257. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10258. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10259. msm_routing_put_audio_mixer),
  10260. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10261. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10262. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10263. msm_routing_put_audio_mixer),
  10264. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10265. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10266. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10267. msm_routing_put_audio_mixer),
  10268. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10269. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10270. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10271. msm_routing_put_audio_mixer),
  10272. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10273. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10274. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10275. msm_routing_put_audio_mixer),
  10276. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10277. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10278. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10279. msm_routing_put_audio_mixer),
  10280. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10281. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10282. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10283. msm_routing_put_audio_mixer),
  10284. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10285. MSM_BACKEND_DAI_INT_FM_TX,
  10286. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10287. msm_routing_put_audio_mixer),
  10288. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10289. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10290. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10291. msm_routing_put_audio_mixer),
  10292. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10293. MSM_BACKEND_DAI_AFE_PCM_TX,
  10294. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10295. msm_routing_put_audio_mixer),
  10296. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10297. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10298. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10299. msm_routing_put_audio_mixer),
  10300. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10301. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10302. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10303. msm_routing_put_audio_mixer),
  10304. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10305. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10306. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10307. msm_routing_put_audio_mixer),
  10308. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10309. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10310. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10311. msm_routing_put_audio_mixer),
  10312. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10313. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10314. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10315. msm_routing_put_audio_mixer),
  10316. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10317. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10318. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10319. msm_routing_put_audio_mixer),
  10320. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10321. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10322. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10323. msm_routing_put_audio_mixer),
  10324. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10325. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10326. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10327. msm_routing_put_audio_mixer),
  10328. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10329. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10330. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10331. msm_routing_put_audio_mixer),
  10332. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10333. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10334. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10335. msm_routing_put_audio_mixer),
  10336. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10337. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10338. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10339. msm_routing_put_audio_mixer),
  10340. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10341. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10342. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10343. msm_routing_put_audio_mixer),
  10344. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10345. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10346. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10347. msm_routing_put_audio_mixer),
  10348. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10349. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10350. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10351. msm_routing_put_audio_mixer),
  10352. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10353. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10354. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10355. msm_routing_put_audio_mixer),
  10356. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10357. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10358. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10359. msm_routing_put_audio_mixer),
  10360. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10361. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10362. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10363. msm_routing_put_audio_mixer),
  10364. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10365. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10366. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10367. msm_routing_put_audio_mixer),
  10368. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10369. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10370. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10371. msm_routing_put_audio_mixer),
  10372. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10373. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10374. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10375. msm_routing_put_audio_mixer),
  10376. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10377. MSM_BACKEND_DAI_USB_TX,
  10378. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10379. msm_routing_put_audio_mixer),
  10380. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10381. MSM_BACKEND_DAI_MI2S_TX,
  10382. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10383. msm_routing_put_audio_mixer),
  10384. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10385. MSM_BACKEND_DAI_AUXPCM_TX,
  10386. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10387. msm_routing_put_audio_mixer),
  10388. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10389. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10390. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10391. msm_routing_put_audio_mixer),
  10392. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10393. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10394. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10395. msm_routing_put_audio_mixer),
  10396. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10397. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10398. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10399. msm_routing_put_audio_mixer),
  10400. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10401. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10402. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10403. msm_routing_put_audio_mixer),
  10404. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10405. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10406. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10407. msm_routing_put_audio_mixer),
  10408. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10409. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10410. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10411. msm_routing_put_audio_mixer),
  10412. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10413. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10414. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10415. msm_routing_put_audio_mixer),
  10416. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10417. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10418. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10419. msm_routing_get_audio_mixer,
  10420. msm_routing_put_audio_mixer),
  10421. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10422. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10423. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10424. msm_routing_get_audio_mixer,
  10425. msm_routing_put_audio_mixer),
  10426. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10427. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10428. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10429. msm_routing_get_audio_mixer,
  10430. msm_routing_put_audio_mixer),
  10431. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10432. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10433. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10434. msm_routing_get_audio_mixer,
  10435. msm_routing_put_audio_mixer),
  10436. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10437. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10438. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10439. msm_routing_get_audio_mixer,
  10440. msm_routing_put_audio_mixer),
  10441. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10443. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10444. msm_routing_get_audio_mixer,
  10445. msm_routing_put_audio_mixer),
  10446. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10447. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10448. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10449. msm_routing_put_audio_mixer),
  10450. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10451. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10452. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10453. msm_routing_put_audio_mixer),
  10454. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10455. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10456. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10457. msm_routing_put_audio_mixer),
  10458. };
  10459. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  10460. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10461. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10462. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10463. msm_routing_put_audio_mixer),
  10464. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10465. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10466. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10467. msm_routing_put_audio_mixer),
  10468. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10469. MSM_BACKEND_DAI_INT_FM_TX,
  10470. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10471. msm_routing_put_audio_mixer),
  10472. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10473. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10474. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10475. msm_routing_put_audio_mixer),
  10476. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10477. MSM_BACKEND_DAI_AFE_PCM_TX,
  10478. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10479. msm_routing_put_audio_mixer),
  10480. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10481. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10482. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10483. msm_routing_put_audio_mixer),
  10484. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10485. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10486. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10487. msm_routing_put_audio_mixer),
  10488. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10489. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10490. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10491. msm_routing_put_audio_mixer),
  10492. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10493. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10494. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10495. msm_routing_put_audio_mixer),
  10496. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10497. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10498. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10499. msm_routing_put_audio_mixer),
  10500. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10501. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10502. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10503. msm_routing_put_audio_mixer),
  10504. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10505. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10506. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10507. msm_routing_put_audio_mixer),
  10508. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10509. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10510. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10511. msm_routing_put_audio_mixer),
  10512. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10513. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10514. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10515. msm_routing_put_audio_mixer),
  10516. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10517. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10518. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10519. msm_routing_put_audio_mixer),
  10520. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10521. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10522. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10523. msm_routing_put_audio_mixer),
  10524. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10525. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10526. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10527. msm_routing_put_audio_mixer),
  10528. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10529. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10530. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10531. msm_routing_put_audio_mixer),
  10532. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10533. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10534. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10535. msm_routing_put_audio_mixer),
  10536. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10537. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10538. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10539. msm_routing_put_audio_mixer),
  10540. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10541. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10542. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10543. msm_routing_put_audio_mixer),
  10544. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10545. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10546. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10547. msm_routing_put_audio_mixer),
  10548. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10549. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10550. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10551. msm_routing_put_audio_mixer),
  10552. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10553. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10554. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10555. msm_routing_put_audio_mixer),
  10556. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10557. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10558. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10559. msm_routing_put_audio_mixer),
  10560. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10561. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10562. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10563. msm_routing_put_audio_mixer),
  10564. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10565. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10566. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10567. msm_routing_put_audio_mixer),
  10568. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10569. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10570. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10571. msm_routing_put_audio_mixer),
  10572. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10573. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10574. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10575. msm_routing_put_audio_mixer),
  10576. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10577. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10578. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10579. msm_routing_put_audio_mixer),
  10580. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10581. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10582. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10583. msm_routing_put_audio_mixer),
  10584. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10585. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10586. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10587. msm_routing_put_audio_mixer),
  10588. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10589. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10590. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10591. msm_routing_put_audio_mixer),
  10592. };
  10593. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  10594. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10595. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10596. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10597. msm_routing_put_audio_mixer),
  10598. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10599. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10600. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10601. msm_routing_put_audio_mixer),
  10602. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10603. MSM_BACKEND_DAI_INT_FM_TX,
  10604. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10605. msm_routing_put_audio_mixer),
  10606. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10607. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10608. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10609. msm_routing_put_audio_mixer),
  10610. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10611. MSM_BACKEND_DAI_AFE_PCM_TX,
  10612. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10613. msm_routing_put_audio_mixer),
  10614. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10615. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10616. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10617. msm_routing_put_audio_mixer),
  10618. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10619. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10620. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10621. msm_routing_put_audio_mixer),
  10622. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10623. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10624. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10625. msm_routing_put_audio_mixer),
  10626. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10627. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10628. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10629. msm_routing_put_audio_mixer),
  10630. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10631. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10632. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10633. msm_routing_put_audio_mixer),
  10634. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10635. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10636. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10637. msm_routing_put_audio_mixer),
  10638. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10639. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10640. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10641. msm_routing_put_audio_mixer),
  10642. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10643. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10644. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10645. msm_routing_put_audio_mixer),
  10646. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10647. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10648. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10649. msm_routing_put_audio_mixer),
  10650. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10651. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10652. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10653. msm_routing_put_audio_mixer),
  10654. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10655. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10656. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10657. msm_routing_put_audio_mixer),
  10658. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10659. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10660. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10661. msm_routing_put_audio_mixer),
  10662. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10663. MSM_BACKEND_DAI_USB_TX,
  10664. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10665. msm_routing_put_audio_mixer),
  10666. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10667. MSM_BACKEND_DAI_MI2S_TX,
  10668. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10669. msm_routing_put_audio_mixer),
  10670. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10671. MSM_BACKEND_DAI_AUXPCM_TX,
  10672. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10673. msm_routing_put_audio_mixer),
  10674. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10675. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10676. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10677. msm_routing_put_audio_mixer),
  10678. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  10679. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10680. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10681. msm_routing_put_audio_mixer),
  10682. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10683. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10684. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10685. msm_routing_put_audio_mixer),
  10686. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10687. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10688. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10689. msm_routing_put_audio_mixer),
  10690. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10691. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10692. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10693. msm_routing_put_audio_mixer),
  10694. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10695. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10696. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10697. msm_routing_put_audio_mixer),
  10698. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10699. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10700. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10701. msm_routing_put_audio_mixer),
  10702. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10703. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10704. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10705. msm_routing_put_audio_mixer),
  10706. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10707. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10708. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10709. msm_routing_put_audio_mixer),
  10710. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10711. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10712. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10713. msm_routing_put_audio_mixer),
  10714. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10715. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10716. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10717. msm_routing_put_audio_mixer),
  10718. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10719. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10720. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10721. msm_routing_get_audio_mixer,
  10722. msm_routing_put_audio_mixer),
  10723. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10724. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10725. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10726. msm_routing_get_audio_mixer,
  10727. msm_routing_put_audio_mixer),
  10728. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10729. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10730. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10731. msm_routing_get_audio_mixer,
  10732. msm_routing_put_audio_mixer),
  10733. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10734. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10735. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10736. msm_routing_get_audio_mixer,
  10737. msm_routing_put_audio_mixer),
  10738. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10739. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10740. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10741. msm_routing_get_audio_mixer,
  10742. msm_routing_put_audio_mixer),
  10743. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10744. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10745. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10746. msm_routing_get_audio_mixer,
  10747. msm_routing_put_audio_mixer),
  10748. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10749. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10750. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10751. msm_routing_put_audio_mixer),
  10752. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10753. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10754. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10755. msm_routing_put_audio_mixer),
  10756. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10757. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10758. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10759. msm_routing_put_audio_mixer),
  10760. };
  10761. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  10762. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10763. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10764. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10765. msm_routing_put_audio_mixer),
  10766. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10767. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10768. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10769. msm_routing_put_audio_mixer),
  10770. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10771. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10772. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10773. msm_routing_put_audio_mixer),
  10774. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10775. MSM_BACKEND_DAI_INT_FM_TX,
  10776. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10777. msm_routing_put_audio_mixer),
  10778. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10779. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10780. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10781. msm_routing_put_audio_mixer),
  10782. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10783. MSM_BACKEND_DAI_AFE_PCM_TX,
  10784. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10785. msm_routing_put_audio_mixer),
  10786. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10787. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10788. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10789. msm_routing_put_audio_mixer),
  10790. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10791. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10792. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10793. msm_routing_put_audio_mixer),
  10794. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10795. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10796. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10797. msm_routing_put_audio_mixer),
  10798. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10799. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10800. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10801. msm_routing_put_audio_mixer),
  10802. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10803. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10804. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10805. msm_routing_put_audio_mixer),
  10806. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10807. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10808. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10809. msm_routing_put_audio_mixer),
  10810. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10811. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10812. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10813. msm_routing_put_audio_mixer),
  10814. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10815. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10816. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10817. msm_routing_put_audio_mixer),
  10818. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10819. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10820. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10821. msm_routing_put_audio_mixer),
  10822. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10823. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10824. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10825. msm_routing_get_audio_mixer,
  10826. msm_routing_put_audio_mixer),
  10827. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10828. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10829. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10830. msm_routing_get_audio_mixer,
  10831. msm_routing_put_audio_mixer),
  10832. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10833. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10834. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10835. msm_routing_get_audio_mixer,
  10836. msm_routing_put_audio_mixer),
  10837. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10838. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10839. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10840. msm_routing_get_audio_mixer,
  10841. msm_routing_put_audio_mixer),
  10842. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10843. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10844. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10845. msm_routing_get_audio_mixer,
  10846. msm_routing_put_audio_mixer),
  10847. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10849. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10850. msm_routing_get_audio_mixer,
  10851. msm_routing_put_audio_mixer),
  10852. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10853. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10854. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10855. msm_routing_put_audio_mixer),
  10856. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10857. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10858. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10859. msm_routing_put_audio_mixer),
  10860. };
  10861. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  10862. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10863. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10864. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10865. msm_routing_put_audio_mixer),
  10866. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10867. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10868. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10869. msm_routing_put_audio_mixer),
  10870. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10871. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10872. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10873. msm_routing_put_audio_mixer),
  10874. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10875. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10876. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10877. msm_routing_put_audio_mixer),
  10878. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10879. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10880. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10881. msm_routing_put_audio_mixer),
  10882. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10883. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10884. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10885. msm_routing_put_audio_mixer),
  10886. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10887. MSM_BACKEND_DAI_INT_FM_TX,
  10888. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10889. msm_routing_put_audio_mixer),
  10890. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10891. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10892. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10893. msm_routing_put_audio_mixer),
  10894. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10895. MSM_BACKEND_DAI_AFE_PCM_TX,
  10896. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10897. msm_routing_put_audio_mixer),
  10898. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10899. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10900. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10901. msm_routing_put_audio_mixer),
  10902. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10903. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10904. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10905. msm_routing_put_audio_mixer),
  10906. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10907. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10908. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10909. msm_routing_put_audio_mixer),
  10910. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10911. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10912. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10913. msm_routing_put_audio_mixer),
  10914. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10915. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10916. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10917. msm_routing_put_audio_mixer),
  10918. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10919. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10920. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10921. msm_routing_put_audio_mixer),
  10922. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10923. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10924. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10925. msm_routing_put_audio_mixer),
  10926. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10927. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10928. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10929. msm_routing_get_audio_mixer,
  10930. msm_routing_put_audio_mixer),
  10931. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10932. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10933. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10934. msm_routing_get_audio_mixer,
  10935. msm_routing_put_audio_mixer),
  10936. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10937. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10938. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10939. msm_routing_get_audio_mixer,
  10940. msm_routing_put_audio_mixer),
  10941. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10942. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10943. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10944. msm_routing_get_audio_mixer,
  10945. msm_routing_put_audio_mixer),
  10946. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10947. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10948. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10949. msm_routing_get_audio_mixer,
  10950. msm_routing_put_audio_mixer),
  10951. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10952. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10953. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10954. msm_routing_get_audio_mixer,
  10955. msm_routing_put_audio_mixer),
  10956. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10957. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10958. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10959. msm_routing_put_audio_mixer),
  10960. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10961. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10962. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10963. msm_routing_put_audio_mixer),
  10964. };
  10965. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  10966. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10967. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10968. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10969. msm_routing_put_audio_mixer),
  10970. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10971. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10972. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10973. msm_routing_put_audio_mixer),
  10974. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10975. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10976. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10977. msm_routing_put_audio_mixer),
  10978. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10979. MSM_BACKEND_DAI_INT_FM_TX,
  10980. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10981. msm_routing_put_audio_mixer),
  10982. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10983. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10984. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10985. msm_routing_put_audio_mixer),
  10986. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10987. MSM_BACKEND_DAI_AFE_PCM_TX,
  10988. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10989. msm_routing_put_audio_mixer),
  10990. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10991. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10992. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10993. msm_routing_put_audio_mixer),
  10994. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10995. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10996. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10997. msm_routing_put_audio_mixer),
  10998. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10999. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11000. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11001. msm_routing_put_audio_mixer),
  11002. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11003. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11004. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11005. msm_routing_put_audio_mixer),
  11006. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11007. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11008. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11009. msm_routing_put_audio_mixer),
  11010. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11011. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11012. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11013. msm_routing_put_audio_mixer),
  11014. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11015. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11016. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11017. msm_routing_put_audio_mixer),
  11018. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11019. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11020. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11021. msm_routing_put_audio_mixer),
  11022. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11023. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11024. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11025. msm_routing_put_audio_mixer),
  11026. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11027. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11028. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11029. msm_routing_get_audio_mixer,
  11030. msm_routing_put_audio_mixer),
  11031. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11032. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11033. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11034. msm_routing_get_audio_mixer,
  11035. msm_routing_put_audio_mixer),
  11036. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11037. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11038. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11039. msm_routing_get_audio_mixer,
  11040. msm_routing_put_audio_mixer),
  11041. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11042. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11043. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11044. msm_routing_get_audio_mixer,
  11045. msm_routing_put_audio_mixer),
  11046. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11047. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11048. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11049. msm_routing_get_audio_mixer,
  11050. msm_routing_put_audio_mixer),
  11051. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11052. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11053. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11054. msm_routing_get_audio_mixer,
  11055. msm_routing_put_audio_mixer),
  11056. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11057. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11058. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11059. msm_routing_put_audio_mixer),
  11060. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11061. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11062. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11063. msm_routing_put_audio_mixer),
  11064. };
  11065. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  11066. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11067. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11068. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11069. msm_routing_put_audio_mixer),
  11070. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11071. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11072. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11073. msm_routing_put_audio_mixer),
  11074. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11075. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11076. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11077. msm_routing_put_audio_mixer),
  11078. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11079. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11080. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11081. msm_routing_put_audio_mixer),
  11082. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11083. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11084. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11085. msm_routing_put_audio_mixer),
  11086. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11087. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11088. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11089. msm_routing_put_audio_mixer),
  11090. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11091. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11092. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11093. msm_routing_put_audio_mixer),
  11094. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11095. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11096. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11097. msm_routing_put_audio_mixer),
  11098. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11099. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11100. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11101. msm_routing_put_audio_mixer),
  11102. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11103. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11104. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11105. msm_routing_put_audio_mixer),
  11106. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11107. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11108. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11109. msm_routing_put_audio_mixer),
  11110. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11111. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11112. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11113. msm_routing_put_audio_mixer),
  11114. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11115. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11116. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11117. msm_routing_put_audio_mixer),
  11118. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11119. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11120. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11121. msm_routing_put_audio_mixer),
  11122. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11123. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11124. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11125. msm_routing_put_audio_mixer),
  11126. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11127. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11128. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11129. msm_routing_put_audio_mixer),
  11130. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11131. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11132. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11133. msm_routing_put_audio_mixer),
  11134. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11135. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11136. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11137. msm_routing_put_audio_mixer),
  11138. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11139. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11140. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11141. msm_routing_put_audio_mixer),
  11142. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11143. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11144. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11145. msm_routing_put_audio_mixer),
  11146. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11147. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11148. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11149. msm_routing_put_audio_mixer),
  11150. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11151. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11152. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11153. msm_routing_put_audio_mixer),
  11154. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11155. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11156. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11157. msm_routing_put_audio_mixer),
  11158. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11159. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11160. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11161. msm_routing_put_audio_mixer),
  11162. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11163. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11164. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11165. msm_routing_put_audio_mixer),
  11166. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11167. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11168. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11169. msm_routing_put_audio_mixer),
  11170. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11171. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11172. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11173. msm_routing_put_audio_mixer),
  11174. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11175. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11176. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11177. msm_routing_put_audio_mixer),
  11178. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11179. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11180. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11181. msm_routing_put_audio_mixer),
  11182. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11183. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11184. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11185. msm_routing_put_audio_mixer),
  11186. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11187. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11188. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11189. msm_routing_put_audio_mixer),
  11190. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11191. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11192. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11193. msm_routing_put_audio_mixer),
  11194. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11195. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11196. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11197. msm_routing_put_audio_mixer),
  11198. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11199. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11200. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11201. msm_routing_put_audio_mixer),
  11202. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11203. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11204. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11205. msm_routing_put_audio_mixer),
  11206. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11207. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11208. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11209. msm_routing_put_audio_mixer),
  11210. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11211. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11212. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11213. msm_routing_put_audio_mixer),
  11214. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11215. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11216. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11217. msm_routing_put_audio_mixer),
  11218. };
  11219. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  11220. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11221. MSM_BACKEND_DAI_AUXPCM_TX,
  11222. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11223. msm_routing_put_audio_mixer),
  11224. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11225. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11226. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11227. msm_routing_put_audio_mixer),
  11228. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11229. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11230. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11231. msm_routing_put_audio_mixer),
  11232. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11233. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11234. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11235. msm_routing_put_audio_mixer),
  11236. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11237. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11238. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11239. msm_routing_put_audio_mixer),
  11240. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11241. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11242. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11243. msm_routing_put_audio_mixer),
  11244. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11245. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11246. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11247. msm_routing_put_audio_mixer),
  11248. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11249. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11250. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11251. msm_routing_put_audio_mixer),
  11252. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11253. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11254. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11255. msm_routing_put_audio_mixer),
  11256. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11257. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11258. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11259. msm_routing_put_audio_mixer),
  11260. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11261. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11262. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11263. msm_routing_put_audio_mixer),
  11264. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11265. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11266. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11267. msm_routing_put_audio_mixer),
  11268. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11269. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11270. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11271. msm_routing_put_audio_mixer),
  11272. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11273. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11274. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11275. msm_routing_put_audio_mixer),
  11276. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11277. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11278. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11279. msm_routing_put_audio_mixer),
  11280. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11281. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11282. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11283. msm_routing_put_audio_mixer),
  11284. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11285. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11286. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11287. msm_routing_put_audio_mixer),
  11288. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11289. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11290. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11291. msm_routing_put_audio_mixer),
  11292. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11293. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11294. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11295. msm_routing_put_audio_mixer),
  11296. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11297. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11298. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11299. msm_routing_put_audio_mixer),
  11300. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11301. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11302. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11303. msm_routing_put_audio_mixer),
  11304. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11305. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11306. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11307. msm_routing_put_audio_mixer),
  11308. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11309. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11310. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11311. msm_routing_put_audio_mixer),
  11312. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11313. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11314. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11315. msm_routing_put_audio_mixer),
  11316. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11317. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11318. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11319. msm_routing_put_audio_mixer),
  11320. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11321. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11322. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11323. msm_routing_put_audio_mixer),
  11324. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11325. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11326. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11327. msm_routing_put_audio_mixer),
  11328. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11329. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11330. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11331. msm_routing_put_audio_mixer),
  11332. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11333. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11334. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11335. msm_routing_put_audio_mixer),
  11336. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11337. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11338. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11339. msm_routing_put_audio_mixer),
  11340. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11341. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11342. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11343. msm_routing_put_audio_mixer),
  11344. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11345. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11346. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11347. msm_routing_put_audio_mixer),
  11348. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11349. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11350. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11351. msm_routing_put_audio_mixer),
  11352. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11353. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11354. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11355. msm_routing_put_audio_mixer),
  11356. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11357. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11358. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11359. msm_routing_put_audio_mixer),
  11360. };
  11361. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  11362. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11363. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11364. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11365. msm_routing_put_audio_mixer),
  11366. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11367. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11368. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11369. msm_routing_put_audio_mixer),
  11370. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11371. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11372. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11373. msm_routing_put_audio_mixer),
  11374. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11375. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11376. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11377. msm_routing_put_audio_mixer),
  11378. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11379. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11380. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11381. msm_routing_put_audio_mixer),
  11382. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11383. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11384. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11385. msm_routing_put_audio_mixer),
  11386. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11387. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11388. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11389. msm_routing_put_audio_mixer),
  11390. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11391. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11392. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11393. msm_routing_put_audio_mixer),
  11394. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11395. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11396. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11397. msm_routing_put_audio_mixer),
  11398. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11399. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11400. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11401. msm_routing_put_audio_mixer),
  11402. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11403. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11404. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11405. msm_routing_put_audio_mixer),
  11406. };
  11407. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  11408. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11409. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11410. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11411. msm_routing_put_audio_mixer),
  11412. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11413. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11414. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11415. msm_routing_put_audio_mixer),
  11416. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11417. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11418. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11419. msm_routing_put_audio_mixer),
  11420. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11421. MSM_BACKEND_DAI_INT_FM_TX,
  11422. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11423. msm_routing_put_audio_mixer),
  11424. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11425. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11426. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11427. msm_routing_put_audio_mixer),
  11428. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11429. MSM_BACKEND_DAI_AFE_PCM_TX,
  11430. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11431. msm_routing_put_audio_mixer),
  11432. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11433. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11434. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11435. msm_routing_put_audio_mixer),
  11436. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11437. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11438. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11439. msm_routing_put_audio_mixer),
  11440. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11441. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11442. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11443. msm_routing_put_audio_mixer),
  11444. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11445. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11446. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11447. msm_routing_put_audio_mixer),
  11448. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11449. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11450. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11451. msm_routing_put_audio_mixer),
  11452. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11453. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11454. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11455. msm_routing_put_audio_mixer),
  11456. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11457. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11458. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11459. msm_routing_put_audio_mixer),
  11460. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11461. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11462. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11463. msm_routing_put_audio_mixer),
  11464. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11465. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11466. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11467. msm_routing_put_audio_mixer),
  11468. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11469. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11470. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11471. msm_routing_get_audio_mixer,
  11472. msm_routing_put_audio_mixer),
  11473. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11474. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11475. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11476. msm_routing_get_audio_mixer,
  11477. msm_routing_put_audio_mixer),
  11478. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11479. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11480. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11481. msm_routing_get_audio_mixer,
  11482. msm_routing_put_audio_mixer),
  11483. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11485. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11486. msm_routing_get_audio_mixer,
  11487. msm_routing_put_audio_mixer),
  11488. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11489. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11490. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11491. msm_routing_get_audio_mixer,
  11492. msm_routing_put_audio_mixer),
  11493. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11494. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11495. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11496. msm_routing_get_audio_mixer,
  11497. msm_routing_put_audio_mixer),
  11498. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11499. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11500. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11501. msm_routing_put_audio_mixer),
  11502. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11503. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11504. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11505. msm_routing_put_audio_mixer),
  11506. };
  11507. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  11508. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11509. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11510. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11511. msm_routing_put_audio_mixer),
  11512. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11513. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11514. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11515. msm_routing_put_audio_mixer),
  11516. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11517. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11518. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11519. msm_routing_put_audio_mixer),
  11520. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11521. MSM_BACKEND_DAI_INT_FM_TX,
  11522. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11523. msm_routing_put_audio_mixer),
  11524. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11525. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11526. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11527. msm_routing_put_audio_mixer),
  11528. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11529. MSM_BACKEND_DAI_AFE_PCM_TX,
  11530. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11531. msm_routing_put_audio_mixer),
  11532. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11533. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11534. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11535. msm_routing_put_audio_mixer),
  11536. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11537. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11538. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11539. msm_routing_put_audio_mixer),
  11540. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11541. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11542. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11543. msm_routing_put_audio_mixer),
  11544. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11545. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11546. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11547. msm_routing_put_audio_mixer),
  11548. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11549. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11550. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11551. msm_routing_put_audio_mixer),
  11552. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11553. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11554. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11555. msm_routing_put_audio_mixer),
  11556. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11557. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11558. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11559. msm_routing_put_audio_mixer),
  11560. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11561. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11562. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11563. msm_routing_put_audio_mixer),
  11564. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11565. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11566. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11567. msm_routing_put_audio_mixer),
  11568. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11569. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11570. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11571. msm_routing_get_audio_mixer,
  11572. msm_routing_put_audio_mixer),
  11573. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11574. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11575. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11576. msm_routing_get_audio_mixer,
  11577. msm_routing_put_audio_mixer),
  11578. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11579. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11580. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11581. msm_routing_get_audio_mixer,
  11582. msm_routing_put_audio_mixer),
  11583. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11584. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11585. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11586. msm_routing_get_audio_mixer,
  11587. msm_routing_put_audio_mixer),
  11588. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11589. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11590. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11591. msm_routing_get_audio_mixer,
  11592. msm_routing_put_audio_mixer),
  11593. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11594. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11595. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11596. msm_routing_get_audio_mixer,
  11597. msm_routing_put_audio_mixer),
  11598. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11599. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11600. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11601. msm_routing_put_audio_mixer),
  11602. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11603. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11604. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11605. msm_routing_put_audio_mixer),
  11606. };
  11607. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  11608. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11609. MSM_BACKEND_DAI_PRI_I2S_RX,
  11610. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11611. msm_routing_put_voice_mixer),
  11612. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11613. MSM_BACKEND_DAI_PRI_I2S_RX,
  11614. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11615. msm_routing_put_voice_mixer),
  11616. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11617. MSM_BACKEND_DAI_PRI_I2S_RX,
  11618. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11619. msm_routing_put_voice_mixer),
  11620. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11621. MSM_BACKEND_DAI_PRI_I2S_RX,
  11622. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11623. msm_routing_put_voice_mixer),
  11624. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11625. MSM_BACKEND_DAI_PRI_I2S_RX,
  11626. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11627. msm_routing_put_voice_mixer),
  11628. };
  11629. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  11630. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11631. MSM_BACKEND_DAI_SEC_I2S_RX,
  11632. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11633. msm_routing_put_voice_mixer),
  11634. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11635. MSM_BACKEND_DAI_SEC_I2S_RX,
  11636. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11637. msm_routing_put_voice_mixer),
  11638. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11639. MSM_BACKEND_DAI_SEC_I2S_RX,
  11640. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11641. msm_routing_put_voice_mixer),
  11642. };
  11643. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  11644. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11645. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11646. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11647. msm_routing_put_voice_mixer),
  11648. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11649. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11650. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11651. msm_routing_put_voice_mixer),
  11652. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11653. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11654. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11655. msm_routing_put_voice_mixer),
  11656. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11657. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11658. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11659. msm_routing_put_voice_mixer),
  11660. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11661. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11662. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11663. msm_routing_put_voice_mixer),
  11664. };
  11665. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  11666. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11667. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11668. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11669. msm_routing_put_voice_mixer),
  11670. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11671. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11672. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11673. msm_routing_put_voice_mixer),
  11674. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11675. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11676. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11677. msm_routing_put_voice_mixer),
  11678. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11679. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11680. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11681. msm_routing_put_voice_mixer),
  11682. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11683. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11684. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11685. msm_routing_put_voice_mixer),
  11686. };
  11687. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  11688. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11689. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11690. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11691. msm_routing_put_voice_mixer),
  11692. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11693. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11694. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11695. msm_routing_put_voice_mixer),
  11696. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11697. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11698. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11699. msm_routing_put_voice_mixer),
  11700. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11701. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11702. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11703. msm_routing_put_voice_mixer),
  11704. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11705. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11706. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11707. msm_routing_put_voice_mixer),
  11708. };
  11709. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  11710. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11711. MSM_BACKEND_DAI_USB_RX,
  11712. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11713. msm_routing_put_voice_mixer),
  11714. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11715. MSM_BACKEND_DAI_USB_RX,
  11716. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11717. msm_routing_put_voice_mixer),
  11718. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11719. MSM_BACKEND_DAI_USB_RX,
  11720. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11721. msm_routing_put_voice_mixer),
  11722. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11723. MSM_BACKEND_DAI_USB_RX,
  11724. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11725. msm_routing_put_voice_mixer),
  11726. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11727. MSM_BACKEND_DAI_USB_RX,
  11728. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11729. msm_routing_put_voice_mixer),
  11730. };
  11731. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  11732. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11733. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11734. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11735. msm_routing_put_voice_mixer),
  11736. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11737. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11738. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11739. msm_routing_put_voice_mixer),
  11740. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11741. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11742. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11743. msm_routing_put_voice_mixer),
  11744. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11745. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11746. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11747. msm_routing_put_voice_mixer),
  11748. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11749. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11750. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11751. msm_routing_put_voice_mixer),
  11752. };
  11753. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  11754. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11755. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11756. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11757. msm_routing_put_voice_mixer),
  11758. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11759. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11760. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11761. msm_routing_put_voice_mixer),
  11762. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11763. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11764. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11765. msm_routing_put_voice_mixer),
  11766. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11767. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11768. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11769. msm_routing_put_voice_mixer),
  11770. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11771. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11772. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11773. msm_routing_put_voice_mixer),
  11774. };
  11775. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  11776. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11777. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11778. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11779. msm_routing_put_voice_mixer),
  11780. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11781. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11782. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11783. msm_routing_put_voice_mixer),
  11784. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11785. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11786. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11787. msm_routing_put_voice_mixer),
  11788. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11789. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11790. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11791. msm_routing_put_voice_mixer),
  11792. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11793. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11794. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11795. msm_routing_put_voice_mixer),
  11796. };
  11797. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  11798. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11799. MSM_BACKEND_DAI_MI2S_RX,
  11800. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11801. msm_routing_put_voice_mixer),
  11802. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11803. MSM_BACKEND_DAI_MI2S_RX,
  11804. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11805. msm_routing_put_voice_mixer),
  11806. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11807. MSM_BACKEND_DAI_MI2S_RX,
  11808. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11809. msm_routing_put_voice_mixer),
  11810. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11811. MSM_BACKEND_DAI_MI2S_RX,
  11812. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11813. msm_routing_put_voice_mixer),
  11814. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11815. MSM_BACKEND_DAI_MI2S_RX,
  11816. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11817. msm_routing_put_voice_mixer),
  11818. };
  11819. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  11820. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11821. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11822. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11823. msm_routing_put_voice_mixer),
  11824. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11825. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11826. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11827. msm_routing_put_voice_mixer),
  11828. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11829. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11830. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11831. msm_routing_put_voice_mixer),
  11832. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11833. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11834. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11835. msm_routing_put_voice_mixer),
  11836. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11837. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11838. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11839. msm_routing_put_voice_mixer),
  11840. };
  11841. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  11842. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11843. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11844. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11845. msm_routing_put_voice_mixer),
  11846. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11847. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11848. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11849. msm_routing_put_voice_mixer),
  11850. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11851. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11852. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11853. msm_routing_put_voice_mixer),
  11854. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11855. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11856. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11857. msm_routing_put_voice_mixer),
  11858. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11859. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11860. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11861. msm_routing_put_voice_mixer),
  11862. };
  11863. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  11864. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11865. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11866. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11867. msm_routing_put_voice_mixer),
  11868. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11869. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11870. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11871. msm_routing_put_voice_mixer),
  11872. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11873. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11874. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11875. msm_routing_put_voice_mixer),
  11876. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11877. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11878. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11879. msm_routing_put_voice_mixer),
  11880. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11881. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11882. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11883. msm_routing_put_voice_mixer),
  11884. };
  11885. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  11886. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11887. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11888. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11889. msm_routing_put_voice_mixer),
  11890. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11891. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11892. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11893. msm_routing_put_voice_mixer),
  11894. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11895. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11896. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11897. msm_routing_put_voice_mixer),
  11898. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11899. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11900. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11901. msm_routing_put_voice_mixer),
  11902. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11903. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11904. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11905. msm_routing_put_voice_mixer),
  11906. };
  11907. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  11908. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11909. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11910. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11911. msm_routing_put_voice_mixer),
  11912. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11913. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11914. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11915. msm_routing_put_voice_mixer),
  11916. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11917. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11918. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11919. msm_routing_put_voice_mixer),
  11920. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11921. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11922. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11923. msm_routing_put_voice_mixer),
  11924. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11925. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11926. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11927. msm_routing_put_voice_mixer),
  11928. };
  11929. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  11930. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11931. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11932. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11933. msm_routing_put_voice_mixer),
  11934. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11935. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11936. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11937. msm_routing_put_voice_mixer),
  11938. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11939. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11940. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11941. msm_routing_put_voice_mixer),
  11942. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11943. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11944. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11945. msm_routing_put_voice_mixer),
  11946. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11947. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11948. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11949. msm_routing_put_voice_mixer),
  11950. };
  11951. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  11952. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11953. MSM_BACKEND_DAI_AFE_PCM_RX,
  11954. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11955. msm_routing_put_voice_mixer),
  11956. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11957. MSM_BACKEND_DAI_AFE_PCM_RX,
  11958. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11959. msm_routing_put_voice_mixer),
  11960. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11961. MSM_BACKEND_DAI_AFE_PCM_RX,
  11962. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11963. msm_routing_put_voice_mixer),
  11964. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11965. MSM_BACKEND_DAI_AFE_PCM_RX,
  11966. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11967. msm_routing_put_voice_mixer),
  11968. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11969. MSM_BACKEND_DAI_AFE_PCM_RX,
  11970. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11971. msm_routing_put_voice_mixer),
  11972. };
  11973. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  11974. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11975. MSM_BACKEND_DAI_AUXPCM_RX,
  11976. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11977. msm_routing_put_voice_mixer),
  11978. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11979. MSM_BACKEND_DAI_AUXPCM_RX,
  11980. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11981. msm_routing_put_voice_mixer),
  11982. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11983. MSM_BACKEND_DAI_AUXPCM_RX,
  11984. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11985. msm_routing_put_voice_mixer),
  11986. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11987. MSM_BACKEND_DAI_AUXPCM_RX,
  11988. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11989. msm_routing_put_voice_mixer),
  11990. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11991. MSM_BACKEND_DAI_AUXPCM_RX,
  11992. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11993. msm_routing_put_voice_mixer),
  11994. };
  11995. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  11996. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11997. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11998. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11999. msm_routing_put_voice_mixer),
  12000. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12001. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12002. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12003. msm_routing_put_voice_mixer),
  12004. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12005. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12006. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12007. msm_routing_put_voice_mixer),
  12008. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12009. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12010. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12011. msm_routing_put_voice_mixer),
  12012. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12013. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12014. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12015. msm_routing_put_voice_mixer),
  12016. };
  12017. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  12018. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12019. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12020. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12021. msm_routing_put_voice_mixer),
  12022. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12023. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12024. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12025. msm_routing_put_voice_mixer),
  12026. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12027. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12028. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12029. msm_routing_put_voice_mixer),
  12030. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12031. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12032. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12033. msm_routing_put_voice_mixer),
  12034. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12035. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12036. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12037. msm_routing_put_voice_mixer),
  12038. };
  12039. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  12040. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12041. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12042. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12043. msm_routing_put_voice_mixer),
  12044. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12045. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12046. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12047. msm_routing_put_voice_mixer),
  12048. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12049. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12050. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12051. msm_routing_put_voice_mixer),
  12052. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12053. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12054. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12055. msm_routing_put_voice_mixer),
  12056. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12057. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12058. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12059. msm_routing_put_voice_mixer),
  12060. };
  12061. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  12062. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12063. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12064. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12065. msm_routing_put_voice_mixer),
  12066. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12067. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12068. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12069. msm_routing_put_voice_mixer),
  12070. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12071. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12072. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12073. msm_routing_put_voice_mixer),
  12074. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12075. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12076. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12077. msm_routing_put_voice_mixer),
  12078. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12079. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12080. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12081. msm_routing_put_voice_mixer),
  12082. };
  12083. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  12084. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12085. MSM_BACKEND_DAI_HDMI_RX,
  12086. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12087. msm_routing_put_voice_mixer),
  12088. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12089. MSM_BACKEND_DAI_HDMI_RX,
  12090. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12091. msm_routing_put_voice_mixer),
  12092. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12093. MSM_BACKEND_DAI_HDMI_RX,
  12094. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12095. msm_routing_put_voice_mixer),
  12096. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12097. MSM_BACKEND_DAI_HDMI_RX,
  12098. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12099. msm_routing_put_voice_mixer),
  12100. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12101. MSM_BACKEND_DAI_HDMI_RX,
  12102. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12103. msm_routing_put_voice_mixer),
  12104. };
  12105. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  12106. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12107. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12108. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12109. msm_routing_put_voice_mixer),
  12110. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12111. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12112. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12113. msm_routing_put_voice_mixer),
  12114. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12115. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12116. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12117. msm_routing_put_voice_mixer),
  12118. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12119. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12120. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12121. msm_routing_put_voice_mixer),
  12122. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12123. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12124. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12125. msm_routing_put_voice_mixer),
  12126. };
  12127. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  12128. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12129. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12130. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12131. msm_routing_put_voice_mixer),
  12132. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12133. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12134. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12135. msm_routing_put_voice_mixer),
  12136. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12137. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12138. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12139. msm_routing_put_voice_mixer),
  12140. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12141. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12142. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12143. msm_routing_put_voice_mixer),
  12144. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12145. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12146. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12147. msm_routing_put_voice_mixer),
  12148. };
  12149. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  12150. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12151. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12152. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12153. msm_routing_put_voice_mixer),
  12154. };
  12155. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  12156. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12157. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12158. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12159. msm_routing_put_voice_mixer),
  12160. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12161. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12162. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12163. msm_routing_put_voice_mixer),
  12164. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12165. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12166. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12167. msm_routing_put_voice_mixer),
  12168. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12169. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12170. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12171. msm_routing_put_voice_mixer),
  12172. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12173. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12174. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12175. msm_routing_put_voice_mixer),
  12176. };
  12177. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  12178. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12179. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12180. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12181. msm_routing_put_voice_mixer),
  12182. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12183. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12184. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12185. msm_routing_put_voice_mixer),
  12186. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12187. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12188. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12189. msm_routing_put_voice_mixer),
  12190. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12191. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12192. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12193. msm_routing_put_voice_mixer),
  12194. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12195. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12196. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12197. msm_routing_put_voice_mixer),
  12198. };
  12199. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  12200. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12201. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12202. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12203. msm_routing_put_voice_mixer),
  12204. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12205. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12206. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12207. msm_routing_put_voice_mixer),
  12208. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12209. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12210. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12211. msm_routing_put_voice_mixer),
  12212. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12213. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12214. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12215. msm_routing_put_voice_mixer),
  12216. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12217. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12218. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12219. msm_routing_put_voice_mixer),
  12220. };
  12221. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  12222. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12223. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12224. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12225. msm_routing_put_voice_mixer),
  12226. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12227. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12228. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12229. msm_routing_put_voice_mixer),
  12230. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12231. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12232. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12233. msm_routing_put_voice_mixer),
  12234. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12235. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12236. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12237. msm_routing_put_voice_mixer),
  12238. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12239. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12240. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12241. msm_routing_put_voice_mixer),
  12242. };
  12243. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  12244. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12245. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12246. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12247. msm_routing_put_voice_mixer),
  12248. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12249. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12250. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12251. msm_routing_put_voice_mixer),
  12252. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12253. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12254. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12255. msm_routing_put_voice_mixer),
  12256. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12257. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12258. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12259. msm_routing_put_voice_mixer),
  12260. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12261. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12262. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12263. msm_routing_put_voice_mixer),
  12264. };
  12265. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  12266. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12267. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12268. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12269. msm_routing_put_voice_mixer),
  12270. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12271. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12272. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12273. msm_routing_put_voice_mixer),
  12274. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12275. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12276. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12277. msm_routing_put_voice_mixer),
  12278. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12279. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12280. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12281. msm_routing_put_voice_mixer),
  12282. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12283. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12284. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12285. msm_routing_put_voice_mixer),
  12286. };
  12287. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  12288. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12289. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12290. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12291. msm_routing_put_voice_mixer),
  12292. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12293. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12294. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12295. msm_routing_put_voice_mixer),
  12296. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12297. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12298. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12299. msm_routing_put_voice_mixer),
  12300. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12301. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12302. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12303. msm_routing_put_voice_mixer),
  12304. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12305. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12306. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12307. msm_routing_put_voice_mixer),
  12308. };
  12309. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  12310. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12311. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12312. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12313. msm_routing_put_voice_mixer),
  12314. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12315. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12316. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12317. msm_routing_put_voice_mixer),
  12318. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12319. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12320. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12321. msm_routing_put_voice_mixer),
  12322. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12323. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12324. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12325. msm_routing_put_voice_mixer),
  12326. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12327. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12328. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12329. msm_routing_put_voice_mixer),
  12330. };
  12331. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  12332. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12333. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12334. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12335. msm_routing_put_voice_mixer),
  12336. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12337. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12338. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12339. msm_routing_put_voice_mixer),
  12340. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12341. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12342. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12343. msm_routing_put_voice_mixer),
  12344. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12345. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12346. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12347. msm_routing_put_voice_mixer),
  12348. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12349. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12350. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12351. msm_routing_put_voice_mixer),
  12352. };
  12353. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  12354. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12355. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12356. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12357. msm_routing_put_voice_mixer),
  12358. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12359. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12360. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12361. msm_routing_put_voice_mixer),
  12362. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12363. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12364. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12365. msm_routing_put_voice_mixer),
  12366. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12367. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12368. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12369. msm_routing_put_voice_mixer),
  12370. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12371. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12372. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12373. msm_routing_put_voice_mixer),
  12374. };
  12375. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  12376. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12377. MSM_BACKEND_DAI_EXTPROC_RX,
  12378. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12379. msm_routing_put_voice_mixer),
  12380. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12381. MSM_BACKEND_DAI_EXTPROC_RX,
  12382. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12383. msm_routing_put_voice_mixer),
  12384. };
  12385. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  12386. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12387. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12388. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12389. msm_routing_put_voice_mixer),
  12390. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12391. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12392. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12393. msm_routing_put_voice_mixer),
  12394. };
  12395. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  12396. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12397. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12398. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12399. msm_routing_put_voice_mixer),
  12400. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12401. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12402. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12403. msm_routing_put_voice_mixer),
  12404. };
  12405. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  12406. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  12407. MSM_BACKEND_DAI_PRI_I2S_TX,
  12408. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12409. msm_routing_put_voice_mixer),
  12410. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  12411. MSM_BACKEND_DAI_MI2S_TX,
  12412. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12413. msm_routing_put_voice_mixer),
  12414. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  12415. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12416. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12417. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  12418. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12419. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12420. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  12421. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12422. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12423. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12424. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12425. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12426. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12427. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12428. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12429. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12430. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12431. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12432. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12433. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12434. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12435. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12436. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12437. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12438. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  12439. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12440. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12441. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  12442. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12443. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12444. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  12445. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12446. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12447. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  12448. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12449. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12450. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  12451. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12452. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12453. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  12454. MSM_BACKEND_DAI_USB_TX,
  12455. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12456. msm_routing_put_voice_mixer),
  12457. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  12458. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12459. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12460. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12461. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12462. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12463. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12464. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12465. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12466. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12467. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12468. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12469. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12470. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12471. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12472. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  12473. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  12474. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12475. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  12476. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  12477. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12478. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  12479. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  12480. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12481. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  12482. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  12483. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12484. };
  12485. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  12486. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  12487. MSM_BACKEND_DAI_PRI_I2S_TX,
  12488. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12489. msm_routing_put_voice_mixer),
  12490. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  12491. MSM_BACKEND_DAI_MI2S_TX,
  12492. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12493. msm_routing_put_voice_mixer),
  12494. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  12495. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12496. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12497. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  12498. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12499. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12500. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  12501. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12502. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12503. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12504. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12505. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12506. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12507. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12508. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12509. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12510. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12511. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12512. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12513. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12514. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12515. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12516. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12517. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12518. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  12519. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12520. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12521. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  12522. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12523. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12524. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  12525. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12526. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12527. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  12528. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12529. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12530. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  12531. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12532. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12533. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  12534. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12535. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12536. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12537. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12538. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12539. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12540. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12541. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12542. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12543. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12544. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12545. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12546. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12547. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12548. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  12549. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  12550. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12551. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  12552. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  12553. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12554. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  12555. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  12556. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12557. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  12558. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  12559. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12560. };
  12561. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  12562. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  12563. MSM_BACKEND_DAI_PRI_I2S_TX,
  12564. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12565. msm_routing_put_voice_mixer),
  12566. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  12567. MSM_BACKEND_DAI_MI2S_TX,
  12568. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12569. msm_routing_put_voice_mixer),
  12570. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  12571. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12572. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12573. msm_routing_put_voice_mixer),
  12574. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  12575. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12576. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12577. msm_routing_put_voice_mixer),
  12578. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  12579. MSM_BACKEND_DAI_AFE_PCM_TX,
  12580. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12581. msm_routing_put_voice_mixer),
  12582. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12583. MSM_BACKEND_DAI_AUXPCM_TX,
  12584. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12585. msm_routing_put_voice_mixer),
  12586. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12587. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12588. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12589. msm_routing_put_voice_mixer),
  12590. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12591. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12592. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12593. msm_routing_put_voice_mixer),
  12594. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12595. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12596. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12597. msm_routing_put_voice_mixer),
  12598. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12599. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12600. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12601. msm_routing_put_voice_mixer),
  12602. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  12603. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12604. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12605. msm_routing_put_voice_mixer),
  12606. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  12607. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12608. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12609. msm_routing_put_voice_mixer),
  12610. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  12611. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12612. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12613. msm_routing_put_voice_mixer),
  12614. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  12615. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12616. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12617. msm_routing_put_voice_mixer),
  12618. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  12619. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12620. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12621. msm_routing_put_voice_mixer),
  12622. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  12623. MSM_BACKEND_DAI_USB_TX,
  12624. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12625. msm_routing_put_voice_mixer),
  12626. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12627. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12628. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12629. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12630. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12631. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12632. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12633. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12634. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12635. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12636. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12637. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12638. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  12639. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  12640. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12641. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  12642. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  12643. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12644. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  12645. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  12646. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12647. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  12648. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  12649. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12650. };
  12651. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  12652. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12653. MSM_BACKEND_DAI_EXTPROC_TX,
  12654. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12655. msm_routing_put_voice_stub_mixer),
  12656. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12657. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12658. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12659. msm_routing_put_voice_stub_mixer),
  12660. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12661. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12662. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12663. msm_routing_put_voice_stub_mixer),
  12664. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12665. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12666. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12667. msm_routing_put_voice_stub_mixer),
  12668. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12669. MSM_BACKEND_DAI_MI2S_TX,
  12670. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12671. msm_routing_put_voice_stub_mixer),
  12672. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12673. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12674. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12675. msm_routing_put_voice_stub_mixer),
  12676. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12677. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12678. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12679. msm_routing_put_voice_stub_mixer),
  12680. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12681. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12682. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12683. msm_routing_put_voice_stub_mixer),
  12684. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12685. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12686. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12687. msm_routing_put_voice_stub_mixer),
  12688. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12689. MSM_BACKEND_DAI_AUXPCM_TX,
  12690. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12691. msm_routing_put_voice_stub_mixer),
  12692. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12693. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12694. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12695. msm_routing_put_voice_stub_mixer),
  12696. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12697. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12698. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12699. msm_routing_put_voice_stub_mixer),
  12700. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12701. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12702. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12703. msm_routing_put_voice_stub_mixer),
  12704. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12705. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12706. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12707. msm_routing_put_voice_stub_mixer),
  12708. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12709. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12710. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12711. msm_routing_put_voice_stub_mixer),
  12712. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12713. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12714. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12715. msm_routing_put_voice_stub_mixer),
  12716. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12717. MSM_BACKEND_DAI_AFE_PCM_TX,
  12718. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12719. msm_routing_put_voice_stub_mixer),
  12720. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12721. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12722. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12723. msm_routing_put_voice_stub_mixer),
  12724. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12725. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12726. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12727. msm_routing_put_voice_stub_mixer),
  12728. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12729. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  12730. 1, 0, msm_routing_get_voice_stub_mixer,
  12731. msm_routing_put_voice_stub_mixer),
  12732. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12733. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  12734. 1, 0, msm_routing_get_voice_stub_mixer,
  12735. msm_routing_put_voice_stub_mixer),
  12736. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12737. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  12738. 1, 0, msm_routing_get_voice_stub_mixer,
  12739. msm_routing_put_voice_stub_mixer),
  12740. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12741. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  12742. 1, 0, msm_routing_get_voice_stub_mixer,
  12743. msm_routing_put_voice_stub_mixer),
  12744. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12745. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  12746. 1, 0, msm_routing_get_voice_stub_mixer,
  12747. msm_routing_put_voice_stub_mixer),
  12748. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12749. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  12750. 1, 0, msm_routing_get_voice_stub_mixer,
  12751. msm_routing_put_voice_stub_mixer),
  12752. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12753. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  12754. 1, 0, msm_routing_get_voice_stub_mixer,
  12755. msm_routing_put_voice_stub_mixer),
  12756. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12757. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  12758. 1, 0, msm_routing_get_voice_stub_mixer,
  12759. msm_routing_put_voice_stub_mixer),
  12760. };
  12761. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  12762. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12763. MSM_BACKEND_DAI_EXTPROC_TX,
  12764. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12765. msm_routing_put_voice_stub_mixer),
  12766. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12767. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12768. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12769. msm_routing_put_voice_stub_mixer),
  12770. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12771. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12772. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12773. msm_routing_put_voice_stub_mixer),
  12774. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12775. MSM_BACKEND_DAI_AUXPCM_TX,
  12776. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12777. msm_routing_put_voice_stub_mixer),
  12778. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12779. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12780. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12781. msm_routing_put_voice_stub_mixer),
  12782. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12783. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12784. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12785. msm_routing_put_voice_stub_mixer),
  12786. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12787. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12788. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12789. msm_routing_put_voice_stub_mixer),
  12790. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12791. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12792. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12793. msm_routing_put_voice_stub_mixer),
  12794. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12795. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12796. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12797. msm_routing_put_voice_stub_mixer),
  12798. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12799. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12800. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12801. msm_routing_put_voice_stub_mixer),
  12802. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12803. MSM_BACKEND_DAI_AFE_PCM_TX,
  12804. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12805. msm_routing_put_voice_stub_mixer),
  12806. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12807. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12808. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12809. msm_routing_put_voice_stub_mixer),
  12810. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12811. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12812. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12813. msm_routing_put_voice_stub_mixer),
  12814. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12815. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12816. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12817. msm_routing_put_voice_stub_mixer),
  12818. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12819. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12820. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12821. msm_routing_put_voice_stub_mixer),
  12822. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12823. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  12824. 1, 0, msm_routing_get_voice_stub_mixer,
  12825. msm_routing_put_voice_stub_mixer),
  12826. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12827. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  12828. 1, 0, msm_routing_get_voice_stub_mixer,
  12829. msm_routing_put_voice_stub_mixer),
  12830. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12831. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  12832. 1, 0, msm_routing_get_voice_stub_mixer,
  12833. msm_routing_put_voice_stub_mixer),
  12834. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12835. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  12836. 1, 0, msm_routing_get_voice_stub_mixer,
  12837. msm_routing_put_voice_stub_mixer),
  12838. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12839. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  12840. 1, 0, msm_routing_get_voice_stub_mixer,
  12841. msm_routing_put_voice_stub_mixer),
  12842. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12843. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  12844. 1, 0, msm_routing_get_voice_stub_mixer,
  12845. msm_routing_put_voice_stub_mixer),
  12846. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12847. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  12848. 1, 0, msm_routing_get_voice_stub_mixer,
  12849. msm_routing_put_voice_stub_mixer),
  12850. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12851. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  12852. 1, 0, msm_routing_get_voice_stub_mixer,
  12853. msm_routing_put_voice_stub_mixer),
  12854. };
  12855. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  12856. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12857. MSM_BACKEND_DAI_EXTPROC_TX,
  12858. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12859. msm_routing_put_voice_stub_mixer),
  12860. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12861. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12862. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12863. msm_routing_put_voice_stub_mixer),
  12864. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12865. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12866. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12867. msm_routing_put_voice_stub_mixer),
  12868. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12869. MSM_BACKEND_DAI_AUXPCM_TX,
  12870. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12871. msm_routing_put_voice_stub_mixer),
  12872. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12873. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12874. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12875. msm_routing_put_voice_stub_mixer),
  12876. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12877. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12878. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12879. msm_routing_put_voice_stub_mixer),
  12880. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12881. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12882. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12883. msm_routing_put_voice_stub_mixer),
  12884. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12885. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12886. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12887. msm_routing_put_voice_stub_mixer),
  12888. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12889. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12890. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12891. msm_routing_put_voice_stub_mixer),
  12892. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12893. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12894. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12895. msm_routing_put_voice_stub_mixer),
  12896. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12897. MSM_BACKEND_DAI_AFE_PCM_TX,
  12898. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12899. msm_routing_put_voice_stub_mixer),
  12900. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12901. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12902. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12903. msm_routing_put_voice_stub_mixer),
  12904. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12905. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12906. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12907. msm_routing_put_voice_stub_mixer),
  12908. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12909. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12910. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12911. msm_routing_put_voice_stub_mixer),
  12912. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12913. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12914. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12915. msm_routing_put_voice_stub_mixer),
  12916. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12917. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  12918. 1, 0, msm_routing_get_voice_stub_mixer,
  12919. msm_routing_put_voice_stub_mixer),
  12920. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12921. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  12922. 1, 0, msm_routing_get_voice_stub_mixer,
  12923. msm_routing_put_voice_stub_mixer),
  12924. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12925. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  12926. 1, 0, msm_routing_get_voice_stub_mixer,
  12927. msm_routing_put_voice_stub_mixer),
  12928. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12929. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  12930. 1, 0, msm_routing_get_voice_stub_mixer,
  12931. msm_routing_put_voice_stub_mixer),
  12932. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12933. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  12934. 1, 0, msm_routing_get_voice_stub_mixer,
  12935. msm_routing_put_voice_stub_mixer),
  12936. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12937. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  12938. 1, 0, msm_routing_get_voice_stub_mixer,
  12939. msm_routing_put_voice_stub_mixer),
  12940. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12941. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  12942. 1, 0, msm_routing_get_voice_stub_mixer,
  12943. msm_routing_put_voice_stub_mixer),
  12944. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12945. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  12946. 1, 0, msm_routing_get_voice_stub_mixer,
  12947. msm_routing_put_voice_stub_mixer),
  12948. };
  12949. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  12950. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  12951. MSM_BACKEND_DAI_PRI_I2S_TX,
  12952. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12953. msm_routing_put_voice_mixer),
  12954. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  12955. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12956. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12957. msm_routing_put_voice_mixer),
  12958. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  12959. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12960. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  12961. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12962. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  12963. MSM_BACKEND_DAI_AFE_PCM_TX,
  12964. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12965. msm_routing_put_voice_mixer),
  12966. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12967. MSM_BACKEND_DAI_AUXPCM_TX,
  12968. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12969. msm_routing_put_voice_mixer),
  12970. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12971. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12972. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12973. msm_routing_put_voice_mixer),
  12974. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12975. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12976. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12977. msm_routing_put_voice_mixer),
  12978. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12979. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12980. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12981. msm_routing_put_voice_mixer),
  12982. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12983. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12984. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12985. msm_routing_put_voice_mixer),
  12986. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  12987. MSM_BACKEND_DAI_MI2S_TX,
  12988. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12989. msm_routing_put_voice_mixer),
  12990. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12991. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12992. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12993. msm_routing_put_voice_mixer),
  12994. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12995. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12996. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12997. msm_routing_put_voice_mixer),
  12998. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12999. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13000. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13001. msm_routing_put_voice_mixer),
  13002. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  13003. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13004. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13005. msm_routing_put_voice_mixer),
  13006. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  13007. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13008. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13009. msm_routing_put_voice_mixer),
  13010. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  13011. MSM_BACKEND_DAI_USB_TX,
  13012. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13013. msm_routing_put_voice_mixer),
  13014. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  13015. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  13016. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13017. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  13018. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  13019. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13020. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  13021. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  13022. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13023. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  13024. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  13025. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13026. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  13027. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  13028. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13029. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  13030. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  13031. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13032. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  13033. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  13034. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13035. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  13036. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  13037. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13038. };
  13039. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  13040. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13041. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13042. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13043. msm_routing_put_port_mixer),
  13044. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13045. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13046. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13047. msm_routing_put_port_mixer),
  13048. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13049. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13050. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13051. msm_routing_put_port_mixer),
  13052. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13053. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13054. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13055. msm_routing_put_port_mixer),
  13056. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13057. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13058. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13059. msm_routing_put_port_mixer),
  13060. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13061. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13062. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13063. msm_routing_put_port_mixer),
  13064. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13065. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13066. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13067. msm_routing_put_port_mixer),
  13068. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13069. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13070. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13071. msm_routing_put_port_mixer),
  13072. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13073. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13074. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13075. msm_routing_put_port_mixer),
  13076. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13077. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13078. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13079. msm_routing_put_port_mixer),
  13080. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13081. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13082. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13083. msm_routing_put_port_mixer),
  13084. };
  13085. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  13086. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13087. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13088. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13089. msm_routing_put_port_mixer),
  13090. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13091. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13092. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13093. msm_routing_put_port_mixer),
  13094. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13095. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13096. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13097. msm_routing_put_port_mixer),
  13098. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13099. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13100. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13101. msm_routing_put_port_mixer),
  13102. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13103. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13104. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13105. msm_routing_put_port_mixer),
  13106. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13107. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13108. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13109. msm_routing_put_port_mixer),
  13110. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13111. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13112. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13113. msm_routing_put_port_mixer),
  13114. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13115. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13116. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13117. msm_routing_put_port_mixer),
  13118. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13119. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13120. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13121. msm_routing_put_port_mixer),
  13122. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13123. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13124. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13125. msm_routing_put_port_mixer),
  13126. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13127. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13128. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13129. msm_routing_put_port_mixer),
  13130. };
  13131. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  13132. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13133. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13134. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  13135. msm_routing_put_port_mixer),
  13136. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13137. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13138. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  13139. msm_routing_put_port_mixer),
  13140. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13141. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13142. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13143. msm_routing_put_port_mixer),
  13144. };
  13145. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  13146. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13147. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13148. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  13149. msm_routing_put_port_mixer),
  13150. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13151. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13152. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13153. msm_routing_put_port_mixer),
  13154. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13155. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13156. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13157. msm_routing_put_port_mixer),
  13158. };
  13159. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  13160. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13161. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13162. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13163. msm_routing_put_port_mixer),
  13164. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13165. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13166. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13167. msm_routing_put_port_mixer),
  13168. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13169. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13170. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13171. msm_routing_put_port_mixer),
  13172. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13173. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13174. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13175. msm_routing_put_port_mixer),
  13176. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13177. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13178. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13179. msm_routing_put_port_mixer),
  13180. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13181. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13182. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13183. msm_routing_put_port_mixer),
  13184. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13185. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13186. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13187. msm_routing_put_port_mixer),
  13188. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13189. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13190. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13191. msm_routing_put_port_mixer),
  13192. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13193. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13194. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13195. msm_routing_put_port_mixer),
  13196. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13197. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13198. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13199. msm_routing_put_port_mixer),
  13200. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13201. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13202. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13203. msm_routing_put_port_mixer),
  13204. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13205. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13206. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13207. msm_routing_put_port_mixer),
  13208. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13209. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13210. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13211. msm_routing_put_port_mixer),
  13212. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13213. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13214. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13215. msm_routing_put_port_mixer),
  13216. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13217. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13218. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13219. msm_routing_put_port_mixer),
  13220. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13221. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13222. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13223. msm_routing_put_port_mixer),
  13224. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13225. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13226. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13227. msm_routing_put_port_mixer),
  13228. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  13229. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13230. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13231. msm_routing_put_port_mixer),
  13232. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  13233. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13234. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13235. msm_routing_put_port_mixer),
  13236. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  13237. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13238. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13239. msm_routing_put_port_mixer),
  13240. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  13241. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13242. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13243. msm_routing_put_port_mixer),
  13244. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  13245. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13246. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13247. msm_routing_put_port_mixer),
  13248. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13249. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13250. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13251. msm_routing_put_port_mixer),
  13252. };
  13253. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  13254. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13255. MSM_BACKEND_DAI_AUXPCM_RX,
  13256. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13257. msm_routing_put_port_mixer),
  13258. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13259. MSM_BACKEND_DAI_AUXPCM_RX,
  13260. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13261. msm_routing_put_port_mixer),
  13262. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13263. MSM_BACKEND_DAI_AUXPCM_RX,
  13264. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13265. msm_routing_put_port_mixer),
  13266. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13267. MSM_BACKEND_DAI_AUXPCM_RX,
  13268. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13269. msm_routing_put_port_mixer),
  13270. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13271. MSM_BACKEND_DAI_AUXPCM_RX,
  13272. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  13273. msm_routing_put_port_mixer),
  13274. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13275. MSM_BACKEND_DAI_AUXPCM_RX,
  13276. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13277. msm_routing_put_port_mixer),
  13278. };
  13279. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  13280. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13281. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13282. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13283. msm_routing_put_port_mixer),
  13284. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13285. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13286. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13287. msm_routing_put_port_mixer),
  13288. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13289. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13290. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13291. msm_routing_put_port_mixer),
  13292. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13293. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13294. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13295. msm_routing_put_port_mixer),
  13296. };
  13297. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  13298. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13299. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13300. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13301. msm_routing_put_port_mixer),
  13302. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13303. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13304. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13305. msm_routing_put_port_mixer),
  13306. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13307. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13308. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13309. msm_routing_put_port_mixer),
  13310. };
  13311. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  13312. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13313. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13314. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13315. msm_routing_put_port_mixer),
  13316. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13317. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13318. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13319. msm_routing_put_port_mixer),
  13320. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13321. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13322. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13323. msm_routing_put_port_mixer),
  13324. };
  13325. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  13326. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13327. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13328. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13329. msm_routing_put_port_mixer),
  13330. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13331. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13332. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13333. msm_routing_put_port_mixer),
  13334. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13335. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13336. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13337. msm_routing_put_port_mixer),
  13338. };
  13339. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  13340. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13341. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13342. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13343. msm_routing_put_port_mixer),
  13344. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13345. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13346. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  13347. msm_routing_put_port_mixer),
  13348. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13349. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13350. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13351. msm_routing_put_port_mixer),
  13352. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13353. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13354. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13355. msm_routing_put_port_mixer),
  13356. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13357. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13358. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13359. msm_routing_put_port_mixer),
  13360. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13361. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13362. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13363. msm_routing_put_port_mixer),
  13364. };
  13365. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  13366. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  13367. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13368. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  13369. msm_routing_put_port_mixer),
  13370. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13371. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13372. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13373. msm_routing_put_port_mixer),
  13374. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  13375. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13376. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  13377. msm_routing_put_port_mixer),
  13378. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  13379. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13380. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  13381. msm_routing_put_port_mixer),
  13382. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  13383. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13384. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  13385. msm_routing_put_port_mixer),
  13386. };
  13387. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  13388. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13389. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13390. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13391. msm_routing_put_port_mixer),
  13392. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13393. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13394. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13395. msm_routing_put_port_mixer),
  13396. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13397. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13398. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13399. msm_routing_put_port_mixer),
  13400. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13401. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13402. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13403. msm_routing_put_port_mixer),
  13404. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13405. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13406. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13407. msm_routing_put_port_mixer),
  13408. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13409. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13410. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13411. msm_routing_put_port_mixer),
  13412. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13413. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13414. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13415. msm_routing_put_port_mixer),
  13416. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13417. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13418. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13419. msm_routing_put_port_mixer),
  13420. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13421. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13422. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13423. msm_routing_put_port_mixer),
  13424. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13425. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13426. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13427. msm_routing_put_port_mixer),
  13428. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13429. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13430. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13431. msm_routing_put_port_mixer),
  13432. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13433. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13434. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13435. msm_routing_put_port_mixer),
  13436. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13437. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13438. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13439. msm_routing_put_port_mixer),
  13440. };
  13441. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  13442. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13443. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13444. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13445. msm_routing_put_port_mixer),
  13446. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13447. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13448. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13449. msm_routing_put_port_mixer),
  13450. };
  13451. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  13452. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13453. MSM_BACKEND_DAI_AFE_PCM_RX,
  13454. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13455. msm_routing_put_port_mixer),
  13456. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13457. MSM_BACKEND_DAI_AFE_PCM_RX,
  13458. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13459. msm_routing_put_port_mixer),
  13460. };
  13461. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  13462. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13463. MSM_BACKEND_DAI_HDMI_RX,
  13464. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13465. msm_routing_put_port_mixer),
  13466. };
  13467. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  13468. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13469. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13470. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13471. msm_routing_put_port_mixer),
  13472. };
  13473. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  13474. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13475. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13476. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13477. msm_routing_put_port_mixer),
  13478. };
  13479. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  13480. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13481. MSM_BACKEND_DAI_SEC_I2S_RX,
  13482. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13483. msm_routing_put_port_mixer),
  13484. };
  13485. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  13486. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13487. MSM_BACKEND_DAI_MI2S_RX,
  13488. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13489. msm_routing_put_port_mixer),
  13490. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13491. MSM_BACKEND_DAI_MI2S_RX,
  13492. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13493. msm_routing_put_port_mixer),
  13494. };
  13495. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  13496. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13497. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13498. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13499. msm_routing_put_port_mixer),
  13500. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13501. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13502. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13503. msm_routing_put_port_mixer),
  13504. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13505. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13506. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13507. msm_routing_put_port_mixer),
  13508. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13509. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13510. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13511. msm_routing_put_port_mixer),
  13512. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13513. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13514. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13515. msm_routing_put_port_mixer),
  13516. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13517. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13518. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13519. msm_routing_put_port_mixer),
  13520. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13521. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13522. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13523. msm_routing_put_port_mixer),
  13524. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13525. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13526. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13527. msm_routing_put_port_mixer),
  13528. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13529. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13530. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13531. msm_routing_put_port_mixer),
  13532. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13533. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13534. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13535. msm_routing_put_port_mixer),
  13536. };
  13537. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  13538. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13539. MSM_BACKEND_DAI_USB_RX,
  13540. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  13541. msm_routing_put_port_mixer),
  13542. };
  13543. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  13544. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13545. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13546. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13547. msm_routing_put_port_mixer),
  13548. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13549. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13550. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13551. msm_routing_put_port_mixer),
  13552. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13553. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13554. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13555. msm_routing_put_port_mixer),
  13556. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13557. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13558. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13559. msm_routing_put_port_mixer),
  13560. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13561. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13562. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13563. msm_routing_put_port_mixer),
  13564. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13565. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13566. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13567. msm_routing_put_port_mixer),
  13568. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13569. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13570. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13571. msm_routing_put_port_mixer),
  13572. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13573. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13574. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13575. msm_routing_put_port_mixer),
  13576. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13577. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13578. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13579. msm_routing_put_port_mixer),
  13580. };
  13581. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  13582. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13583. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13584. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13585. msm_routing_put_port_mixer),
  13586. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13587. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13588. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13589. msm_routing_put_port_mixer),
  13590. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13591. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13592. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13593. msm_routing_put_port_mixer),
  13594. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13595. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13596. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13597. msm_routing_put_port_mixer),
  13598. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13599. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13600. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13601. msm_routing_put_port_mixer),
  13602. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13603. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13604. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13605. msm_routing_put_port_mixer),
  13606. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13607. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13608. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13609. msm_routing_put_port_mixer),
  13610. };
  13611. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  13612. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13613. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13614. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13615. msm_routing_get_port_mixer,
  13616. msm_routing_put_port_mixer),
  13617. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13618. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13619. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13620. msm_routing_get_port_mixer,
  13621. msm_routing_put_port_mixer),
  13622. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13623. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13624. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13625. msm_routing_get_port_mixer,
  13626. msm_routing_put_port_mixer),
  13627. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13628. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13629. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13630. msm_routing_get_port_mixer,
  13631. msm_routing_put_port_mixer),
  13632. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13633. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13634. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13635. msm_routing_get_port_mixer,
  13636. msm_routing_put_port_mixer),
  13637. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13638. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13639. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13640. msm_routing_get_port_mixer,
  13641. msm_routing_put_port_mixer),
  13642. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13643. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13644. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13645. msm_routing_get_port_mixer,
  13646. msm_routing_put_port_mixer),
  13647. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13648. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13649. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13650. msm_routing_get_port_mixer,
  13651. msm_routing_put_port_mixer),
  13652. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13653. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13654. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13655. msm_routing_get_port_mixer,
  13656. msm_routing_put_port_mixer),
  13657. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13658. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13659. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13660. msm_routing_get_port_mixer,
  13661. msm_routing_put_port_mixer),
  13662. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13663. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13664. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13665. msm_routing_get_port_mixer,
  13666. msm_routing_put_port_mixer),
  13667. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13668. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13669. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13670. msm_routing_get_port_mixer,
  13671. msm_routing_put_port_mixer),
  13672. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13673. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13674. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13675. msm_routing_get_port_mixer,
  13676. msm_routing_put_port_mixer),
  13677. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13678. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13679. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13680. msm_routing_get_port_mixer,
  13681. msm_routing_put_port_mixer),
  13682. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13683. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13684. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13685. msm_routing_get_port_mixer,
  13686. msm_routing_put_port_mixer),
  13687. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13688. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13689. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13690. msm_routing_get_port_mixer,
  13691. msm_routing_put_port_mixer),
  13692. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13693. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13694. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13695. msm_routing_get_port_mixer,
  13696. msm_routing_put_port_mixer),
  13697. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13698. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13699. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13700. msm_routing_get_port_mixer,
  13701. msm_routing_put_port_mixer),
  13702. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13703. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13704. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13705. msm_routing_get_port_mixer,
  13706. msm_routing_put_port_mixer),
  13707. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13708. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13709. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13710. msm_routing_get_port_mixer,
  13711. msm_routing_put_port_mixer),
  13712. };
  13713. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  13714. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13715. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13716. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13717. msm_routing_get_port_mixer,
  13718. msm_routing_put_port_mixer),
  13719. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13720. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13721. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13722. msm_routing_get_port_mixer,
  13723. msm_routing_put_port_mixer),
  13724. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13725. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13726. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13727. msm_routing_get_port_mixer,
  13728. msm_routing_put_port_mixer),
  13729. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13730. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13731. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13732. msm_routing_get_port_mixer,
  13733. msm_routing_put_port_mixer),
  13734. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13735. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13736. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13737. msm_routing_get_port_mixer,
  13738. msm_routing_put_port_mixer),
  13739. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13740. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13741. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13742. msm_routing_get_port_mixer,
  13743. msm_routing_put_port_mixer),
  13744. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13745. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13746. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13747. msm_routing_get_port_mixer,
  13748. msm_routing_put_port_mixer),
  13749. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13750. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13751. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13752. msm_routing_get_port_mixer,
  13753. msm_routing_put_port_mixer),
  13754. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13755. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13756. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13757. msm_routing_get_port_mixer,
  13758. msm_routing_put_port_mixer),
  13759. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13760. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13761. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13762. msm_routing_get_port_mixer,
  13763. msm_routing_put_port_mixer),
  13764. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13765. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13766. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13767. msm_routing_get_port_mixer,
  13768. msm_routing_put_port_mixer),
  13769. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13770. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13771. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13772. msm_routing_get_port_mixer,
  13773. msm_routing_put_port_mixer),
  13774. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13775. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13776. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13777. msm_routing_get_port_mixer,
  13778. msm_routing_put_port_mixer),
  13779. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13780. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13781. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13782. msm_routing_get_port_mixer,
  13783. msm_routing_put_port_mixer),
  13784. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13785. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13786. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13787. msm_routing_get_port_mixer,
  13788. msm_routing_put_port_mixer),
  13789. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13790. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13791. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13792. msm_routing_get_port_mixer,
  13793. msm_routing_put_port_mixer),
  13794. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13795. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13796. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13797. msm_routing_get_port_mixer,
  13798. msm_routing_put_port_mixer),
  13799. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13800. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13801. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13802. msm_routing_get_port_mixer,
  13803. msm_routing_put_port_mixer),
  13804. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13805. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13806. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13807. msm_routing_get_port_mixer,
  13808. msm_routing_put_port_mixer),
  13809. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13810. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13811. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13812. msm_routing_get_port_mixer,
  13813. msm_routing_put_port_mixer),
  13814. };
  13815. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  13816. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13817. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13818. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13819. msm_routing_get_port_mixer,
  13820. msm_routing_put_port_mixer),
  13821. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13822. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13823. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13824. msm_routing_get_port_mixer,
  13825. msm_routing_put_port_mixer),
  13826. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13827. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13828. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13829. msm_routing_get_port_mixer,
  13830. msm_routing_put_port_mixer),
  13831. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13832. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13833. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13834. msm_routing_get_port_mixer,
  13835. msm_routing_put_port_mixer),
  13836. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13837. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13838. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13839. msm_routing_get_port_mixer,
  13840. msm_routing_put_port_mixer),
  13841. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13842. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13843. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13844. msm_routing_get_port_mixer,
  13845. msm_routing_put_port_mixer),
  13846. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13847. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13848. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13849. msm_routing_get_port_mixer,
  13850. msm_routing_put_port_mixer),
  13851. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13852. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13853. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13854. msm_routing_get_port_mixer,
  13855. msm_routing_put_port_mixer),
  13856. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13857. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13858. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13859. msm_routing_get_port_mixer,
  13860. msm_routing_put_port_mixer),
  13861. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13862. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13863. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13864. msm_routing_get_port_mixer,
  13865. msm_routing_put_port_mixer),
  13866. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13867. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13868. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13869. msm_routing_get_port_mixer,
  13870. msm_routing_put_port_mixer),
  13871. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13872. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13873. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13874. msm_routing_get_port_mixer,
  13875. msm_routing_put_port_mixer),
  13876. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13877. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13878. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13879. msm_routing_get_port_mixer,
  13880. msm_routing_put_port_mixer),
  13881. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13882. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13883. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13884. msm_routing_get_port_mixer,
  13885. msm_routing_put_port_mixer),
  13886. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13887. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13888. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13889. msm_routing_get_port_mixer,
  13890. msm_routing_put_port_mixer),
  13891. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13892. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13893. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13894. msm_routing_get_port_mixer,
  13895. msm_routing_put_port_mixer),
  13896. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13897. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13898. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13899. msm_routing_get_port_mixer,
  13900. msm_routing_put_port_mixer),
  13901. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13902. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13903. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13904. msm_routing_get_port_mixer,
  13905. msm_routing_put_port_mixer),
  13906. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13907. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13908. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13909. msm_routing_get_port_mixer,
  13910. msm_routing_put_port_mixer),
  13911. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13912. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13913. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13914. msm_routing_get_port_mixer,
  13915. msm_routing_put_port_mixer),
  13916. };
  13917. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  13918. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13919. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13920. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13921. msm_routing_get_port_mixer,
  13922. msm_routing_put_port_mixer),
  13923. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13924. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13925. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13926. msm_routing_get_port_mixer,
  13927. msm_routing_put_port_mixer),
  13928. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13929. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13930. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13931. msm_routing_get_port_mixer,
  13932. msm_routing_put_port_mixer),
  13933. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13934. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13935. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13936. msm_routing_get_port_mixer,
  13937. msm_routing_put_port_mixer),
  13938. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13939. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13940. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13941. msm_routing_get_port_mixer,
  13942. msm_routing_put_port_mixer),
  13943. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13944. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13945. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13946. msm_routing_get_port_mixer,
  13947. msm_routing_put_port_mixer),
  13948. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13949. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13950. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13951. msm_routing_get_port_mixer,
  13952. msm_routing_put_port_mixer),
  13953. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13954. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13955. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13956. msm_routing_get_port_mixer,
  13957. msm_routing_put_port_mixer),
  13958. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13959. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13960. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13961. msm_routing_get_port_mixer,
  13962. msm_routing_put_port_mixer),
  13963. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13964. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13965. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13966. msm_routing_get_port_mixer,
  13967. msm_routing_put_port_mixer),
  13968. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13969. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13970. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13971. msm_routing_get_port_mixer,
  13972. msm_routing_put_port_mixer),
  13973. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13974. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13975. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13976. msm_routing_get_port_mixer,
  13977. msm_routing_put_port_mixer),
  13978. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13979. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13980. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13981. msm_routing_get_port_mixer,
  13982. msm_routing_put_port_mixer),
  13983. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13984. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13985. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13986. msm_routing_get_port_mixer,
  13987. msm_routing_put_port_mixer),
  13988. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13989. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13990. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13991. msm_routing_get_port_mixer,
  13992. msm_routing_put_port_mixer),
  13993. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13994. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13995. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13996. msm_routing_get_port_mixer,
  13997. msm_routing_put_port_mixer),
  13998. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13999. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14000. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14001. msm_routing_get_port_mixer,
  14002. msm_routing_put_port_mixer),
  14003. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14004. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14005. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14006. msm_routing_get_port_mixer,
  14007. msm_routing_put_port_mixer),
  14008. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14009. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14010. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14011. msm_routing_get_port_mixer,
  14012. msm_routing_put_port_mixer),
  14013. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14014. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14015. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14016. msm_routing_get_port_mixer,
  14017. msm_routing_put_port_mixer),
  14018. };
  14019. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  14020. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14021. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14022. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14023. msm_routing_get_port_mixer,
  14024. msm_routing_put_port_mixer),
  14025. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14026. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14027. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14028. msm_routing_get_port_mixer,
  14029. msm_routing_put_port_mixer),
  14030. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14031. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14032. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14033. msm_routing_get_port_mixer,
  14034. msm_routing_put_port_mixer),
  14035. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14036. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14037. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14038. msm_routing_get_port_mixer,
  14039. msm_routing_put_port_mixer),
  14040. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14041. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14042. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14043. msm_routing_get_port_mixer,
  14044. msm_routing_put_port_mixer),
  14045. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14046. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14047. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14048. msm_routing_get_port_mixer,
  14049. msm_routing_put_port_mixer),
  14050. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14051. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14052. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14053. msm_routing_get_port_mixer,
  14054. msm_routing_put_port_mixer),
  14055. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14056. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14057. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14058. msm_routing_get_port_mixer,
  14059. msm_routing_put_port_mixer),
  14060. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14061. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14062. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14063. msm_routing_get_port_mixer,
  14064. msm_routing_put_port_mixer),
  14065. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14066. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14067. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14068. msm_routing_get_port_mixer,
  14069. msm_routing_put_port_mixer),
  14070. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14071. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14072. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14073. msm_routing_get_port_mixer,
  14074. msm_routing_put_port_mixer),
  14075. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14076. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14077. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14078. msm_routing_get_port_mixer,
  14079. msm_routing_put_port_mixer),
  14080. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14081. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14082. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14083. msm_routing_get_port_mixer,
  14084. msm_routing_put_port_mixer),
  14085. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14086. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14087. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14088. msm_routing_get_port_mixer,
  14089. msm_routing_put_port_mixer),
  14090. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14091. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14092. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14093. msm_routing_get_port_mixer,
  14094. msm_routing_put_port_mixer),
  14095. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14096. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14097. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14098. msm_routing_get_port_mixer,
  14099. msm_routing_put_port_mixer),
  14100. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14101. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14102. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14103. msm_routing_get_port_mixer,
  14104. msm_routing_put_port_mixer),
  14105. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14106. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14107. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14108. msm_routing_get_port_mixer,
  14109. msm_routing_put_port_mixer),
  14110. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14111. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14112. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14113. msm_routing_get_port_mixer,
  14114. msm_routing_put_port_mixer),
  14115. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14116. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14117. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14118. msm_routing_get_port_mixer,
  14119. msm_routing_put_port_mixer),
  14120. };
  14121. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  14122. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14123. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14124. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14125. msm_routing_get_port_mixer,
  14126. msm_routing_put_port_mixer),
  14127. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14128. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14129. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14130. msm_routing_get_port_mixer,
  14131. msm_routing_put_port_mixer),
  14132. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14133. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14134. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14135. msm_routing_get_port_mixer,
  14136. msm_routing_put_port_mixer),
  14137. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14138. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14139. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14140. msm_routing_get_port_mixer,
  14141. msm_routing_put_port_mixer),
  14142. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14143. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14144. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14145. msm_routing_get_port_mixer,
  14146. msm_routing_put_port_mixer),
  14147. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14148. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14149. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14150. msm_routing_get_port_mixer,
  14151. msm_routing_put_port_mixer),
  14152. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14153. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14154. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14155. msm_routing_get_port_mixer,
  14156. msm_routing_put_port_mixer),
  14157. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14158. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14159. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14160. msm_routing_get_port_mixer,
  14161. msm_routing_put_port_mixer),
  14162. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14163. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14164. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14165. msm_routing_get_port_mixer,
  14166. msm_routing_put_port_mixer),
  14167. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14168. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14169. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14170. msm_routing_get_port_mixer,
  14171. msm_routing_put_port_mixer),
  14172. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14173. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14174. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14175. msm_routing_get_port_mixer,
  14176. msm_routing_put_port_mixer),
  14177. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14178. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14179. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14180. msm_routing_get_port_mixer,
  14181. msm_routing_put_port_mixer),
  14182. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14183. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14184. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14185. msm_routing_get_port_mixer,
  14186. msm_routing_put_port_mixer),
  14187. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14188. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14189. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14190. msm_routing_get_port_mixer,
  14191. msm_routing_put_port_mixer),
  14192. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14193. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14194. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14195. msm_routing_get_port_mixer,
  14196. msm_routing_put_port_mixer),
  14197. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14198. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14199. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14200. msm_routing_get_port_mixer,
  14201. msm_routing_put_port_mixer),
  14202. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14203. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14204. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14205. msm_routing_get_port_mixer,
  14206. msm_routing_put_port_mixer),
  14207. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14208. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14209. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14210. msm_routing_get_port_mixer,
  14211. msm_routing_put_port_mixer),
  14212. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14213. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14214. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14215. msm_routing_get_port_mixer,
  14216. msm_routing_put_port_mixer),
  14217. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14218. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14219. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14220. msm_routing_get_port_mixer,
  14221. msm_routing_put_port_mixer),
  14222. };
  14223. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  14224. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14225. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14226. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14227. msm_routing_get_port_mixer,
  14228. msm_routing_put_port_mixer),
  14229. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14230. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14231. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14232. msm_routing_get_port_mixer,
  14233. msm_routing_put_port_mixer),
  14234. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14235. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14236. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14237. msm_routing_get_port_mixer,
  14238. msm_routing_put_port_mixer),
  14239. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14240. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14241. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14242. msm_routing_get_port_mixer,
  14243. msm_routing_put_port_mixer),
  14244. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14245. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14246. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14247. msm_routing_get_port_mixer,
  14248. msm_routing_put_port_mixer),
  14249. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14250. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14251. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14252. msm_routing_get_port_mixer,
  14253. msm_routing_put_port_mixer),
  14254. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14255. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14256. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14257. msm_routing_get_port_mixer,
  14258. msm_routing_put_port_mixer),
  14259. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14260. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14261. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14262. msm_routing_get_port_mixer,
  14263. msm_routing_put_port_mixer),
  14264. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14265. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14266. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14267. msm_routing_get_port_mixer,
  14268. msm_routing_put_port_mixer),
  14269. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14270. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14271. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14272. msm_routing_get_port_mixer,
  14273. msm_routing_put_port_mixer),
  14274. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14275. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14276. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14277. msm_routing_get_port_mixer,
  14278. msm_routing_put_port_mixer),
  14279. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14280. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14281. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14282. msm_routing_get_port_mixer,
  14283. msm_routing_put_port_mixer),
  14284. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14285. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14286. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14287. msm_routing_get_port_mixer,
  14288. msm_routing_put_port_mixer),
  14289. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14290. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14291. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14292. msm_routing_get_port_mixer,
  14293. msm_routing_put_port_mixer),
  14294. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14295. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14296. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14297. msm_routing_get_port_mixer,
  14298. msm_routing_put_port_mixer),
  14299. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14300. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14301. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14302. msm_routing_get_port_mixer,
  14303. msm_routing_put_port_mixer),
  14304. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14305. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14306. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14307. msm_routing_get_port_mixer,
  14308. msm_routing_put_port_mixer),
  14309. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14310. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14311. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14312. msm_routing_get_port_mixer,
  14313. msm_routing_put_port_mixer),
  14314. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14315. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14316. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14317. msm_routing_get_port_mixer,
  14318. msm_routing_put_port_mixer),
  14319. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14320. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14321. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14322. msm_routing_get_port_mixer,
  14323. msm_routing_put_port_mixer),
  14324. };
  14325. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  14326. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14327. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14328. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14329. msm_routing_get_port_mixer,
  14330. msm_routing_put_port_mixer),
  14331. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14332. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14333. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14334. msm_routing_get_port_mixer,
  14335. msm_routing_put_port_mixer),
  14336. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14337. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14338. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14339. msm_routing_get_port_mixer,
  14340. msm_routing_put_port_mixer),
  14341. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14342. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14343. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14344. msm_routing_get_port_mixer,
  14345. msm_routing_put_port_mixer),
  14346. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14347. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14348. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14349. msm_routing_get_port_mixer,
  14350. msm_routing_put_port_mixer),
  14351. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14352. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14353. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14354. msm_routing_get_port_mixer,
  14355. msm_routing_put_port_mixer),
  14356. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14357. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14358. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14359. msm_routing_get_port_mixer,
  14360. msm_routing_put_port_mixer),
  14361. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14362. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14363. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14364. msm_routing_get_port_mixer,
  14365. msm_routing_put_port_mixer),
  14366. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14367. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14368. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14369. msm_routing_get_port_mixer,
  14370. msm_routing_put_port_mixer),
  14371. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14372. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14373. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14374. msm_routing_get_port_mixer,
  14375. msm_routing_put_port_mixer),
  14376. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14377. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14378. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14379. msm_routing_get_port_mixer,
  14380. msm_routing_put_port_mixer),
  14381. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14382. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14383. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14384. msm_routing_get_port_mixer,
  14385. msm_routing_put_port_mixer),
  14386. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14387. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14388. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14389. msm_routing_get_port_mixer,
  14390. msm_routing_put_port_mixer),
  14391. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14392. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14393. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14394. msm_routing_get_port_mixer,
  14395. msm_routing_put_port_mixer),
  14396. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14397. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14398. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14399. msm_routing_get_port_mixer,
  14400. msm_routing_put_port_mixer),
  14401. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14402. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14403. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14404. msm_routing_get_port_mixer,
  14405. msm_routing_put_port_mixer),
  14406. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14407. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14408. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14409. msm_routing_get_port_mixer,
  14410. msm_routing_put_port_mixer),
  14411. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14412. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14413. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14414. msm_routing_get_port_mixer,
  14415. msm_routing_put_port_mixer),
  14416. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14417. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14418. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14419. msm_routing_get_port_mixer,
  14420. msm_routing_put_port_mixer),
  14421. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14422. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14423. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14424. msm_routing_get_port_mixer,
  14425. msm_routing_put_port_mixer),
  14426. };
  14427. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  14428. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  14429. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  14430. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  14431. msm_routing_get_port_mixer,
  14432. msm_routing_put_port_mixer),
  14433. };
  14434. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  14435. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14436. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14437. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14438. msm_routing_get_port_mixer,
  14439. msm_routing_put_port_mixer),
  14440. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14441. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14442. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14443. msm_routing_get_port_mixer,
  14444. msm_routing_put_port_mixer),
  14445. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14446. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14447. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14448. msm_routing_get_port_mixer,
  14449. msm_routing_put_port_mixer),
  14450. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14451. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14452. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14453. msm_routing_get_port_mixer,
  14454. msm_routing_put_port_mixer),
  14455. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14456. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14457. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14458. msm_routing_get_port_mixer,
  14459. msm_routing_put_port_mixer),
  14460. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14461. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14462. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14463. msm_routing_get_port_mixer,
  14464. msm_routing_put_port_mixer),
  14465. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14466. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14467. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14468. msm_routing_get_port_mixer,
  14469. msm_routing_put_port_mixer),
  14470. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14471. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14472. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14473. msm_routing_get_port_mixer,
  14474. msm_routing_put_port_mixer),
  14475. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14476. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14477. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14478. msm_routing_get_port_mixer,
  14479. msm_routing_put_port_mixer),
  14480. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14481. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14482. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14483. msm_routing_get_port_mixer,
  14484. msm_routing_put_port_mixer),
  14485. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14486. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14487. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14488. msm_routing_get_port_mixer,
  14489. msm_routing_put_port_mixer),
  14490. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14491. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14492. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14493. msm_routing_get_port_mixer,
  14494. msm_routing_put_port_mixer),
  14495. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14496. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14497. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14498. msm_routing_get_port_mixer,
  14499. msm_routing_put_port_mixer),
  14500. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14501. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14502. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14503. msm_routing_get_port_mixer,
  14504. msm_routing_put_port_mixer),
  14505. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14506. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14507. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14508. msm_routing_get_port_mixer,
  14509. msm_routing_put_port_mixer),
  14510. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14511. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14512. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14513. msm_routing_get_port_mixer,
  14514. msm_routing_put_port_mixer),
  14515. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14516. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14517. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14518. msm_routing_get_port_mixer,
  14519. msm_routing_put_port_mixer),
  14520. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14521. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14522. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14523. msm_routing_get_port_mixer,
  14524. msm_routing_put_port_mixer),
  14525. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14526. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14527. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14528. msm_routing_get_port_mixer,
  14529. msm_routing_put_port_mixer),
  14530. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14531. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14532. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14533. msm_routing_get_port_mixer,
  14534. msm_routing_put_port_mixer),
  14535. };
  14536. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  14537. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14538. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14539. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14540. msm_routing_get_port_mixer,
  14541. msm_routing_put_port_mixer),
  14542. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14543. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14544. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14545. msm_routing_get_port_mixer,
  14546. msm_routing_put_port_mixer),
  14547. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14548. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14549. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14550. msm_routing_get_port_mixer,
  14551. msm_routing_put_port_mixer),
  14552. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14553. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14554. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14555. msm_routing_get_port_mixer,
  14556. msm_routing_put_port_mixer),
  14557. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14558. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14559. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14560. msm_routing_get_port_mixer,
  14561. msm_routing_put_port_mixer),
  14562. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14563. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14564. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14565. msm_routing_get_port_mixer,
  14566. msm_routing_put_port_mixer),
  14567. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14568. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14569. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14570. msm_routing_get_port_mixer,
  14571. msm_routing_put_port_mixer),
  14572. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14573. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14574. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14575. msm_routing_get_port_mixer,
  14576. msm_routing_put_port_mixer),
  14577. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14578. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14579. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14580. msm_routing_get_port_mixer,
  14581. msm_routing_put_port_mixer),
  14582. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14583. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14584. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14585. msm_routing_get_port_mixer,
  14586. msm_routing_put_port_mixer),
  14587. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14588. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14589. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14590. msm_routing_get_port_mixer,
  14591. msm_routing_put_port_mixer),
  14592. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14593. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14594. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14595. msm_routing_get_port_mixer,
  14596. msm_routing_put_port_mixer),
  14597. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14598. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14599. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14600. msm_routing_get_port_mixer,
  14601. msm_routing_put_port_mixer),
  14602. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14603. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14604. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14605. msm_routing_get_port_mixer,
  14606. msm_routing_put_port_mixer),
  14607. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14608. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14609. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14610. msm_routing_get_port_mixer,
  14611. msm_routing_put_port_mixer),
  14612. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14613. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14614. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14615. msm_routing_get_port_mixer,
  14616. msm_routing_put_port_mixer),
  14617. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14618. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14619. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14620. msm_routing_get_port_mixer,
  14621. msm_routing_put_port_mixer),
  14622. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14623. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14624. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14625. msm_routing_get_port_mixer,
  14626. msm_routing_put_port_mixer),
  14627. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14628. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14629. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14630. msm_routing_get_port_mixer,
  14631. msm_routing_put_port_mixer),
  14632. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14633. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14634. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14635. msm_routing_get_port_mixer,
  14636. msm_routing_put_port_mixer),
  14637. };
  14638. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  14639. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14640. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14641. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14642. msm_routing_get_port_mixer,
  14643. msm_routing_put_port_mixer),
  14644. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14645. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14646. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14647. msm_routing_get_port_mixer,
  14648. msm_routing_put_port_mixer),
  14649. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14650. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14651. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14652. msm_routing_get_port_mixer,
  14653. msm_routing_put_port_mixer),
  14654. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14655. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14656. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14657. msm_routing_get_port_mixer,
  14658. msm_routing_put_port_mixer),
  14659. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14660. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14661. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14662. msm_routing_get_port_mixer,
  14663. msm_routing_put_port_mixer),
  14664. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14665. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14666. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14667. msm_routing_get_port_mixer,
  14668. msm_routing_put_port_mixer),
  14669. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14670. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14671. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14672. msm_routing_get_port_mixer,
  14673. msm_routing_put_port_mixer),
  14674. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14675. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14676. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14677. msm_routing_get_port_mixer,
  14678. msm_routing_put_port_mixer),
  14679. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14680. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14681. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14682. msm_routing_get_port_mixer,
  14683. msm_routing_put_port_mixer),
  14684. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14685. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14686. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14687. msm_routing_get_port_mixer,
  14688. msm_routing_put_port_mixer),
  14689. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14690. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14691. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14692. msm_routing_get_port_mixer,
  14693. msm_routing_put_port_mixer),
  14694. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14695. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14696. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14697. msm_routing_get_port_mixer,
  14698. msm_routing_put_port_mixer),
  14699. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14700. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14701. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14702. msm_routing_get_port_mixer,
  14703. msm_routing_put_port_mixer),
  14704. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14705. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14706. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14707. msm_routing_get_port_mixer,
  14708. msm_routing_put_port_mixer),
  14709. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14710. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14711. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14712. msm_routing_get_port_mixer,
  14713. msm_routing_put_port_mixer),
  14714. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14715. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14716. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14717. msm_routing_get_port_mixer,
  14718. msm_routing_put_port_mixer),
  14719. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14720. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14721. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14722. msm_routing_get_port_mixer,
  14723. msm_routing_put_port_mixer),
  14724. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14725. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14726. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14727. msm_routing_get_port_mixer,
  14728. msm_routing_put_port_mixer),
  14729. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14730. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14731. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14732. msm_routing_get_port_mixer,
  14733. msm_routing_put_port_mixer),
  14734. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14735. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14736. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14737. msm_routing_get_port_mixer,
  14738. msm_routing_put_port_mixer),
  14739. };
  14740. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  14741. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14742. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14743. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14744. msm_routing_get_port_mixer,
  14745. msm_routing_put_port_mixer),
  14746. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14747. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14748. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14749. msm_routing_get_port_mixer,
  14750. msm_routing_put_port_mixer),
  14751. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14752. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14753. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14754. msm_routing_get_port_mixer,
  14755. msm_routing_put_port_mixer),
  14756. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14757. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14758. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14759. msm_routing_get_port_mixer,
  14760. msm_routing_put_port_mixer),
  14761. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14762. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14763. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14764. msm_routing_get_port_mixer,
  14765. msm_routing_put_port_mixer),
  14766. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14767. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14768. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14769. msm_routing_get_port_mixer,
  14770. msm_routing_put_port_mixer),
  14771. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14772. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14773. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14774. msm_routing_get_port_mixer,
  14775. msm_routing_put_port_mixer),
  14776. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14777. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14778. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14779. msm_routing_get_port_mixer,
  14780. msm_routing_put_port_mixer),
  14781. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14782. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14783. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14784. msm_routing_get_port_mixer,
  14785. msm_routing_put_port_mixer),
  14786. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14787. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14788. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14789. msm_routing_get_port_mixer,
  14790. msm_routing_put_port_mixer),
  14791. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14792. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14793. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14794. msm_routing_get_port_mixer,
  14795. msm_routing_put_port_mixer),
  14796. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14797. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14798. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14799. msm_routing_get_port_mixer,
  14800. msm_routing_put_port_mixer),
  14801. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14802. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14803. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14804. msm_routing_get_port_mixer,
  14805. msm_routing_put_port_mixer),
  14806. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14807. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14808. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14809. msm_routing_get_port_mixer,
  14810. msm_routing_put_port_mixer),
  14811. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14812. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14813. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14814. msm_routing_get_port_mixer,
  14815. msm_routing_put_port_mixer),
  14816. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14817. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14818. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14819. msm_routing_get_port_mixer,
  14820. msm_routing_put_port_mixer),
  14821. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14822. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14823. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14824. msm_routing_get_port_mixer,
  14825. msm_routing_put_port_mixer),
  14826. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14827. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14828. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14829. msm_routing_get_port_mixer,
  14830. msm_routing_put_port_mixer),
  14831. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14832. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14833. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14834. msm_routing_get_port_mixer,
  14835. msm_routing_put_port_mixer),
  14836. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14837. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14838. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14839. msm_routing_get_port_mixer,
  14840. msm_routing_put_port_mixer),
  14841. };
  14842. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  14843. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14844. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14845. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14846. msm_routing_get_port_mixer,
  14847. msm_routing_put_port_mixer),
  14848. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14849. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14850. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14851. msm_routing_get_port_mixer,
  14852. msm_routing_put_port_mixer),
  14853. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14854. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14855. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14856. msm_routing_get_port_mixer,
  14857. msm_routing_put_port_mixer),
  14858. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14859. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14860. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14861. msm_routing_get_port_mixer,
  14862. msm_routing_put_port_mixer),
  14863. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14864. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14865. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14866. msm_routing_get_port_mixer,
  14867. msm_routing_put_port_mixer),
  14868. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14869. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14870. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14871. msm_routing_get_port_mixer,
  14872. msm_routing_put_port_mixer),
  14873. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14874. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14875. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14876. msm_routing_get_port_mixer,
  14877. msm_routing_put_port_mixer),
  14878. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14879. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14880. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14881. msm_routing_get_port_mixer,
  14882. msm_routing_put_port_mixer),
  14883. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14884. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14885. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14886. msm_routing_get_port_mixer,
  14887. msm_routing_put_port_mixer),
  14888. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14889. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14890. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14891. msm_routing_get_port_mixer,
  14892. msm_routing_put_port_mixer),
  14893. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14894. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14895. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14896. msm_routing_get_port_mixer,
  14897. msm_routing_put_port_mixer),
  14898. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14899. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14900. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14901. msm_routing_get_port_mixer,
  14902. msm_routing_put_port_mixer),
  14903. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14904. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14905. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14906. msm_routing_get_port_mixer,
  14907. msm_routing_put_port_mixer),
  14908. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14909. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14910. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14911. msm_routing_get_port_mixer,
  14912. msm_routing_put_port_mixer),
  14913. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14914. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14915. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14916. msm_routing_get_port_mixer,
  14917. msm_routing_put_port_mixer),
  14918. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14919. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14920. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14921. msm_routing_get_port_mixer,
  14922. msm_routing_put_port_mixer),
  14923. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14924. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14925. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14926. msm_routing_get_port_mixer,
  14927. msm_routing_put_port_mixer),
  14928. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14929. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14930. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14931. msm_routing_get_port_mixer,
  14932. msm_routing_put_port_mixer),
  14933. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14934. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14935. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14936. msm_routing_get_port_mixer,
  14937. msm_routing_put_port_mixer),
  14938. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14939. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14940. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14941. msm_routing_get_port_mixer,
  14942. msm_routing_put_port_mixer),
  14943. };
  14944. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  14945. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14946. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14947. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14948. msm_routing_get_port_mixer,
  14949. msm_routing_put_port_mixer),
  14950. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14951. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14952. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14953. msm_routing_get_port_mixer,
  14954. msm_routing_put_port_mixer),
  14955. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14956. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14957. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14958. msm_routing_get_port_mixer,
  14959. msm_routing_put_port_mixer),
  14960. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14961. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14962. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14963. msm_routing_get_port_mixer,
  14964. msm_routing_put_port_mixer),
  14965. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14966. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14967. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14968. msm_routing_get_port_mixer,
  14969. msm_routing_put_port_mixer),
  14970. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14971. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14972. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14973. msm_routing_get_port_mixer,
  14974. msm_routing_put_port_mixer),
  14975. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14976. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14977. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14978. msm_routing_get_port_mixer,
  14979. msm_routing_put_port_mixer),
  14980. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14981. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14982. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14983. msm_routing_get_port_mixer,
  14984. msm_routing_put_port_mixer),
  14985. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14986. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14987. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14988. msm_routing_get_port_mixer,
  14989. msm_routing_put_port_mixer),
  14990. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14991. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14992. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14993. msm_routing_get_port_mixer,
  14994. msm_routing_put_port_mixer),
  14995. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14996. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14997. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14998. msm_routing_get_port_mixer,
  14999. msm_routing_put_port_mixer),
  15000. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15001. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15002. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15003. msm_routing_get_port_mixer,
  15004. msm_routing_put_port_mixer),
  15005. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15006. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15007. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15008. msm_routing_get_port_mixer,
  15009. msm_routing_put_port_mixer),
  15010. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15011. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15012. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15013. msm_routing_get_port_mixer,
  15014. msm_routing_put_port_mixer),
  15015. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15016. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15017. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15018. msm_routing_get_port_mixer,
  15019. msm_routing_put_port_mixer),
  15020. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15021. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15022. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15023. msm_routing_get_port_mixer,
  15024. msm_routing_put_port_mixer),
  15025. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15026. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15027. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15028. msm_routing_get_port_mixer,
  15029. msm_routing_put_port_mixer),
  15030. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15031. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15032. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15033. msm_routing_get_port_mixer,
  15034. msm_routing_put_port_mixer),
  15035. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15036. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15037. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15038. msm_routing_get_port_mixer,
  15039. msm_routing_put_port_mixer),
  15040. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15041. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15042. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15043. msm_routing_get_port_mixer,
  15044. msm_routing_put_port_mixer),
  15045. };
  15046. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  15047. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15048. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15049. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15050. msm_routing_get_port_mixer,
  15051. msm_routing_put_port_mixer),
  15052. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15053. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15054. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15055. msm_routing_get_port_mixer,
  15056. msm_routing_put_port_mixer),
  15057. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15058. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15059. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15060. msm_routing_get_port_mixer,
  15061. msm_routing_put_port_mixer),
  15062. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15063. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15064. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15065. msm_routing_get_port_mixer,
  15066. msm_routing_put_port_mixer),
  15067. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15068. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15069. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15070. msm_routing_get_port_mixer,
  15071. msm_routing_put_port_mixer),
  15072. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15073. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15074. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15075. msm_routing_get_port_mixer,
  15076. msm_routing_put_port_mixer),
  15077. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15078. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15079. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15080. msm_routing_get_port_mixer,
  15081. msm_routing_put_port_mixer),
  15082. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15083. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15084. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15085. msm_routing_get_port_mixer,
  15086. msm_routing_put_port_mixer),
  15087. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15088. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15089. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15090. msm_routing_get_port_mixer,
  15091. msm_routing_put_port_mixer),
  15092. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15093. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15094. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15095. msm_routing_get_port_mixer,
  15096. msm_routing_put_port_mixer),
  15097. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15098. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15099. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15100. msm_routing_get_port_mixer,
  15101. msm_routing_put_port_mixer),
  15102. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15103. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15104. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15105. msm_routing_get_port_mixer,
  15106. msm_routing_put_port_mixer),
  15107. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15108. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15109. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15110. msm_routing_get_port_mixer,
  15111. msm_routing_put_port_mixer),
  15112. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15113. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15114. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15115. msm_routing_get_port_mixer,
  15116. msm_routing_put_port_mixer),
  15117. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15118. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15119. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15120. msm_routing_get_port_mixer,
  15121. msm_routing_put_port_mixer),
  15122. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15123. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15124. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15125. msm_routing_get_port_mixer,
  15126. msm_routing_put_port_mixer),
  15127. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15128. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15129. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15130. msm_routing_get_port_mixer,
  15131. msm_routing_put_port_mixer),
  15132. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15133. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15134. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15135. msm_routing_get_port_mixer,
  15136. msm_routing_put_port_mixer),
  15137. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15138. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15139. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15140. msm_routing_get_port_mixer,
  15141. msm_routing_put_port_mixer),
  15142. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15143. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15144. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15145. msm_routing_get_port_mixer,
  15146. msm_routing_put_port_mixer),
  15147. };
  15148. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  15149. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15150. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15151. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15152. msm_routing_get_port_mixer,
  15153. msm_routing_put_port_mixer),
  15154. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15155. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15156. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15157. msm_routing_get_port_mixer,
  15158. msm_routing_put_port_mixer),
  15159. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15160. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15161. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15162. msm_routing_get_port_mixer,
  15163. msm_routing_put_port_mixer),
  15164. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15165. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15166. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15167. msm_routing_get_port_mixer,
  15168. msm_routing_put_port_mixer),
  15169. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15170. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15171. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15172. msm_routing_get_port_mixer,
  15173. msm_routing_put_port_mixer),
  15174. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15175. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15176. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15177. msm_routing_get_port_mixer,
  15178. msm_routing_put_port_mixer),
  15179. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15180. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15181. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15182. msm_routing_get_port_mixer,
  15183. msm_routing_put_port_mixer),
  15184. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15185. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15186. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15187. msm_routing_get_port_mixer,
  15188. msm_routing_put_port_mixer),
  15189. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15190. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15191. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15192. msm_routing_get_port_mixer,
  15193. msm_routing_put_port_mixer),
  15194. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15195. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15196. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15197. msm_routing_get_port_mixer,
  15198. msm_routing_put_port_mixer),
  15199. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15200. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15201. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15202. msm_routing_get_port_mixer,
  15203. msm_routing_put_port_mixer),
  15204. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15205. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15206. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15207. msm_routing_get_port_mixer,
  15208. msm_routing_put_port_mixer),
  15209. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15210. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15211. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15212. msm_routing_get_port_mixer,
  15213. msm_routing_put_port_mixer),
  15214. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15215. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15216. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15217. msm_routing_get_port_mixer,
  15218. msm_routing_put_port_mixer),
  15219. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15220. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15221. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15222. msm_routing_get_port_mixer,
  15223. msm_routing_put_port_mixer),
  15224. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15225. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15226. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15227. msm_routing_get_port_mixer,
  15228. msm_routing_put_port_mixer),
  15229. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15230. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15231. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15232. msm_routing_get_port_mixer,
  15233. msm_routing_put_port_mixer),
  15234. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15235. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15236. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15237. msm_routing_get_port_mixer,
  15238. msm_routing_put_port_mixer),
  15239. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15240. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15241. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15242. msm_routing_get_port_mixer,
  15243. msm_routing_put_port_mixer),
  15244. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15245. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15246. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15247. msm_routing_get_port_mixer,
  15248. msm_routing_put_port_mixer),
  15249. };
  15250. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  15251. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15252. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15253. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15254. msm_routing_get_port_mixer,
  15255. msm_routing_put_port_mixer),
  15256. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15257. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15258. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15259. msm_routing_get_port_mixer,
  15260. msm_routing_put_port_mixer),
  15261. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15262. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15263. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15264. msm_routing_get_port_mixer,
  15265. msm_routing_put_port_mixer),
  15266. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15267. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15268. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15269. msm_routing_get_port_mixer,
  15270. msm_routing_put_port_mixer),
  15271. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15272. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15273. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15274. msm_routing_get_port_mixer,
  15275. msm_routing_put_port_mixer),
  15276. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15277. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15278. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15279. msm_routing_get_port_mixer,
  15280. msm_routing_put_port_mixer),
  15281. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15282. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15283. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15284. msm_routing_get_port_mixer,
  15285. msm_routing_put_port_mixer),
  15286. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15287. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15288. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15289. msm_routing_get_port_mixer,
  15290. msm_routing_put_port_mixer),
  15291. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15292. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15293. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15294. msm_routing_get_port_mixer,
  15295. msm_routing_put_port_mixer),
  15296. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15297. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15298. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15299. msm_routing_get_port_mixer,
  15300. msm_routing_put_port_mixer),
  15301. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15302. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15303. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15304. msm_routing_get_port_mixer,
  15305. msm_routing_put_port_mixer),
  15306. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15307. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15308. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15309. msm_routing_get_port_mixer,
  15310. msm_routing_put_port_mixer),
  15311. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15312. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15313. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15314. msm_routing_get_port_mixer,
  15315. msm_routing_put_port_mixer),
  15316. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15317. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15318. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15319. msm_routing_get_port_mixer,
  15320. msm_routing_put_port_mixer),
  15321. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15322. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15323. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15324. msm_routing_get_port_mixer,
  15325. msm_routing_put_port_mixer),
  15326. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15327. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15328. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15329. msm_routing_get_port_mixer,
  15330. msm_routing_put_port_mixer),
  15331. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15332. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15333. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15334. msm_routing_get_port_mixer,
  15335. msm_routing_put_port_mixer),
  15336. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15337. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15338. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15339. msm_routing_get_port_mixer,
  15340. msm_routing_put_port_mixer),
  15341. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15342. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15343. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15344. msm_routing_get_port_mixer,
  15345. msm_routing_put_port_mixer),
  15346. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15347. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15348. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15349. msm_routing_get_port_mixer,
  15350. msm_routing_put_port_mixer),
  15351. };
  15352. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  15353. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15354. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15355. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15356. msm_routing_get_port_mixer,
  15357. msm_routing_put_port_mixer),
  15358. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15359. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15360. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15361. msm_routing_get_port_mixer,
  15362. msm_routing_put_port_mixer),
  15363. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15364. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15365. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15366. msm_routing_get_port_mixer,
  15367. msm_routing_put_port_mixer),
  15368. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15369. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15370. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15371. msm_routing_get_port_mixer,
  15372. msm_routing_put_port_mixer),
  15373. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15374. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15375. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15376. msm_routing_get_port_mixer,
  15377. msm_routing_put_port_mixer),
  15378. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15379. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15380. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15381. msm_routing_get_port_mixer,
  15382. msm_routing_put_port_mixer),
  15383. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15384. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15385. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15386. msm_routing_get_port_mixer,
  15387. msm_routing_put_port_mixer),
  15388. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15389. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15390. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15391. msm_routing_get_port_mixer,
  15392. msm_routing_put_port_mixer),
  15393. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15394. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15395. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15396. msm_routing_get_port_mixer,
  15397. msm_routing_put_port_mixer),
  15398. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15399. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15400. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15401. msm_routing_get_port_mixer,
  15402. msm_routing_put_port_mixer),
  15403. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15404. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15405. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15406. msm_routing_get_port_mixer,
  15407. msm_routing_put_port_mixer),
  15408. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15409. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15410. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15411. msm_routing_get_port_mixer,
  15412. msm_routing_put_port_mixer),
  15413. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15414. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15415. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15416. msm_routing_get_port_mixer,
  15417. msm_routing_put_port_mixer),
  15418. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15419. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15420. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15421. msm_routing_get_port_mixer,
  15422. msm_routing_put_port_mixer),
  15423. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15424. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15425. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15426. msm_routing_get_port_mixer,
  15427. msm_routing_put_port_mixer),
  15428. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15429. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15430. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15431. msm_routing_get_port_mixer,
  15432. msm_routing_put_port_mixer),
  15433. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15434. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15435. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15436. msm_routing_get_port_mixer,
  15437. msm_routing_put_port_mixer),
  15438. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15439. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15440. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15441. msm_routing_get_port_mixer,
  15442. msm_routing_put_port_mixer),
  15443. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15444. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15445. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15446. msm_routing_get_port_mixer,
  15447. msm_routing_put_port_mixer),
  15448. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15449. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15450. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15451. msm_routing_get_port_mixer,
  15452. msm_routing_put_port_mixer),
  15453. };
  15454. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  15455. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15456. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15457. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15458. msm_routing_get_port_mixer,
  15459. msm_routing_put_port_mixer),
  15460. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15461. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15462. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15463. msm_routing_get_port_mixer,
  15464. msm_routing_put_port_mixer),
  15465. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15466. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15467. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15468. msm_routing_get_port_mixer,
  15469. msm_routing_put_port_mixer),
  15470. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15471. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15472. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15473. msm_routing_get_port_mixer,
  15474. msm_routing_put_port_mixer),
  15475. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15476. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15477. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15478. msm_routing_get_port_mixer,
  15479. msm_routing_put_port_mixer),
  15480. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15481. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15482. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15483. msm_routing_get_port_mixer,
  15484. msm_routing_put_port_mixer),
  15485. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15486. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15487. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15488. msm_routing_get_port_mixer,
  15489. msm_routing_put_port_mixer),
  15490. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15491. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15492. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15493. msm_routing_get_port_mixer,
  15494. msm_routing_put_port_mixer),
  15495. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15496. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15497. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15498. msm_routing_get_port_mixer,
  15499. msm_routing_put_port_mixer),
  15500. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15501. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15502. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15503. msm_routing_get_port_mixer,
  15504. msm_routing_put_port_mixer),
  15505. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15506. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15507. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15508. msm_routing_get_port_mixer,
  15509. msm_routing_put_port_mixer),
  15510. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15511. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15512. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15513. msm_routing_get_port_mixer,
  15514. msm_routing_put_port_mixer),
  15515. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15516. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15517. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15518. msm_routing_get_port_mixer,
  15519. msm_routing_put_port_mixer),
  15520. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15521. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15522. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15523. msm_routing_get_port_mixer,
  15524. msm_routing_put_port_mixer),
  15525. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15526. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15527. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15528. msm_routing_get_port_mixer,
  15529. msm_routing_put_port_mixer),
  15530. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15531. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15532. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15533. msm_routing_get_port_mixer,
  15534. msm_routing_put_port_mixer),
  15535. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15536. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15537. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15538. msm_routing_get_port_mixer,
  15539. msm_routing_put_port_mixer),
  15540. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15541. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15542. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15543. msm_routing_get_port_mixer,
  15544. msm_routing_put_port_mixer),
  15545. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15546. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15547. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15548. msm_routing_get_port_mixer,
  15549. msm_routing_put_port_mixer),
  15550. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15551. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15552. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15553. msm_routing_get_port_mixer,
  15554. msm_routing_put_port_mixer),
  15555. };
  15556. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  15557. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15558. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15559. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15560. msm_routing_get_port_mixer,
  15561. msm_routing_put_port_mixer),
  15562. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15563. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15564. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15565. msm_routing_get_port_mixer,
  15566. msm_routing_put_port_mixer),
  15567. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15568. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15569. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15570. msm_routing_get_port_mixer,
  15571. msm_routing_put_port_mixer),
  15572. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15573. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15574. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15575. msm_routing_get_port_mixer,
  15576. msm_routing_put_port_mixer),
  15577. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15578. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15579. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15580. msm_routing_get_port_mixer,
  15581. msm_routing_put_port_mixer),
  15582. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15583. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15584. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15585. msm_routing_get_port_mixer,
  15586. msm_routing_put_port_mixer),
  15587. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15588. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15589. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15590. msm_routing_get_port_mixer,
  15591. msm_routing_put_port_mixer),
  15592. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15593. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15594. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15595. msm_routing_get_port_mixer,
  15596. msm_routing_put_port_mixer),
  15597. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15598. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15599. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15600. msm_routing_get_port_mixer,
  15601. msm_routing_put_port_mixer),
  15602. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15603. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15604. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15605. msm_routing_get_port_mixer,
  15606. msm_routing_put_port_mixer),
  15607. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15608. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15609. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15610. msm_routing_get_port_mixer,
  15611. msm_routing_put_port_mixer),
  15612. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15613. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15614. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15615. msm_routing_get_port_mixer,
  15616. msm_routing_put_port_mixer),
  15617. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15618. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15619. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15620. msm_routing_get_port_mixer,
  15621. msm_routing_put_port_mixer),
  15622. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15623. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15624. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15625. msm_routing_get_port_mixer,
  15626. msm_routing_put_port_mixer),
  15627. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15628. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15629. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15630. msm_routing_get_port_mixer,
  15631. msm_routing_put_port_mixer),
  15632. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15633. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15634. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15635. msm_routing_get_port_mixer,
  15636. msm_routing_put_port_mixer),
  15637. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15638. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15639. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15640. msm_routing_get_port_mixer,
  15641. msm_routing_put_port_mixer),
  15642. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15643. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15644. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15645. msm_routing_get_port_mixer,
  15646. msm_routing_put_port_mixer),
  15647. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15648. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15649. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15650. msm_routing_get_port_mixer,
  15651. msm_routing_put_port_mixer),
  15652. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15653. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15654. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15655. msm_routing_get_port_mixer,
  15656. msm_routing_put_port_mixer),
  15657. };
  15658. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  15659. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15660. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15661. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15662. msm_routing_put_port_mixer),
  15663. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15664. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15665. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15666. msm_routing_put_port_mixer),
  15667. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15668. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15669. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15670. msm_routing_put_port_mixer),
  15671. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15672. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15673. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15674. msm_routing_put_port_mixer),
  15675. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15676. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15677. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15678. msm_routing_put_port_mixer),
  15679. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15680. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15681. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15682. msm_routing_put_port_mixer),
  15683. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15684. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15685. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15686. msm_routing_put_port_mixer),
  15687. };
  15688. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  15689. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15690. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15691. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15692. msm_routing_put_port_mixer),
  15693. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15694. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15695. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15696. msm_routing_put_port_mixer),
  15697. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15698. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15699. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15700. msm_routing_put_port_mixer),
  15701. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15702. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15703. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15704. msm_routing_put_port_mixer),
  15705. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15706. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15707. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15708. msm_routing_put_port_mixer),
  15709. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15710. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15711. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15712. msm_routing_put_port_mixer),
  15713. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15714. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15715. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15716. msm_routing_put_port_mixer),
  15717. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15718. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15719. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15720. msm_routing_put_port_mixer),
  15721. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15722. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15723. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15724. msm_routing_put_port_mixer),
  15725. };
  15726. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  15727. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15728. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15729. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15730. msm_routing_put_listen_mixer),
  15731. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15732. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15733. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15734. msm_routing_put_listen_mixer),
  15735. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15736. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15737. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15738. msm_routing_put_listen_mixer),
  15739. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15740. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15741. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15742. msm_routing_put_listen_mixer),
  15743. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15744. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15745. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15746. msm_routing_put_listen_mixer),
  15747. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15748. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15749. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15750. msm_routing_put_listen_mixer),
  15751. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15752. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15753. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15754. msm_routing_put_listen_mixer),
  15755. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15756. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15757. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15758. msm_routing_put_listen_mixer),
  15759. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15760. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15761. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15762. msm_routing_put_listen_mixer),
  15763. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15764. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15765. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15766. msm_routing_put_listen_mixer),
  15767. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15768. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15769. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15770. msm_routing_put_listen_mixer),
  15771. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15772. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15773. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15774. msm_routing_put_listen_mixer),
  15775. };
  15776. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  15777. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15778. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15779. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15780. msm_routing_put_listen_mixer),
  15781. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  15782. SND_SOC_NOPM,
  15783. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15784. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15785. msm_routing_put_listen_mixer),
  15786. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15787. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15788. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15789. msm_routing_put_listen_mixer),
  15790. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15791. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15792. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15793. msm_routing_put_listen_mixer),
  15794. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15795. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15796. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15797. msm_routing_put_listen_mixer),
  15798. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15799. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15800. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15801. msm_routing_put_listen_mixer),
  15802. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15803. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15804. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15805. msm_routing_put_listen_mixer),
  15806. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15807. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15808. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15809. msm_routing_put_listen_mixer),
  15810. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15811. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15812. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15813. msm_routing_put_listen_mixer),
  15814. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15815. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15816. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15817. msm_routing_put_listen_mixer),
  15818. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15819. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15820. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15821. msm_routing_put_listen_mixer),
  15822. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15823. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15824. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15825. msm_routing_put_listen_mixer),
  15826. };
  15827. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  15828. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15829. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15830. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15831. msm_routing_put_listen_mixer),
  15832. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15833. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15834. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15835. msm_routing_put_listen_mixer),
  15836. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15837. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15838. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15839. msm_routing_put_listen_mixer),
  15840. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15841. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15842. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15843. msm_routing_put_listen_mixer),
  15844. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15845. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15846. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15847. msm_routing_put_listen_mixer),
  15848. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15849. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15850. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15851. msm_routing_put_listen_mixer),
  15852. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15853. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15854. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15855. msm_routing_put_listen_mixer),
  15856. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15857. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15858. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15859. msm_routing_put_listen_mixer),
  15860. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15861. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15862. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15863. msm_routing_put_listen_mixer),
  15864. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15865. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15866. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15867. msm_routing_put_listen_mixer),
  15868. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15869. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15870. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15871. msm_routing_put_listen_mixer),
  15872. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15873. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15874. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15875. msm_routing_put_listen_mixer),
  15876. };
  15877. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  15878. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15879. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15880. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15881. msm_routing_put_listen_mixer),
  15882. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15883. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15884. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15885. msm_routing_put_listen_mixer),
  15886. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15887. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15888. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15889. msm_routing_put_listen_mixer),
  15890. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15891. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15892. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15893. msm_routing_put_listen_mixer),
  15894. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15895. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15896. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15897. msm_routing_put_listen_mixer),
  15898. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15899. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15900. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15901. msm_routing_put_listen_mixer),
  15902. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15903. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15904. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15905. msm_routing_put_listen_mixer),
  15906. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15907. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15908. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15909. msm_routing_put_listen_mixer),
  15910. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15911. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15912. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15913. msm_routing_put_listen_mixer),
  15914. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15915. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15916. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15917. msm_routing_put_listen_mixer),
  15918. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15919. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15920. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15921. msm_routing_put_listen_mixer),
  15922. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15923. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15924. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15925. msm_routing_put_listen_mixer),
  15926. };
  15927. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  15928. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15929. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15930. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15931. msm_routing_put_listen_mixer),
  15932. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15933. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15934. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15935. msm_routing_put_listen_mixer),
  15936. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15937. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15938. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15939. msm_routing_put_listen_mixer),
  15940. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15941. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15942. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15943. msm_routing_put_listen_mixer),
  15944. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15945. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15946. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15947. msm_routing_put_listen_mixer),
  15948. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15949. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15950. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15951. msm_routing_put_listen_mixer),
  15952. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15953. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15954. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15955. msm_routing_put_listen_mixer),
  15956. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15957. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15958. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15959. msm_routing_put_listen_mixer),
  15960. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15961. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15962. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15963. msm_routing_put_listen_mixer),
  15964. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15965. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15966. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15967. msm_routing_put_listen_mixer),
  15968. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15969. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15970. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15971. msm_routing_put_listen_mixer),
  15972. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15973. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15974. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15975. msm_routing_put_listen_mixer),
  15976. };
  15977. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  15978. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15979. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15980. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15981. msm_routing_put_listen_mixer),
  15982. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15983. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15984. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15985. msm_routing_put_listen_mixer),
  15986. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15987. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15988. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15989. msm_routing_put_listen_mixer),
  15990. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15991. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15992. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15993. msm_routing_put_listen_mixer),
  15994. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15995. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15996. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15997. msm_routing_put_listen_mixer),
  15998. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15999. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16000. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16001. msm_routing_put_listen_mixer),
  16002. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16003. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16004. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16005. msm_routing_put_listen_mixer),
  16006. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16007. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16008. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16009. msm_routing_put_listen_mixer),
  16010. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16011. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16012. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16013. msm_routing_put_listen_mixer),
  16014. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16015. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16016. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16017. msm_routing_put_listen_mixer),
  16018. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16019. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16020. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16021. msm_routing_put_listen_mixer),
  16022. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16023. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16024. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16025. msm_routing_put_listen_mixer),
  16026. };
  16027. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  16028. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16029. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16030. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16031. msm_routing_put_listen_mixer),
  16032. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16033. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16034. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16035. msm_routing_put_listen_mixer),
  16036. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16037. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16038. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16039. msm_routing_put_listen_mixer),
  16040. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16041. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16042. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16043. msm_routing_put_listen_mixer),
  16044. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16045. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16046. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16047. msm_routing_put_listen_mixer),
  16048. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16049. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16050. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16051. msm_routing_put_listen_mixer),
  16052. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16053. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16054. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16055. msm_routing_put_listen_mixer),
  16056. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16057. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16058. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16059. msm_routing_put_listen_mixer),
  16060. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16061. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16062. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16063. msm_routing_put_listen_mixer),
  16064. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16065. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16066. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16067. msm_routing_put_listen_mixer),
  16068. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16069. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16070. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16071. msm_routing_put_listen_mixer),
  16072. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16073. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16074. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16075. msm_routing_put_listen_mixer),
  16076. };
  16077. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  16078. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16079. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16080. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16081. msm_routing_put_listen_mixer),
  16082. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16083. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16084. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16085. msm_routing_put_listen_mixer),
  16086. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16087. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16088. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16089. msm_routing_put_listen_mixer),
  16090. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16091. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16092. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16093. msm_routing_put_listen_mixer),
  16094. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16095. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16096. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16097. msm_routing_put_listen_mixer),
  16098. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16099. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16100. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16101. msm_routing_put_listen_mixer),
  16102. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16103. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16104. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16105. msm_routing_put_listen_mixer),
  16106. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16107. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16108. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16109. msm_routing_put_listen_mixer),
  16110. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16111. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16112. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16113. msm_routing_put_listen_mixer),
  16114. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16115. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16116. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16117. msm_routing_put_listen_mixer),
  16118. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16119. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16120. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16121. msm_routing_put_listen_mixer),
  16122. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16123. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16124. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16125. msm_routing_put_listen_mixer),
  16126. };
  16127. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  16128. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16129. 0, 1, 0, msm_routing_get_switch_mixer,
  16130. msm_routing_put_switch_mixer);
  16131. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  16132. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16133. 0, 1, 0, msm_routing_get_switch_mixer,
  16134. msm_routing_put_switch_mixer);
  16135. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  16136. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16137. 0, 1, 0, msm_routing_get_switch_mixer,
  16138. msm_routing_put_switch_mixer);
  16139. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  16140. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16141. 0, 1, 0, msm_routing_get_switch_mixer,
  16142. msm_routing_put_switch_mixer);
  16143. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  16144. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16145. 0, 1, 0, msm_routing_get_switch_mixer,
  16146. msm_routing_put_switch_mixer);
  16147. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  16148. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16149. 0, 1, 0, msm_routing_get_switch_mixer,
  16150. msm_routing_put_switch_mixer);
  16151. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  16152. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16153. 0, 1, 0, msm_routing_get_switch_mixer,
  16154. msm_routing_put_switch_mixer);
  16155. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  16156. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16157. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  16158. msm_routing_put_fm_pcmrx_switch_mixer);
  16159. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  16160. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16161. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  16162. msm_routing_put_int0_mi2s_switch_mixer);
  16163. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  16164. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16165. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  16166. msm_routing_put_int4_mi2s_switch_mixer);
  16167. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  16168. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16169. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  16170. msm_routing_put_pri_mi2s_switch_mixer);
  16171. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  16172. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16173. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  16174. msm_routing_put_sec_mi2s_switch_mixer);
  16175. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  16176. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16177. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  16178. msm_routing_put_tert_mi2s_switch_mixer);
  16179. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  16180. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16181. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  16182. msm_routing_put_quat_mi2s_switch_mixer);
  16183. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  16184. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16185. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  16186. msm_routing_put_quin_mi2s_switch_mixer);
  16187. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  16188. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16189. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16190. msm_routing_put_hfp_switch_mixer);
  16191. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  16192. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16193. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16194. msm_routing_put_hfp_switch_mixer);
  16195. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  16196. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16197. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16198. msm_routing_put_hfp_switch_mixer);
  16199. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  16200. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16201. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16202. msm_routing_put_hfp_switch_mixer);
  16203. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  16204. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16205. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  16206. msm_routing_put_usb_switch_mixer);
  16207. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  16208. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16209. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  16210. msm_routing_a2dp_switch_mixer_put);
  16211. static const struct soc_enum lsm_port_enum =
  16212. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  16213. static const char * const lsm_func_text[] = {
  16214. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  16215. };
  16216. static const struct soc_enum lsm_func_enum =
  16217. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  16218. static const struct snd_kcontrol_new lsm_controls[] = {
  16219. /* kcontrol of lsm_function */
  16220. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16221. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16222. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16223. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16224. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16225. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16226. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16227. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16228. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16229. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16230. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16231. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16232. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16233. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16234. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16235. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16236. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16237. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16238. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16239. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16240. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16241. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16242. /* kcontrol of lsm_port */
  16243. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  16244. msm_routing_lsm_port_get,
  16245. msm_routing_lsm_port_put),
  16246. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  16247. msm_routing_lsm_port_get,
  16248. msm_routing_lsm_port_put),
  16249. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  16250. msm_routing_lsm_port_get,
  16251. msm_routing_lsm_port_put),
  16252. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  16253. msm_routing_lsm_port_get,
  16254. msm_routing_lsm_port_put),
  16255. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  16256. msm_routing_lsm_port_get,
  16257. msm_routing_lsm_port_put),
  16258. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  16259. msm_routing_lsm_port_get,
  16260. msm_routing_lsm_port_put),
  16261. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  16262. msm_routing_lsm_port_get,
  16263. msm_routing_lsm_port_put),
  16264. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  16265. msm_routing_lsm_port_get,
  16266. msm_routing_lsm_port_put),
  16267. };
  16268. static const char * const aanc_slim_0_rx_text[] = {
  16269. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  16270. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  16271. };
  16272. static const struct soc_enum aanc_slim_0_rx_enum =
  16273. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  16274. aanc_slim_0_rx_text);
  16275. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  16276. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  16277. msm_routing_slim_0_rx_aanc_mux_get,
  16278. msm_routing_slim_0_rx_aanc_mux_put)
  16279. };
  16280. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  16281. struct snd_ctl_elem_value *ucontrol)
  16282. {
  16283. ucontrol->value.integer.value[0] = aanc_level;
  16284. return 0;
  16285. }
  16286. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  16287. struct snd_ctl_elem_value *ucontrol)
  16288. {
  16289. int ret = 0;
  16290. mutex_lock(&routing_lock);
  16291. aanc_level = ucontrol->value.integer.value[0];
  16292. pr_debug("%s: value: %ld\n",
  16293. __func__, ucontrol->value.integer.value[0]);
  16294. ret = afe_set_aanc_noise_level(aanc_level);
  16295. mutex_unlock(&routing_lock);
  16296. return ret;
  16297. }
  16298. static const struct snd_kcontrol_new aanc_noise_level[] = {
  16299. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  16300. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  16301. };
  16302. static int msm_routing_get_stereo_to_custom_stereo_control(
  16303. struct snd_kcontrol *kcontrol,
  16304. struct snd_ctl_elem_value *ucontrol)
  16305. {
  16306. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  16307. return 0;
  16308. }
  16309. static int msm_routing_put_stereo_to_custom_stereo_control(
  16310. struct snd_kcontrol *kcontrol,
  16311. struct snd_ctl_elem_value *ucontrol)
  16312. {
  16313. int flag = 0, i = 0, rc = 0, idx = 0;
  16314. int be_index = 0, port_id, topo_id;
  16315. unsigned int session_id = 0;
  16316. uint16_t op_FL_ip_FL_weight = 0;
  16317. uint16_t op_FL_ip_FR_weight = 0;
  16318. uint16_t op_FR_ip_FL_weight = 0;
  16319. uint16_t op_FR_ip_FR_weight = 0;
  16320. flag = ucontrol->value.integer.value[0];
  16321. pr_debug("%s E flag %d\n", __func__, flag);
  16322. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  16323. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  16324. __func__, is_custom_stereo_on, flag);
  16325. return 0;
  16326. }
  16327. is_custom_stereo_on = flag ? true : false;
  16328. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  16329. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  16330. port_id = msm_bedais[be_index].port_id;
  16331. if (!msm_bedais[be_index].active)
  16332. continue;
  16333. if ((port_id != SLIMBUS_0_RX) &&
  16334. (port_id != RT_PROXY_PORT_001_RX) &&
  16335. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  16336. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  16337. continue;
  16338. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  16339. MSM_FRONTEND_DAI_MM_SIZE) {
  16340. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  16341. LEGACY_PCM_MODE)
  16342. goto skip_send_custom_stereo;
  16343. session_id =
  16344. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  16345. if (is_custom_stereo_on) {
  16346. op_FL_ip_FL_weight =
  16347. Q14_GAIN_ZERO_POINT_FIVE;
  16348. op_FL_ip_FR_weight =
  16349. Q14_GAIN_ZERO_POINT_FIVE;
  16350. op_FR_ip_FL_weight =
  16351. Q14_GAIN_ZERO_POINT_FIVE;
  16352. op_FR_ip_FR_weight =
  16353. Q14_GAIN_ZERO_POINT_FIVE;
  16354. } else {
  16355. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  16356. op_FL_ip_FR_weight = 0;
  16357. op_FR_ip_FL_weight = 0;
  16358. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  16359. }
  16360. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16361. unsigned long copp =
  16362. session_copp_map[i]
  16363. [SESSION_TYPE_RX][be_index];
  16364. if (!test_bit(idx, &copp))
  16365. goto skip_send_custom_stereo;
  16366. topo_id = adm_get_topology_for_port_copp_idx(
  16367. msm_bedais[be_index].port_id, idx);
  16368. if (topo_id < 0)
  16369. pr_debug("%s:Err:custom stereo topo %d",
  16370. __func__, topo_id);
  16371. pr_debug("idx %d\n", idx);
  16372. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  16373. rc = msm_ds2_dap_set_custom_stereo_onoff
  16374. (msm_bedais[be_index].port_id,
  16375. idx, is_custom_stereo_on);
  16376. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  16377. rc = dolby_dap_set_custom_stereo_onoff(
  16378. msm_bedais[be_index].port_id,
  16379. idx, is_custom_stereo_on);
  16380. else
  16381. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  16382. (msm_bedais[be_index].port_id,
  16383. idx, session_id,
  16384. op_FL_ip_FL_weight,
  16385. op_FL_ip_FR_weight,
  16386. op_FR_ip_FL_weight,
  16387. op_FR_ip_FR_weight);
  16388. if (rc < 0)
  16389. skip_send_custom_stereo:
  16390. pr_err("%s: err setting custom stereo\n",
  16391. __func__);
  16392. }
  16393. }
  16394. }
  16395. return 0;
  16396. }
  16397. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  16398. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  16399. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  16400. msm_routing_put_stereo_to_custom_stereo_control),
  16401. };
  16402. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  16403. struct snd_ctl_elem_value *ucontrol)
  16404. {
  16405. return 0;
  16406. }
  16407. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  16408. struct snd_ctl_elem_value *ucontrol)
  16409. {
  16410. int i = 0, j;
  16411. int num_app_types = ucontrol->value.integer.value[i++];
  16412. pr_debug("%s\n", __func__);
  16413. memset(app_type_cfg, 0, MAX_APP_TYPES*
  16414. sizeof(struct msm_pcm_routing_app_type_data));
  16415. if (num_app_types > MAX_APP_TYPES) {
  16416. pr_err("%s: number of app types exceed the max supported\n",
  16417. __func__);
  16418. return -EINVAL;
  16419. }
  16420. for (j = 0; j < num_app_types; j++) {
  16421. app_type_cfg[j].app_type =
  16422. ucontrol->value.integer.value[i++];
  16423. app_type_cfg[j].sample_rate =
  16424. ucontrol->value.integer.value[i++];
  16425. app_type_cfg[j].bit_width =
  16426. ucontrol->value.integer.value[i++];
  16427. }
  16428. return 0;
  16429. }
  16430. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  16431. struct snd_ctl_elem_value *ucontrol)
  16432. {
  16433. int j, fe_id, be_id, port_type;
  16434. int ret = 0;
  16435. unsigned long copp;
  16436. struct msm_pcm_routing_bdai_data *bedai;
  16437. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  16438. SESSION_TYPE_RX;
  16439. int app_type = ucontrol->value.integer.value[1];
  16440. int gain = (ucontrol->value.integer.value[2] +
  16441. ucontrol->value.integer.value[3])/2;
  16442. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  16443. MSM_AFE_PORT_TYPE_TX;
  16444. mutex_lock(&routing_lock);
  16445. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  16446. if (is_be_dai_extproc(be_id))
  16447. continue;
  16448. bedai = &msm_bedais[be_id];
  16449. if (afe_get_port_type(bedai->port_id) != port_type)
  16450. continue;
  16451. if (!bedai->active)
  16452. continue;
  16453. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  16454. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  16455. continue;
  16456. if (app_type !=
  16457. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  16458. continue;
  16459. copp = session_copp_map[fe_id][dir][be_id];
  16460. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  16461. if (!test_bit(j, &copp))
  16462. continue;
  16463. ret |= adm_set_volume(bedai->port_id, j, gain);
  16464. }
  16465. }
  16466. }
  16467. mutex_unlock(&routing_lock);
  16468. return ret ? -EINVAL : 0;
  16469. }
  16470. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  16471. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  16472. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  16473. msm_routing_put_app_type_cfg_control),
  16474. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  16475. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  16476. };
  16477. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  16478. struct snd_ctl_elem_value *ucontrol)
  16479. {
  16480. int copp_idx, fe_id, be_id, port_type;
  16481. int ret = 0;
  16482. unsigned long copp;
  16483. struct msm_pcm_routing_bdai_data *bedai;
  16484. u8 *packed_params = NULL;
  16485. struct param_hdr_v3 param_hdr;
  16486. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  16487. sizeof(uint32_t));
  16488. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  16489. SESSION_TYPE_RX;
  16490. int app_type = ucontrol->value.integer.value[1];
  16491. int module_id = ucontrol->value.integer.value[2];
  16492. int instance_id = ucontrol->value.integer.value[3];
  16493. int param_id = ucontrol->value.integer.value[4];
  16494. int param_value = ucontrol->value.integer.value[5];
  16495. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  16496. MSM_AFE_PORT_TYPE_TX;
  16497. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  16498. __func__, app_type, module_id,
  16499. instance_id, param_id, param_value);
  16500. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  16501. if (!packed_params)
  16502. return -ENOMEM;
  16503. memset(&param_hdr, 0, sizeof(param_hdr));
  16504. param_hdr.module_id = module_id;
  16505. param_hdr.instance_id = instance_id;
  16506. param_hdr.param_id = param_id;
  16507. param_hdr.param_size = sizeof(uint32_t);
  16508. packed_param_size = 0;
  16509. mutex_lock(&routing_lock);
  16510. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  16511. if (is_be_dai_extproc(be_id))
  16512. continue;
  16513. bedai = &msm_bedais[be_id];
  16514. if (afe_get_port_type(bedai->port_id) != port_type)
  16515. continue;
  16516. if (!bedai->active)
  16517. continue;
  16518. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  16519. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  16520. continue;
  16521. if (app_type !=
  16522. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  16523. continue;
  16524. copp = session_copp_map[fe_id][dir][be_id];
  16525. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  16526. copp_idx++) {
  16527. if (!test_bit(copp_idx, &copp))
  16528. continue;
  16529. ret = q6common_pack_pp_params(packed_params,
  16530. &param_hdr,
  16531. (u8 *) &param_value,
  16532. &packed_param_size);
  16533. if (ret) {
  16534. pr_err("%s: Failed to pack params, error %d\n",
  16535. __func__, ret);
  16536. goto done;
  16537. }
  16538. ret = adm_set_pp_params(bedai->port_id,
  16539. copp_idx, NULL,
  16540. packed_params,
  16541. packed_param_size);
  16542. if (ret) {
  16543. pr_err("%s: Setting param failed with err=%d\n",
  16544. __func__, ret);
  16545. ret = -EINVAL;
  16546. goto done;
  16547. }
  16548. }
  16549. }
  16550. }
  16551. done:
  16552. mutex_unlock(&routing_lock);
  16553. kfree(packed_params);
  16554. return ret;
  16555. }
  16556. static const struct snd_kcontrol_new module_cfg_controls[] = {
  16557. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  16558. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  16559. };
  16560. static int msm_routing_get_lsm_app_type_cfg_control(
  16561. struct snd_kcontrol *kcontrol,
  16562. struct snd_ctl_elem_value *ucontrol)
  16563. {
  16564. return 0;
  16565. }
  16566. static int msm_routing_put_lsm_app_type_cfg_control(
  16567. struct snd_kcontrol *kcontrol,
  16568. struct snd_ctl_elem_value *ucontrol)
  16569. {
  16570. int shift = ((struct soc_multi_mixer_control *)
  16571. kcontrol->private_value)->shift;
  16572. int i = 0, j;
  16573. int num_app_types = ucontrol->value.integer.value[i++];
  16574. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  16575. sizeof(struct msm_pcm_routing_app_type_data));
  16576. if (num_app_types > MAX_APP_TYPES) {
  16577. pr_err("%s: number of app types exceed the max supported\n",
  16578. __func__);
  16579. return -EINVAL;
  16580. }
  16581. for (j = 0; j < num_app_types; j++) {
  16582. lsm_app_type_cfg[j].app_type =
  16583. ucontrol->value.integer.value[i++];
  16584. lsm_app_type_cfg[j].sample_rate =
  16585. ucontrol->value.integer.value[i++];
  16586. lsm_app_type_cfg[j].bit_width =
  16587. ucontrol->value.integer.value[i++];
  16588. /* Shift of 1 indicates this is V2 mixer control */
  16589. if (shift == 1)
  16590. lsm_app_type_cfg[j].num_out_channels =
  16591. ucontrol->value.integer.value[i++];
  16592. }
  16593. return 0;
  16594. }
  16595. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  16596. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  16597. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  16598. msm_routing_put_lsm_app_type_cfg_control),
  16599. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  16600. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  16601. msm_routing_put_lsm_app_type_cfg_control),
  16602. };
  16603. static int msm_routing_get_use_ds1_or_ds2_control(
  16604. struct snd_kcontrol *kcontrol,
  16605. struct snd_ctl_elem_value *ucontrol)
  16606. {
  16607. ucontrol->value.integer.value[0] = is_ds2_on;
  16608. return 0;
  16609. }
  16610. static int msm_routing_put_use_ds1_or_ds2_control(
  16611. struct snd_kcontrol *kcontrol,
  16612. struct snd_ctl_elem_value *ucontrol)
  16613. {
  16614. is_ds2_on = ucontrol->value.integer.value[0];
  16615. return 0;
  16616. }
  16617. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  16618. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  16619. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  16620. msm_routing_put_use_ds1_or_ds2_control),
  16621. };
  16622. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  16623. struct snd_ctl_elem_value *ucontrol) {
  16624. int rc = 0;
  16625. int be_idx = 0;
  16626. char *param_value;
  16627. int *update_param_value;
  16628. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  16629. struct param_hdr_v3 param_hdr;
  16630. param_value = kzalloc(param_size, GFP_KERNEL);
  16631. if (!param_value)
  16632. return -ENOMEM;
  16633. memset(&param_hdr, 0, sizeof(param_hdr));
  16634. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  16635. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  16636. break;
  16637. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  16638. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  16639. param_hdr.instance_id = INSTANCE_ID_0;
  16640. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  16641. param_hdr.param_size = param_size;
  16642. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  16643. NULL, &param_hdr, (u8 *) param_value);
  16644. if (rc) {
  16645. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  16646. kfree(param_value);
  16647. return -EINVAL;
  16648. }
  16649. update_param_value = (int *)param_value;
  16650. ucontrol->value.integer.value[0] = update_param_value[0];
  16651. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  16652. __func__, update_param_value[0]);
  16653. }
  16654. kfree(param_value);
  16655. return 0;
  16656. }
  16657. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  16658. struct snd_ctl_elem_value *ucontrol)
  16659. {
  16660. voc_session_id = ucontrol->value.integer.value[0];
  16661. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  16662. return 0;
  16663. }
  16664. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  16665. struct snd_ctl_elem_value *ucontrol)
  16666. {
  16667. ucontrol->value.integer.value[0] = voc_session_id;
  16668. return 0;
  16669. }
  16670. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  16671. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  16672. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  16673. msm_voc_session_id_put),
  16674. };
  16675. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  16676. struct snd_ctl_elem_info *uinfo)
  16677. {
  16678. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16679. uinfo->count = sizeof(struct sound_focus_param);
  16680. return 0;
  16681. }
  16682. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  16683. struct snd_ctl_elem_value *ucontrol)
  16684. {
  16685. int ret = 0;
  16686. struct sound_focus_param soundFocusData;
  16687. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16688. sizeof(struct sound_focus_param));
  16689. ret = voc_set_sound_focus(soundFocusData);
  16690. if (ret) {
  16691. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16692. __func__, ret);
  16693. ret = -EINVAL;
  16694. }
  16695. return ret;
  16696. }
  16697. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  16698. struct snd_ctl_elem_value *ucontrol)
  16699. {
  16700. int ret = 0;
  16701. struct sound_focus_param soundFocusData;
  16702. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  16703. ret = voc_get_sound_focus(&soundFocusData);
  16704. if (ret) {
  16705. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  16706. __func__, ret);
  16707. ret = -EINVAL;
  16708. goto done;
  16709. }
  16710. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16711. sizeof(struct sound_focus_param));
  16712. done:
  16713. return ret;
  16714. }
  16715. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  16716. struct snd_ctl_elem_info *uinfo)
  16717. {
  16718. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16719. uinfo->count = sizeof(struct source_tracking_param);
  16720. return 0;
  16721. }
  16722. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  16723. struct snd_ctl_elem_value *ucontrol)
  16724. {
  16725. int ret = 0;
  16726. struct source_tracking_param sourceTrackingData;
  16727. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  16728. ret = voc_get_source_tracking(&sourceTrackingData);
  16729. if (ret) {
  16730. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  16731. __func__, ret);
  16732. ret = -EINVAL;
  16733. goto done;
  16734. }
  16735. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  16736. sizeof(struct source_tracking_param));
  16737. done:
  16738. return ret;
  16739. }
  16740. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  16741. int *copp_idx)
  16742. {
  16743. int i, idx, be_idx;
  16744. int ret = 0;
  16745. unsigned long copp;
  16746. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  16747. ret = q6audio_validate_port(port_id);
  16748. if (ret < 0) {
  16749. pr_err("%s: port validation failed id 0x%x ret %d\n",
  16750. __func__, port_id, ret);
  16751. ret = -EINVAL;
  16752. goto done;
  16753. }
  16754. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  16755. if (msm_bedais[be_idx].port_id == port_id)
  16756. break;
  16757. }
  16758. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  16759. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  16760. ret = -EINVAL;
  16761. goto done;
  16762. }
  16763. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  16764. MSM_FRONTEND_DAI_MM_SIZE) {
  16765. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16766. copp = session_copp_map[i]
  16767. [session_type][be_idx];
  16768. if (test_bit(idx, &copp))
  16769. break;
  16770. }
  16771. if (idx >= MAX_COPPS_PER_PORT)
  16772. continue;
  16773. else
  16774. break;
  16775. }
  16776. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  16777. pr_debug("%s: Invalid FE, exiting\n", __func__);
  16778. ret = -EINVAL;
  16779. goto done;
  16780. }
  16781. *copp_idx = idx;
  16782. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  16783. done:
  16784. return ret;
  16785. }
  16786. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  16787. const char *prefix, int *port_id)
  16788. {
  16789. int ret = 0;
  16790. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  16791. /*
  16792. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  16793. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  16794. * and compare the string with the backend name to derive the port id.
  16795. */
  16796. if (!strcmp(kcontrol->id.name + strlen(prefix),
  16797. "SLIMBUS_0")) {
  16798. *port_id = SLIMBUS_0_TX;
  16799. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16800. "TERT_MI2S")) {
  16801. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  16802. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16803. "INT3_MI2S")) {
  16804. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  16805. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16806. "VA_CDC_DMA_TX_0")) {
  16807. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  16808. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16809. "TX_CDC_DMA_TX_3")) {
  16810. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  16811. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16812. "QUIN_TDM_TX_0")) {
  16813. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  16814. } else {
  16815. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  16816. __func__, kcontrol->id.name);
  16817. ret = -EINVAL;
  16818. goto done;
  16819. }
  16820. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  16821. __func__, kcontrol->id.name, *port_id);
  16822. done:
  16823. return ret;
  16824. }
  16825. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  16826. struct snd_ctl_elem_value *ucontrol)
  16827. {
  16828. int ret = 0;
  16829. struct sound_focus_param soundFocusData;
  16830. int port_id, copp_idx;
  16831. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16832. "Sound Focus Audio Tx ", &port_id);
  16833. if (ret != 0) {
  16834. pr_err("%s: Error in deriving port id, err=%d\n",
  16835. __func__, ret);
  16836. ret = -EINVAL;
  16837. goto done;
  16838. }
  16839. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16840. &copp_idx);
  16841. if (ret) {
  16842. pr_err("%s: Could not get copp idx for port_id=%d\n",
  16843. __func__, port_id);
  16844. ret = -EINVAL;
  16845. goto done;
  16846. }
  16847. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16848. sizeof(struct sound_focus_param));
  16849. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  16850. if (ret) {
  16851. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16852. __func__, ret);
  16853. ret = -EINVAL;
  16854. goto done;
  16855. }
  16856. done:
  16857. return ret;
  16858. }
  16859. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  16860. struct snd_ctl_elem_value *ucontrol)
  16861. {
  16862. int ret = 0;
  16863. struct sound_focus_param soundFocusData;
  16864. int port_id, copp_idx;
  16865. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16866. "Sound Focus Audio Tx ", &port_id);
  16867. if (ret) {
  16868. pr_err("%s: Error in deriving port id, err=%d\n",
  16869. __func__, ret);
  16870. ret = -EINVAL;
  16871. goto done;
  16872. }
  16873. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16874. &copp_idx);
  16875. if (ret) {
  16876. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  16877. __func__, port_id);
  16878. ret = -EINVAL;
  16879. goto done;
  16880. }
  16881. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  16882. if (ret) {
  16883. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  16884. __func__, ret);
  16885. ret = -EINVAL;
  16886. goto done;
  16887. }
  16888. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16889. sizeof(struct sound_focus_param));
  16890. done:
  16891. return ret;
  16892. }
  16893. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  16894. struct snd_ctl_elem_value *ucontrol)
  16895. {
  16896. int ret = 0;
  16897. struct source_tracking_param sourceTrackingData;
  16898. int port_id, copp_idx;
  16899. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16900. "Source Tracking Audio Tx ", &port_id);
  16901. if (ret) {
  16902. pr_err("%s: Error in deriving port id, err=%d\n",
  16903. __func__, ret);
  16904. ret = -EINVAL;
  16905. goto done;
  16906. }
  16907. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16908. &copp_idx);
  16909. if (ret) {
  16910. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  16911. __func__, port_id);
  16912. ret = -EINVAL;
  16913. goto done;
  16914. }
  16915. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  16916. if (ret) {
  16917. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  16918. __func__, ret);
  16919. ret = -EINVAL;
  16920. goto done;
  16921. }
  16922. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  16923. sizeof(struct source_tracking_param));
  16924. done:
  16925. return ret;
  16926. }
  16927. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  16928. {
  16929. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16930. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16931. .name = "Sound Focus Voice Tx SLIMBUS_0",
  16932. .info = msm_sound_focus_info,
  16933. .get = msm_voice_sound_focus_get,
  16934. .put = msm_voice_sound_focus_put,
  16935. },
  16936. {
  16937. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16938. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16939. .name = "Source Tracking Voice Tx SLIMBUS_0",
  16940. .info = msm_source_tracking_info,
  16941. .get = msm_voice_source_tracking_get,
  16942. },
  16943. {
  16944. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16945. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16946. .name = "Sound Focus Audio Tx SLIMBUS_0",
  16947. .info = msm_sound_focus_info,
  16948. .get = msm_audio_sound_focus_get,
  16949. .put = msm_audio_sound_focus_put,
  16950. },
  16951. {
  16952. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16953. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16954. .name = "Source Tracking Audio Tx SLIMBUS_0",
  16955. .info = msm_source_tracking_info,
  16956. .get = msm_audio_source_tracking_get,
  16957. },
  16958. {
  16959. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16960. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16961. .name = "Sound Focus Voice Tx TERT_MI2S",
  16962. .info = msm_sound_focus_info,
  16963. .get = msm_voice_sound_focus_get,
  16964. .put = msm_voice_sound_focus_put,
  16965. },
  16966. {
  16967. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16968. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16969. .name = "Source Tracking Voice Tx TERT_MI2S",
  16970. .info = msm_source_tracking_info,
  16971. .get = msm_voice_source_tracking_get,
  16972. },
  16973. {
  16974. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16975. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16976. .name = "Sound Focus Audio Tx TERT_MI2S",
  16977. .info = msm_sound_focus_info,
  16978. .get = msm_audio_sound_focus_get,
  16979. .put = msm_audio_sound_focus_put,
  16980. },
  16981. {
  16982. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16983. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16984. .name = "Source Tracking Audio Tx TERT_MI2S",
  16985. .info = msm_source_tracking_info,
  16986. .get = msm_audio_source_tracking_get,
  16987. },
  16988. {
  16989. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16990. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16991. .name = "Sound Focus Voice Tx INT3_MI2S",
  16992. .info = msm_sound_focus_info,
  16993. .get = msm_voice_sound_focus_get,
  16994. .put = msm_voice_sound_focus_put,
  16995. },
  16996. {
  16997. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16998. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16999. .name = "Source Tracking Voice Tx INT3_MI2S",
  17000. .info = msm_source_tracking_info,
  17001. .get = msm_voice_source_tracking_get,
  17002. },
  17003. {
  17004. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17005. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17006. .name = "Sound Focus Audio Tx INT3_MI2S",
  17007. .info = msm_sound_focus_info,
  17008. .get = msm_audio_sound_focus_get,
  17009. .put = msm_audio_sound_focus_put,
  17010. },
  17011. {
  17012. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17013. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17014. .name = "Source Tracking Audio Tx INT3_MI2S",
  17015. .info = msm_source_tracking_info,
  17016. .get = msm_audio_source_tracking_get,
  17017. },
  17018. {
  17019. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17020. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17021. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  17022. .info = msm_sound_focus_info,
  17023. .get = msm_voice_sound_focus_get,
  17024. .put = msm_voice_sound_focus_put,
  17025. },
  17026. {
  17027. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17028. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17029. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  17030. .info = msm_source_tracking_info,
  17031. .get = msm_voice_source_tracking_get,
  17032. },
  17033. {
  17034. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17035. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17036. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  17037. .info = msm_sound_focus_info,
  17038. .get = msm_audio_sound_focus_get,
  17039. .put = msm_audio_sound_focus_put,
  17040. },
  17041. {
  17042. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17043. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17044. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  17045. .info = msm_source_tracking_info,
  17046. .get = msm_audio_source_tracking_get,
  17047. },
  17048. {
  17049. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17050. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17051. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  17052. .info = msm_sound_focus_info,
  17053. .get = msm_voice_sound_focus_get,
  17054. .put = msm_voice_sound_focus_put,
  17055. },
  17056. {
  17057. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17058. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17059. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  17060. .info = msm_source_tracking_info,
  17061. .get = msm_voice_source_tracking_get,
  17062. },
  17063. {
  17064. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17065. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17066. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  17067. .info = msm_sound_focus_info,
  17068. .get = msm_audio_sound_focus_get,
  17069. .put = msm_audio_sound_focus_put,
  17070. },
  17071. {
  17072. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17073. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17074. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  17075. .info = msm_source_tracking_info,
  17076. .get = msm_audio_source_tracking_get,
  17077. },
  17078. {
  17079. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17080. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17081. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  17082. .info = msm_sound_focus_info,
  17083. .get = msm_voice_sound_focus_get,
  17084. .put = msm_voice_sound_focus_put,
  17085. },
  17086. {
  17087. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17088. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17089. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  17090. .info = msm_source_tracking_info,
  17091. .get = msm_voice_source_tracking_get,
  17092. },
  17093. {
  17094. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17095. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17096. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  17097. .info = msm_sound_focus_info,
  17098. .get = msm_audio_sound_focus_get,
  17099. .put = msm_audio_sound_focus_put,
  17100. },
  17101. {
  17102. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17103. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17104. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  17105. .info = msm_source_tracking_info,
  17106. .get = msm_audio_source_tracking_get,
  17107. },
  17108. };
  17109. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  17110. struct snd_ctl_elem_value *ucontrol)
  17111. {
  17112. int ret = 0;
  17113. int item;
  17114. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  17115. pr_debug("%s item is %d\n", __func__,
  17116. ucontrol->value.enumerated.item[0]);
  17117. mutex_lock(&routing_lock);
  17118. item = ucontrol->value.enumerated.item[0];
  17119. if (item < e->items) {
  17120. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  17121. __func__, e->shift_l, e->values[item]);
  17122. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  17123. e->values[item] < MSM_BACKEND_DAI_MAX)
  17124. /* Enable feedback TX path */
  17125. ret = afe_spk_prot_feed_back_cfg(
  17126. msm_bedais[e->values[item]].port_id,
  17127. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  17128. else {
  17129. pr_debug("%s values are out of range item %d\n",
  17130. __func__, e->values[item]);
  17131. /* Disable feedback TX path */
  17132. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  17133. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  17134. else
  17135. ret = -EINVAL;
  17136. }
  17137. } else {
  17138. pr_err("%s item value is out of range item\n", __func__);
  17139. ret = -EINVAL;
  17140. }
  17141. mutex_unlock(&routing_lock);
  17142. return ret;
  17143. }
  17144. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  17145. struct snd_ctl_elem_value *ucontrol)
  17146. {
  17147. int ret = 0;
  17148. int item;
  17149. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  17150. pr_debug("%s item is %d\n", __func__,
  17151. ucontrol->value.enumerated.item[0]);
  17152. mutex_lock(&routing_lock);
  17153. item = ucontrol->value.enumerated.item[0];
  17154. if (item < e->items) {
  17155. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  17156. __func__, e->shift_l, e->values[item]);
  17157. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  17158. e->values[item] < MSM_BACKEND_DAI_MAX)
  17159. /* Enable feedback TX path */
  17160. ret = afe_spk_prot_feed_back_cfg(
  17161. msm_bedais[e->values[item]].port_id,
  17162. msm_bedais[e->shift_l].port_id,
  17163. 1, 1, 1);
  17164. else {
  17165. pr_debug("%s values are out of range item %d\n",
  17166. __func__, e->values[item]);
  17167. /* Disable feedback TX path */
  17168. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  17169. ret = afe_spk_prot_feed_back_cfg(0,
  17170. 0, 0, 0, 0);
  17171. else
  17172. ret = -EINVAL;
  17173. }
  17174. } else {
  17175. pr_err("%s item value is out of range item\n", __func__);
  17176. ret = -EINVAL;
  17177. }
  17178. mutex_unlock(&routing_lock);
  17179. return ret;
  17180. }
  17181. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  17182. struct snd_ctl_elem_value *ucontrol)
  17183. {
  17184. pr_debug("%s\n", __func__);
  17185. return 0;
  17186. }
  17187. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  17188. struct snd_ctl_elem_value *ucontrol)
  17189. {
  17190. pr_debug("%s\n", __func__);
  17191. ucontrol->value.enumerated.item[0] = 0;
  17192. return 0;
  17193. }
  17194. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  17195. "ZERO", "SLIM4_TX"
  17196. };
  17197. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  17198. "ZERO", "SLIM4_TX"
  17199. };
  17200. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  17201. "ZERO", "WSA_CDC_DMA_TX_0"
  17202. };
  17203. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  17204. "ZERO", "WSA_CDC_DMA_TX_0"
  17205. };
  17206. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  17207. "ZERO", "SENARY_TX"
  17208. };
  17209. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  17210. "ZERO", "INT5_MI2S_TX"
  17211. };
  17212. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  17213. "ZERO", "INT5_MI2S_TX"
  17214. };
  17215. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  17216. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  17217. };
  17218. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  17219. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  17220. };
  17221. static const int const wsa_rx_0_vi_fb_tx_lch_value[] = {
  17222. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  17223. };
  17224. static const int const wsa_rx_0_vi_fb_tx_rch_value[] = {
  17225. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  17226. };
  17227. static const int const mi2s_rx_vi_fb_tx_value[] = {
  17228. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  17229. };
  17230. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  17231. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  17232. };
  17233. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  17234. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  17235. };
  17236. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  17237. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  17238. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  17239. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  17240. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  17241. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  17242. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  17243. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  17244. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  17245. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  17246. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  17247. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  17248. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  17249. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  17250. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  17251. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  17252. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  17253. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  17254. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  17255. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  17256. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  17257. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  17258. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  17259. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  17260. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  17261. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  17262. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  17263. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  17264. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  17265. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  17266. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  17267. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  17268. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  17269. spkr_prot_put_vi_lch_port);
  17270. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  17271. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  17272. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  17273. spkr_prot_put_vi_rch_port);
  17274. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  17275. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  17276. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  17277. spkr_prot_put_vi_lch_port);
  17278. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  17279. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  17280. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  17281. spkr_prot_put_vi_rch_port);
  17282. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  17283. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  17284. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  17285. spkr_prot_put_vi_lch_port);
  17286. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  17287. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  17288. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  17289. spkr_prot_put_vi_lch_port);
  17290. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  17291. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  17292. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  17293. spkr_prot_put_vi_rch_port);
  17294. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  17295. /* Frontend AIF */
  17296. /* Widget name equals to Front-End DAI name<Need confirmation>,
  17297. * Stream name must contains substring of front-end dai name
  17298. */
  17299. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  17300. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  17301. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  17302. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  17303. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  17304. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  17305. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  17306. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  17307. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  17308. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  17309. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  17310. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  17311. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  17312. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  17313. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  17314. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  17315. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  17316. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  17317. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  17318. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  17319. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  17320. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  17321. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  17322. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  17323. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  17324. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  17325. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  17326. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  17327. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  17328. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  17329. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  17330. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  17331. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  17332. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  17333. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  17334. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  17335. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  17336. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  17337. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  17338. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  17339. "VoiceMMode1 Playback", 0, 0, 0, 0),
  17340. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  17341. "VoiceMMode1 Capture", 0, 0, 0, 0),
  17342. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  17343. "VoiceMMode2 Playback", 0, 0, 0, 0),
  17344. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  17345. "VoiceMMode2 Capture", 0, 0, 0, 0),
  17346. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  17347. 0, 0, 0, 0),
  17348. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  17349. 0, 0, 0, 0),
  17350. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  17351. 0, 0, 0, 0),
  17352. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  17353. 0, 0, 0, 0),
  17354. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  17355. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  17356. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  17357. 0, 0, 0, 0),
  17358. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  17359. 0, 0, 0, 0),
  17360. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  17361. 0, 0, 0, 0),
  17362. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  17363. 0, 0, 0, 0),
  17364. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  17365. 0, 0, 0, 0),
  17366. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  17367. 0, 0, 0, 0),
  17368. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  17369. 0, 0, 0, 0),
  17370. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  17371. 0, 0, 0, 0),
  17372. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  17373. 0, 0, 0, 0),
  17374. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  17375. 0, 0, 0, 0),
  17376. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  17377. 0, 0, 0, 0),
  17378. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  17379. 0, 0, 0, 0),
  17380. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  17381. 0, 0, 0, 0),
  17382. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  17383. 0, 0, 0, 0),
  17384. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  17385. 0, 0, 0, 0),
  17386. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  17387. 0, 0, 0, 0),
  17388. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  17389. 0, 0, 0, 0),
  17390. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  17391. 0, 0, 0, 0),
  17392. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  17393. 0, 0, 0, 0),
  17394. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  17395. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  17396. 0, 0, 0, 0),
  17397. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  17398. "INT0 MI2S_RX Hostless Playback",
  17399. 0, 0, 0, 0),
  17400. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  17401. "INT4 MI2S_RX Hostless Playback",
  17402. 0, 0, 0, 0),
  17403. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  17404. "Primary MI2S_RX Hostless Playback",
  17405. 0, 0, 0, 0),
  17406. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  17407. "Secondary MI2S_RX Hostless Playback",
  17408. 0, 0, 0, 0),
  17409. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  17410. "Tertiary MI2S_RX Hostless Playback",
  17411. 0, 0, 0, 0),
  17412. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  17413. "Quaternary MI2S_RX Hostless Playback",
  17414. 0, 0, 0, 0),
  17415. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  17416. "Quinary MI2S_RX Hostless Playback",
  17417. 0, 0, 0, 0),
  17418. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  17419. 0, 0, 0, 0),
  17420. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  17421. 0, 0, 0, 0),
  17422. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  17423. 0, 0, 0, 0),
  17424. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  17425. 0, 0, 0, 0),
  17426. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  17427. 0, 0, 0, 0),
  17428. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  17429. "INT3 MI2S_TX Hostless Capture",
  17430. 0, 0, 0, 0),
  17431. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  17432. "Tertiary MI2S_TX Hostless Capture",
  17433. 0, 0, 0, 0),
  17434. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  17435. "Secondary MI2S_TX Hostless Capture",
  17436. 0, 0, 0, 0),
  17437. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  17438. "Primary MI2S_TX Hostless Capture",
  17439. 0, 0, 0, 0),
  17440. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  17441. 0, 0, 0, 0),
  17442. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  17443. 0, 0, 0, 0),
  17444. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  17445. "Quaternary MI2S_TX Hostless Capture",
  17446. 0, 0, 0, 0),
  17447. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  17448. "Quinary MI2S_TX Hostless Capture",
  17449. 0, 0, 0, 0),
  17450. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  17451. "Primary TDM0 Hostless Playback",
  17452. 0, 0, 0, 0),
  17453. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  17454. "Primary TDM0 Hostless Capture",
  17455. 0, 0, 0, 0),
  17456. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  17457. "Primary TDM1 Hostless Playback",
  17458. 0, 0, 0, 0),
  17459. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  17460. "Primary TDM1 Hostless Capture",
  17461. 0, 0, 0, 0),
  17462. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  17463. "Primary TDM2 Hostless Playback",
  17464. 0, 0, 0, 0),
  17465. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  17466. "Primary TDM2 Hostless Capture",
  17467. 0, 0, 0, 0),
  17468. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  17469. "Primary TDM3 Hostless Playback",
  17470. 0, 0, 0, 0),
  17471. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  17472. "Primary TDM3 Hostless Capture",
  17473. 0, 0, 0, 0),
  17474. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  17475. "Primary TDM4 Hostless Playback",
  17476. 0, 0, 0, 0),
  17477. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  17478. "Primary TDM4 Hostless Capture",
  17479. 0, 0, 0, 0),
  17480. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  17481. "Primary TDM5 Hostless Playback",
  17482. 0, 0, 0, 0),
  17483. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  17484. "Primary TDM5 Hostless Capture",
  17485. 0, 0, 0, 0),
  17486. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  17487. "Primary TDM6 Hostless Playback",
  17488. 0, 0, 0, 0),
  17489. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  17490. "Primary TDM6 Hostless Capture",
  17491. 0, 0, 0, 0),
  17492. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  17493. "Primary TDM7 Hostless Playback",
  17494. 0, 0, 0, 0),
  17495. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  17496. "Primary TDM7 Hostless Capture",
  17497. 0, 0, 0, 0),
  17498. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  17499. "Secondary TDM0 Hostless Playback",
  17500. 0, 0, 0, 0),
  17501. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  17502. "Secondary TDM0 Hostless Capture",
  17503. 0, 0, 0, 0),
  17504. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  17505. "Secondary TDM1 Hostless Playback",
  17506. 0, 0, 0, 0),
  17507. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  17508. "Secondary TDM1 Hostless Capture",
  17509. 0, 0, 0, 0),
  17510. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  17511. "Secondary TDM2 Hostless Playback",
  17512. 0, 0, 0, 0),
  17513. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  17514. "Secondary TDM2 Hostless Capture",
  17515. 0, 0, 0, 0),
  17516. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  17517. "Secondary TDM3 Hostless Playback",
  17518. 0, 0, 0, 0),
  17519. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  17520. "Secondary TDM3 Hostless Capture",
  17521. 0, 0, 0, 0),
  17522. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  17523. "Secondary TDM4 Hostless Playback",
  17524. 0, 0, 0, 0),
  17525. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  17526. "Secondary TDM4 Hostless Capture",
  17527. 0, 0, 0, 0),
  17528. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  17529. "Secondary TDM5 Hostless Playback",
  17530. 0, 0, 0, 0),
  17531. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  17532. "Secondary TDM5 Hostless Capture",
  17533. 0, 0, 0, 0),
  17534. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  17535. "Secondary TDM6 Hostless Playback",
  17536. 0, 0, 0, 0),
  17537. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  17538. "Secondary TDM6 Hostless Capture",
  17539. 0, 0, 0, 0),
  17540. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  17541. "Secondary TDM7 Hostless Playback",
  17542. 0, 0, 0, 0),
  17543. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  17544. "Secondary TDM7 Hostless Capture",
  17545. 0, 0, 0, 0),
  17546. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  17547. "Tertiary TDM0 Hostless Playback",
  17548. 0, 0, 0, 0),
  17549. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  17550. "Tertiary TDM0 Hostless Capture",
  17551. 0, 0, 0, 0),
  17552. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  17553. "Tertiary TDM1 Hostless Playback",
  17554. 0, 0, 0, 0),
  17555. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  17556. "Tertiary TDM1 Hostless Capture",
  17557. 0, 0, 0, 0),
  17558. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  17559. "Tertiary TDM2 Hostless Playback",
  17560. 0, 0, 0, 0),
  17561. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  17562. "Tertiary TDM2 Hostless Capture",
  17563. 0, 0, 0, 0),
  17564. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  17565. "Tertiary TDM3 Hostless Playback",
  17566. 0, 0, 0, 0),
  17567. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  17568. "Tertiary TDM3 Hostless Capture",
  17569. 0, 0, 0, 0),
  17570. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  17571. "Tertiary TDM4 Hostless Playback",
  17572. 0, 0, 0, 0),
  17573. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  17574. "Tertiary TDM4 Hostless Capture",
  17575. 0, 0, 0, 0),
  17576. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  17577. "Tertiary TDM5 Hostless Playback",
  17578. 0, 0, 0, 0),
  17579. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  17580. "Tertiary TDM5 Hostless Capture",
  17581. 0, 0, 0, 0),
  17582. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  17583. "Tertiary TDM6 Hostless Playback",
  17584. 0, 0, 0, 0),
  17585. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  17586. "Tertiary TDM6 Hostless Capture",
  17587. 0, 0, 0, 0),
  17588. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  17589. "Tertiary TDM7 Hostless Playback",
  17590. 0, 0, 0, 0),
  17591. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  17592. "Tertiary TDM7 Hostless Capture",
  17593. 0, 0, 0, 0),
  17594. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  17595. "Quaternary TDM0 Hostless Playback",
  17596. 0, 0, 0, 0),
  17597. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  17598. "Quaternary TDM0 Hostless Capture",
  17599. 0, 0, 0, 0),
  17600. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  17601. "Quaternary TDM1 Hostless Playback",
  17602. 0, 0, 0, 0),
  17603. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  17604. "Quaternary TDM1 Hostless Capture",
  17605. 0, 0, 0, 0),
  17606. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  17607. "Quaternary TDM2 Hostless Playback",
  17608. 0, 0, 0, 0),
  17609. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  17610. "Quaternary TDM2 Hostless Capture",
  17611. 0, 0, 0, 0),
  17612. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  17613. "Quaternary TDM3 Hostless Playback",
  17614. 0, 0, 0, 0),
  17615. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  17616. "Quaternary TDM3 Hostless Capture",
  17617. 0, 0, 0, 0),
  17618. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  17619. "Quaternary TDM4 Hostless Playback",
  17620. 0, 0, 0, 0),
  17621. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  17622. "Quaternary TDM4 Hostless Capture",
  17623. 0, 0, 0, 0),
  17624. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  17625. "Quaternary TDM5 Hostless Playback",
  17626. 0, 0, 0, 0),
  17627. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  17628. "Quaternary TDM5 Hostless Capture",
  17629. 0, 0, 0, 0),
  17630. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  17631. "Quaternary TDM6 Hostless Playback",
  17632. 0, 0, 0, 0),
  17633. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  17634. "Quaternary TDM6 Hostless Capture",
  17635. 0, 0, 0, 0),
  17636. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  17637. "Quaternary TDM7 Hostless Playback",
  17638. 0, 0, 0, 0),
  17639. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  17640. "Quaternary TDM7 Hostless Capture",
  17641. 0, 0, 0, 0),
  17642. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  17643. "Quinary TDM0 Hostless Playback",
  17644. 0, 0, 0, 0),
  17645. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  17646. "Quinary TDM0 Hostless Capture",
  17647. 0, 0, 0, 0),
  17648. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  17649. "Quinary TDM1 Hostless Playback",
  17650. 0, 0, 0, 0),
  17651. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  17652. "Quinary TDM1 Hostless Capture",
  17653. 0, 0, 0, 0),
  17654. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  17655. "Quinary TDM2 Hostless Playback",
  17656. 0, 0, 0, 0),
  17657. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  17658. "Quinary TDM2 Hostless Capture",
  17659. 0, 0, 0, 0),
  17660. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  17661. "Quinary TDM3 Hostless Playback",
  17662. 0, 0, 0, 0),
  17663. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  17664. "Quinary TDM3 Hostless Capture",
  17665. 0, 0, 0, 0),
  17666. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  17667. "Quinary TDM4 Hostless Playback",
  17668. 0, 0, 0, 0),
  17669. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  17670. "Quinary TDM4 Hostless Capture",
  17671. 0, 0, 0, 0),
  17672. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  17673. "Quinary TDM5 Hostless Playback",
  17674. 0, 0, 0, 0),
  17675. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  17676. "Quinary TDM5 Hostless Capture",
  17677. 0, 0, 0, 0),
  17678. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  17679. "Quinary TDM6 Hostless Playback",
  17680. 0, 0, 0, 0),
  17681. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  17682. "Quinary TDM6 Hostless Capture",
  17683. 0, 0, 0, 0),
  17684. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  17685. "Quinary TDM7 Hostless Playback",
  17686. 0, 0, 0, 0),
  17687. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  17688. "Quinary TDM7 Hostless Capture",
  17689. 0, 0, 0, 0),
  17690. /* LSM */
  17691. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  17692. 0, 0, 0, 0),
  17693. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  17694. 0, 0, 0, 0),
  17695. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  17696. 0, 0, 0, 0),
  17697. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  17698. 0, 0, 0, 0),
  17699. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  17700. 0, 0, 0, 0),
  17701. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  17702. 0, 0, 0, 0),
  17703. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  17704. 0, 0, 0, 0),
  17705. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  17706. 0, 0, 0, 0),
  17707. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  17708. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  17709. /* Backend AIF */
  17710. /* Stream name equals to backend dai link stream name */
  17711. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  17712. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  17713. 0, 0, 0, 0),
  17714. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  17715. 0, 0, 0, 0),
  17716. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  17717. 0, 0, 0, 0),
  17718. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  17719. 0, 0, 0, 0),
  17720. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  17721. 0, 0, 0, 0),
  17722. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  17723. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  17724. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  17725. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  17726. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  17727. 0, 0, 0, 0),
  17728. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  17729. 0, 0, 0, 0),
  17730. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  17731. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  17732. 0, 0, 0, 0),
  17733. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  17734. 0, 0, 0, 0),
  17735. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  17736. 0, 0, 0, 0),
  17737. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  17738. "Secondary MI2S Playback SD1",
  17739. 0, 0, 0, 0),
  17740. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  17741. 0, 0, 0, 0),
  17742. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  17743. 0, 0, 0, 0),
  17744. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  17745. 0, 0, 0, 0),
  17746. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  17747. 0, 0, 0, 0),
  17748. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  17749. 0, 0, 0, 0),
  17750. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  17751. 0, 0, 0, 0),
  17752. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  17753. 0, 0, 0, 0),
  17754. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  17755. 0, 0, 0, 0),
  17756. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  17757. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  17758. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  17759. 0, 0, 0, 0),
  17760. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  17761. 0, 0, 0, 0),
  17762. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  17763. 0, 0, 0, 0),
  17764. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  17765. 0, 0, 0, 0),
  17766. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  17767. 0, 0, 0, 0),
  17768. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  17769. 0, 0, 0, 0),
  17770. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  17771. 0, 0, 0, 0),
  17772. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  17773. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  17774. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  17775. 0, 0, 0, 0),
  17776. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  17777. 0, 0, 0, 0),
  17778. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  17779. 0, 0, 0, 0),
  17780. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  17781. 0, 0, 0, 0),
  17782. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  17783. 0, 0, 0, 0),
  17784. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  17785. 0, 0, 0, 0),
  17786. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  17787. 0, 0, 0, 0),
  17788. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  17789. 0, 0, 0, 0),
  17790. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  17791. 0, 0, 0, 0),
  17792. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  17793. 0, 0, 0, 0),
  17794. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  17795. 0, 0, 0, 0),
  17796. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  17797. 0, 0, 0, 0),
  17798. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  17799. 0, 0, 0, 0),
  17800. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  17801. 0, 0, 0, 0),
  17802. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  17803. 0, 0, 0, 0),
  17804. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  17805. 0, 0, 0, 0),
  17806. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  17807. 0, 0, 0, 0),
  17808. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  17809. 0, 0, 0, 0),
  17810. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  17811. 0, 0, 0, 0),
  17812. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  17813. 0, 0, 0, 0),
  17814. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  17815. 0, 0, 0, 0),
  17816. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  17817. 0, 0, 0, 0),
  17818. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  17819. 0, 0, 0, 0),
  17820. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  17821. 0, 0, 0, 0),
  17822. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  17823. 0, 0, 0, 0),
  17824. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  17825. 0, 0, 0, 0),
  17826. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  17827. 0, 0, 0, 0),
  17828. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  17829. 0, 0, 0, 0),
  17830. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  17831. 0, 0, 0, 0),
  17832. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  17833. 0, 0, 0, 0),
  17834. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  17835. 0, 0, 0, 0),
  17836. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  17837. 0, 0, 0, 0),
  17838. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  17839. 0, 0, 0, 0),
  17840. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  17841. 0, 0, 0, 0),
  17842. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  17843. 0, 0, 0, 0),
  17844. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  17845. 0, 0, 0, 0),
  17846. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  17847. 0, 0, 0, 0),
  17848. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  17849. 0, 0, 0, 0),
  17850. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  17851. 0, 0, 0, 0),
  17852. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  17853. 0, 0, 0, 0),
  17854. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  17855. 0, 0, 0, 0),
  17856. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  17857. 0, 0, 0, 0),
  17858. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  17859. 0, 0, 0, 0),
  17860. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  17861. 0, 0, 0, 0),
  17862. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  17863. 0, 0, 0, 0),
  17864. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  17865. 0, 0, 0, 0),
  17866. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  17867. 0, 0, 0, 0),
  17868. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  17869. 0, 0, 0, 0),
  17870. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  17871. 0, 0, 0, 0),
  17872. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  17873. 0, 0, 0, 0),
  17874. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  17875. 0, 0, 0, 0),
  17876. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  17877. 0, 0, 0, 0),
  17878. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  17879. 0, 0, 0, 0),
  17880. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  17881. 0, 0, 0, 0),
  17882. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  17883. 0, 0, 0, 0),
  17884. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  17885. 0, 0, 0, 0),
  17886. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  17887. 0, 0, 0, 0),
  17888. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  17889. 0, 0, 0, 0),
  17890. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  17891. 0, 0, 0, 0),
  17892. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  17893. 0, 0, 0, 0),
  17894. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  17895. 0, 0, 0, 0),
  17896. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  17897. 0, 0, 0, 0),
  17898. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  17899. 0, 0, 0, 0),
  17900. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  17901. 0, 0, 0, 0),
  17902. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  17903. 0, 0, 0, 0),
  17904. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  17905. 0, 0, 0, 0),
  17906. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  17907. 0, 0, 0, 0),
  17908. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  17909. 0, 0, 0, 0),
  17910. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  17911. 0, 0, 0, 0),
  17912. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  17913. 0, 0, 0, 0),
  17914. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  17915. 0, 0, 0, 0),
  17916. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  17917. 0, 0, 0, 0),
  17918. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  17919. 0, 0, 0, 0),
  17920. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  17921. 0, 0, 0, 0),
  17922. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  17923. 0, 0, 0, 0),
  17924. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  17925. 0, 0, 0, 0),
  17926. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  17927. 0, 0, 0, 0),
  17928. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  17929. 0, 0, 0, 0),
  17930. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  17931. 0, 0, 0, 0),
  17932. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  17933. 0, 0, 0, 0),
  17934. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  17935. 0, 0, 0, 0),
  17936. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  17937. 0, 0, 0, 0),
  17938. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  17939. 0, 0, 0, 0),
  17940. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  17941. 0, 0, 0, 0),
  17942. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  17943. 0, 0, 0, 0),
  17944. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  17945. 0, 0, 0, 0),
  17946. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  17947. 0, 0, 0, 0),
  17948. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  17949. 0, 0, 0, 0),
  17950. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  17951. 0, 0, 0, 0),
  17952. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  17953. 0, 0, 0, 0),
  17954. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  17955. 0, 0, 0, 0),
  17956. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  17957. 0, 0, 0, 0),
  17958. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  17959. 0, 0, 0, 0),
  17960. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  17961. 0, 0, 0, 0),
  17962. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  17963. 0, 0, 0, 0),
  17964. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  17965. 0, 0, 0, 0),
  17966. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  17967. 0, 0, 0, 0),
  17968. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  17969. 0, 0, 0, 0),
  17970. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  17971. 0, 0, 0, 0),
  17972. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  17973. 0, 0, 0, 0),
  17974. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  17975. 0, 0, 0, 0),
  17976. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  17977. 0, 0, 0, 0),
  17978. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  17979. 0, 0, 0, 0),
  17980. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  17981. 0, 0, 0, 0),
  17982. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  17983. 0, 0, 0, 0),
  17984. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  17985. 0, 0, 0, 0),
  17986. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  17987. 0, 0, 0, 0),
  17988. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  17989. 0, 0, 0, 0),
  17990. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  17991. 0, 0, 0, 0),
  17992. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  17993. 0, 0, 0, 0),
  17994. /* incall */
  17995. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  17996. 0, 0, 0, 0),
  17997. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  17998. 0, 0, 0, 0),
  17999. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  18000. 0, 0, 0, 0),
  18001. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  18002. 0, 0, 0, 0),
  18003. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  18004. 0, 0, 0, 0),
  18005. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  18006. 0, 0, 0, 0),
  18007. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  18008. 0, 0, 0, 0),
  18009. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  18010. 0, 0, 0, 0),
  18011. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  18012. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  18013. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  18014. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  18015. 0, 0, 0, 0),
  18016. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  18017. 0, 0, 0, 0),
  18018. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  18019. 0, 0, 0, 0),
  18020. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  18021. 0, 0, 0, 0),
  18022. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  18023. 0, 0, 0, 0),
  18024. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  18025. 0, 0, 0, 0),
  18026. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  18027. 0, 0, 0, 0),
  18028. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  18029. 0, 0, 0, 0),
  18030. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  18031. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  18032. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  18033. 0, 0, 0, 0),
  18034. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  18035. 0, 0, 0, 0),
  18036. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  18037. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  18038. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  18039. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  18040. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  18041. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  18042. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  18043. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  18044. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  18045. /* In- call recording */
  18046. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  18047. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  18048. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  18049. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  18050. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  18051. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  18052. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  18053. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  18054. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  18055. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  18056. /* Switch Definitions */
  18057. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  18058. &slim_fm_switch_mixer_controls),
  18059. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  18060. &slim1_fm_switch_mixer_controls),
  18061. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  18062. &slim3_fm_switch_mixer_controls),
  18063. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  18064. &slim4_fm_switch_mixer_controls),
  18065. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  18066. &slim6_fm_switch_mixer_controls),
  18067. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18068. &pcm_rx_switch_mixer_controls),
  18069. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18070. &int0_mi2s_rx_switch_mixer_controls),
  18071. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18072. &int4_mi2s_rx_switch_mixer_controls),
  18073. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18074. &pri_mi2s_rx_switch_mixer_controls),
  18075. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18076. &sec_mi2s_rx_switch_mixer_controls),
  18077. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18078. &tert_mi2s_rx_switch_mixer_controls),
  18079. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18080. &quat_mi2s_rx_switch_mixer_controls),
  18081. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18082. &quin_mi2s_rx_switch_mixer_controls),
  18083. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  18084. &hfp_pri_aux_switch_mixer_controls),
  18085. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  18086. &hfp_aux_switch_mixer_controls),
  18087. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  18088. &hfp_int_switch_mixer_controls),
  18089. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  18090. &hfp_slim7_switch_mixer_controls),
  18091. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  18092. &usb_switch_mixer_controls),
  18093. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  18094. &a2dp_slim7_switch_mixer_controls),
  18095. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  18096. &cdc_dma_wsa_switch_mixer_controls),
  18097. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  18098. &cdc_dma_rx_switch_mixer_controls),
  18099. /* Mixer definitions */
  18100. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18101. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  18102. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18103. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  18104. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18105. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  18106. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18107. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  18108. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18109. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  18110. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18111. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  18112. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18113. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  18114. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  18115. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  18116. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  18117. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  18118. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  18119. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  18120. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18121. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  18122. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18123. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  18124. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18125. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  18126. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18127. quaternary_mi2s_rx_mixer_controls,
  18128. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  18129. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18130. tertiary_mi2s_rx_mixer_controls,
  18131. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  18132. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18133. secondary_mi2s_rx_mixer_controls,
  18134. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  18135. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18136. secondary_mi2s_rx2_mixer_controls,
  18137. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  18138. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18139. primary_mi2s_rx_mixer_controls,
  18140. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  18141. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18142. int0_mi2s_rx_mixer_controls,
  18143. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  18144. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18145. int4_mi2s_rx_mixer_controls,
  18146. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  18147. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18148. quinary_mi2s_rx_mixer_controls,
  18149. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  18150. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18151. pri_tdm_rx_0_mixer_controls,
  18152. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  18153. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18154. pri_tdm_rx_1_mixer_controls,
  18155. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  18156. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18157. pri_tdm_rx_2_mixer_controls,
  18158. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  18159. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18160. pri_tdm_rx_3_mixer_controls,
  18161. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  18162. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18163. pri_tdm_tx_0_mixer_controls,
  18164. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  18165. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18166. sec_tdm_rx_0_mixer_controls,
  18167. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  18168. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18169. sec_tdm_rx_1_mixer_controls,
  18170. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  18171. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18172. sec_tdm_rx_2_mixer_controls,
  18173. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  18174. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18175. sec_tdm_rx_3_mixer_controls,
  18176. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  18177. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18178. sec_tdm_tx_0_mixer_controls,
  18179. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  18180. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18181. tert_tdm_rx_0_mixer_controls,
  18182. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  18183. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18184. tert_tdm_tx_0_mixer_controls,
  18185. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  18186. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18187. tert_tdm_rx_1_mixer_controls,
  18188. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  18189. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18190. tert_tdm_rx_2_mixer_controls,
  18191. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  18192. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18193. tert_tdm_rx_3_mixer_controls,
  18194. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  18195. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18196. tert_tdm_rx_4_mixer_controls,
  18197. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  18198. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18199. quat_tdm_rx_0_mixer_controls,
  18200. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  18201. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18202. quat_tdm_tx_0_mixer_controls,
  18203. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  18204. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18205. quat_tdm_rx_1_mixer_controls,
  18206. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  18207. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18208. quat_tdm_rx_2_mixer_controls,
  18209. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  18210. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18211. quat_tdm_rx_3_mixer_controls,
  18212. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  18213. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18214. quin_tdm_rx_0_mixer_controls,
  18215. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  18216. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18217. quin_tdm_tx_0_mixer_controls,
  18218. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  18219. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18220. quin_tdm_rx_1_mixer_controls,
  18221. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  18222. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18223. quin_tdm_rx_2_mixer_controls,
  18224. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  18225. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18226. quin_tdm_rx_3_mixer_controls,
  18227. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  18228. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18229. wsa_cdc_dma_rx_0_mixer_controls,
  18230. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  18231. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18232. wsa_cdc_dma_rx_1_mixer_controls,
  18233. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  18234. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18235. rx_cdc_dma_rx_0_mixer_controls,
  18236. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  18237. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18238. rx_cdc_dma_rx_1_mixer_controls,
  18239. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  18240. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18241. rx_cdc_dma_rx_2_mixer_controls,
  18242. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  18243. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18244. rx_cdc_dma_rx_3_mixer_controls,
  18245. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  18246. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18247. rx_cdc_dma_rx_4_mixer_controls,
  18248. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  18249. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18250. rx_cdc_dma_rx_5_mixer_controls,
  18251. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  18252. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18253. rx_cdc_dma_rx_6_mixer_controls,
  18254. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  18255. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18256. rx_cdc_dma_rx_7_mixer_controls,
  18257. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  18258. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  18259. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  18260. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  18261. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  18262. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  18263. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  18264. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  18265. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  18266. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  18267. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  18268. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  18269. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  18270. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  18271. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  18272. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  18273. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  18274. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  18275. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  18276. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  18277. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  18278. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  18279. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  18280. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  18281. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  18282. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  18283. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  18284. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  18285. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  18286. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  18287. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  18288. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  18289. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  18290. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  18291. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  18292. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  18293. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  18294. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18295. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  18296. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18297. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  18298. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18299. tert_auxpcm_rx_mixer_controls,
  18300. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  18301. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18302. quat_auxpcm_rx_mixer_controls,
  18303. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  18304. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18305. quin_auxpcm_rx_mixer_controls,
  18306. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  18307. /* incall */
  18308. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  18309. incall_music_delivery_mixer_controls,
  18310. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  18311. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18312. incall_music2_delivery_mixer_controls,
  18313. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  18314. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18315. slimbus_4_rx_mixer_controls,
  18316. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  18317. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18318. slimbus_6_rx_mixer_controls,
  18319. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  18320. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18321. usb_audio_rx_mixer_controls,
  18322. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  18323. /* Voice Mixer */
  18324. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  18325. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  18326. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  18327. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  18328. SND_SOC_NOPM, 0, 0,
  18329. sec_i2s_rx_voice_mixer_controls,
  18330. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  18331. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  18332. SND_SOC_NOPM, 0, 0,
  18333. sec_mi2s_rx_voice_mixer_controls,
  18334. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  18335. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  18336. SND_SOC_NOPM, 0, 0,
  18337. slimbus_rx_voice_mixer_controls,
  18338. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  18339. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  18340. SND_SOC_NOPM, 0, 0,
  18341. bt_sco_rx_voice_mixer_controls,
  18342. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  18343. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  18344. SND_SOC_NOPM, 0, 0,
  18345. afe_pcm_rx_voice_mixer_controls,
  18346. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  18347. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  18348. SND_SOC_NOPM, 0, 0,
  18349. aux_pcm_rx_voice_mixer_controls,
  18350. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  18351. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  18352. SND_SOC_NOPM, 0, 0,
  18353. sec_aux_pcm_rx_voice_mixer_controls,
  18354. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  18355. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  18356. SND_SOC_NOPM, 0, 0,
  18357. tert_aux_pcm_rx_voice_mixer_controls,
  18358. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  18359. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  18360. SND_SOC_NOPM, 0, 0,
  18361. quat_aux_pcm_rx_voice_mixer_controls,
  18362. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  18363. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  18364. SND_SOC_NOPM, 0, 0,
  18365. quin_aux_pcm_rx_voice_mixer_controls,
  18366. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  18367. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  18368. SND_SOC_NOPM, 0, 0,
  18369. hdmi_rx_voice_mixer_controls,
  18370. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  18371. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  18372. SND_SOC_NOPM, 0, 0,
  18373. mi2s_rx_voice_mixer_controls,
  18374. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  18375. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  18376. SND_SOC_NOPM, 0, 0,
  18377. pri_mi2s_rx_voice_mixer_controls,
  18378. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  18379. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  18380. SND_SOC_NOPM, 0, 0,
  18381. int0_mi2s_rx_voice_mixer_controls,
  18382. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  18383. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  18384. SND_SOC_NOPM, 0, 0,
  18385. int4_mi2s_rx_voice_mixer_controls,
  18386. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  18387. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  18388. SND_SOC_NOPM, 0, 0,
  18389. tert_mi2s_rx_voice_mixer_controls,
  18390. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  18391. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  18392. SND_SOC_NOPM, 0, 0,
  18393. quat_mi2s_rx_voice_mixer_controls,
  18394. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  18395. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  18396. SND_SOC_NOPM, 0, 0,
  18397. quin_mi2s_rx_voice_mixer_controls,
  18398. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  18399. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  18400. SND_SOC_NOPM, 0, 0,
  18401. quat_tdm_rx_2_voice_mixer_controls,
  18402. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  18403. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  18404. SND_SOC_NOPM, 0, 0,
  18405. wsa_cdc_dma_rx_0_voice_mixer_controls,
  18406. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  18407. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  18408. SND_SOC_NOPM, 0, 0,
  18409. rx_cdc_dma_rx_0_voice_mixer_controls,
  18410. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  18411. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  18412. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  18413. ARRAY_SIZE(tx_voip_mixer_controls)),
  18414. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  18415. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  18416. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  18417. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  18418. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  18419. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  18420. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18421. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  18422. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18423. int_bt_a2dp_rx_mixer_controls,
  18424. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  18425. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18426. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  18427. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18428. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  18429. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18430. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  18431. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18432. tx_voice2_stub_mixer_controls,
  18433. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  18434. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18435. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  18436. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  18437. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  18438. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  18439. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  18440. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18441. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  18442. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  18443. SND_SOC_NOPM, 0, 0,
  18444. slimbus_6_rx_voice_mixer_controls,
  18445. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  18446. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18447. slimbus_7_rx_voice_mixer_controls,
  18448. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  18449. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18450. slimbus_8_rx_voice_mixer_controls,
  18451. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  18452. /* port mixer */
  18453. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  18454. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  18455. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  18456. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  18457. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  18458. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  18459. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  18460. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  18461. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  18462. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  18463. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  18464. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  18465. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  18466. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  18467. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  18468. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  18469. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  18470. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  18471. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18472. sbus_1_rx_port_mixer_controls,
  18473. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  18474. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18475. bt_sco_rx_port_mixer_controls,
  18476. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  18477. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  18478. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  18479. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  18480. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  18481. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  18482. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  18483. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  18484. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  18485. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  18486. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  18487. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  18488. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  18489. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  18490. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  18491. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  18492. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  18493. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  18494. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  18495. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  18496. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  18497. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  18498. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18499. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  18500. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18501. primary_mi2s_rx_port_mixer_controls,
  18502. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  18503. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18504. sec_mi2s_rx_port_mixer_controls,
  18505. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  18506. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18507. tert_mi2s_rx_port_mixer_controls,
  18508. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  18509. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18510. quat_mi2s_rx_port_mixer_controls,
  18511. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  18512. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18513. quin_mi2s_rx_port_mixer_controls,
  18514. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  18515. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18516. pri_tdm_rx_0_port_mixer_controls,
  18517. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  18518. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18519. pri_tdm_rx_1_port_mixer_controls,
  18520. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  18521. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18522. pri_tdm_rx_2_port_mixer_controls,
  18523. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  18524. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18525. pri_tdm_rx_3_port_mixer_controls,
  18526. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  18527. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18528. sec_tdm_rx_0_port_mixer_controls,
  18529. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  18530. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18531. sec_tdm_rx_1_port_mixer_controls,
  18532. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  18533. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18534. sec_tdm_rx_2_port_mixer_controls,
  18535. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  18536. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18537. sec_tdm_rx_3_port_mixer_controls,
  18538. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  18539. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  18540. sec_tdm_rx_7_port_mixer_controls,
  18541. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  18542. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18543. tert_tdm_rx_0_port_mixer_controls,
  18544. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  18545. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18546. tert_tdm_rx_1_port_mixer_controls,
  18547. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  18548. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18549. tert_tdm_rx_2_port_mixer_controls,
  18550. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  18551. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18552. tert_tdm_rx_3_port_mixer_controls,
  18553. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  18554. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18555. quat_tdm_rx_0_port_mixer_controls,
  18556. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  18557. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18558. quat_tdm_rx_1_port_mixer_controls,
  18559. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  18560. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18561. quat_tdm_rx_2_port_mixer_controls,
  18562. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  18563. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18564. quat_tdm_rx_3_port_mixer_controls,
  18565. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  18566. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18567. quin_tdm_rx_0_port_mixer_controls,
  18568. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  18569. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18570. quin_tdm_rx_1_port_mixer_controls,
  18571. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  18572. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18573. quin_tdm_rx_2_port_mixer_controls,
  18574. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  18575. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18576. quin_tdm_rx_3_port_mixer_controls,
  18577. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  18578. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18579. int0_mi2s_rx_port_mixer_controls,
  18580. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  18581. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18582. int4_mi2s_rx_port_mixer_controls,
  18583. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  18584. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18585. wsa_cdc_dma_rx_0_port_mixer_controls,
  18586. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  18587. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18588. rx_cdc_dma_rx_0_port_mixer_controls,
  18589. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  18590. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  18591. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  18592. ARRAY_SIZE(tx_qchat_mixer_controls)),
  18593. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  18594. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  18595. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  18596. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  18597. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  18598. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  18599. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  18600. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  18601. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  18602. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  18603. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  18604. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  18605. /* lsm mixer definitions */
  18606. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  18607. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  18608. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  18609. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  18610. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  18611. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  18612. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  18613. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  18614. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  18615. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  18616. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  18617. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  18618. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  18619. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  18620. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  18621. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  18622. /* Virtual Pins to force backends ON atm */
  18623. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  18624. SND_SOC_DAPM_INPUT("BE_IN"),
  18625. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  18626. &slim0_rx_vi_fb_lch_mux),
  18627. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  18628. &slim0_rx_vi_fb_rch_mux),
  18629. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  18630. &wsa_rx_0_vi_fb_lch_mux),
  18631. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  18632. &wsa_rx_0_vi_fb_rch_mux),
  18633. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  18634. &mi2s_rx_vi_fb_mux),
  18635. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  18636. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  18637. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  18638. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  18639. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  18640. &voc_ext_ec_mux),
  18641. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  18642. &ext_ec_ref_mux_ul1),
  18643. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  18644. &ext_ec_ref_mux_ul2),
  18645. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  18646. &ext_ec_ref_mux_ul3),
  18647. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  18648. &ext_ec_ref_mux_ul4),
  18649. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  18650. &ext_ec_ref_mux_ul5),
  18651. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  18652. &ext_ec_ref_mux_ul6),
  18653. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  18654. &ext_ec_ref_mux_ul8),
  18655. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  18656. &ext_ec_ref_mux_ul9),
  18657. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  18658. &ext_ec_ref_mux_ul10),
  18659. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  18660. &ext_ec_ref_mux_ul16),
  18661. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  18662. &ext_ec_ref_mux_ul17),
  18663. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  18664. &ext_ec_ref_mux_ul18),
  18665. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  18666. &ext_ec_ref_mux_ul19),
  18667. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  18668. &ext_ec_ref_mux_ul28),
  18669. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  18670. &ext_ec_ref_mux_ul29),
  18671. };
  18672. static const struct snd_soc_dapm_route intercon[] = {
  18673. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18674. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18675. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18676. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18677. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18678. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18679. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18680. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18681. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18682. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18683. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18684. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18685. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18686. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18687. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18688. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18689. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18690. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  18691. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18692. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18693. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18694. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18695. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18696. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18697. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18698. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18699. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18700. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18701. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18702. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18703. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18704. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18705. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18706. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18707. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18708. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  18709. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18710. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18711. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18712. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18713. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18714. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18715. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18716. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18717. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18718. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18719. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18720. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18721. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18722. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18723. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18724. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18725. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18726. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  18727. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18728. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18729. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18730. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18731. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18732. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18733. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18734. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18735. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18736. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18737. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18738. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18739. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18740. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18741. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18742. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18743. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18744. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  18745. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18746. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18747. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18748. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18749. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18750. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18751. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18752. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18753. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18754. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18755. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18756. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18757. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18758. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18759. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18760. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18761. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18762. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  18763. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18764. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18765. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18766. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18767. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18768. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18769. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18770. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18771. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18772. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18773. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18774. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18775. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18776. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18777. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18778. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18779. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18780. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  18781. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18782. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18783. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18784. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18785. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18786. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18787. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18788. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18789. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18790. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18791. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18792. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18793. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18794. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18795. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18796. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18797. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18798. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  18799. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18800. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18801. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18802. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18803. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18804. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18805. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18806. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18807. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18808. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18809. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18810. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18811. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18812. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18813. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18814. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18815. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18816. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  18817. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18818. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18819. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18820. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18821. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18822. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18823. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18824. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18825. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18826. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18827. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18828. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18829. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18830. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18831. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18832. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18833. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18834. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  18835. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18836. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18837. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18838. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18839. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18840. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18841. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18842. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18843. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18844. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18845. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18846. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18847. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18848. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18849. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18850. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18851. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18852. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  18853. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18854. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18855. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18856. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18857. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18858. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18859. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18860. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18861. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18862. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18863. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18864. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18865. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18866. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18867. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18868. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18869. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18870. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  18871. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18872. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18873. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18874. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18875. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18876. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18877. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18878. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18879. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18880. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18881. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18882. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18883. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18884. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18885. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18886. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18887. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18888. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  18889. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18890. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18891. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18892. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18893. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18894. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18895. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18896. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18897. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18898. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18899. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18900. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18901. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18902. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18903. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18904. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18905. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18906. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  18907. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18908. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18909. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18910. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18911. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18912. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18913. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18914. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18915. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18916. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18917. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18918. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18919. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18920. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18921. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18922. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18923. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18924. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  18925. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18926. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18927. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18928. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18929. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18930. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18931. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18932. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18933. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18934. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18935. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18936. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18937. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18938. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18939. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18940. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18941. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18942. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  18943. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  18944. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  18945. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  18946. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  18947. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  18948. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  18949. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  18950. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  18951. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  18952. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  18953. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  18954. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  18955. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  18956. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  18957. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  18958. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  18959. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  18960. {"HDMI", NULL, "HDMI Mixer"},
  18961. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  18962. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  18963. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  18964. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  18965. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  18966. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  18967. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  18968. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  18969. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  18970. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  18971. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  18972. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  18973. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  18974. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  18975. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  18976. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  18977. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  18978. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  18979. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  18980. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  18981. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  18982. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  18983. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  18984. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  18985. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  18986. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  18987. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  18988. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  18989. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  18990. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  18991. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  18992. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  18993. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  18994. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  18995. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  18996. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  18997. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18998. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18999. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19000. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19001. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19002. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19003. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19004. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19005. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19006. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19007. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19008. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19009. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19010. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19011. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19012. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19013. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19014. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  19015. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19016. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19017. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19018. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19019. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19020. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19021. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19022. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19023. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19024. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19025. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19026. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19027. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19028. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19029. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19030. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19031. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19032. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  19033. /* incall */
  19034. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  19035. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  19036. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  19037. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  19038. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  19039. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19040. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19041. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19042. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19043. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  19044. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19045. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19046. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19047. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19048. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  19049. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19050. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19051. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19052. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19053. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19054. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19055. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19056. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19057. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19058. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19059. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19060. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19061. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19062. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19063. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19064. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19065. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19066. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  19067. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19068. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19069. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19070. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19071. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19072. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19073. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19074. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19075. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19076. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19077. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19078. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19079. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19080. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19081. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19082. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19083. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19084. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  19085. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19086. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19087. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19088. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19089. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19090. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19091. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19092. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19093. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19094. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19095. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19096. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19097. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19098. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19099. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19100. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19101. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19102. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  19103. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19104. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19105. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19106. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19107. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19108. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19109. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19110. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19111. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19112. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19113. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19114. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19115. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19116. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19117. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19118. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19119. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19120. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  19121. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19122. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19123. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19124. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19125. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19126. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19127. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  19128. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19129. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19130. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19131. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19132. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19133. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19134. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19135. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19136. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19137. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19138. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19139. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19140. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19141. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19142. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19143. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19144. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19145. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19146. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19147. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19148. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19149. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19150. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19151. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19152. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19153. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19154. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19155. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19156. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19157. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19158. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19159. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19160. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19161. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19162. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19163. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19164. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19165. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19166. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19167. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19168. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19169. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19170. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19171. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19172. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19173. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19174. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19175. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19176. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19177. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19178. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19179. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19180. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19181. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19182. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19183. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19184. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19185. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19186. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19187. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19188. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19189. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19190. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  19191. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19192. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19193. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19194. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19195. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19196. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19197. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19198. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19199. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19200. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19201. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19202. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19203. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19204. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19205. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19206. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19207. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  19208. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19209. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19210. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19211. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19212. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19213. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19214. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19215. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19216. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19217. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19218. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19219. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19220. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19221. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19222. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19223. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  19224. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19225. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19226. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19227. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19228. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19229. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19230. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19231. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19232. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19233. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19234. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19235. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19236. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19237. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19238. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19239. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  19240. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19241. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  19242. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19243. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19244. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19245. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19246. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19247. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19248. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19249. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19250. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19251. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19252. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19253. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19254. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19255. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19256. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19257. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19258. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19259. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19260. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  19261. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19262. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19263. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19264. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19265. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19266. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19267. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19268. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19269. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19270. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19271. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19272. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19273. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19274. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19275. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19276. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  19277. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19278. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19279. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19280. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19281. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19282. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19283. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19284. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19285. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19286. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19287. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19288. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19289. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19290. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19291. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19292. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  19293. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19294. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19295. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19296. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19297. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19298. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19299. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19300. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19301. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19302. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19303. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19304. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19305. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19306. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19307. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19308. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19309. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19310. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  19311. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19312. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19313. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19314. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19315. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19316. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19317. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19318. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19319. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19320. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19321. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19322. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19323. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19324. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19325. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19326. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19327. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19328. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  19329. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19330. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19331. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19332. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19333. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19334. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19335. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19336. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19337. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19338. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19339. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19340. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19341. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19342. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19343. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19344. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19345. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19346. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  19347. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19348. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19349. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19350. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19351. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19352. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19353. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19354. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19355. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19356. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19357. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19358. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19359. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19360. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19361. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19362. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19363. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19364. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  19365. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19366. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19367. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19368. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19369. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19370. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19371. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19372. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19373. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19374. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19375. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19376. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19377. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19378. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19379. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19380. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19381. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19382. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  19383. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19384. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19385. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19386. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19387. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19388. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19389. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19390. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19391. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19392. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19393. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19394. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19395. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19396. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19397. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19398. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19399. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  19400. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19401. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19402. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19403. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19404. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19405. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19406. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19407. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19408. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19409. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19410. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19411. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19412. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19413. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19414. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19415. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19416. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19417. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  19418. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19419. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19420. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19421. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19422. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19423. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19424. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19425. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19426. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19427. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19428. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19429. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19430. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19431. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19432. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19433. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19434. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19435. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  19436. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19437. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19438. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19439. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19440. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19441. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19442. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19443. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19444. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19445. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19446. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19447. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19448. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19449. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19450. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19451. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19452. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19453. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  19454. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19455. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19456. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19457. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19458. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19459. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19460. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19461. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19462. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19463. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19464. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19465. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19466. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19467. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19468. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19469. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19470. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19471. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  19472. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19473. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19474. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19475. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19476. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19477. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19478. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19479. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19480. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19481. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19482. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19483. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19484. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19485. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19486. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19487. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19488. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  19489. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19490. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19491. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19492. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19493. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19494. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19495. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19496. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19497. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19498. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19499. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19500. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19501. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19502. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19503. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19504. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19505. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19506. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  19507. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19508. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19509. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19510. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19511. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19512. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19513. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19514. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19515. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19516. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19517. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19518. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19519. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19520. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19521. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19522. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19523. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  19524. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19525. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19526. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19527. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19528. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19529. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19530. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19531. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19532. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19533. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19534. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19535. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19536. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19537. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19538. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19539. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19540. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19541. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  19542. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19543. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19544. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19545. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19546. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19547. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19548. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19549. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19550. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19551. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19552. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19553. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19554. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19555. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19556. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19557. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19558. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19559. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  19560. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19561. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19562. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19563. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19564. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19565. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19566. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19567. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19568. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19569. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19570. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19571. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19572. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19573. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19574. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19575. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19576. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19577. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  19578. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19579. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19580. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19581. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19582. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19583. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19584. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19585. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19586. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19587. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19588. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19589. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19590. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19591. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19592. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19593. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19594. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19595. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  19596. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19597. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19598. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19599. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19600. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19601. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19602. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19603. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19604. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19605. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19606. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19607. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19608. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19609. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19610. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19611. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19612. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19613. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19614. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  19615. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19616. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19617. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19618. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19619. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19620. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19621. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19622. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19623. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19624. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19625. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19626. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19627. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19628. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19629. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19630. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19631. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  19632. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19633. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19634. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19635. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19636. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19637. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19638. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19639. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19640. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19641. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19642. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19643. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19644. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19645. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19646. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19647. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19648. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19649. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19650. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  19651. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19652. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19653. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19654. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19655. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19656. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19657. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19658. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19659. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19660. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19661. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19662. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19663. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19664. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19665. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19666. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19667. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19668. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19669. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  19670. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19671. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19672. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19673. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19674. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19675. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19676. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19677. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19678. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19679. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19680. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19681. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19682. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19683. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19684. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19685. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19686. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19687. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19688. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  19689. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19690. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19691. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19692. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19693. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19694. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19695. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19696. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19697. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19698. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19699. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19700. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19701. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19702. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19703. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19704. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19705. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19706. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19707. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  19708. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19709. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19710. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19711. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19712. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19713. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19714. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19715. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19716. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19717. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19718. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19719. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19720. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19721. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19722. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19723. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19724. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  19725. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19726. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19727. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19728. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19729. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19730. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19731. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19732. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19733. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19734. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19735. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19736. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19737. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19738. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19739. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19740. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19741. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19742. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19743. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  19744. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19745. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19746. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19747. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19748. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19749. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19750. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19751. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19752. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19753. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19754. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19755. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19756. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19757. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19758. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19759. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19760. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19761. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19762. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  19763. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19764. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19765. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19766. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19767. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19768. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19769. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19770. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19771. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19772. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19773. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19774. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19775. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19776. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19777. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19778. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19779. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19780. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19781. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  19782. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  19783. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  19784. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  19785. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  19786. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  19787. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  19788. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  19789. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19790. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19791. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19792. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19793. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19794. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19795. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19796. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19797. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19798. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19799. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19800. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19801. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19802. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19803. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19804. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19805. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19806. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19807. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19808. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19809. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19810. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19811. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  19812. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19813. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19814. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19815. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  19816. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19817. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19818. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19819. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19820. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  19821. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  19822. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  19823. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19824. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19825. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19826. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19827. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19828. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19829. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19830. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19831. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19832. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19833. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19834. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19835. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19836. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19837. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19838. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19839. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19840. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19841. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19842. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19843. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19844. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19845. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19846. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19847. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19848. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19849. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19850. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19851. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19852. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19853. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19854. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19855. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19856. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19857. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19858. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19859. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19860. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19861. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19862. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19863. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19864. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19865. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19866. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19867. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19868. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19869. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19870. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19871. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19872. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19873. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19874. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19875. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19876. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19877. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19878. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19879. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19880. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19881. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19882. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19883. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19884. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19885. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19886. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19887. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19888. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19889. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19890. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19891. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19892. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19893. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19894. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19895. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19896. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19897. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19898. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19899. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19900. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19901. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19902. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19903. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19904. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19905. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19906. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19907. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19908. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19909. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19910. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19911. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19912. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19913. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19914. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19915. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19916. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19917. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19918. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19919. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19920. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19921. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19922. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19923. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19924. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19925. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19926. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19927. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19928. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19929. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19930. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19931. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19932. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19933. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19934. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19935. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19936. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19937. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19938. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19939. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19940. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19941. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19942. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19943. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19944. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19945. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19946. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19947. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19948. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19949. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19950. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19951. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19952. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19953. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19954. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19955. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19956. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19957. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19958. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19959. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19960. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19961. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19962. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19963. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19964. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19965. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19966. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19967. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19968. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19969. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19970. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19971. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19972. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19973. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19974. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19975. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19976. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19977. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19978. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19979. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19980. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19981. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19982. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19983. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19984. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19985. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19986. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19987. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19988. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19989. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19990. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19991. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19992. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19993. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19994. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19995. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19996. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19997. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19998. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19999. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20000. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20001. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20002. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20003. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20004. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20005. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20006. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20007. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20008. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20009. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20010. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20011. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20012. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20013. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20014. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20015. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20016. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20017. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20018. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20019. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20020. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20021. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20022. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20023. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20024. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20025. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20026. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20027. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20028. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20029. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20030. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20031. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20032. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20033. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20034. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20035. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20036. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20037. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20038. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20039. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20040. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20041. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20042. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20043. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20044. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20045. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20046. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20047. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20048. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20049. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20050. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20051. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20052. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20053. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20054. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20055. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20056. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20057. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20058. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20059. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20060. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20061. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20062. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20063. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20064. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20065. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20066. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20067. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20068. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20069. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20070. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20071. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20072. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20073. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20074. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20075. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20076. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20077. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20078. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20079. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20080. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20081. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20082. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20083. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20084. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20085. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20086. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20087. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20088. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20089. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20090. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20091. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20092. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20093. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20094. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20095. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20096. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20097. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20098. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20099. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20100. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20101. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20102. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20103. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20104. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20105. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20106. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20107. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20108. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20109. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20110. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20111. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20112. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20113. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20114. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20115. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20116. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20117. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20118. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20119. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20120. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20121. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20122. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20123. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20124. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20125. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20126. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20127. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20128. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20129. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20130. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20131. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20132. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20133. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20134. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20135. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20136. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20137. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20138. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20139. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20140. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20141. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20142. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20143. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20144. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20145. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20146. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20147. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20148. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20149. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20150. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20151. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20152. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20153. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20154. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20155. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20156. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20157. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20158. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20159. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20160. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20161. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20162. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20163. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20164. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20165. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20166. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20167. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20168. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20169. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20170. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20171. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20172. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20173. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20174. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20175. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20176. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20177. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20178. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20179. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20180. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20181. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20182. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20183. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20184. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20185. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20186. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20187. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20188. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20189. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20190. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20191. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20192. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20193. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20194. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20195. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20196. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20197. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20198. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20199. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  20200. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20201. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  20202. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20203. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20204. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20205. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20206. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20207. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20208. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20209. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20210. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20211. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20212. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20213. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20214. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20215. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20216. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20217. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20218. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20219. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20220. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20221. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20222. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20223. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20224. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20225. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20226. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20227. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20228. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20229. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20230. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20231. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20232. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20233. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20234. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20235. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20236. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20237. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20238. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20239. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20240. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20241. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20242. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20243. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20244. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20245. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20246. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20247. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20248. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20249. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20250. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20251. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20252. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20253. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20254. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20255. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20256. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20257. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20258. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20259. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20260. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20261. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20262. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20263. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20264. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20265. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20266. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20267. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20268. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20269. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20270. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20271. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20272. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20273. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20274. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20275. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20276. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20277. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20278. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20279. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20280. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20281. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20282. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20283. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20284. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20285. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20286. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20287. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20288. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20289. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20290. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20291. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20292. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  20293. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  20294. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20295. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20296. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20297. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20298. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20299. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20300. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20301. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20302. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20303. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20304. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20305. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20306. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20307. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20308. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20309. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20310. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  20311. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  20312. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20313. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20314. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20315. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20316. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20317. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20318. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20319. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20320. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20321. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20322. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20323. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20324. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20325. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20326. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20327. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20328. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  20329. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20330. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20331. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20332. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20333. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20334. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20335. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20336. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20337. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20338. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20339. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20340. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20341. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20342. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20343. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20344. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20345. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  20346. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20347. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20348. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20349. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20350. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20351. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20352. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20353. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20354. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20355. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20356. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20357. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20358. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20359. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20360. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20361. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20362. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20363. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20364. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20365. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20366. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20367. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20368. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20369. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20370. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20371. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20372. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20373. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20374. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20375. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20376. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20377. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20378. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20379. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20380. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20381. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  20382. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20383. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  20384. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  20385. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  20386. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  20387. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  20388. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  20389. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  20390. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  20391. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  20392. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  20393. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  20394. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  20395. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  20396. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  20397. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  20398. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  20399. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  20400. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20401. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20402. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20403. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20404. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20405. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20406. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20407. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20408. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20409. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20410. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20411. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20412. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20413. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20414. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20415. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20416. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  20417. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  20418. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20419. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20420. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20421. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20422. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20423. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20424. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20425. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20426. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20427. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20428. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20429. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20430. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20431. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20432. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20433. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20434. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  20435. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  20436. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20437. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20438. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20439. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20440. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20441. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20442. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20443. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20444. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20445. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20446. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20447. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20448. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20449. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20450. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20451. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20452. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  20453. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20454. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20455. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20456. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20457. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20458. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20459. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20460. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20461. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20462. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20463. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20464. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20465. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20466. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20467. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20468. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20469. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  20470. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20471. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20472. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20473. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20474. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20475. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20476. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20477. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20478. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20479. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20480. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20481. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20482. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20483. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20484. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20485. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20486. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  20487. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20488. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20489. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20490. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20491. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20492. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  20493. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20494. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20495. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20496. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  20497. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20498. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20499. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20500. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20501. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20502. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  20503. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20504. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20505. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20506. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20507. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20508. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  20509. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20510. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20511. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20512. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20513. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20514. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  20515. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20516. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20517. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20518. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20519. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20520. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  20521. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20522. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20523. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20524. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20525. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20526. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  20527. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  20528. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20529. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20530. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20531. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20532. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  20533. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20534. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20535. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20536. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20537. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20538. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  20539. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20540. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20541. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20542. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20543. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20544. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  20545. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20546. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20547. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20548. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20549. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20550. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  20551. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20552. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20553. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20554. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20555. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20556. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  20557. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20558. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20559. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20560. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20561. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20562. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  20563. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20564. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20565. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20566. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20567. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20568. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  20569. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20570. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20571. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20572. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20573. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20574. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  20575. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20576. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20577. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20578. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20579. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20580. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  20581. {"HDMI", NULL, "HDMI_DL_HL"},
  20582. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20583. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20584. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20585. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20586. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20587. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  20588. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20589. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20590. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20591. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20592. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20593. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  20594. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20595. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20596. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20597. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20598. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20599. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  20600. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20601. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20602. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20603. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20604. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20605. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  20606. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20607. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20608. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20609. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20610. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20611. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  20612. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20613. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20614. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20615. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20616. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  20617. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20618. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20619. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20620. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20621. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  20622. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20623. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  20624. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20625. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20626. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  20627. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20628. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20629. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  20630. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20631. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20632. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20633. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20634. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20635. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20636. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  20637. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  20638. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  20639. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  20640. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20641. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20642. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20643. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20644. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20645. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20646. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  20647. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  20648. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  20649. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20650. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  20651. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20652. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20653. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20654. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20655. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20656. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20657. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20658. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20659. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20660. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20661. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20662. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20663. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20664. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20665. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20666. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20667. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20668. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20669. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20670. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20671. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20672. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20673. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20674. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20675. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20676. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20677. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20678. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20679. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20680. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20681. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20682. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20683. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20684. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20685. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20686. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  20687. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  20688. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  20689. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20690. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  20691. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20692. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20693. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20694. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20695. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20696. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20697. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20698. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20699. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20700. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20701. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20702. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20703. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20704. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20705. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20706. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20707. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20708. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20709. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20710. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20711. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20712. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20713. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20714. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20715. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20716. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20717. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20718. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20719. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20720. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20721. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20722. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20723. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20724. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20725. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  20726. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  20727. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  20728. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  20729. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  20730. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  20731. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  20732. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  20733. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  20734. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  20735. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  20736. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  20737. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  20738. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  20739. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  20740. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  20741. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  20742. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  20743. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  20744. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  20745. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  20746. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  20747. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  20748. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  20749. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  20750. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  20751. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  20752. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  20753. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  20754. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  20755. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  20756. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  20757. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  20758. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  20759. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  20760. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  20761. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  20762. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  20763. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  20764. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  20765. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  20766. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  20767. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  20768. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  20769. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  20770. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  20771. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  20772. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  20773. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  20774. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  20775. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  20776. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  20777. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  20778. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  20779. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  20780. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  20781. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  20782. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  20783. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  20784. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  20785. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  20786. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  20787. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  20788. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  20789. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  20790. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  20791. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  20792. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  20793. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  20794. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  20795. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  20796. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  20797. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  20798. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  20799. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  20800. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  20801. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  20802. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  20803. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  20804. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  20805. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  20806. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  20807. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  20808. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  20809. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  20810. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  20811. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  20812. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  20813. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  20814. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  20815. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  20816. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  20817. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  20818. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  20819. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  20820. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  20821. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  20822. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  20823. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  20824. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20825. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20826. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20827. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20828. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20829. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20830. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20831. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20832. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20833. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20834. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20835. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20836. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  20837. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20838. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20839. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20840. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20841. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20842. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20843. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20844. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20845. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20846. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20847. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20848. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20849. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  20850. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20851. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20852. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20853. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20854. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20855. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20856. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20857. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20858. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20859. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20860. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20861. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20862. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  20863. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20864. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20865. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20866. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20867. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20868. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20869. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20870. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20871. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20872. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20873. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20874. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20875. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  20876. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20877. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20878. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20879. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20880. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20881. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20882. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20883. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20884. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20885. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20886. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20887. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20888. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  20889. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20890. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20891. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20892. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20893. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20894. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20895. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20896. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20897. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20898. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20899. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  20900. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20901. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20902. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20903. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20904. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20905. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20906. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20907. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20908. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20909. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20910. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  20911. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20912. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20913. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20914. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20915. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20916. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20917. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20918. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20919. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20920. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20921. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  20922. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  20923. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  20924. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  20925. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  20926. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  20927. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  20928. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  20929. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  20930. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  20931. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  20932. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  20933. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  20934. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  20935. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  20936. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  20937. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  20938. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  20939. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  20940. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  20941. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  20942. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  20943. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  20944. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  20945. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  20946. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  20947. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  20948. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  20949. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  20950. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  20951. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  20952. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  20953. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  20954. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  20955. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  20956. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  20957. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  20958. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  20959. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  20960. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  20961. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  20962. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  20963. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  20964. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  20965. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  20966. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  20967. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  20968. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  20969. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  20970. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  20971. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  20972. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  20973. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  20974. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  20975. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  20976. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  20977. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  20978. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  20979. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  20980. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  20981. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  20982. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  20983. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  20984. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  20985. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  20986. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  20987. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  20988. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  20989. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  20990. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  20991. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  20992. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  20993. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  20994. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  20995. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  20996. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  20997. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  20998. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  20999. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  21000. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  21001. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  21002. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  21003. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  21004. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  21005. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  21006. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  21007. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  21008. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  21009. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  21010. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  21011. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  21012. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  21013. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  21014. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  21015. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  21016. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  21017. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  21018. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  21019. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  21020. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  21021. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  21022. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  21023. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  21024. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  21025. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  21026. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  21027. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  21028. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21029. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21030. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21031. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21032. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21033. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21034. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21035. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21036. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21037. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21038. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21039. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21040. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21041. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21042. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21043. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21044. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21045. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21046. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21047. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21048. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  21049. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21050. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21051. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21052. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21053. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21054. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21055. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21056. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21057. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21058. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21059. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21060. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21061. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21062. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21063. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21064. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21065. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21066. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21067. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21068. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21069. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  21070. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21071. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21072. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21073. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21074. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21075. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21076. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21077. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21078. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21079. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21080. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21081. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21082. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21083. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21084. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21085. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21086. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21087. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21088. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21089. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21090. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  21091. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21092. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21093. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21094. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21095. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21096. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21097. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21098. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21099. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21100. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21101. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21102. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21103. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21104. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21105. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21106. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21107. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21108. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21109. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21110. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21111. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  21112. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21113. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21114. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21115. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21116. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21117. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21118. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21119. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21120. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21121. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21122. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21123. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21124. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21125. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21126. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21127. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21128. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21129. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21130. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21131. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21132. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  21133. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21134. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21135. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21136. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21137. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21138. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21139. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21140. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21141. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21142. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21143. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21144. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21145. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21146. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21147. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21148. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21149. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21150. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21151. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21152. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21153. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  21154. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21155. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21156. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21157. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21158. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21159. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21160. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21161. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21162. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21163. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21164. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21165. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21166. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21167. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21168. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21169. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21170. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21171. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21172. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21173. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21174. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  21175. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21176. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21177. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21178. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21179. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21180. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21181. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21182. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21183. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21184. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21185. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21186. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21187. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21188. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21189. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21190. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21191. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21192. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21193. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21194. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21195. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  21196. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  21197. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  21198. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21199. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21200. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21201. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21202. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21203. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21204. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21205. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21206. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21207. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21208. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21209. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21210. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21211. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21212. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21213. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21214. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21215. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21216. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21217. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21218. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  21219. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21220. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21221. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21222. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21223. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21224. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21225. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21226. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21227. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21228. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21229. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21230. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21231. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21232. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21233. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21234. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21235. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21236. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21237. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21238. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21239. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  21240. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21241. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21242. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21243. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21244. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21245. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21246. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21247. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21248. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21249. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21250. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21251. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21252. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21253. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21254. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21255. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21256. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21257. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21258. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21259. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21260. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  21261. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21262. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21263. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21264. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21265. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21266. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21267. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21268. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21269. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21270. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21271. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21272. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21273. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21274. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21275. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21276. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21277. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21278. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21279. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21280. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21281. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  21282. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21283. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21284. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21285. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21286. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21287. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21288. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21289. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21290. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21291. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21292. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21293. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21294. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21295. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21296. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21297. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21298. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21299. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21300. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21301. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21302. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  21303. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21304. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21305. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21306. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21307. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21308. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21309. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21310. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21311. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21312. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21313. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21314. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21315. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21316. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21317. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21318. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21319. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21320. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21321. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21322. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21323. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  21324. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21325. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21326. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21327. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21328. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21329. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21330. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21331. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21332. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21333. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21334. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21335. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21336. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21337. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21338. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21339. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21340. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21341. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21342. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21343. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21344. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  21345. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21346. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21347. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21348. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21349. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21350. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21351. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21352. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21353. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21354. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21355. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21356. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21357. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21358. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21359. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21360. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21361. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21362. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21363. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21364. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21365. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  21366. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21367. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21368. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21369. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21370. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21371. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21372. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21373. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21374. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21375. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21376. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21377. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21378. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21379. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21380. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21381. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21382. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21383. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21384. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21385. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21386. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  21387. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21388. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21389. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21390. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21391. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21392. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21393. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21394. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21395. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21396. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21397. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21398. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21399. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21400. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21401. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21402. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21403. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21404. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21405. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21406. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21407. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  21408. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21409. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21410. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21411. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21412. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21413. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21414. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21415. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21416. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21417. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21418. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21419. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21420. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21421. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21422. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21423. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21424. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21425. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21426. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21427. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21428. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  21429. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21430. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21431. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21432. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21433. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21434. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21435. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21436. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21437. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21438. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21439. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21440. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21441. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21442. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21443. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21444. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21445. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21446. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21447. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21448. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21449. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  21450. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21451. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21452. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21453. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21454. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21455. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21456. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21457. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21458. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21459. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21460. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21461. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  21462. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21463. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21464. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21465. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21466. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21467. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21468. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21469. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21470. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21471. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21472. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21473. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  21474. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21475. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21476. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21477. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21478. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21479. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21480. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21481. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21482. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21483. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21484. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21485. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21486. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21487. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21488. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21489. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21490. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21491. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21492. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21493. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21494. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21495. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21496. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21497. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  21498. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21499. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21500. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  21501. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  21502. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  21503. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  21504. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  21505. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  21506. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21507. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21508. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21509. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21510. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21511. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21512. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  21513. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21514. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21515. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21516. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21517. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  21518. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21519. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21520. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21521. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  21522. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21523. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21524. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21525. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  21526. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21527. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21528. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21529. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  21530. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21531. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21532. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21533. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21534. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21535. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21536. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21537. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21538. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21539. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  21540. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21541. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21542. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21543. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21544. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21545. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21546. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21547. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21548. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21549. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  21550. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21551. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21552. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21553. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21554. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21555. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21556. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21557. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21558. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21559. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21560. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21561. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  21562. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21563. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21564. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21565. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21566. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21567. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21568. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21569. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21570. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21571. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21572. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21573. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  21574. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21575. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21576. {"STUB_RX", NULL, "STUB_RX Mixer"},
  21577. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21578. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21579. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  21580. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21581. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21582. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  21583. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21584. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21585. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21586. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21587. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21588. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  21589. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21590. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21591. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21592. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21593. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21594. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  21595. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21596. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21597. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21598. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  21599. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21600. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21601. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  21602. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  21603. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21604. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  21605. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  21606. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  21607. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  21608. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21609. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21610. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21611. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21612. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21613. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21614. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21615. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21616. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21617. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21618. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21619. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21620. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21621. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  21622. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21623. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  21624. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21625. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  21626. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  21627. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  21628. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21629. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  21630. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21631. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21632. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  21633. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21634. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21635. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21636. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21637. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21638. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21639. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21640. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21641. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21642. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21643. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  21644. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21645. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21646. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21647. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21648. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21649. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21650. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21651. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21652. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21653. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  21654. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21655. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21656. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21657. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21658. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21659. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21660. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21661. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  21662. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21663. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21664. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21665. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21666. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21667. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21668. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21669. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21670. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21671. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  21672. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21673. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21674. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21675. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21676. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21677. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21678. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21679. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  21680. /* Backend Enablement */
  21681. {"BE_OUT", NULL, "PRI_I2S_RX"},
  21682. {"BE_OUT", NULL, "SEC_I2S_RX"},
  21683. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  21684. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  21685. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  21686. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21687. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  21688. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  21689. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  21690. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  21691. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  21692. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  21693. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  21694. {"BE_OUT", NULL, "HDMI"},
  21695. {"BE_OUT", NULL, "DISPLAY_PORT"},
  21696. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  21697. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  21698. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  21699. {"BE_OUT", NULL, "MI2S_RX"},
  21700. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  21701. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  21702. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  21703. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  21704. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  21705. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  21706. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  21707. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  21708. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  21709. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  21710. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  21711. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  21712. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  21713. {"BE_OUT", NULL, "INT_FM_RX"},
  21714. {"BE_OUT", NULL, "PCM_RX"},
  21715. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21716. {"BE_OUT", NULL, "AUX_PCM_RX"},
  21717. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  21718. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  21719. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  21720. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  21721. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  21722. {"BE_OUT", NULL, "INT_FM_RX"},
  21723. {"BE_OUT", NULL, "PCM_RX"},
  21724. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21725. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  21726. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  21727. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  21728. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  21729. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  21730. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  21731. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  21732. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  21733. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  21734. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  21735. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  21736. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  21737. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  21738. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  21739. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  21740. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  21741. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  21742. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  21743. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  21744. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  21745. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  21746. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  21747. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  21748. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  21749. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  21750. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  21751. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  21752. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  21753. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  21754. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  21755. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  21756. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  21757. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  21758. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  21759. {"PRI_I2S_TX", NULL, "BE_IN"},
  21760. {"MI2S_TX", NULL, "BE_IN"},
  21761. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  21762. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  21763. {"PRI_MI2S_TX", NULL, "BE_IN"},
  21764. {"TERT_MI2S_TX", NULL, "BE_IN"},
  21765. {"INT0_MI2S_TX", NULL, "BE_IN"},
  21766. {"INT2_MI2S_TX", NULL, "BE_IN"},
  21767. {"INT3_MI2S_TX", NULL, "BE_IN"},
  21768. {"INT4_MI2S_TX", NULL, "BE_IN"},
  21769. {"INT5_MI2S_TX", NULL, "BE_IN"},
  21770. {"SEC_MI2S_TX", NULL, "BE_IN"},
  21771. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  21772. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  21773. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  21774. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  21775. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  21776. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  21777. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  21778. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  21779. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  21780. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  21781. {"USB_AUDIO_TX", NULL, "BE_IN" },
  21782. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  21783. {"INT_FM_TX", NULL, "BE_IN"},
  21784. {"PCM_TX", NULL, "BE_IN"},
  21785. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21786. {"BE_OUT", NULL, "STUB_RX"},
  21787. {"STUB_TX", NULL, "BE_IN"},
  21788. {"STUB_1_TX", NULL, "BE_IN"},
  21789. {"BE_OUT", NULL, "AUX_PCM_RX"},
  21790. {"AUX_PCM_TX", NULL, "BE_IN"},
  21791. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  21792. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  21793. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  21794. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  21795. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  21796. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  21797. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  21798. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  21799. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21800. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21801. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  21802. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  21803. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  21804. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  21805. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  21806. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  21807. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  21808. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  21809. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  21810. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  21811. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  21812. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  21813. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  21814. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  21815. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  21816. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  21817. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  21818. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  21819. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  21820. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  21821. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  21822. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  21823. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  21824. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  21825. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  21826. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  21827. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  21828. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  21829. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  21830. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  21831. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  21832. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  21833. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  21834. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  21835. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  21836. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  21837. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  21838. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  21839. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  21840. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  21841. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  21842. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  21843. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  21844. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  21845. };
  21846. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  21847. struct snd_pcm_hw_params *params)
  21848. {
  21849. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21850. unsigned int be_id = rtd->dai_link->id;
  21851. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21852. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21853. return -EINVAL;
  21854. }
  21855. mutex_lock(&routing_lock);
  21856. msm_bedais[be_id].sample_rate = params_rate(params);
  21857. msm_bedais[be_id].channel = params_channels(params);
  21858. msm_bedais[be_id].format = params_format(params);
  21859. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  21860. __func__, msm_bedais[be_id].sample_rate,
  21861. msm_bedais[be_id].format, be_id);
  21862. mutex_unlock(&routing_lock);
  21863. return 0;
  21864. }
  21865. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  21866. {
  21867. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21868. unsigned int be_id = rtd->dai_link->id;
  21869. int i, session_type, path_type, topology;
  21870. struct msm_pcm_routing_bdai_data *bedai;
  21871. struct msm_pcm_routing_fdai_data *fdai;
  21872. pr_debug("%s: substream->pcm->id:%s\n",
  21873. __func__, substream->pcm->id);
  21874. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21875. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21876. return -EINVAL;
  21877. }
  21878. bedai = &msm_bedais[be_id];
  21879. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  21880. 0 : 1);
  21881. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  21882. path_type = ADM_PATH_PLAYBACK;
  21883. else
  21884. path_type = ADM_PATH_LIVE_REC;
  21885. mutex_lock(&routing_lock);
  21886. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  21887. if (!is_mm_lsm_fe_id(i))
  21888. continue;
  21889. fdai = &fe_dai_map[i][session_type];
  21890. if (fdai->strm_id != INVALID_SESSION) {
  21891. int idx;
  21892. int port_id;
  21893. unsigned long copp =
  21894. session_copp_map[i][session_type][be_id];
  21895. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  21896. if (test_bit(idx, &copp))
  21897. break;
  21898. if (idx >= MAX_COPPS_PER_PORT) {
  21899. pr_debug("%s: copp idx is invalid, exiting\n",
  21900. __func__);
  21901. continue;
  21902. }
  21903. fdai->be_srate = bedai->sample_rate;
  21904. port_id = bedai->port_id;
  21905. topology = adm_get_topology_for_port_copp_idx(port_id,
  21906. idx);
  21907. msm_routing_unload_topology(topology);
  21908. adm_close(bedai->port_id, fdai->perf_mode, idx);
  21909. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  21910. __func__, copp, i, session_type, be_id,
  21911. topology);
  21912. clear_bit(idx,
  21913. &session_copp_map[i][session_type][be_id]);
  21914. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  21915. (fdai->passthr_mode == LEGACY_PCM))
  21916. msm_pcm_routing_deinit_pp(bedai->port_id,
  21917. topology);
  21918. }
  21919. }
  21920. bedai->active = 0;
  21921. bedai->sample_rate = 0;
  21922. bedai->channel = 0;
  21923. mutex_unlock(&routing_lock);
  21924. return 0;
  21925. }
  21926. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  21927. {
  21928. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21929. unsigned int be_id = rtd->dai_link->id;
  21930. int i, path_type, topology;
  21931. int session_type = INVALID_SESSION;
  21932. struct msm_pcm_routing_bdai_data *bedai;
  21933. u32 channels, sample_rate;
  21934. uint16_t bits_per_sample = 16, voc_path_type;
  21935. struct msm_pcm_routing_fdai_data *fdai;
  21936. u32 session_id;
  21937. struct media_format_info voc_be_media_format;
  21938. bool is_lsm;
  21939. pr_debug("%s: substream->pcm->id:%s\n",
  21940. __func__, substream->pcm->id);
  21941. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21942. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21943. return -EINVAL;
  21944. }
  21945. bedai = &msm_bedais[be_id];
  21946. mutex_lock(&routing_lock);
  21947. if (bedai->active == 1)
  21948. goto done; /* Ignore prepare if back-end already active */
  21949. /* AFE port is not active at this point. However, still
  21950. * go ahead setting active flag under the notion that
  21951. * QDSP6 is able to handle ADM starting before AFE port
  21952. * is started.
  21953. */
  21954. bedai->active = 1;
  21955. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  21956. if (!(is_mm_lsm_fe_id(i) &&
  21957. route_check_fe_id_adm_support(i)))
  21958. continue;
  21959. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  21960. SESSION_TYPE_RX : SESSION_TYPE_TX;
  21961. fdai = &fe_dai_map[i][session_type];
  21962. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  21963. if (fdai->passthr_mode != LEGACY_PCM)
  21964. path_type = ADM_PATH_COMPRESSED_RX;
  21965. else
  21966. path_type = ADM_PATH_PLAYBACK;
  21967. } else {
  21968. if ((fdai->passthr_mode != LEGACY_PCM) &&
  21969. (fdai->passthr_mode != LISTEN))
  21970. path_type = ADM_PATH_COMPRESSED_TX;
  21971. else
  21972. path_type = ADM_PATH_LIVE_REC;
  21973. }
  21974. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  21975. (i <= MSM_FRONTEND_DAI_LSM8);
  21976. if (fdai->strm_id != INVALID_SESSION) {
  21977. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  21978. if (session_type == SESSION_TYPE_TX &&
  21979. fdai->be_srate &&
  21980. (fdai->be_srate != bedai->sample_rate)) {
  21981. pr_debug("%s: flush strm %d diff BE rates\n",
  21982. __func__,
  21983. fdai->strm_id);
  21984. if (fdai->event_info.event_func)
  21985. fdai->event_info.event_func(
  21986. MSM_PCM_RT_EVT_BUF_RECFG,
  21987. fdai->event_info.priv_data);
  21988. fdai->be_srate = 0; /* might not need it */
  21989. }
  21990. bits_per_sample = msm_routing_get_bit_width(
  21991. bedai->format);
  21992. app_type =
  21993. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  21994. if (app_type && is_lsm) {
  21995. app_type_idx =
  21996. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  21997. sample_rate =
  21998. fe_dai_app_type_cfg[i][session_type][be_id]
  21999. .sample_rate;
  22000. bits_per_sample =
  22001. lsm_app_type_cfg[app_type_idx].bit_width;
  22002. } else if (app_type) {
  22003. app_type_idx =
  22004. msm_pcm_routing_get_app_type_idx(app_type);
  22005. sample_rate =
  22006. fe_dai_app_type_cfg[i][session_type]
  22007. [be_id].sample_rate;
  22008. bits_per_sample =
  22009. app_type_cfg[app_type_idx].bit_width;
  22010. } else
  22011. sample_rate = bedai->sample_rate;
  22012. /*
  22013. * check if ADM needs to be configured with different
  22014. * channel mapping than backend
  22015. */
  22016. if (!bedai->adm_override_ch)
  22017. channels = bedai->channel;
  22018. else
  22019. channels = bedai->adm_override_ch;
  22020. acdb_dev_id =
  22021. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  22022. topology = msm_routing_get_adm_topology(i, session_type,
  22023. be_id);
  22024. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  22025. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  22026. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  22027. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  22028. copp_idx = adm_open(bedai->port_id, path_type,
  22029. sample_rate, channels, topology,
  22030. fdai->perf_mode, bits_per_sample,
  22031. app_type, acdb_dev_id);
  22032. if ((copp_idx < 0) ||
  22033. (copp_idx >= MAX_COPPS_PER_PORT)) {
  22034. pr_err("%s: adm open failed\n", __func__);
  22035. mutex_unlock(&routing_lock);
  22036. return -EINVAL;
  22037. }
  22038. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  22039. __func__, i, session_type, be_id);
  22040. set_bit(copp_idx,
  22041. &session_copp_map[i][session_type][be_id]);
  22042. if (msm_is_resample_needed(
  22043. sample_rate,
  22044. bedai->sample_rate))
  22045. adm_copp_mfc_cfg(
  22046. bedai->port_id, copp_idx,
  22047. bedai->sample_rate);
  22048. msm_pcm_routing_build_matrix(i, session_type, path_type,
  22049. fdai->perf_mode, fdai->passthr_mode);
  22050. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  22051. (fdai->passthr_mode == LEGACY_PCM))
  22052. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  22053. topology, channels);
  22054. }
  22055. }
  22056. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  22057. session_id = msm_pcm_routing_get_voc_sessionid(i);
  22058. if (session_id) {
  22059. pr_debug("%s voice session_id: 0x%x\n", __func__,
  22060. session_id);
  22061. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  22062. voc_path_type = RX_PATH;
  22063. else
  22064. voc_path_type = TX_PATH;
  22065. voc_set_route_flag(session_id, voc_path_type, 1);
  22066. memset(&voc_be_media_format, 0,
  22067. sizeof(struct media_format_info));
  22068. voc_be_media_format.port_id = bedai->port_id;
  22069. voc_be_media_format.num_channels = bedai->channel;
  22070. voc_be_media_format.sample_rate = bedai->sample_rate;
  22071. voc_be_media_format.bits_per_sample = bedai->format;
  22072. /* Defaulting this to 1 for voice call usecases */
  22073. voc_be_media_format.channel_mapping[0] = 1;
  22074. voc_set_device_config(session_id, voc_path_type,
  22075. &voc_be_media_format);
  22076. if (voc_get_route_flag(session_id, RX_PATH) &&
  22077. voc_get_route_flag(session_id, TX_PATH))
  22078. voc_enable_device(session_id);
  22079. }
  22080. }
  22081. /* Check if backend is an external ec ref port and set as needed */
  22082. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  22083. memset(&voc_be_media_format, 0,
  22084. sizeof(struct media_format_info));
  22085. /* Get format info for ec ref port from msm_bedais[] */
  22086. voc_be_media_format.port_id = bedai->port_id;
  22087. voc_be_media_format.num_channels = bedai->channel;
  22088. voc_be_media_format.bits_per_sample = bedai->format;
  22089. voc_be_media_format.sample_rate = bedai->sample_rate;
  22090. /* Defaulting this to 1 for voice call usecases */
  22091. voc_be_media_format.channel_mapping[0] = 1;
  22092. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  22093. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  22094. __func__, voc_be_media_format.port_id,
  22095. voc_be_media_format.num_channels,
  22096. voc_be_media_format.bits_per_sample,
  22097. voc_be_media_format.sample_rate);
  22098. }
  22099. done:
  22100. mutex_unlock(&routing_lock);
  22101. return 0;
  22102. }
  22103. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  22104. int fe_id)
  22105. {
  22106. int index, topo_id, be_idx;
  22107. unsigned long pp_config = 0;
  22108. bool mute_on;
  22109. int latency, session_type;
  22110. bool compr_passthr_mode = true;
  22111. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  22112. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  22113. pr_err("%s: Device pp params on invalid port %d\n",
  22114. __func__, port_id);
  22115. return -EINVAL;
  22116. }
  22117. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22118. if (port_id == msm_bedais[be_idx].port_id)
  22119. break;
  22120. }
  22121. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22122. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  22123. return -EINVAL;
  22124. }
  22125. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  22126. if (msm_bedais_pp_params[index].port_id == port_id)
  22127. break;
  22128. }
  22129. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  22130. pr_err("%s: Invalid backend pp params index %d\n",
  22131. __func__, index);
  22132. return -EINVAL;
  22133. }
  22134. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  22135. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  22136. pr_err("%s: Invalid passthrough topology 0x%x\n",
  22137. __func__, topo_id);
  22138. return -EINVAL;
  22139. }
  22140. session_type =
  22141. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  22142. SESSION_TYPE_RX : SESSION_TYPE_TX;
  22143. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  22144. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  22145. compr_passthr_mode = false;
  22146. pp_config = msm_bedais_pp_params[index].pp_params_config;
  22147. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  22148. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  22149. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  22150. mute_on = msm_bedais_pp_params[index].mute_on;
  22151. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22152. adm_send_compressed_device_mute(port_id,
  22153. copp_idx,
  22154. mute_on);
  22155. }
  22156. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  22157. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  22158. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  22159. &pp_config);
  22160. latency = msm_bedais_pp_params[index].latency;
  22161. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22162. adm_send_compressed_device_latency(port_id,
  22163. copp_idx,
  22164. latency);
  22165. }
  22166. return 0;
  22167. }
  22168. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  22169. {
  22170. uint32_t topology = NULL_COPP_TOPOLOGY;
  22171. void *cal_info = NULL;
  22172. uint32_t size = 0;
  22173. /* Retrieve cal_info size from cal data*/
  22174. size = data_size - sizeof(struct audio_cal_type_basic);
  22175. cal_info = kzalloc(size, GFP_KERNEL);
  22176. if (!cal_info)
  22177. goto done;
  22178. memcpy(cal_info,
  22179. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  22180. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  22181. kfree(cal_info);
  22182. cal_info = NULL;
  22183. done:
  22184. pr_debug("%s: Using topology %d\n", __func__, topology);
  22185. return topology;
  22186. }
  22187. static void msm_routing_load_topology(size_t data_size, void *data)
  22188. {
  22189. uint32_t topology_id;
  22190. int ret = -EINVAL;
  22191. topology_id = msm_routing_get_topology(data_size, data);
  22192. if (topology_id != NULL_COPP_TOPOLOGY)
  22193. ret = q6core_load_unload_topo_modules(topology_id,
  22194. CORE_LOAD_TOPOLOGY);
  22195. if (ret < 0)
  22196. pr_debug("%s %d load topology failed\n",
  22197. __func__, topology_id);
  22198. }
  22199. static void msm_routing_unload_topology(uint32_t topology_id)
  22200. {
  22201. int ret = -EINVAL;
  22202. if (topology_id != NULL_COPP_TOPOLOGY)
  22203. ret = q6core_load_unload_topo_modules(topology_id,
  22204. CORE_UNLOAD_TOPOLOGY);
  22205. if (ret < 0)
  22206. pr_debug("%s %d unload topology failed\n",
  22207. __func__, topology_id);
  22208. }
  22209. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  22210. struct snd_ctl_elem_value *ucontrol)
  22211. {
  22212. int pp_id = ucontrol->value.integer.value[0];
  22213. int port_id = 0;
  22214. int index, be_idx, i, topo_id, idx;
  22215. bool mute;
  22216. int latency, session_type;
  22217. bool compr_passthr_mode = true;
  22218. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  22219. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22220. port_id = msm_bedais[be_idx].port_id;
  22221. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  22222. break;
  22223. }
  22224. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22225. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  22226. return -EINVAL;
  22227. }
  22228. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  22229. if (msm_bedais_pp_params[index].port_id == port_id)
  22230. break;
  22231. }
  22232. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  22233. pr_err("%s: Invalid pp params backend index %d\n",
  22234. __func__, index);
  22235. return -EINVAL;
  22236. }
  22237. session_type =
  22238. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  22239. SESSION_TYPE_RX : SESSION_TYPE_TX;
  22240. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  22241. MSM_FRONTEND_DAI_MM_SIZE) {
  22242. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  22243. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  22244. compr_passthr_mode = false;
  22245. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22246. unsigned long copp =
  22247. session_copp_map[i]
  22248. [SESSION_TYPE_RX][be_idx];
  22249. if (!test_bit(idx, &copp))
  22250. continue;
  22251. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  22252. idx);
  22253. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  22254. continue;
  22255. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  22256. __func__, port_id, copp, msm_bedais[be_idx].active,
  22257. fe_dai_map[i][session_type].passthr_mode);
  22258. switch (pp_id) {
  22259. case ADM_PP_PARAM_MUTE_ID:
  22260. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  22261. mute = ucontrol->value.integer.value[1] ? true : false;
  22262. msm_bedais_pp_params[index].mute_on = mute;
  22263. set_bit(ADM_PP_PARAM_MUTE_BIT,
  22264. &msm_bedais_pp_params[index].pp_params_config);
  22265. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22266. adm_send_compressed_device_mute(port_id,
  22267. idx, mute);
  22268. break;
  22269. case ADM_PP_PARAM_LATENCY_ID:
  22270. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  22271. msm_bedais_pp_params[index].latency =
  22272. ucontrol->value.integer.value[1];
  22273. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  22274. &msm_bedais_pp_params[index].pp_params_config);
  22275. latency = msm_bedais_pp_params[index].latency =
  22276. ucontrol->value.integer.value[1];
  22277. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22278. adm_send_compressed_device_latency(port_id,
  22279. idx, latency);
  22280. break;
  22281. default:
  22282. pr_info("%s, device pp param %d not supported\n",
  22283. __func__, pp_id);
  22284. break;
  22285. }
  22286. }
  22287. }
  22288. return 0;
  22289. }
  22290. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  22291. struct snd_ctl_elem_value *ucontrol)
  22292. {
  22293. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  22294. return 0;
  22295. }
  22296. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  22297. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  22298. 0, 3, msm_routing_get_device_pp_params_mixer,
  22299. msm_routing_put_device_pp_params_mixer),
  22300. };
  22301. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  22302. struct snd_ctl_elem_value *ucontrol)
  22303. {
  22304. ucontrol->value.integer.value[0] =
  22305. core_get_license_status(ASM_MEDIA_FMT_APTX);
  22306. pr_debug("%s: status %ld\n", __func__,
  22307. ucontrol->value.integer.value[0]);
  22308. return 0;
  22309. }
  22310. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  22311. struct snd_ctl_elem_value *ucontrol)
  22312. {
  22313. int32_t status = 0;
  22314. status = core_set_license(ucontrol->value.integer.value[0],
  22315. APTX_CLASSIC_DEC_LICENSE_ID);
  22316. pr_debug("%s: status %d\n", __func__, status);
  22317. return status;
  22318. }
  22319. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  22320. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  22321. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  22322. msm_aptx_dec_license_control_put),
  22323. };
  22324. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  22325. struct snd_ctl_elem_info *uinfo)
  22326. {
  22327. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22328. uinfo->count = sizeof(be_dai_name_table);
  22329. return 0;
  22330. }
  22331. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  22332. unsigned int __user *bytes,
  22333. unsigned int size)
  22334. {
  22335. int i;
  22336. int ret = 0;
  22337. if (size < sizeof(be_dai_name_table)) {
  22338. pr_err("%s: invalid size %d requested, returning\n",
  22339. __func__, size);
  22340. ret = -EINVAL;
  22341. goto done;
  22342. }
  22343. /*
  22344. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  22345. * needed when adding new backends
  22346. */
  22347. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  22348. be_dai_name_table[i].be_id = i;
  22349. strlcpy(be_dai_name_table[i].be_name,
  22350. msm_bedais[i].name,
  22351. LPASS_BE_NAME_MAX_LENGTH);
  22352. }
  22353. ret = copy_to_user(bytes, &be_dai_name_table,
  22354. sizeof(be_dai_name_table));
  22355. if (ret) {
  22356. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  22357. ret = -EFAULT;
  22358. }
  22359. done:
  22360. return ret;
  22361. }
  22362. static const struct snd_kcontrol_new
  22363. msm_routing_be_dai_name_table_mixer_controls[] = {
  22364. {
  22365. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  22366. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  22367. .info = msm_routing_be_dai_name_table_info,
  22368. .name = "Backend DAI Name Table",
  22369. .tlv.c = snd_soc_bytes_tlv_callback,
  22370. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  22371. .max = sizeof(be_dai_name_table),
  22372. .get = msm_routing_be_dai_name_table_tlv_get,
  22373. }
  22374. },
  22375. };
  22376. static int msm_routing_stereo_channel_reverse_control_get(
  22377. struct snd_kcontrol *kcontrol,
  22378. struct snd_ctl_elem_value *ucontrol)
  22379. {
  22380. ucontrol->value.integer.value[0] = swap_ch;
  22381. pr_debug("%s: Swap channel value: %ld\n", __func__,
  22382. ucontrol->value.integer.value[0]);
  22383. return 0;
  22384. }
  22385. static int msm_routing_stereo_channel_reverse_control_put(
  22386. struct snd_kcontrol *kcontrol,
  22387. struct snd_ctl_elem_value *ucontrol)
  22388. {
  22389. int i, idx, be_index, port_id;
  22390. int ret = 0;
  22391. unsigned long copp;
  22392. pr_debug("%s Swap channel value:%ld\n", __func__,
  22393. ucontrol->value.integer.value[0]);
  22394. swap_ch = ucontrol->value.integer.value[0];
  22395. mutex_lock(&routing_lock);
  22396. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  22397. port_id = msm_bedais[be_index].port_id;
  22398. if (!msm_bedais[be_index].active)
  22399. continue;
  22400. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  22401. MSM_FRONTEND_DAI_MM_SIZE) {
  22402. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  22403. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22404. if (!test_bit(idx, &copp))
  22405. continue;
  22406. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  22407. __func__, port_id, idx);
  22408. ret = adm_swap_speaker_channels(
  22409. port_id, idx,
  22410. msm_bedais[be_index].sample_rate,
  22411. swap_ch);
  22412. if (ret) {
  22413. pr_err("%s:Swap_channel failed, err=%d\n",
  22414. __func__, ret);
  22415. goto done;
  22416. }
  22417. }
  22418. }
  22419. }
  22420. done:
  22421. mutex_unlock(&routing_lock);
  22422. return ret;
  22423. }
  22424. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  22425. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  22426. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  22427. msm_routing_stereo_channel_reverse_control_put),
  22428. };
  22429. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  22430. struct snd_ctl_elem_info *uinfo)
  22431. {
  22432. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  22433. uinfo->count = 1;
  22434. return 0;
  22435. }
  22436. static int msm_routing_instance_id_support_put(
  22437. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  22438. {
  22439. bool supported = ucontrol->value.integer.value[0] ? true : false;
  22440. q6common_update_instance_id_support(supported);
  22441. return 0;
  22442. }
  22443. static int msm_routing_instance_id_support_get(
  22444. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  22445. {
  22446. bool supported = false;
  22447. supported = q6common_is_instance_id_supported();
  22448. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  22449. return 0;
  22450. }
  22451. static const struct snd_kcontrol_new
  22452. msm_routing_feature_support_mixer_controls[] = {
  22453. {
  22454. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  22455. SNDRV_CTL_ELEM_ACCESS_WRITE,
  22456. .info = msm_routing_instance_id_support_info,
  22457. .name = "Instance ID Support",
  22458. .put = msm_routing_instance_id_support_put,
  22459. .get = msm_routing_instance_id_support_get,
  22460. },
  22461. };
  22462. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  22463. .hw_params = msm_pcm_routing_hw_params,
  22464. .close = msm_pcm_routing_close,
  22465. .prepare = msm_pcm_routing_prepare,
  22466. };
  22467. /* Not used but frame seems to require it */
  22468. static int msm_routing_probe(struct snd_soc_platform *platform)
  22469. {
  22470. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  22471. ARRAY_SIZE(msm_qdsp6_widgets));
  22472. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  22473. ARRAY_SIZE(intercon));
  22474. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  22475. snd_soc_add_platform_controls(platform, lsm_controls,
  22476. ARRAY_SIZE(lsm_controls));
  22477. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  22478. ARRAY_SIZE(aanc_slim_0_rx_mux));
  22479. snd_soc_add_platform_controls(platform, aanc_noise_level,
  22480. ARRAY_SIZE(aanc_noise_level));
  22481. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  22482. ARRAY_SIZE(msm_voc_session_controls));
  22483. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  22484. ARRAY_SIZE(app_type_cfg_controls));
  22485. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  22486. ARRAY_SIZE(lsm_app_type_cfg_controls));
  22487. snd_soc_add_platform_controls(platform, module_cfg_controls,
  22488. ARRAY_SIZE(module_cfg_controls));
  22489. snd_soc_add_platform_controls(platform,
  22490. stereo_to_custom_stereo_controls,
  22491. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  22492. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  22493. ARRAY_SIZE(ec_ref_param_controls));
  22494. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  22495. ARRAY_SIZE(channel_mixer_controls));
  22496. msm_qti_pp_add_controls(platform);
  22497. msm_dts_srs_tm_add_controls(platform);
  22498. msm_dolby_dap_add_controls(platform);
  22499. snd_soc_add_platform_controls(platform,
  22500. use_ds1_or_ds2_controls,
  22501. ARRAY_SIZE(use_ds1_or_ds2_controls));
  22502. snd_soc_add_platform_controls(platform,
  22503. device_pp_params_mixer_controls,
  22504. ARRAY_SIZE(device_pp_params_mixer_controls));
  22505. snd_soc_add_platform_controls(platform,
  22506. msm_routing_be_dai_name_table_mixer_controls,
  22507. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  22508. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  22509. ARRAY_SIZE(msm_source_tracking_controls));
  22510. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  22511. ARRAY_SIZE(adm_channel_config_controls));
  22512. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  22513. ARRAY_SIZE(aptx_dec_license_controls));
  22514. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  22515. ARRAY_SIZE(stereo_channel_reverse_control));
  22516. snd_soc_add_platform_controls(
  22517. platform, msm_routing_feature_support_mixer_controls,
  22518. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  22519. return 0;
  22520. }
  22521. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  22522. {
  22523. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  22524. }
  22525. void msm_routing_pcm_free(struct snd_pcm *pcm)
  22526. {
  22527. msm_pcm_routing_hwdep_free(pcm);
  22528. }
  22529. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  22530. .ops = &msm_routing_pcm_ops,
  22531. .probe = msm_routing_probe,
  22532. .pcm_new = msm_routing_pcm_new,
  22533. .pcm_free = msm_routing_pcm_free,
  22534. };
  22535. static int msm_routing_pcm_probe(struct platform_device *pdev)
  22536. {
  22537. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  22538. return snd_soc_register_platform(&pdev->dev,
  22539. &msm_soc_routing_platform);
  22540. }
  22541. static int msm_routing_pcm_remove(struct platform_device *pdev)
  22542. {
  22543. snd_soc_unregister_platform(&pdev->dev);
  22544. return 0;
  22545. }
  22546. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  22547. {.compatible = "qcom,msm-pcm-routing"},
  22548. {}
  22549. };
  22550. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  22551. static struct platform_driver msm_routing_pcm_driver = {
  22552. .driver = {
  22553. .name = "msm-pcm-routing",
  22554. .owner = THIS_MODULE,
  22555. .of_match_table = msm_pcm_routing_dt_match,
  22556. },
  22557. .probe = msm_routing_pcm_probe,
  22558. .remove = msm_routing_pcm_remove,
  22559. };
  22560. int msm_routing_check_backend_enabled(int fedai_id)
  22561. {
  22562. int i;
  22563. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  22564. /* bad ID assigned in machine driver */
  22565. pr_err("%s: bad MM ID\n", __func__);
  22566. return 0;
  22567. }
  22568. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  22569. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  22570. return msm_bedais[i].active;
  22571. }
  22572. return 0;
  22573. }
  22574. static int get_cal_type_index(int32_t cal_type)
  22575. {
  22576. int ret = -EINVAL;
  22577. switch (cal_type) {
  22578. case ADM_TOPOLOGY_CAL_TYPE:
  22579. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  22580. break;
  22581. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  22582. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  22583. break;
  22584. default:
  22585. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  22586. }
  22587. return ret;
  22588. }
  22589. static int msm_routing_set_cal(int32_t cal_type,
  22590. size_t data_size, void *data)
  22591. {
  22592. int ret = 0;
  22593. int cal_index;
  22594. pr_debug("%s\n", __func__);
  22595. cal_index = get_cal_type_index(cal_type);
  22596. if (cal_index < 0) {
  22597. pr_err("%s: Could not get cal index %d\n",
  22598. __func__, cal_index);
  22599. ret = -EINVAL;
  22600. goto done;
  22601. }
  22602. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  22603. if (ret < 0) {
  22604. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  22605. __func__, ret, cal_type);
  22606. ret = -EINVAL;
  22607. goto done;
  22608. }
  22609. /* Pre-load if it is ADM topology */
  22610. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  22611. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  22612. msm_routing_load_topology(data_size, data);
  22613. }
  22614. done:
  22615. return ret;
  22616. }
  22617. static void msm_routing_delete_cal_data(void)
  22618. {
  22619. pr_debug("%s\n", __func__);
  22620. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  22621. }
  22622. static int msm_routing_init_cal_data(void)
  22623. {
  22624. int ret = 0;
  22625. struct cal_type_info cal_type_info[] = {
  22626. {{ADM_TOPOLOGY_CAL_TYPE,
  22627. {NULL, NULL, NULL,
  22628. msm_routing_set_cal, NULL, NULL} },
  22629. {NULL, NULL, cal_utils_match_buf_num} },
  22630. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  22631. {NULL, NULL, NULL,
  22632. msm_routing_set_cal, NULL, NULL} },
  22633. {NULL, NULL, cal_utils_match_buf_num} },
  22634. };
  22635. pr_debug("%s\n", __func__);
  22636. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  22637. &cal_type_info[0]);
  22638. if (ret < 0) {
  22639. pr_err("%s: could not create cal type!\n",
  22640. __func__);
  22641. ret = -EINVAL;
  22642. goto err;
  22643. }
  22644. return ret;
  22645. err:
  22646. msm_routing_delete_cal_data();
  22647. return ret;
  22648. }
  22649. int __init msm_soc_routing_platform_init(void)
  22650. {
  22651. mutex_init(&routing_lock);
  22652. if (msm_routing_init_cal_data())
  22653. pr_err("%s: could not init cal data!\n", __func__);
  22654. afe_set_routing_callback(
  22655. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  22656. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  22657. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  22658. return platform_driver_register(&msm_routing_pcm_driver);
  22659. }
  22660. void msm_soc_routing_platform_exit(void)
  22661. {
  22662. msm_routing_delete_cal_data();
  22663. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  22664. mutex_destroy(&routing_lock);
  22665. platform_driver_unregister(&msm_routing_pcm_driver);
  22666. }
  22667. MODULE_DESCRIPTION("MSM routing platform driver");
  22668. MODULE_LICENSE("GPL v2");