msm-pcm-routing-v2.c 1.2 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2020, 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/pcm_params.h>
  21. #include <sound/hwdep.h>
  22. #include <audio/sound/audio_effects.h>
  23. #include <dsp/msm-dts-srs-tm-config.h>
  24. #include <dsp/q6voice.h>
  25. #include <dsp/q6adm-v2.h>
  26. #include <dsp/q6asm-v2.h>
  27. #include <dsp/q6afe-v2.h>
  28. #include <dsp/q6lsm.h>
  29. #include <dsp/q6core.h>
  30. #include <dsp/q6common.h>
  31. #include <dsp/audio_cal_utils.h>
  32. #include "msm-pcm-routing-v2.h"
  33. #include "msm-pcm-routing-devdep.h"
  34. #include "msm-qti-pp-config.h"
  35. #include "msm-dolby-dap-config.h"
  36. #include "msm-ds2-dap-config.h"
  37. #define DRV_NAME "msm-pcm-routing-v2"
  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. #define STRING_LENGTH_OF_INT 12
  47. #define MAX_USR_CTRL_CNT 128
  48. static struct mutex routing_lock;
  49. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  50. static int fm_switch_enable;
  51. static int hfp_switch_enable;
  52. static int a2dp_switch_enable;
  53. static int sco_switch_enable;
  54. static int int0_mi2s_switch_enable;
  55. static int int4_mi2s_switch_enable;
  56. static int pri_mi2s_switch_enable;
  57. static int sec_mi2s_switch_enable;
  58. static int tert_mi2s_switch_enable;
  59. static int quat_mi2s_switch_enable;
  60. static int quin_mi2s_switch_enable;
  61. static int sen_mi2s_switch_enable;
  62. static int fm_pcmrx_switch_enable;
  63. static int usb_switch_enable;
  64. static int lsm_port_index[MAX_LSM_SESSIONS];
  65. static int slim0_rx_aanc_fb_port;
  66. static int msm_route_ec_ref_rx;
  67. static int msm_ec_ref_ch = 4;
  68. static int msm_ec_ref_ch_downmixed = 4;
  69. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  70. static int msm_ec_ref_sampling_rate = 48000;
  71. static uint32_t voc_session_id = ALL_SESSION_VSID;
  72. static int msm_route_ext_ec_ref;
  73. static bool is_custom_stereo_on;
  74. static bool is_ds2_on;
  75. static bool ffecns_freeze_event;
  76. static bool swap_ch;
  77. static bool hifi_filter_enabled;
  78. static int aanc_level;
  79. static int num_app_cfg_types;
  80. static int msm_ec_ref_port_id;
  81. static int afe_loopback_tx_port_index;
  82. static int afe_loopback_tx_port_id = -1;
  83. #define WEIGHT_0_DB 0x4000
  84. /* all the FEs which can support channel mixer */
  85. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  86. /* all the FES which can support channel mixer for bidirection */
  87. static struct msm_pcm_channel_mixer
  88. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  89. /* input BE for each FE */
  90. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  91. enum {
  92. MADNONE,
  93. MADAUDIO,
  94. MADBEACON,
  95. MADULTRASOUND,
  96. MADSWAUDIO,
  97. };
  98. #define ADM_LSM_PORT_INDEX 9
  99. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  100. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  101. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  102. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  103. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  104. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  105. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  106. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  107. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  108. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  109. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  110. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  111. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  112. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  113. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  114. #define TERT_TDM_TX_TEXT "TERT_TDM_TX_0"
  115. #define LSM_FUNCTION_TEXT "LSM Function"
  116. static const char * const lsm_port_text[] = {
  117. "None",
  118. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  119. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  120. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  121. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  122. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT,
  123. TERT_TDM_TX_TEXT
  124. };
  125. struct msm_pcm_route_bdai_pp_params {
  126. u16 port_id; /* AFE port ID */
  127. unsigned long pp_params_config;
  128. bool mute_on;
  129. int latency;
  130. };
  131. static struct msm_pcm_route_bdai_pp_params
  132. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  133. {HDMI_RX, 0, 0, 0},
  134. {HDMI_RX_MS, 0, 0, 0},
  135. {DISPLAY_PORT_RX, 0, 0, 0},
  136. };
  137. /*
  138. * The be_dai_name_table is passed to HAL so that it can specify the
  139. * BE ID for the BE it wants to enable based on the name. Thus there
  140. * is a matching table and structure in HAL that need to be updated
  141. * if any changes to these are made.
  142. */
  143. struct msm_pcm_route_bdai_name {
  144. unsigned int be_id;
  145. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  146. };
  147. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  148. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  149. int fe_id);
  150. static void msm_routing_load_topology(size_t data_size, void *data);
  151. static void msm_routing_unload_topology(uint32_t topology_id);
  152. #ifndef SND_PCM_ADD_VOLUME_CTL
  153. static int pcm_volume_ctl_info(struct snd_kcontrol *kcontrol,
  154. struct snd_ctl_elem_info *uinfo)
  155. {
  156. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  157. uinfo->count = 1;
  158. uinfo->value.integer.min = 0;
  159. uinfo->value.integer.max = 0x2000;
  160. return 0;
  161. }
  162. static void pcm_volume_ctl_private_free(struct snd_kcontrol *kcontrol)
  163. {
  164. struct snd_pcm_volume *info = snd_kcontrol_chip(kcontrol);
  165. kfree(info);
  166. }
  167. /**
  168. * snd_pcm_add_volume_ctls - create volume control elements
  169. * @pcm: the assigned PCM instance
  170. * @stream: stream direction
  171. * @max_length: the max length of the volume parameter of stream
  172. * @private_value: the value passed to each kcontrol's private_value field
  173. * @info_ret: store struct snd_pcm_volume instance if non-NULL
  174. *
  175. * Create volume control elements assigned to the given PCM stream(s).
  176. * Returns zero if succeed, or a negative error value.
  177. */
  178. int snd_pcm_add_volume_ctls(struct snd_pcm *pcm, int stream,
  179. const struct snd_pcm_volume_elem *volume,
  180. int max_length,
  181. unsigned long private_value,
  182. struct snd_pcm_volume **info_ret)
  183. {
  184. int err = 0;
  185. int size = 0;
  186. struct snd_pcm_volume *info;
  187. struct snd_kcontrol_new knew = {
  188. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  189. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  190. SNDRV_CTL_ELEM_ACCESS_READWRITE,
  191. .info = pcm_volume_ctl_info,
  192. };
  193. info = kzalloc(sizeof(*info), GFP_KERNEL);
  194. if (!info)
  195. return -ENOMEM;
  196. info->pcm = pcm;
  197. info->stream = stream;
  198. info->volume = volume;
  199. info->max_length = max_length;
  200. size = sizeof("Playback ") + sizeof(" Volume") +
  201. STRING_LENGTH_OF_INT*sizeof(char) + 1;
  202. knew.name = kzalloc(size, GFP_KERNEL);
  203. if (!knew.name) {
  204. kfree(info);
  205. return -ENOMEM;
  206. }
  207. if (stream == SNDRV_PCM_STREAM_PLAYBACK)
  208. snprintf((char *)knew.name, size, "%s %d %s",
  209. "Playback", pcm->device, "Volume");
  210. else
  211. snprintf((char *)knew.name, size, "%s %d %s",
  212. "Capture", pcm->device, "Volume");
  213. knew.device = pcm->device;
  214. knew.count = pcm->streams[stream].substream_count;
  215. knew.private_value = private_value;
  216. info->kctl = snd_ctl_new1(&knew, info);
  217. if (!info->kctl) {
  218. kfree(info);
  219. kfree(knew.name);
  220. return -ENOMEM;
  221. }
  222. info->kctl->private_free = pcm_volume_ctl_private_free;
  223. err = snd_ctl_add(pcm->card, info->kctl);
  224. if (err < 0) {
  225. kfree(info);
  226. kfree(knew.name);
  227. return -ENOMEM;
  228. }
  229. if (info_ret)
  230. *info_ret = info;
  231. kfree(knew.name);
  232. return 0;
  233. }
  234. EXPORT_SYMBOL(snd_pcm_add_volume_ctls);
  235. #endif
  236. #ifndef SND_PCM_ADD_USR_CTL
  237. static int pcm_usr_ctl_info(struct snd_kcontrol *kcontrol,
  238. struct snd_ctl_elem_info *uinfo)
  239. {
  240. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  241. uinfo->count = MAX_USR_CTRL_CNT;
  242. uinfo->value.integer.min = 0;
  243. uinfo->value.integer.max = INT_MAX;
  244. return 0;
  245. }
  246. static void pcm_usr_ctl_private_free(struct snd_kcontrol *kcontrol)
  247. {
  248. struct snd_pcm_usr *info = snd_kcontrol_chip(kcontrol);
  249. kfree(info);
  250. }
  251. /**
  252. * snd_pcm_add_usr_ctls - create user control elements
  253. * @pcm: the assigned PCM instance
  254. * @stream: stream direction
  255. * @max_length: the max length of the user parameter of stream
  256. * @private_value: the value passed to each kcontrol's private_value field
  257. * @info_ret: store struct snd_pcm_usr instance if non-NULL
  258. *
  259. * Create usr control elements assigned to the given PCM stream(s).
  260. * Returns zero if succeed, or a negative error value.
  261. */
  262. int snd_pcm_add_usr_ctls(struct snd_pcm *pcm, int stream,
  263. const struct snd_pcm_usr_elem *usr,
  264. int max_length, int max_kctrl_str_len,
  265. unsigned long private_value,
  266. struct snd_pcm_usr **info_ret)
  267. {
  268. int err = 0;
  269. char *buf = NULL;
  270. struct snd_pcm_usr *info;
  271. struct snd_kcontrol_new knew = {
  272. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  273. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  274. .info = pcm_usr_ctl_info,
  275. };
  276. info = kzalloc(sizeof(*info), GFP_KERNEL);
  277. if (!info)
  278. return -ENOMEM;
  279. info->pcm = pcm;
  280. info->stream = stream;
  281. info->usr = usr;
  282. info->max_length = max_length;
  283. buf = kzalloc(max_kctrl_str_len, GFP_KERNEL);
  284. if (!buf) {
  285. pr_err("%s: buffer allocation failed\n", __func__);
  286. kfree(info);
  287. return -ENOMEM;
  288. }
  289. knew.name = buf;
  290. if (stream == SNDRV_PCM_STREAM_PLAYBACK)
  291. snprintf(buf, max_kctrl_str_len, "%s %d %s",
  292. "Playback", pcm->device, "User kcontrol");
  293. else
  294. snprintf(buf, max_kctrl_str_len, "%s %d %s",
  295. "Capture", pcm->device, "User kcontrol");
  296. knew.device = pcm->device;
  297. knew.count = pcm->streams[stream].substream_count;
  298. knew.private_value = private_value;
  299. info->kctl = snd_ctl_new1(&knew, info);
  300. if (!info->kctl) {
  301. kfree(info);
  302. kfree(knew.name);
  303. pr_err("%s: snd_ctl_new failed\n", __func__);
  304. return -ENOMEM;
  305. }
  306. info->kctl->private_free = pcm_usr_ctl_private_free;
  307. err = snd_ctl_add(pcm->card, info->kctl);
  308. if (err < 0) {
  309. kfree(info);
  310. kfree(knew.name);
  311. pr_err("%s: snd_ctl_add failed:%d\n", __func__,
  312. err);
  313. return -ENOMEM;
  314. }
  315. if (info_ret)
  316. *info_ret = info;
  317. kfree(knew.name);
  318. return 0;
  319. }
  320. EXPORT_SYMBOL(snd_pcm_add_usr_ctls);
  321. #endif
  322. static int msm_routing_get_bit_width(unsigned int format)
  323. {
  324. int bit_width;
  325. switch (format) {
  326. case SNDRV_PCM_FORMAT_S32_LE:
  327. bit_width = 32;
  328. break;
  329. case SNDRV_PCM_FORMAT_S24_LE:
  330. case SNDRV_PCM_FORMAT_S24_3LE:
  331. bit_width = 24;
  332. break;
  333. case SNDRV_PCM_FORMAT_S16_LE:
  334. default:
  335. bit_width = 16;
  336. }
  337. return bit_width;
  338. }
  339. static bool msm_is_resample_needed(int input_sr, int output_sr)
  340. {
  341. bool rc = false;
  342. if (input_sr != output_sr)
  343. rc = true;
  344. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  345. (rc ? "oh yes" : "not really"),
  346. input_sr, output_sr);
  347. return rc;
  348. }
  349. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  350. int channels)
  351. {
  352. int rc = 0;
  353. switch (topology) {
  354. case SRS_TRUMEDIA_TOPOLOGY_ID:
  355. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  356. msm_dts_srs_tm_init(port_id, copp_idx);
  357. break;
  358. case DS2_ADM_COPP_TOPOLOGY_ID:
  359. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  360. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  361. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  362. is_custom_stereo_on);
  363. if (rc < 0)
  364. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  365. __func__, topology, port_id,
  366. is_custom_stereo_on, rc);
  367. break;
  368. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  369. if (is_ds2_on) {
  370. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  371. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  372. is_custom_stereo_on);
  373. if (rc < 0)
  374. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  375. __func__, topology, port_id, rc);
  376. } else {
  377. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  378. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  379. is_custom_stereo_on);
  380. if (rc < 0)
  381. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  382. __func__, topology, port_id, rc);
  383. }
  384. break;
  385. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  386. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  387. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  388. if (rc < 0)
  389. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  390. __func__, topology, port_id, copp_idx, rc);
  391. break;
  392. default:
  393. /* custom topology specific feature param handlers */
  394. break;
  395. }
  396. }
  397. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  398. {
  399. switch (topology) {
  400. case SRS_TRUMEDIA_TOPOLOGY_ID:
  401. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  402. msm_dts_srs_tm_deinit(port_id);
  403. break;
  404. case DS2_ADM_COPP_TOPOLOGY_ID:
  405. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  406. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  407. msm_ds2_dap_deinit(port_id);
  408. break;
  409. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  410. if (is_ds2_on) {
  411. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  412. msm_ds2_dap_deinit(port_id);
  413. } else {
  414. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  415. msm_dolby_dap_deinit(port_id);
  416. }
  417. break;
  418. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  419. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  420. msm_qti_pp_asphere_deinit(port_id);
  421. break;
  422. default:
  423. /* custom topology specific feature deinit handlers */
  424. break;
  425. }
  426. }
  427. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  428. int path_type, int perf_mode)
  429. {
  430. int itr = 0, rc = 0;
  431. if ((path_type == ADM_PATH_PLAYBACK) &&
  432. (perf_mode == LEGACY_PCM_MODE) &&
  433. is_custom_stereo_on) {
  434. for (itr = 0; itr < payload.num_copps; itr++) {
  435. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  436. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  437. continue;
  438. }
  439. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  440. payload.port_id[itr],
  441. payload.copp_idx[itr],
  442. payload.session_id,
  443. Q14_GAIN_ZERO_POINT_FIVE,
  444. Q14_GAIN_ZERO_POINT_FIVE,
  445. Q14_GAIN_ZERO_POINT_FIVE,
  446. Q14_GAIN_ZERO_POINT_FIVE);
  447. if (rc < 0)
  448. pr_err("%s: err setting custom stereo\n",
  449. __func__);
  450. }
  451. }
  452. }
  453. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  454. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  455. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  456. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  457. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  458. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  459. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  460. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  461. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  462. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  463. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  464. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  465. LPASS_BE_AFE_PCM_RX},
  466. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  467. LPASS_BE_AFE_PCM_TX},
  468. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  469. LPASS_BE_AUXPCM_RX},
  470. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  471. LPASS_BE_AUXPCM_TX},
  472. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  473. LPASS_BE_VOICE_PLAYBACK_TX},
  474. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  475. LPASS_BE_VOICE2_PLAYBACK_TX},
  476. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  477. LPASS_BE_INCALL_RECORD_RX},
  478. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  479. LPASS_BE_INCALL_RECORD_TX},
  480. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  481. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  482. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  483. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  484. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  485. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  486. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  487. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  488. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  489. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  490. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  491. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  492. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  493. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  494. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  495. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  496. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  497. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  498. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  499. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  500. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  501. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  502. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  503. LPASS_BE_QUAT_MI2S_RX},
  504. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  505. LPASS_BE_QUAT_MI2S_TX},
  506. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  507. LPASS_BE_SEC_MI2S_RX},
  508. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  509. LPASS_BE_SEC_MI2S_TX},
  510. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  511. LPASS_BE_PRI_MI2S_RX},
  512. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  513. LPASS_BE_PRI_MI2S_TX},
  514. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  515. LPASS_BE_TERT_MI2S_RX},
  516. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  517. LPASS_BE_TERT_MI2S_TX},
  518. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  519. LPASS_BE_AUDIO_I2S_RX},
  520. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  521. LPASS_BE_SEC_AUXPCM_RX},
  522. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  523. LPASS_BE_SEC_AUXPCM_TX},
  524. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  525. LPASS_BE_PRI_SPDIF_RX},
  526. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  527. LPASS_BE_SEC_MI2S_RX_SD1},
  528. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  529. LPASS_BE_QUIN_MI2S_RX},
  530. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  531. LPASS_BE_QUIN_MI2S_TX},
  532. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  533. LPASS_BE_SENARY_MI2S_TX},
  534. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  535. LPASS_BE_PRI_TDM_RX_0},
  536. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  537. LPASS_BE_PRI_TDM_TX_0},
  538. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  539. LPASS_BE_PRI_TDM_RX_1},
  540. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  541. LPASS_BE_PRI_TDM_TX_1},
  542. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  543. LPASS_BE_PRI_TDM_RX_2},
  544. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  545. LPASS_BE_PRI_TDM_TX_2},
  546. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  547. LPASS_BE_PRI_TDM_RX_3},
  548. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  549. LPASS_BE_PRI_TDM_TX_3},
  550. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  551. LPASS_BE_PRI_TDM_RX_4},
  552. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  553. LPASS_BE_PRI_TDM_TX_4},
  554. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  555. LPASS_BE_PRI_TDM_RX_5},
  556. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  557. LPASS_BE_PRI_TDM_TX_5},
  558. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  559. LPASS_BE_PRI_TDM_RX_6},
  560. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  561. LPASS_BE_PRI_TDM_TX_6},
  562. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  563. LPASS_BE_PRI_TDM_RX_7},
  564. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  565. LPASS_BE_PRI_TDM_TX_7},
  566. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  567. LPASS_BE_SEC_TDM_RX_0},
  568. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  569. LPASS_BE_SEC_TDM_TX_0},
  570. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  571. LPASS_BE_SEC_TDM_RX_1},
  572. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  573. LPASS_BE_SEC_TDM_TX_1},
  574. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  575. LPASS_BE_SEC_TDM_RX_2},
  576. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  577. LPASS_BE_SEC_TDM_TX_2},
  578. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  579. LPASS_BE_SEC_TDM_RX_3},
  580. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  581. LPASS_BE_SEC_TDM_TX_3},
  582. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  583. LPASS_BE_SEC_TDM_RX_4},
  584. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  585. LPASS_BE_SEC_TDM_TX_4},
  586. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  587. LPASS_BE_SEC_TDM_RX_5},
  588. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  589. LPASS_BE_SEC_TDM_TX_5},
  590. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  591. LPASS_BE_SEC_TDM_RX_6},
  592. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  593. LPASS_BE_SEC_TDM_TX_6},
  594. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  595. LPASS_BE_SEC_TDM_RX_7},
  596. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  597. LPASS_BE_SEC_TDM_TX_7},
  598. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  599. LPASS_BE_TERT_TDM_RX_0},
  600. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  601. LPASS_BE_TERT_TDM_TX_0},
  602. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  603. LPASS_BE_TERT_TDM_RX_1},
  604. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  605. LPASS_BE_TERT_TDM_TX_1},
  606. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  607. LPASS_BE_TERT_TDM_RX_2},
  608. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  609. LPASS_BE_TERT_TDM_TX_2},
  610. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  611. LPASS_BE_TERT_TDM_RX_3},
  612. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  613. LPASS_BE_TERT_TDM_TX_3},
  614. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  615. LPASS_BE_TERT_TDM_RX_4},
  616. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  617. LPASS_BE_TERT_TDM_TX_4},
  618. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  619. LPASS_BE_TERT_TDM_RX_5},
  620. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  621. LPASS_BE_TERT_TDM_TX_5},
  622. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  623. LPASS_BE_TERT_TDM_RX_6},
  624. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  625. LPASS_BE_TERT_TDM_TX_6},
  626. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  627. LPASS_BE_TERT_TDM_RX_7},
  628. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  629. LPASS_BE_TERT_TDM_TX_7},
  630. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  631. LPASS_BE_QUAT_TDM_RX_0},
  632. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  633. LPASS_BE_QUAT_TDM_TX_0},
  634. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  635. LPASS_BE_QUAT_TDM_RX_1},
  636. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  637. LPASS_BE_QUAT_TDM_TX_1},
  638. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  639. LPASS_BE_QUAT_TDM_RX_2},
  640. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  641. LPASS_BE_QUAT_TDM_TX_2},
  642. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  643. LPASS_BE_QUAT_TDM_RX_3},
  644. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  645. LPASS_BE_QUAT_TDM_TX_3},
  646. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  647. LPASS_BE_QUAT_TDM_RX_4},
  648. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  649. LPASS_BE_QUAT_TDM_TX_4},
  650. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  651. LPASS_BE_QUAT_TDM_RX_5},
  652. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  653. LPASS_BE_QUAT_TDM_TX_5},
  654. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  655. LPASS_BE_QUAT_TDM_RX_6},
  656. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  657. LPASS_BE_QUAT_TDM_TX_6},
  658. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  659. LPASS_BE_QUAT_TDM_RX_7},
  660. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  661. LPASS_BE_QUAT_TDM_TX_7},
  662. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  663. LPASS_BE_QUIN_TDM_RX_0},
  664. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  665. LPASS_BE_QUIN_TDM_TX_0},
  666. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  667. LPASS_BE_QUIN_TDM_RX_1},
  668. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  669. LPASS_BE_QUIN_TDM_TX_1},
  670. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  671. LPASS_BE_QUIN_TDM_RX_2},
  672. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  673. LPASS_BE_QUIN_TDM_TX_2},
  674. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  675. LPASS_BE_QUIN_TDM_RX_3},
  676. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  677. LPASS_BE_QUIN_TDM_TX_3},
  678. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  679. LPASS_BE_QUIN_TDM_RX_4},
  680. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  681. LPASS_BE_QUIN_TDM_TX_4},
  682. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  683. LPASS_BE_QUIN_TDM_RX_5},
  684. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  685. LPASS_BE_QUIN_TDM_TX_5},
  686. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  687. LPASS_BE_QUIN_TDM_RX_6},
  688. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  689. LPASS_BE_QUIN_TDM_TX_6},
  690. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  691. LPASS_BE_QUIN_TDM_RX_7},
  692. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  693. LPASS_BE_QUIN_TDM_TX_7},
  694. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  695. LPASS_BE_SEN_TDM_RX_0},
  696. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  697. LPASS_BE_SEN_TDM_TX_0},
  698. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  699. LPASS_BE_SEN_TDM_RX_1},
  700. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  701. LPASS_BE_SEN_TDM_TX_1},
  702. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  703. LPASS_BE_SEN_TDM_RX_2},
  704. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  705. LPASS_BE_SEN_TDM_TX_2},
  706. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  707. LPASS_BE_SEN_TDM_RX_3},
  708. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  709. LPASS_BE_SEN_TDM_TX_3},
  710. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  711. LPASS_BE_SEN_TDM_RX_4},
  712. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  713. LPASS_BE_SEN_TDM_TX_4},
  714. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  715. LPASS_BE_SEN_TDM_RX_5},
  716. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  717. LPASS_BE_SEN_TDM_TX_5},
  718. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  719. LPASS_BE_SEN_TDM_RX_6},
  720. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  721. LPASS_BE_SEN_TDM_TX_6},
  722. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  723. LPASS_BE_SEN_TDM_RX_7},
  724. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  725. LPASS_BE_SEN_TDM_TX_7},
  726. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  727. LPASS_BE_INT_BT_A2DP_RX},
  728. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  729. LPASS_BE_USB_AUDIO_RX},
  730. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  731. LPASS_BE_USB_AUDIO_TX},
  732. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  733. LPASS_BE_DISPLAY_PORT},
  734. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  735. LPASS_BE_DISPLAY_PORT1},
  736. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  737. LPASS_BE_TERT_AUXPCM_RX},
  738. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  739. LPASS_BE_TERT_AUXPCM_TX},
  740. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  741. LPASS_BE_QUAT_AUXPCM_RX},
  742. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  743. LPASS_BE_QUAT_AUXPCM_TX},
  744. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  745. LPASS_BE_QUIN_AUXPCM_RX},
  746. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  747. LPASS_BE_QUIN_AUXPCM_TX},
  748. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  749. LPASS_BE_INT0_MI2S_RX},
  750. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  751. LPASS_BE_INT0_MI2S_TX},
  752. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  753. LPASS_BE_INT1_MI2S_RX},
  754. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  755. LPASS_BE_INT1_MI2S_TX},
  756. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  757. LPASS_BE_INT2_MI2S_RX},
  758. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  759. LPASS_BE_INT2_MI2S_TX},
  760. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  761. LPASS_BE_INT3_MI2S_RX},
  762. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  763. LPASS_BE_INT3_MI2S_TX},
  764. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  765. LPASS_BE_INT4_MI2S_RX},
  766. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  767. LPASS_BE_INT4_MI2S_TX},
  768. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  769. LPASS_BE_INT5_MI2S_RX},
  770. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  771. LPASS_BE_INT5_MI2S_TX},
  772. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  773. LPASS_BE_INT6_MI2S_RX},
  774. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  775. LPASS_BE_INT6_MI2S_TX},
  776. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  777. LPASS_BE_SEN_AUXPCM_RX},
  778. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  779. LPASS_BE_SEN_AUXPCM_TX},
  780. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  781. LPASS_BE_SENARY_MI2S_RX},
  782. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  783. LPASS_BE_WSA_CDC_DMA_RX_0},
  784. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  785. LPASS_BE_WSA_CDC_DMA_TX_0},
  786. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  787. LPASS_BE_WSA_CDC_DMA_RX_1},
  788. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  789. LPASS_BE_WSA_CDC_DMA_TX_1},
  790. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  791. LPASS_BE_WSA_CDC_DMA_TX_2},
  792. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  793. LPASS_BE_VA_CDC_DMA_TX_0},
  794. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  795. LPASS_BE_VA_CDC_DMA_TX_1},
  796. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  797. LPASS_BE_VA_CDC_DMA_TX_2},
  798. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  799. LPASS_BE_RX_CDC_DMA_RX_0},
  800. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  801. LPASS_BE_TX_CDC_DMA_TX_0},
  802. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  803. LPASS_BE_RX_CDC_DMA_RX_1},
  804. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  805. LPASS_BE_TX_CDC_DMA_TX_1},
  806. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  807. LPASS_BE_RX_CDC_DMA_RX_2},
  808. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  809. LPASS_BE_TX_CDC_DMA_TX_2},
  810. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  811. LPASS_BE_RX_CDC_DMA_RX_3},
  812. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  813. LPASS_BE_TX_CDC_DMA_TX_3},
  814. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  815. LPASS_BE_RX_CDC_DMA_RX_4},
  816. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  817. LPASS_BE_TX_CDC_DMA_TX_4},
  818. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  819. LPASS_BE_RX_CDC_DMA_RX_5},
  820. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  821. LPASS_BE_TX_CDC_DMA_TX_5},
  822. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  823. LPASS_BE_RX_CDC_DMA_RX_6},
  824. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  825. LPASS_BE_RX_CDC_DMA_RX_7},
  826. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  827. LPASS_BE_PRI_SPDIF_TX},
  828. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  829. LPASS_BE_SEC_SPDIF_RX},
  830. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  831. LPASS_BE_SEC_SPDIF_TX},
  832. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  833. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  834. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  835. { AFE_PORT_ID_PRIMARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  836. LPASS_BE_PRI_META_MI2S_RX},
  837. { AFE_PORT_ID_SECONDARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  838. LPASS_BE_SEC_META_MI2S_RX},
  839. { RT_PROXY_PORT_002_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PROXY_RX},
  840. { RT_PROXY_PORT_002_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PROXY_TX},
  841. { HDMI_RX_MS, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI_MS},
  842. };
  843. /* Track ASM playback & capture sessions of DAI
  844. * Track LSM listen sessions
  845. */
  846. static struct msm_pcm_routing_fdai_data
  847. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  848. /* MULTIMEDIA1 */
  849. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  850. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  851. /* MULTIMEDIA2 */
  852. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  853. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  854. /* MULTIMEDIA3 */
  855. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  856. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  857. /* MULTIMEDIA4 */
  858. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  859. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  860. /* MULTIMEDIA5 */
  861. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  862. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  863. /* MULTIMEDIA6 */
  864. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  865. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  866. /* MULTIMEDIA7*/
  867. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  868. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  869. /* MULTIMEDIA8 */
  870. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  871. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  872. /* MULTIMEDIA9 */
  873. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  874. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  875. /* MULTIMEDIA10 */
  876. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  877. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  878. /* MULTIMEDIA11 */
  879. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  880. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  881. /* MULTIMEDIA12 */
  882. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  883. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  884. /* MULTIMEDIA13 */
  885. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  886. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  887. /* MULTIMEDIA14 */
  888. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  889. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  890. /* MULTIMEDIA15 */
  891. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  892. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  893. /* MULTIMEDIA16 */
  894. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  895. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  896. /* MULTIMEDIA17 */
  897. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  898. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  899. /* MULTIMEDIA18 */
  900. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  901. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  902. /* MULTIMEDIA19 */
  903. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  904. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  905. /* MULTIMEDIA20 */
  906. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  907. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  908. /* MULTIMEDIA21 */
  909. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  910. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  911. /* MULTIMEDIA22 */
  912. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  913. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  914. /* MULTIMEDIA23 */
  915. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  916. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  917. /* MULTIMEDIA24 */
  918. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  919. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  920. /* MULTIMEDIA25 */
  921. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  922. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  923. /* MULTIMEDIA26 */
  924. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  925. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  926. /* MULTIMEDIA27 */
  927. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  928. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  929. /* MULTIMEDIA28 */
  930. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  931. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  932. /* MULTIMEDIA29 */
  933. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  934. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  935. /* MULTIMEDIA30 */
  936. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  937. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  938. /* VOIP */
  939. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  940. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  941. /* AFE_RX */
  942. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  943. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  944. /* AFE_TX */
  945. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  946. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  947. /* VOICE_STUB */
  948. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  949. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  950. /* DTMF_RX */
  951. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  952. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  953. /* QCHAT */
  954. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  955. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  956. /* VOLTE_STUB */
  957. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  958. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  959. /* LSM1 */
  960. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  961. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  962. /* LSM2 */
  963. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  964. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  965. /* LSM3 */
  966. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  967. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  968. /* LSM4 */
  969. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  970. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  971. /* LSM5 */
  972. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  973. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  974. /* LSM6 */
  975. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  976. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  977. /* LSM7 */
  978. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  979. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  980. /* LSM8 */
  981. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  982. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  983. /* VOICE2_STUB */
  984. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  985. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  986. /* VOICEMMODE1 */
  987. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  988. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  989. /* VOICEMMODE2 */
  990. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  991. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  992. };
  993. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  994. [MSM_BACKEND_DAI_MAX];
  995. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  996. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  997. static struct msm_pcm_stream_app_type_cfg
  998. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  999. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  1000. /* The caller of this should acquire routing lock */
  1001. void msm_pcm_routing_get_bedai_info(int be_idx,
  1002. struct msm_pcm_routing_bdai_data *be_dai)
  1003. {
  1004. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  1005. memcpy(be_dai, &msm_bedais[be_idx],
  1006. sizeof(struct msm_pcm_routing_bdai_data));
  1007. }
  1008. /* The caller of this should acquire routing lock */
  1009. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  1010. struct msm_pcm_routing_fdai_data *fe_dai)
  1011. {
  1012. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  1013. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  1014. sizeof(struct msm_pcm_routing_fdai_data));
  1015. }
  1016. void msm_pcm_routing_acquire_lock(void)
  1017. {
  1018. mutex_lock(&routing_lock);
  1019. }
  1020. void msm_pcm_routing_release_lock(void)
  1021. {
  1022. mutex_unlock(&routing_lock);
  1023. }
  1024. static int msm_pcm_routing_get_app_type_idx(int app_type)
  1025. {
  1026. int idx;
  1027. pr_debug("%s: app_type: %d\n", __func__, app_type);
  1028. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  1029. if (app_type_cfg[idx].app_type == app_type)
  1030. return idx;
  1031. }
  1032. pr_info("%s: App type not available, fallback to default\n", __func__);
  1033. return 0;
  1034. }
  1035. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  1036. {
  1037. int idx;
  1038. pr_debug("%s: app_type: %d\n", __func__, app_type);
  1039. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  1040. if (lsm_app_type_cfg[idx].app_type == app_type)
  1041. return idx;
  1042. }
  1043. pr_debug("%s: App type not available, fallback to default\n", __func__);
  1044. return 0;
  1045. }
  1046. static int get_port_id(int port_id)
  1047. {
  1048. int ret = port_id;
  1049. if (port_id == AFE_LOOPBACK_TX) {
  1050. /*
  1051. * Return afe_loopback_tx_port_id if set. Else return
  1052. * msm_ec_ref_port_id to maintain backward compatibility.
  1053. */
  1054. if (afe_loopback_tx_port_id != -1)
  1055. ret = afe_loopback_tx_port_id;
  1056. else
  1057. ret = msm_ec_ref_port_id;
  1058. }
  1059. return ret;
  1060. }
  1061. static bool is_mm_lsm_fe_id(int fe_id)
  1062. {
  1063. bool rc = true;
  1064. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  1065. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  1066. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  1067. rc = false;
  1068. }
  1069. return rc;
  1070. }
  1071. /*
  1072. * msm_pcm_routing_send_chmix_cfg:
  1073. * send the channel mixer command to mix the input channels
  1074. * into output channels.
  1075. *
  1076. * @fe_id: front end id
  1077. * @ip_channel_cnt: input channel count
  1078. * @op_channel_cnt: output channel count
  1079. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  1080. * @session_type: indicates session is of type TX or RX
  1081. * @stream_type: indicates either Audio or Listen stream type
  1082. */
  1083. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  1084. int op_channel_cnt, int *ch_wght_coeff,
  1085. int session_type, int stream_type)
  1086. {
  1087. int rc = 0, idx = 0;
  1088. int be_index = 0, port_id;
  1089. unsigned int session_id = 0;
  1090. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  1091. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  1092. stream_type);
  1093. if (!is_mm_lsm_fe_id(fe_id)) {
  1094. /* bad ID assigned in machine driver */
  1095. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1096. return -EINVAL;
  1097. }
  1098. if (ch_wght_coeff == NULL) {
  1099. pr_err("%s: Null channel weightage coefficients passed\n",
  1100. __func__);
  1101. return -EINVAL;
  1102. }
  1103. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  1104. port_id = msm_bedais[be_index].port_id;
  1105. if (!msm_bedais[be_index].active ||
  1106. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  1107. continue;
  1108. session_id = fe_dai_map[fe_id][session_type].strm_id;
  1109. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  1110. unsigned long copp =
  1111. session_copp_map[fe_id][session_type][be_index];
  1112. if (!test_bit(idx, &copp))
  1113. continue;
  1114. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  1115. session_id, ip_channel_cnt,
  1116. op_channel_cnt, ch_wght_coeff,
  1117. session_type, stream_type);
  1118. if (rc < 0)
  1119. pr_err("%s: err setting channel mix config\n",
  1120. __func__);
  1121. }
  1122. }
  1123. return 0;
  1124. }
  1125. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  1126. /**
  1127. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  1128. * setting before use case start.
  1129. *
  1130. * @fe_id: frontend idx
  1131. * @type: stream direction type
  1132. * @params: parameters of channel mixer setting
  1133. *
  1134. * Return 0 for success
  1135. */
  1136. int msm_pcm_routing_set_channel_mixer_cfg(
  1137. int fe_id, int type,
  1138. struct msm_pcm_channel_mixer *params)
  1139. {
  1140. int i, j = 0;
  1141. channel_mixer_v2[fe_id][type].enable = params->enable;
  1142. channel_mixer_v2[fe_id][type].rule = params->rule;
  1143. channel_mixer_v2[fe_id][type].input_channel =
  1144. params->input_channel;
  1145. channel_mixer_v2[fe_id][type].output_channel =
  1146. params->output_channel;
  1147. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  1148. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  1149. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  1150. params->in_ch_map[i];
  1151. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  1152. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  1153. params->out_ch_map[i];
  1154. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  1155. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  1156. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  1157. params->channel_weight[i][j];
  1158. channel_mixer_v2[fe_id][type].override_in_ch_map =
  1159. params->override_in_ch_map;
  1160. channel_mixer_v2[fe_id][type].override_out_ch_map =
  1161. params->override_out_ch_map;
  1162. return 0;
  1163. }
  1164. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  1165. int msm_pcm_routing_reg_stream_app_type_cfg(
  1166. int fedai_id, int session_type, int be_id,
  1167. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1168. {
  1169. int ret = 0;
  1170. if (cfg_data == NULL) {
  1171. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  1172. ret = -EINVAL;
  1173. goto done;
  1174. }
  1175. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1176. __func__, fedai_id, session_type, be_id,
  1177. cfg_data->app_type, cfg_data->acdb_dev_id,
  1178. cfg_data->sample_rate);
  1179. if (!is_mm_lsm_fe_id(fedai_id)) {
  1180. pr_err("%s: Invalid machine driver ID %d\n",
  1181. __func__, fedai_id);
  1182. ret = -EINVAL;
  1183. goto done;
  1184. }
  1185. if (session_type != SESSION_TYPE_RX &&
  1186. session_type != SESSION_TYPE_TX) {
  1187. pr_err("%s: Invalid session type %d\n",
  1188. __func__, session_type);
  1189. ret = -EINVAL;
  1190. goto done;
  1191. }
  1192. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1193. pr_err("%s: Received out of bounds be_id %d\n",
  1194. __func__, be_id);
  1195. ret = -EINVAL;
  1196. goto done;
  1197. }
  1198. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1199. /*
  1200. * Store the BE ID of the configuration information set as the latest so
  1201. * the get mixer control knows what to return.
  1202. */
  1203. last_be_id_configured[fedai_id][session_type] = be_id;
  1204. done:
  1205. return ret;
  1206. }
  1207. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1208. /**
  1209. * msm_pcm_routing_get_stream_app_type_cfg
  1210. *
  1211. * Receives fedai_id, session_type, be_id, and populates app_type,
  1212. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1213. * -EINVAL and does not alter passed values.
  1214. *
  1215. * fedai_id - Passed value, front end ID for which app type config is wanted
  1216. * session_type - Passed value, session type for which app type config
  1217. * is wanted
  1218. * be_id - Returned value, back end device id the app type config data is for
  1219. * cfg_data - Returned value, configuration data used by app type config
  1220. */
  1221. int msm_pcm_routing_get_stream_app_type_cfg(
  1222. int fedai_id, int session_type, int *bedai_id,
  1223. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1224. {
  1225. int be_id;
  1226. int ret = 0;
  1227. if (bedai_id == NULL) {
  1228. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1229. ret = -EINVAL;
  1230. goto done;
  1231. } else if (cfg_data == NULL) {
  1232. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1233. ret = -EINVAL;
  1234. goto done;
  1235. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1236. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1237. ret = -EINVAL;
  1238. goto done;
  1239. } else if (session_type != SESSION_TYPE_RX &&
  1240. session_type != SESSION_TYPE_TX) {
  1241. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1242. ret = -EINVAL;
  1243. goto done;
  1244. }
  1245. be_id = last_be_id_configured[fedai_id][session_type];
  1246. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1247. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1248. ret = -EINVAL;
  1249. goto done;
  1250. }
  1251. *bedai_id = be_id;
  1252. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1253. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1254. __func__, fedai_id, session_type, *bedai_id,
  1255. cfg_data->app_type, cfg_data->acdb_dev_id,
  1256. cfg_data->sample_rate);
  1257. done:
  1258. return ret;
  1259. }
  1260. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1261. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1262. int cal_index)
  1263. {
  1264. struct list_head *ptr, *next;
  1265. struct cal_block_data *cal_block = NULL;
  1266. pr_debug("%s\n", __func__);
  1267. list_for_each_safe(ptr, next,
  1268. &cal_data[cal_index]->cal_blocks) {
  1269. cal_block = list_entry(ptr,
  1270. struct cal_block_data, list);
  1271. if (cal_utils_is_cal_stale(cal_block))
  1272. continue;
  1273. if (((struct audio_cal_info_adm_top *)cal_block
  1274. ->cal_info)->path == path) {
  1275. return cal_block;
  1276. }
  1277. }
  1278. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1279. return NULL;
  1280. }
  1281. static struct cal_block_data *msm_routing_find_topology(int path,
  1282. int app_type,
  1283. int acdb_id,
  1284. int cal_index,
  1285. bool exact)
  1286. {
  1287. struct list_head *ptr, *next;
  1288. struct cal_block_data *cal_block = NULL;
  1289. struct audio_cal_info_adm_top *cal_info;
  1290. pr_debug("%s\n", __func__);
  1291. list_for_each_safe(ptr, next,
  1292. &cal_data[cal_index]->cal_blocks) {
  1293. cal_block = list_entry(ptr,
  1294. struct cal_block_data, list);
  1295. if (cal_utils_is_cal_stale(cal_block))
  1296. continue;
  1297. cal_info = (struct audio_cal_info_adm_top *)
  1298. cal_block->cal_info;
  1299. if ((cal_info->path == path) &&
  1300. (cal_info->app_type == app_type) &&
  1301. (cal_info->acdb_id == acdb_id)) {
  1302. return cal_block;
  1303. }
  1304. }
  1305. pr_debug("%s: Can't find topology for path %d, app %d, "
  1306. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1307. exact ? "fail" : "defaulting to search by path");
  1308. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1309. cal_index);
  1310. }
  1311. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1312. int acdb_dev_id, int idx,
  1313. bool exact)
  1314. {
  1315. int topology = -EINVAL;
  1316. struct cal_block_data *cal_block = NULL;
  1317. mutex_lock(&cal_data[idx]->lock);
  1318. cal_block = msm_routing_find_topology(session_type, app_type,
  1319. acdb_dev_id, idx, exact);
  1320. if (cal_block != NULL) {
  1321. topology = ((struct audio_cal_info_adm_top *)
  1322. cal_block->cal_info)->topology;
  1323. }
  1324. mutex_unlock(&cal_data[idx]->lock);
  1325. return topology;
  1326. }
  1327. /*
  1328. * Retrieving cal_block will mark cal_block as stale.
  1329. * Hence it cannot be reused or resent unless the flag
  1330. * is reset.
  1331. */
  1332. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1333. int be_id)
  1334. {
  1335. int topology = NULL_COPP_TOPOLOGY;
  1336. int app_type = 0, acdb_dev_id = 0;
  1337. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1338. __func__, fedai_id, session_type, be_id);
  1339. if (cal_data == NULL)
  1340. goto done;
  1341. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1342. acdb_dev_id =
  1343. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1344. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1345. topology = msm_routing_find_topology_on_index(session_type,
  1346. app_type,
  1347. acdb_dev_id,
  1348. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1349. true /*exact*/);
  1350. if (topology < 0) {
  1351. pr_debug("%s: Check for compatible topology\n", __func__);
  1352. topology = msm_routing_find_topology_on_index(session_type,
  1353. app_type,
  1354. acdb_dev_id,
  1355. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1356. false /*exact*/);
  1357. if (topology < 0)
  1358. topology = NULL_COPP_TOPOLOGY;
  1359. }
  1360. done:
  1361. pr_debug("%s: Using topology %d\n", __func__, topology);
  1362. return topology;
  1363. }
  1364. static uint8_t is_be_dai_extproc(int be_dai)
  1365. {
  1366. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1367. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1368. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1369. return 1;
  1370. else
  1371. return 0;
  1372. }
  1373. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1374. int path_type, int perf_mode,
  1375. uint32_t passthr_mode)
  1376. {
  1377. int i, port_type, j, num_copps = 0;
  1378. struct route_payload payload;
  1379. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1380. path_type == ADM_PATH_COMPRESSED_RX) ?
  1381. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1382. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1383. if (!is_be_dai_extproc(i) &&
  1384. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1385. (msm_bedais[i].active) &&
  1386. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1387. int port_id = get_port_id(msm_bedais[i].port_id);
  1388. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1389. unsigned long copp =
  1390. session_copp_map[fedai_id][sess_type][i];
  1391. if (test_bit(j, &copp)) {
  1392. payload.port_id[num_copps] = port_id;
  1393. payload.copp_idx[num_copps] = j;
  1394. payload.app_type[num_copps] =
  1395. fe_dai_app_type_cfg
  1396. [fedai_id][sess_type][i]
  1397. .app_type;
  1398. payload.acdb_dev_id[num_copps] =
  1399. fe_dai_app_type_cfg
  1400. [fedai_id][sess_type][i]
  1401. .acdb_dev_id;
  1402. payload.sample_rate[num_copps] =
  1403. fe_dai_app_type_cfg
  1404. [fedai_id][sess_type][i]
  1405. .sample_rate;
  1406. num_copps++;
  1407. }
  1408. }
  1409. }
  1410. }
  1411. if (num_copps) {
  1412. payload.num_copps = num_copps;
  1413. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1414. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1415. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1416. }
  1417. }
  1418. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1419. int stream_type)
  1420. {
  1421. int i, session_type, path_type, port_type;
  1422. u32 mode = 0;
  1423. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1424. /* bad ID assigned in machine driver */
  1425. pr_err("%s: bad MM ID\n", __func__);
  1426. return;
  1427. }
  1428. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1429. session_type = SESSION_TYPE_RX;
  1430. path_type = ADM_PATH_PLAYBACK;
  1431. port_type = MSM_AFE_PORT_TYPE_RX;
  1432. } else {
  1433. session_type = SESSION_TYPE_TX;
  1434. path_type = ADM_PATH_LIVE_REC;
  1435. port_type = MSM_AFE_PORT_TYPE_TX;
  1436. }
  1437. mutex_lock(&routing_lock);
  1438. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1439. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1440. if (!is_be_dai_extproc(i) &&
  1441. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1442. (msm_bedais[i].active) &&
  1443. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1444. mode = afe_get_port_type(msm_bedais[i].port_id);
  1445. adm_connect_afe_port(mode, dspst_id,
  1446. msm_bedais[i].port_id);
  1447. break;
  1448. }
  1449. }
  1450. mutex_unlock(&routing_lock);
  1451. }
  1452. static bool route_check_fe_id_adm_support(int fe_id)
  1453. {
  1454. bool rc = true;
  1455. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1456. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1457. /* fe id is listen while port is set to afe */
  1458. if (lsm_port_index[fe_id - MSM_FRONTEND_DAI_LSM1] !=
  1459. ADM_LSM_PORT_INDEX) {
  1460. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1461. __func__, fe_id,
  1462. lsm_port_index[fe_id - MSM_FRONTEND_DAI_LSM1]);
  1463. rc = false;
  1464. }
  1465. }
  1466. return rc;
  1467. }
  1468. /*
  1469. * msm_pcm_routing_get_pp_ch_cnt:
  1470. * Read the processed channel count
  1471. *
  1472. * @fe_id: Front end ID
  1473. * @session_type: Inidicates RX or TX session type
  1474. */
  1475. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1476. {
  1477. struct msm_pcm_stream_app_type_cfg cfg_data;
  1478. int be_id = 0, app_type_idx = 0, app_type = 0;
  1479. int ret = -EINVAL;
  1480. memset(&cfg_data, 0, sizeof(cfg_data));
  1481. if (!is_mm_lsm_fe_id(fe_id)) {
  1482. pr_err("%s: bad MM ID\n", __func__);
  1483. return -EINVAL;
  1484. }
  1485. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1486. &be_id, &cfg_data);
  1487. if (ret) {
  1488. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1489. return ret;
  1490. }
  1491. app_type = cfg_data.app_type;
  1492. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1493. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1494. }
  1495. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1496. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1497. int dspst_id, int stream_type,
  1498. uint32_t passthr_mode)
  1499. {
  1500. int i, j, session_type, path_type, port_type, topology;
  1501. int num_copps = 0;
  1502. struct route_payload payload;
  1503. u32 channels, sample_rate;
  1504. u16 bit_width = 16, be_bit_width;
  1505. bool is_lsm;
  1506. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1507. __func__, fe_id, perf_mode, dspst_id,
  1508. stream_type, passthr_mode);
  1509. if (!is_mm_lsm_fe_id(fe_id)) {
  1510. /* bad ID assigned in machine driver */
  1511. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1512. return -EINVAL;
  1513. }
  1514. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1515. session_type = SESSION_TYPE_RX;
  1516. if (passthr_mode != LEGACY_PCM)
  1517. path_type = ADM_PATH_COMPRESSED_RX;
  1518. else
  1519. path_type = ADM_PATH_PLAYBACK;
  1520. port_type = MSM_AFE_PORT_TYPE_RX;
  1521. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1522. session_type = SESSION_TYPE_TX;
  1523. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1524. path_type = ADM_PATH_COMPRESSED_TX;
  1525. else
  1526. path_type = ADM_PATH_LIVE_REC;
  1527. port_type = MSM_AFE_PORT_TYPE_TX;
  1528. } else {
  1529. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1530. return -EINVAL;
  1531. }
  1532. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1533. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1534. mutex_lock(&routing_lock);
  1535. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1536. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1537. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1538. if (!route_check_fe_id_adm_support(fe_id)) {
  1539. /* ignore adm open if not supported for fe_id */
  1540. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1541. mutex_unlock(&routing_lock);
  1542. return 0;
  1543. }
  1544. payload.num_copps = 0; /* only RX needs to use payload */
  1545. /* re-enable EQ if active */
  1546. msm_qti_pp_send_eq_values(fe_id);
  1547. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1548. if (!is_be_dai_extproc(i) &&
  1549. (afe_get_port_type(msm_bedais[i].port_id) ==
  1550. port_type) &&
  1551. (msm_bedais[i].active) &&
  1552. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1553. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1554. int port_id = get_port_id(msm_bedais[i].port_id);
  1555. /*
  1556. * check if ADM needs to be configured with different
  1557. * channel mapping than backend
  1558. */
  1559. if (!msm_bedais[i].adm_override_ch)
  1560. channels = msm_bedais[i].channel;
  1561. else
  1562. channels = msm_bedais[i].adm_override_ch;
  1563. bit_width = msm_routing_get_bit_width(
  1564. msm_bedais[i].format);
  1565. app_type =
  1566. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1567. if (app_type && is_lsm) {
  1568. app_type_idx =
  1569. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1570. sample_rate =
  1571. fe_dai_app_type_cfg[fe_id][session_type][i]
  1572. .sample_rate;
  1573. bit_width =
  1574. lsm_app_type_cfg[app_type_idx].bit_width;
  1575. } else if (app_type) {
  1576. app_type_idx =
  1577. msm_pcm_routing_get_app_type_idx(
  1578. app_type);
  1579. sample_rate =
  1580. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1581. bit_width =
  1582. app_type_cfg[app_type_idx].bit_width;
  1583. } else {
  1584. sample_rate = msm_bedais[i].sample_rate;
  1585. }
  1586. acdb_dev_id =
  1587. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1588. topology = msm_routing_get_adm_topology(fe_id,
  1589. session_type,
  1590. i);
  1591. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1592. || (passthr_mode ==
  1593. COMPRESSED_PASSTHROUGH_GEN)
  1594. || (passthr_mode ==
  1595. COMPRESSED_PASSTHROUGH_IEC61937))
  1596. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1597. pr_debug("%s: Before adm open topology %d\n", __func__,
  1598. topology);
  1599. be_bit_width = msm_routing_get_bit_width(
  1600. msm_bedais[i].format);
  1601. if (hifi_filter_enabled && (msm_bedais[i].sample_rate
  1602. == 384000 || msm_bedais[i].sample_rate ==
  1603. 352800) && be_bit_width == 32)
  1604. bit_width = msm_routing_get_bit_width(
  1605. SNDRV_PCM_FORMAT_S32_LE);
  1606. copp_idx =
  1607. adm_open(port_id, path_type, sample_rate,
  1608. channels, topology, perf_mode,
  1609. bit_width, app_type, acdb_dev_id,
  1610. session_type, passthr_mode);
  1611. if ((copp_idx < 0) ||
  1612. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1613. pr_err("%s:adm open failed coppid:%d\n",
  1614. __func__, copp_idx);
  1615. mutex_unlock(&routing_lock);
  1616. return -EINVAL;
  1617. }
  1618. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1619. __func__, fe_id, session_type, i);
  1620. set_bit(copp_idx,
  1621. &session_copp_map[fe_id][session_type][i]);
  1622. if (msm_is_resample_needed(
  1623. sample_rate,
  1624. msm_bedais[i].sample_rate))
  1625. adm_copp_mfc_cfg(port_id, copp_idx,
  1626. msm_bedais[i].sample_rate);
  1627. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1628. unsigned long copp =
  1629. session_copp_map[fe_id][session_type][i];
  1630. if (test_bit(j, &copp)) {
  1631. payload.port_id[num_copps] = port_id;
  1632. payload.copp_idx[num_copps] = j;
  1633. payload.app_type[num_copps] =
  1634. fe_dai_app_type_cfg
  1635. [fe_id][session_type][i]
  1636. .app_type;
  1637. payload.acdb_dev_id[num_copps] =
  1638. fe_dai_app_type_cfg
  1639. [fe_id][session_type][i]
  1640. .acdb_dev_id;
  1641. payload.sample_rate[num_copps] =
  1642. fe_dai_app_type_cfg
  1643. [fe_id][session_type][i]
  1644. .sample_rate;
  1645. num_copps++;
  1646. }
  1647. }
  1648. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1649. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1650. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1651. msm_routing_send_device_pp_params(port_id,
  1652. copp_idx, fe_id);
  1653. }
  1654. }
  1655. if (num_copps) {
  1656. payload.num_copps = num_copps;
  1657. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1658. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1659. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1660. }
  1661. mutex_unlock(&routing_lock);
  1662. return 0;
  1663. }
  1664. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1665. {
  1666. u32 session_id;
  1667. switch (val) {
  1668. case MSM_FRONTEND_DAI_QCHAT:
  1669. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1670. break;
  1671. case MSM_FRONTEND_DAI_VOIP:
  1672. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1673. break;
  1674. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1675. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1676. break;
  1677. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1678. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1679. break;
  1680. default:
  1681. session_id = 0;
  1682. }
  1683. pr_debug("%s session_id 0x%x", __func__, session_id);
  1684. return session_id;
  1685. }
  1686. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1687. int dspst_id, int stream_type)
  1688. {
  1689. int copp_idx = 0;
  1690. int sess_type = 0;
  1691. int j = 0, be_id = 0;
  1692. int ret = 0;
  1693. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1694. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1695. return 0;
  1696. }
  1697. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1698. sess_type = SESSION_TYPE_RX;
  1699. else
  1700. sess_type = SESSION_TYPE_TX;
  1701. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1702. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1703. __func__, fe_id, sess_type);
  1704. return 0;
  1705. }
  1706. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1707. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1708. channel_mixer_v2[fe_id][sess_type].input_channel;
  1709. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1710. __func__, sess_type, fe_id,
  1711. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1712. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1713. msm_bedais[be_id].active);
  1714. if ((msm_bedais[be_id].active) &&
  1715. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1716. unsigned long copp =
  1717. session_copp_map[fe_id][sess_type][be_id];
  1718. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1719. if (test_bit(j, &copp)) {
  1720. copp_idx = j;
  1721. break;
  1722. }
  1723. }
  1724. ret = adm_programable_channel_mixer(
  1725. msm_bedais[be_id].port_id,
  1726. copp_idx, dspst_id, sess_type,
  1727. &channel_mixer_v2[fe_id][sess_type], 0);
  1728. }
  1729. return ret;
  1730. }
  1731. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1732. int dspst_id, int stream_type)
  1733. {
  1734. int copp_idx = 0;
  1735. int sess_type = 0;
  1736. int i = 0, j = 0, be_id;
  1737. int ret = 0;
  1738. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1739. dspst_id, stream_type);
  1740. if (ret) {
  1741. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1742. fe_id);
  1743. return ret;
  1744. }
  1745. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1746. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1747. return 0;
  1748. }
  1749. if (!(channel_mixer[fe_id].enable)) {
  1750. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1751. __func__, fe_id);
  1752. return 0;
  1753. }
  1754. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1755. sess_type = SESSION_TYPE_RX;
  1756. else
  1757. sess_type = SESSION_TYPE_TX;
  1758. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1759. ++i) {
  1760. be_id = channel_input[fe_id][i] - 1;
  1761. channel_mixer[fe_id].input_channels[i] =
  1762. msm_bedais[be_id].channel;
  1763. if ((msm_bedais[be_id].active) &&
  1764. test_bit(fe_id,
  1765. &msm_bedais[be_id].fe_sessions[0])) {
  1766. unsigned long copp =
  1767. session_copp_map[fe_id][sess_type][be_id];
  1768. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1769. if (test_bit(j, &copp)) {
  1770. copp_idx = j;
  1771. break;
  1772. }
  1773. }
  1774. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1775. __func__,
  1776. fe_id, be_id, msm_bedais[be_id].channel,
  1777. copp_idx);
  1778. ret = adm_programable_channel_mixer(
  1779. get_port_id(msm_bedais[be_id].port_id),
  1780. copp_idx, dspst_id, sess_type,
  1781. channel_mixer + fe_id, i);
  1782. }
  1783. }
  1784. return ret;
  1785. }
  1786. /**
  1787. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1788. * setting during runtime.
  1789. *
  1790. * @be_id: backend index
  1791. * @session_id: session index
  1792. * @session_type: session type
  1793. * @params: parameters for channel mixer
  1794. *
  1795. * Retuen: 0 for success, else error
  1796. */
  1797. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1798. int session_type,
  1799. struct msm_pcm_channel_mixer *params)
  1800. {
  1801. int rc = 0;
  1802. int port_id, copp_idx = 0;
  1803. be_id--;
  1804. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1805. pr_err("%s: invalid backend id %d\n", __func__,
  1806. be_id);
  1807. return -EINVAL;
  1808. }
  1809. port_id = msm_bedais[be_id].port_id;
  1810. copp_idx = adm_get_default_copp_idx(port_id);
  1811. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1812. __func__, port_id, copp_idx, session_id);
  1813. if ((params->input_channel < 0) ||
  1814. (params->input_channel > ADM_MAX_CHANNELS)) {
  1815. pr_err("%s: invalid input channel %d\n", __func__,
  1816. params->input_channel);
  1817. return -EINVAL;
  1818. }
  1819. if ((params->output_channel < 0) ||
  1820. (params->output_channel > ADM_MAX_CHANNELS)) {
  1821. pr_err("%s: invalid output channel %d\n", __func__,
  1822. params->output_channel);
  1823. return -EINVAL;
  1824. }
  1825. params->input_channels[0] = params->input_channel;
  1826. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1827. __func__, session_type,
  1828. params->override_in_ch_map,
  1829. params->override_out_ch_map,
  1830. msm_bedais[be_id].active);
  1831. rc = adm_programable_channel_mixer(port_id,
  1832. copp_idx,
  1833. session_id,
  1834. session_type,
  1835. params,
  1836. 0);
  1837. if (rc) {
  1838. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1839. rc = -EINVAL;
  1840. }
  1841. return rc;
  1842. }
  1843. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1844. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1845. int dspst_id, int stream_type)
  1846. {
  1847. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1848. struct route_payload payload;
  1849. u32 channels, sample_rate;
  1850. uint16_t bits_per_sample = 16, be_bit_width;
  1851. uint32_t passthr_mode = LEGACY_PCM;
  1852. int ret = 0;
  1853. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1854. /* bad ID assigned in machine driver */
  1855. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1856. return -EINVAL;
  1857. }
  1858. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1859. session_type = SESSION_TYPE_RX;
  1860. path_type = ADM_PATH_PLAYBACK;
  1861. port_type = MSM_AFE_PORT_TYPE_RX;
  1862. } else {
  1863. session_type = SESSION_TYPE_TX;
  1864. path_type = ADM_PATH_LIVE_REC;
  1865. port_type = MSM_AFE_PORT_TYPE_TX;
  1866. }
  1867. mutex_lock(&routing_lock);
  1868. payload.num_copps = 0; /* only RX needs to use payload */
  1869. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1870. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1871. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1872. /* re-enable EQ if active */
  1873. msm_qti_pp_send_eq_values(fedai_id);
  1874. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1875. if (!is_be_dai_extproc(i) &&
  1876. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1877. (msm_bedais[i].active) &&
  1878. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1879. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1880. int port_id = get_port_id(msm_bedais[i].port_id);
  1881. /*
  1882. * check if ADM needs to be configured with different
  1883. * channel mapping than backend
  1884. */
  1885. if (!msm_bedais[i].adm_override_ch)
  1886. channels = msm_bedais[i].channel;
  1887. else
  1888. channels = msm_bedais[i].adm_override_ch;
  1889. bits_per_sample = msm_routing_get_bit_width(
  1890. msm_bedais[i].format);
  1891. app_type =
  1892. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1893. if (app_type) {
  1894. app_type_idx =
  1895. msm_pcm_routing_get_app_type_idx(app_type);
  1896. sample_rate =
  1897. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1898. .sample_rate;
  1899. bits_per_sample =
  1900. app_type_cfg[app_type_idx].bit_width;
  1901. } else
  1902. sample_rate = msm_bedais[i].sample_rate;
  1903. acdb_dev_id =
  1904. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1905. .acdb_dev_id;
  1906. topology = msm_routing_get_adm_topology(fedai_id,
  1907. session_type,
  1908. i);
  1909. be_bit_width = msm_routing_get_bit_width(
  1910. msm_bedais[i].format);
  1911. if (hifi_filter_enabled && (msm_bedais[i].sample_rate ==
  1912. 384000 ||msm_bedais[i].sample_rate == 352800)
  1913. && be_bit_width == 32)
  1914. bits_per_sample = msm_routing_get_bit_width(
  1915. SNDRV_PCM_FORMAT_S32_LE);
  1916. copp_idx = adm_open(port_id, path_type,
  1917. sample_rate, channels, topology,
  1918. perf_mode, bits_per_sample,
  1919. app_type, acdb_dev_id,
  1920. session_type, passthr_mode);
  1921. if ((copp_idx < 0) ||
  1922. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1923. pr_err("%s: adm open failed copp_idx:%d\n",
  1924. __func__, copp_idx);
  1925. mutex_unlock(&routing_lock);
  1926. return -EINVAL;
  1927. }
  1928. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1929. __func__, fedai_id, session_type, i);
  1930. set_bit(copp_idx,
  1931. &session_copp_map[fedai_id][session_type][i]);
  1932. if (msm_is_resample_needed(
  1933. sample_rate,
  1934. msm_bedais[i].sample_rate))
  1935. adm_copp_mfc_cfg(port_id, copp_idx,
  1936. msm_bedais[i].sample_rate);
  1937. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1938. unsigned long copp =
  1939. session_copp_map[fedai_id][session_type][i];
  1940. if (test_bit(j, &copp)) {
  1941. payload.port_id[num_copps] = port_id;
  1942. payload.copp_idx[num_copps] = j;
  1943. payload.app_type[num_copps] =
  1944. fe_dai_app_type_cfg
  1945. [fedai_id][session_type]
  1946. [i].app_type;
  1947. payload.acdb_dev_id[num_copps] =
  1948. fe_dai_app_type_cfg
  1949. [fedai_id][session_type]
  1950. [i].acdb_dev_id;
  1951. payload.sample_rate[num_copps] =
  1952. fe_dai_app_type_cfg
  1953. [fedai_id][session_type]
  1954. [i].sample_rate;
  1955. num_copps++;
  1956. }
  1957. }
  1958. if (perf_mode == LEGACY_PCM_MODE)
  1959. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1960. topology, channels);
  1961. }
  1962. }
  1963. if (num_copps) {
  1964. payload.num_copps = num_copps;
  1965. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1966. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1967. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1968. }
  1969. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1970. dspst_id, stream_type);
  1971. mutex_unlock(&routing_lock);
  1972. return ret;
  1973. }
  1974. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1975. int dspst_id, int stream_type,
  1976. struct msm_pcm_routing_evt event_info)
  1977. {
  1978. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1979. stream_type)) {
  1980. pr_err("%s: failed to reg phy stream\n", __func__);
  1981. return -EINVAL;
  1982. }
  1983. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1984. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1985. else
  1986. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1987. return 0;
  1988. }
  1989. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1990. {
  1991. int i, port_type, session_type, path_type, topology, port_id;
  1992. struct msm_pcm_routing_fdai_data *fdai;
  1993. if (!is_mm_lsm_fe_id(fedai_id)) {
  1994. /* bad ID assigned in machine driver */
  1995. pr_err("%s: bad MM ID\n", __func__);
  1996. return;
  1997. }
  1998. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1999. port_type = MSM_AFE_PORT_TYPE_RX;
  2000. session_type = SESSION_TYPE_RX;
  2001. path_type = ADM_PATH_PLAYBACK;
  2002. } else {
  2003. port_type = MSM_AFE_PORT_TYPE_TX;
  2004. session_type = SESSION_TYPE_TX;
  2005. path_type = ADM_PATH_LIVE_REC;
  2006. }
  2007. mutex_lock(&routing_lock);
  2008. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2009. if (!is_be_dai_extproc(i) &&
  2010. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  2011. (msm_bedais[i].active) &&
  2012. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  2013. int idx;
  2014. unsigned long copp =
  2015. session_copp_map[fedai_id][session_type][i];
  2016. fdai = &fe_dai_map[fedai_id][session_type];
  2017. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2018. if (test_bit(idx, &copp))
  2019. break;
  2020. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  2021. pr_debug("%s: copp idx is invalid, exiting\n",
  2022. __func__);
  2023. continue;
  2024. }
  2025. port_id = get_port_id(msm_bedais[i].port_id);
  2026. topology = adm_get_topology_for_port_copp_idx(
  2027. port_id, idx);
  2028. msm_routing_unload_topology(topology);
  2029. adm_close(port_id, fdai->perf_mode, idx);
  2030. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  2031. __func__, copp, fedai_id, session_type, i);
  2032. clear_bit(idx,
  2033. &session_copp_map[fedai_id][session_type][i]);
  2034. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2035. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2036. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2037. (fdai->passthr_mode == LEGACY_PCM))
  2038. msm_pcm_routing_deinit_pp(port_id, topology);
  2039. }
  2040. }
  2041. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  2042. fe_dai_map[fedai_id][session_type].be_srate = 0;
  2043. mutex_unlock(&routing_lock);
  2044. }
  2045. /* Check if FE/BE route is set */
  2046. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  2047. {
  2048. bool rc = false;
  2049. if (!is_mm_lsm_fe_id(fe_id)) {
  2050. /* recheck FE ID in the mixer control defined in this file */
  2051. pr_err("%s: bad MM ID\n", __func__);
  2052. return rc;
  2053. }
  2054. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  2055. rc = true;
  2056. return rc;
  2057. }
  2058. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  2059. {
  2060. int session_type, path_type, topology;
  2061. u32 channels, sample_rate;
  2062. uint16_t bits_per_sample = 16, be_bit_width;
  2063. struct msm_pcm_routing_fdai_data *fdai;
  2064. uint32_t passthr_mode;
  2065. bool is_lsm;
  2066. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2067. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2068. afe_get_port_type(msm_bedais[reg].port_id) ==
  2069. MSM_AFE_PORT_TYPE_RX) {
  2070. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2071. __func__, set, msm_bedais[reg].port_id);
  2072. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2073. } else if (!is_mm_lsm_fe_id(val)) {
  2074. /* recheck FE ID in the mixer control defined in this file */
  2075. pr_err("%s: bad MM ID\n", __func__);
  2076. return;
  2077. }
  2078. if (!route_check_fe_id_adm_support(val)) {
  2079. /* ignore adm open if not supported for fe_id */
  2080. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  2081. if (set)
  2082. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2083. else
  2084. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2085. return;
  2086. }
  2087. session_type =
  2088. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  2089. SESSION_TYPE_RX : SESSION_TYPE_TX;
  2090. fdai = &fe_dai_map[val][session_type];
  2091. passthr_mode = fdai->passthr_mode;
  2092. if (session_type == SESSION_TYPE_RX) {
  2093. if (passthr_mode != LEGACY_PCM)
  2094. path_type = ADM_PATH_COMPRESSED_RX;
  2095. else
  2096. path_type = ADM_PATH_PLAYBACK;
  2097. } else {
  2098. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  2099. path_type = ADM_PATH_COMPRESSED_TX;
  2100. else
  2101. path_type = ADM_PATH_LIVE_REC;
  2102. }
  2103. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  2104. (val <= MSM_FRONTEND_DAI_LSM8);
  2105. mutex_lock(&routing_lock);
  2106. if (set) {
  2107. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2108. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2109. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2110. voc_start_playback(set, msm_bedais[reg].port_id);
  2111. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2112. if (msm_bedais[reg].active && fdai->strm_id !=
  2113. INVALID_SESSION) {
  2114. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  2115. int port_id = get_port_id(msm_bedais[reg].port_id);
  2116. /*
  2117. * check if ADM needs to be configured with different
  2118. * channel mapping than backend
  2119. */
  2120. if (!msm_bedais[reg].adm_override_ch)
  2121. channels = msm_bedais[reg].channel;
  2122. else
  2123. channels = msm_bedais[reg].adm_override_ch;
  2124. if (session_type == SESSION_TYPE_TX &&
  2125. fdai->be_srate &&
  2126. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  2127. pr_debug("%s: flush strm %d diff BE rates\n",
  2128. __func__, fdai->strm_id);
  2129. if (fdai->event_info.event_func)
  2130. fdai->event_info.event_func(
  2131. MSM_PCM_RT_EVT_BUF_RECFG,
  2132. fdai->event_info.priv_data);
  2133. fdai->be_srate = 0; /* might not need it */
  2134. }
  2135. bits_per_sample = msm_routing_get_bit_width(
  2136. msm_bedais[reg].format);
  2137. app_type =
  2138. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  2139. if (app_type && is_lsm) {
  2140. app_type_idx =
  2141. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  2142. sample_rate =
  2143. fe_dai_app_type_cfg[val][session_type][reg]
  2144. .sample_rate;
  2145. bits_per_sample =
  2146. lsm_app_type_cfg[app_type_idx].bit_width;
  2147. } else if (app_type) {
  2148. app_type_idx =
  2149. msm_pcm_routing_get_app_type_idx(app_type);
  2150. sample_rate =
  2151. fe_dai_app_type_cfg[val][session_type][reg]
  2152. .sample_rate;
  2153. bits_per_sample =
  2154. app_type_cfg[app_type_idx].bit_width;
  2155. } else
  2156. sample_rate = msm_bedais[reg].sample_rate;
  2157. topology = msm_routing_get_adm_topology(val,
  2158. session_type,
  2159. reg);
  2160. acdb_dev_id =
  2161. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  2162. be_bit_width = msm_routing_get_bit_width(
  2163. msm_bedais[reg].format);
  2164. if (hifi_filter_enabled && (msm_bedais[reg].sample_rate
  2165. == 384000 ||msm_bedais[reg].sample_rate ==
  2166. 352800) && be_bit_width == 32)
  2167. bits_per_sample = msm_routing_get_bit_width(
  2168. SNDRV_PCM_FORMAT_S32_LE);
  2169. copp_idx = adm_open(port_id, path_type,
  2170. sample_rate, channels, topology,
  2171. fdai->perf_mode, bits_per_sample,
  2172. app_type, acdb_dev_id,
  2173. session_type, passthr_mode);
  2174. if ((copp_idx < 0) ||
  2175. (copp_idx >= MAX_COPPS_PER_PORT)) {
  2176. pr_err("%s: adm open failed\n", __func__);
  2177. mutex_unlock(&routing_lock);
  2178. return;
  2179. }
  2180. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  2181. __func__, val, session_type, reg);
  2182. set_bit(copp_idx,
  2183. &session_copp_map[val][session_type][reg]);
  2184. if (msm_is_resample_needed(
  2185. sample_rate,
  2186. msm_bedais[reg].sample_rate))
  2187. adm_copp_mfc_cfg(port_id, copp_idx,
  2188. msm_bedais[reg].sample_rate);
  2189. if (session_type == SESSION_TYPE_RX &&
  2190. fdai->event_info.event_func)
  2191. fdai->event_info.event_func(
  2192. MSM_PCM_RT_EVT_DEVSWITCH,
  2193. fdai->event_info.priv_data);
  2194. msm_pcm_routing_build_matrix(val, session_type,
  2195. path_type,
  2196. fdai->perf_mode,
  2197. passthr_mode);
  2198. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  2199. (passthr_mode == LEGACY_PCM))
  2200. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  2201. topology, channels);
  2202. }
  2203. } else {
  2204. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2205. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2206. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2207. voc_start_playback(set, msm_bedais[reg].port_id);
  2208. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2209. if (msm_bedais[reg].active && fdai->strm_id !=
  2210. INVALID_SESSION) {
  2211. int idx;
  2212. int port_id;
  2213. unsigned long copp =
  2214. session_copp_map[val][session_type][reg];
  2215. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2216. if (test_bit(idx, &copp))
  2217. break;
  2218. if (idx >= MAX_COPPS_PER_PORT) {
  2219. pr_debug("%s: copp idx is invalid, exiting\n",
  2220. __func__);
  2221. mutex_unlock(&routing_lock);
  2222. return;
  2223. }
  2224. port_id = get_port_id(msm_bedais[reg].port_id);
  2225. topology = adm_get_topology_for_port_copp_idx(port_id,
  2226. idx);
  2227. msm_routing_unload_topology(topology);
  2228. adm_close(port_id, fdai->perf_mode, idx);
  2229. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2230. __func__, copp, val, session_type, reg,
  2231. topology);
  2232. clear_bit(idx,
  2233. &session_copp_map[val][session_type][reg]);
  2234. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2235. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2236. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2237. (passthr_mode == LEGACY_PCM))
  2238. msm_pcm_routing_deinit_pp(port_id, topology);
  2239. msm_pcm_routing_build_matrix(val, session_type,
  2240. path_type,
  2241. fdai->perf_mode,
  2242. passthr_mode);
  2243. }
  2244. }
  2245. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2246. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2247. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2248. mutex_unlock(&routing_lock);
  2249. }
  2250. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2251. struct snd_ctl_elem_value *ucontrol)
  2252. {
  2253. struct soc_mixer_control *mc =
  2254. (struct soc_mixer_control *)kcontrol->private_value;
  2255. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2256. ucontrol->value.integer.value[0] = 1;
  2257. else
  2258. ucontrol->value.integer.value[0] = 0;
  2259. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2260. ucontrol->value.integer.value[0]);
  2261. return 0;
  2262. }
  2263. static int msm_routing_put_audio_mixer(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 soc_mixer_control *mc =
  2269. (struct soc_mixer_control *)kcontrol->private_value;
  2270. struct snd_soc_dapm_update *update = NULL;
  2271. if (ucontrol->value.integer.value[0] &&
  2272. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2273. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2274. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2275. update);
  2276. } else if (!ucontrol->value.integer.value[0] &&
  2277. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2278. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2279. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2280. update);
  2281. }
  2282. return 1;
  2283. }
  2284. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2285. struct snd_ctl_elem_value *ucontrol)
  2286. {
  2287. struct soc_mixer_control *mc =
  2288. (struct soc_mixer_control *)kcontrol->private_value;
  2289. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2290. ucontrol->value.integer.value[0] = 1;
  2291. else
  2292. ucontrol->value.integer.value[0] = 0;
  2293. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2294. ucontrol->value.integer.value[0]);
  2295. return 0;
  2296. }
  2297. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2298. struct snd_ctl_elem_value *ucontrol)
  2299. {
  2300. struct snd_soc_dapm_widget *widget =
  2301. snd_soc_dapm_kcontrol_widget(kcontrol);
  2302. struct soc_mixer_control *mc =
  2303. (struct soc_mixer_control *)kcontrol->private_value;
  2304. struct snd_soc_dapm_update *update = NULL;
  2305. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2306. ucontrol->value.integer.value[0]);
  2307. if (ucontrol->value.integer.value[0]) {
  2308. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2309. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2310. snd_soc_dapm_mixer_update_power(widget->dapm,
  2311. kcontrol, 1, update);
  2312. } else if (!ucontrol->value.integer.value[0]) {
  2313. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2314. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2315. snd_soc_dapm_mixer_update_power(widget->dapm,
  2316. kcontrol, 0, update);
  2317. }
  2318. return 1;
  2319. }
  2320. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2321. {
  2322. u32 session_id = 0;
  2323. u16 path_type;
  2324. struct media_format_info voc_be_media_format;
  2325. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2326. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2327. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2328. __func__, val, session_id);
  2329. mutex_lock(&routing_lock);
  2330. if (set)
  2331. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2332. else
  2333. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2334. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2335. afe_get_port_type(msm_bedais[reg].port_id) ==
  2336. MSM_AFE_PORT_TYPE_RX) {
  2337. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2338. __func__, set, msm_bedais[reg].port_id);
  2339. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2340. }
  2341. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2342. MSM_AFE_PORT_TYPE_RX)
  2343. path_type = RX_PATH;
  2344. else
  2345. path_type = TX_PATH;
  2346. if (set) {
  2347. if (msm_bedais[reg].active) {
  2348. voc_set_route_flag(session_id, path_type, 1);
  2349. memset(&voc_be_media_format, 0,
  2350. sizeof(struct media_format_info));
  2351. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2352. voc_be_media_format.num_channels =
  2353. msm_bedais[reg].channel;
  2354. voc_be_media_format.sample_rate =
  2355. msm_bedais[reg].sample_rate;
  2356. voc_be_media_format.bits_per_sample =
  2357. msm_bedais[reg].format;
  2358. /* Defaulting this to 1 for voice call usecases */
  2359. voc_be_media_format.channel_mapping[0] = 1;
  2360. voc_set_device_config(session_id, path_type,
  2361. &voc_be_media_format);
  2362. if (voc_get_route_flag(session_id, TX_PATH) &&
  2363. voc_get_route_flag(session_id, RX_PATH))
  2364. voc_enable_device(session_id);
  2365. } else {
  2366. pr_debug("%s BE is not active\n", __func__);
  2367. }
  2368. } else {
  2369. voc_set_route_flag(session_id, path_type, 0);
  2370. voc_disable_device(session_id);
  2371. }
  2372. mutex_unlock(&routing_lock);
  2373. }
  2374. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2375. struct snd_ctl_elem_value *ucontrol)
  2376. {
  2377. struct soc_mixer_control *mc =
  2378. (struct soc_mixer_control *)kcontrol->private_value;
  2379. mutex_lock(&routing_lock);
  2380. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2381. ucontrol->value.integer.value[0] = 1;
  2382. else
  2383. ucontrol->value.integer.value[0] = 0;
  2384. mutex_unlock(&routing_lock);
  2385. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2386. ucontrol->value.integer.value[0]);
  2387. return 0;
  2388. }
  2389. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2390. struct snd_ctl_elem_value *ucontrol)
  2391. {
  2392. struct snd_soc_dapm_widget *widget =
  2393. snd_soc_dapm_kcontrol_widget(kcontrol);
  2394. struct soc_mixer_control *mc =
  2395. (struct soc_mixer_control *)kcontrol->private_value;
  2396. struct snd_soc_dapm_update *update = NULL;
  2397. if (ucontrol->value.integer.value[0]) {
  2398. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2399. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2400. update);
  2401. } else {
  2402. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2403. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2404. update);
  2405. }
  2406. return 1;
  2407. }
  2408. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2409. struct snd_ctl_elem_value *ucontrol)
  2410. {
  2411. struct soc_mixer_control *mc =
  2412. (struct soc_mixer_control *)kcontrol->private_value;
  2413. mutex_lock(&routing_lock);
  2414. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2415. ucontrol->value.integer.value[0] = 1;
  2416. else
  2417. ucontrol->value.integer.value[0] = 0;
  2418. mutex_unlock(&routing_lock);
  2419. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2420. ucontrol->value.integer.value[0]);
  2421. return 0;
  2422. }
  2423. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2424. struct snd_ctl_elem_value *ucontrol)
  2425. {
  2426. struct snd_soc_dapm_widget *widget =
  2427. snd_soc_dapm_kcontrol_widget(kcontrol);
  2428. struct soc_mixer_control *mc =
  2429. (struct soc_mixer_control *)kcontrol->private_value;
  2430. struct snd_soc_dapm_update *update = NULL;
  2431. if (ucontrol->value.integer.value[0]) {
  2432. mutex_lock(&routing_lock);
  2433. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2434. mutex_unlock(&routing_lock);
  2435. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2436. update);
  2437. } else {
  2438. mutex_lock(&routing_lock);
  2439. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2440. mutex_unlock(&routing_lock);
  2441. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2442. update);
  2443. }
  2444. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2445. ucontrol->value.integer.value[0]);
  2446. return 1;
  2447. }
  2448. /*
  2449. * Return the mapping between port ID and backend ID to enable the AFE callback
  2450. * to determine the acdb_dev_id from the port id
  2451. */
  2452. int msm_pcm_get_be_id_from_port_id(int port_id)
  2453. {
  2454. int i;
  2455. int be_id = -EINVAL;
  2456. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2457. if (msm_bedais[i].port_id == port_id) {
  2458. be_id = i;
  2459. break;
  2460. }
  2461. }
  2462. return be_id;
  2463. }
  2464. /*
  2465. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2466. * correct AFE calibration information by comparing the header information.
  2467. */
  2468. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2469. {
  2470. int acdb_id = -EINVAL;
  2471. int i = 0;
  2472. int session;
  2473. int port_type = afe_get_port_type(port_id);
  2474. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2475. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2476. __func__, port_id, be_id, port_type);
  2477. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2478. session = SESSION_TYPE_TX;
  2479. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2480. session = SESSION_TYPE_RX;
  2481. } else {
  2482. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2483. acdb_id = -EINVAL;
  2484. goto exit;
  2485. }
  2486. if (be_id < 0) {
  2487. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2488. goto exit;
  2489. }
  2490. mutex_lock(&routing_lock);
  2491. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2492. MSM_FRONTEND_DAI_MAX);
  2493. if (i < MSM_FRONTEND_DAI_MAX)
  2494. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2495. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2496. __func__, i, session, be_id, acdb_id);
  2497. mutex_unlock(&routing_lock);
  2498. exit:
  2499. return acdb_id;
  2500. }
  2501. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2502. struct snd_ctl_elem_value *ucontrol)
  2503. {
  2504. ucontrol->value.integer.value[0] = fm_switch_enable;
  2505. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2506. ucontrol->value.integer.value[0]);
  2507. return 0;
  2508. }
  2509. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2510. struct snd_ctl_elem_value *ucontrol)
  2511. {
  2512. struct snd_soc_dapm_widget *widget =
  2513. snd_soc_dapm_kcontrol_widget(kcontrol);
  2514. struct snd_soc_dapm_update *update = NULL;
  2515. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2516. ucontrol->value.integer.value[0]);
  2517. if (ucontrol->value.integer.value[0])
  2518. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2519. update);
  2520. else
  2521. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2522. update);
  2523. fm_switch_enable = ucontrol->value.integer.value[0];
  2524. return 1;
  2525. }
  2526. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2527. struct snd_ctl_elem_value *ucontrol)
  2528. {
  2529. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2530. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2531. ucontrol->value.integer.value[0]);
  2532. return 0;
  2533. }
  2534. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2535. struct snd_ctl_elem_value *ucontrol)
  2536. {
  2537. struct snd_soc_dapm_widget *widget =
  2538. snd_soc_dapm_kcontrol_widget(kcontrol);
  2539. struct snd_soc_dapm_update *update = NULL;
  2540. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2541. ucontrol->value.integer.value[0]);
  2542. if (ucontrol->value.integer.value[0])
  2543. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2544. 1, update);
  2545. else
  2546. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2547. 0, update);
  2548. hfp_switch_enable = ucontrol->value.integer.value[0];
  2549. return 1;
  2550. }
  2551. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2552. struct snd_ctl_elem_value *ucontrol)
  2553. {
  2554. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2555. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2556. ucontrol->value.integer.value[0]);
  2557. return 0;
  2558. }
  2559. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2560. struct snd_ctl_elem_value *ucontrol)
  2561. {
  2562. struct snd_soc_dapm_widget *widget =
  2563. snd_soc_dapm_kcontrol_widget(kcontrol);
  2564. struct snd_soc_dapm_update *update = NULL;
  2565. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2566. ucontrol->value.integer.value[0]);
  2567. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2568. if (a2dp_switch_enable)
  2569. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2570. 1, update);
  2571. else
  2572. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2573. 0, update);
  2574. return 1;
  2575. }
  2576. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2577. struct snd_ctl_elem_value *ucontrol)
  2578. {
  2579. ucontrol->value.integer.value[0] = sco_switch_enable;
  2580. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2581. ucontrol->value.integer.value[0]);
  2582. return 0;
  2583. }
  2584. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2585. struct snd_ctl_elem_value *ucontrol)
  2586. {
  2587. struct snd_soc_dapm_widget *widget =
  2588. snd_soc_dapm_kcontrol_widget(kcontrol);
  2589. struct snd_soc_dapm_update *update = NULL;
  2590. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2591. ucontrol->value.integer.value[0]);
  2592. sco_switch_enable = ucontrol->value.integer.value[0];
  2593. if (sco_switch_enable)
  2594. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2595. 1, update);
  2596. else
  2597. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2598. 0, update);
  2599. return 1;
  2600. }
  2601. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2602. struct snd_ctl_elem_value *ucontrol)
  2603. {
  2604. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2605. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2606. ucontrol->value.integer.value[0]);
  2607. return 0;
  2608. }
  2609. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2610. struct snd_ctl_elem_value *ucontrol)
  2611. {
  2612. struct snd_soc_dapm_widget *widget =
  2613. snd_soc_dapm_kcontrol_widget(kcontrol);
  2614. struct snd_soc_dapm_update *update = NULL;
  2615. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2616. ucontrol->value.integer.value[0]);
  2617. if (ucontrol->value.integer.value[0])
  2618. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2619. update);
  2620. else
  2621. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2622. update);
  2623. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2624. return 1;
  2625. }
  2626. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2627. struct snd_ctl_elem_value *ucontrol)
  2628. {
  2629. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2630. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2631. ucontrol->value.integer.value[0]);
  2632. return 0;
  2633. }
  2634. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2635. struct snd_ctl_elem_value *ucontrol)
  2636. {
  2637. struct snd_soc_dapm_widget *widget =
  2638. snd_soc_dapm_kcontrol_widget(kcontrol);
  2639. struct snd_soc_dapm_update *update = NULL;
  2640. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2641. ucontrol->value.integer.value[0]);
  2642. if (ucontrol->value.integer.value[0])
  2643. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2644. update);
  2645. else
  2646. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2647. update);
  2648. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2649. return 1;
  2650. }
  2651. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2652. struct snd_ctl_elem_value *ucontrol)
  2653. {
  2654. ucontrol->value.integer.value[0] = usb_switch_enable;
  2655. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2656. ucontrol->value.integer.value[0]);
  2657. return 0;
  2658. }
  2659. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2660. struct snd_ctl_elem_value *ucontrol)
  2661. {
  2662. struct snd_soc_dapm_widget *widget =
  2663. snd_soc_dapm_kcontrol_widget(kcontrol);
  2664. struct snd_soc_dapm_update *update = NULL;
  2665. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2666. ucontrol->value.integer.value[0]);
  2667. if (ucontrol->value.integer.value[0])
  2668. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2669. 1, update);
  2670. else
  2671. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2672. 0, update);
  2673. usb_switch_enable = ucontrol->value.integer.value[0];
  2674. return 1;
  2675. }
  2676. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2677. struct snd_ctl_elem_value *ucontrol)
  2678. {
  2679. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2680. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2681. ucontrol->value.integer.value[0]);
  2682. return 0;
  2683. }
  2684. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2685. struct snd_ctl_elem_value *ucontrol)
  2686. {
  2687. struct snd_soc_dapm_widget *widget =
  2688. snd_soc_dapm_kcontrol_widget(kcontrol);
  2689. struct snd_soc_dapm_update *update = NULL;
  2690. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2691. ucontrol->value.integer.value[0]);
  2692. if (ucontrol->value.integer.value[0])
  2693. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2694. update);
  2695. else
  2696. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2697. update);
  2698. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2699. return 1;
  2700. }
  2701. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2702. struct snd_ctl_elem_value *ucontrol)
  2703. {
  2704. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2705. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2706. ucontrol->value.integer.value[0]);
  2707. return 0;
  2708. }
  2709. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2710. struct snd_ctl_elem_value *ucontrol)
  2711. {
  2712. struct snd_soc_dapm_widget *widget =
  2713. snd_soc_dapm_kcontrol_widget(kcontrol);
  2714. struct snd_soc_dapm_update *update = NULL;
  2715. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2716. ucontrol->value.integer.value[0]);
  2717. if (ucontrol->value.integer.value[0])
  2718. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2719. update);
  2720. else
  2721. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2722. update);
  2723. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2724. return 1;
  2725. }
  2726. static int msm_routing_get_tert_mi2s_switch_mixer(
  2727. struct snd_kcontrol *kcontrol,
  2728. struct snd_ctl_elem_value *ucontrol)
  2729. {
  2730. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2731. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2732. ucontrol->value.integer.value[0]);
  2733. return 0;
  2734. }
  2735. static int msm_routing_put_tert_mi2s_switch_mixer(
  2736. struct snd_kcontrol *kcontrol,
  2737. struct snd_ctl_elem_value *ucontrol)
  2738. {
  2739. struct snd_soc_dapm_widget *widget =
  2740. snd_soc_dapm_kcontrol_widget(kcontrol);
  2741. struct snd_soc_dapm_update *update = NULL;
  2742. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2743. ucontrol->value.integer.value[0]);
  2744. if (ucontrol->value.integer.value[0])
  2745. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2746. update);
  2747. else
  2748. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2749. update);
  2750. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2751. return 1;
  2752. }
  2753. static int msm_routing_get_quat_mi2s_switch_mixer(
  2754. struct snd_kcontrol *kcontrol,
  2755. struct snd_ctl_elem_value *ucontrol)
  2756. {
  2757. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2758. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2759. ucontrol->value.integer.value[0]);
  2760. return 0;
  2761. }
  2762. static int msm_routing_put_quat_mi2s_switch_mixer(
  2763. struct snd_kcontrol *kcontrol,
  2764. struct snd_ctl_elem_value *ucontrol)
  2765. {
  2766. struct snd_soc_dapm_widget *widget =
  2767. snd_soc_dapm_kcontrol_widget(kcontrol);
  2768. struct snd_soc_dapm_update *update = NULL;
  2769. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2770. ucontrol->value.integer.value[0]);
  2771. if (ucontrol->value.integer.value[0])
  2772. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2773. update);
  2774. else
  2775. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2776. update);
  2777. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2778. return 1;
  2779. }
  2780. static int msm_routing_get_quin_mi2s_switch_mixer(
  2781. struct snd_kcontrol *kcontrol,
  2782. struct snd_ctl_elem_value *ucontrol)
  2783. {
  2784. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2785. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2786. ucontrol->value.integer.value[0]);
  2787. return 0;
  2788. }
  2789. static int msm_routing_put_quin_mi2s_switch_mixer(
  2790. struct snd_kcontrol *kcontrol,
  2791. struct snd_ctl_elem_value *ucontrol)
  2792. {
  2793. struct snd_soc_dapm_widget *widget =
  2794. snd_soc_dapm_kcontrol_widget(kcontrol);
  2795. struct snd_soc_dapm_update *update = NULL;
  2796. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2797. ucontrol->value.integer.value[0]);
  2798. if (ucontrol->value.integer.value[0])
  2799. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2800. update);
  2801. else
  2802. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2803. update);
  2804. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2805. return 1;
  2806. }
  2807. static int msm_routing_get_sen_mi2s_switch_mixer(
  2808. struct snd_kcontrol *kcontrol,
  2809. struct snd_ctl_elem_value *ucontrol)
  2810. {
  2811. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2812. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2813. ucontrol->value.integer.value[0]);
  2814. return 0;
  2815. }
  2816. static int msm_routing_put_sen_mi2s_switch_mixer(
  2817. struct snd_kcontrol *kcontrol,
  2818. struct snd_ctl_elem_value *ucontrol)
  2819. {
  2820. struct snd_soc_dapm_widget *widget =
  2821. snd_soc_dapm_kcontrol_widget(kcontrol);
  2822. struct snd_soc_dapm_update *update = NULL;
  2823. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2824. ucontrol->value.integer.value[0]);
  2825. if (ucontrol->value.integer.value[0])
  2826. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2827. update);
  2828. else
  2829. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2830. update);
  2831. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2832. return 1;
  2833. }
  2834. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2835. struct snd_ctl_elem_value *ucontrol)
  2836. {
  2837. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2838. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2839. ucontrol->value.integer.value[0]);
  2840. return 0;
  2841. }
  2842. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2843. struct snd_ctl_elem_value *ucontrol)
  2844. {
  2845. struct snd_soc_dapm_widget *widget =
  2846. snd_soc_dapm_kcontrol_widget(kcontrol);
  2847. struct snd_soc_dapm_update *update = NULL;
  2848. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2849. ucontrol->value.integer.value[0]);
  2850. if (ucontrol->value.integer.value[0])
  2851. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2852. update);
  2853. else
  2854. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2855. update);
  2856. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2857. return 1;
  2858. }
  2859. static void msm_routing_get_lsm_fe_idx(struct snd_kcontrol *kcontrol,
  2860. u8 *fe_idx)
  2861. {
  2862. int fe_id = MSM_FRONTEND_DAI_LSM1;
  2863. if (strnstr(kcontrol->id.name, "LSM1", sizeof("LSM1"))) {
  2864. fe_id = MSM_FRONTEND_DAI_LSM1;
  2865. } else if (strnstr(kcontrol->id.name, "LSM2", sizeof("LSM2"))) {
  2866. fe_id = MSM_FRONTEND_DAI_LSM2;
  2867. } else if (strnstr(kcontrol->id.name, "LSM3", sizeof("LSM3"))) {
  2868. fe_id = MSM_FRONTEND_DAI_LSM3;
  2869. } else if (strnstr(kcontrol->id.name, "LSM4", sizeof("LSM4"))) {
  2870. fe_id = MSM_FRONTEND_DAI_LSM4;
  2871. } else if (strnstr(kcontrol->id.name, "LSM5", sizeof("LSM5"))) {
  2872. fe_id = MSM_FRONTEND_DAI_LSM5;
  2873. } else if (strnstr(kcontrol->id.name, "LSM6", sizeof("LSM6"))) {
  2874. fe_id = MSM_FRONTEND_DAI_LSM6;
  2875. } else if (strnstr(kcontrol->id.name, "LSM7", sizeof("LSM7"))) {
  2876. fe_id = MSM_FRONTEND_DAI_LSM7;
  2877. } else if (strnstr(kcontrol->id.name, "LSM8", sizeof("LSM8"))) {
  2878. fe_id = MSM_FRONTEND_DAI_LSM8;
  2879. } else {
  2880. pr_err("%s: Invalid kcontrol name:%s\n", __func__,
  2881. kcontrol->id.name);
  2882. return;
  2883. }
  2884. *fe_idx = fe_id - MSM_FRONTEND_DAI_LSM1;
  2885. pr_debug("%s: fe_id: %d, fe_idx:%d\n", __func__, fe_id, *fe_idx);
  2886. }
  2887. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2888. struct snd_ctl_elem_value *ucontrol)
  2889. {
  2890. u8 fe_idx = 0;
  2891. msm_routing_get_lsm_fe_idx(kcontrol, &fe_idx);
  2892. ucontrol->value.integer.value[0] = lsm_port_index[fe_idx];
  2893. return 0;
  2894. }
  2895. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2896. struct snd_ctl_elem_value *ucontrol)
  2897. {
  2898. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2899. int mux = ucontrol->value.enumerated.item[0];
  2900. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2901. u8 fe_idx = 0;
  2902. if (mux >= e->items) {
  2903. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2904. return -EINVAL;
  2905. }
  2906. pr_debug("%s: LSM enable %ld\n", __func__,
  2907. ucontrol->value.integer.value[0]);
  2908. switch (ucontrol->value.integer.value[0]) {
  2909. case 1:
  2910. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2911. break;
  2912. case 2:
  2913. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2914. break;
  2915. case 3:
  2916. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2917. break;
  2918. case 4:
  2919. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2920. break;
  2921. case 5:
  2922. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2923. break;
  2924. case 6:
  2925. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2926. break;
  2927. case 7:
  2928. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2929. break;
  2930. case 8:
  2931. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2932. break;
  2933. case 9:
  2934. lsm_port = ADM_LSM_PORT_ID;
  2935. break;
  2936. case 10:
  2937. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2938. break;
  2939. case 11:
  2940. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2941. break;
  2942. case 12:
  2943. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2944. break;
  2945. case 13:
  2946. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2947. break;
  2948. case 14:
  2949. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2950. break;
  2951. case 15:
  2952. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2953. break;
  2954. case 16:
  2955. lsm_port = AFE_PORT_ID_TERTIARY_TDM_TX;
  2956. break;
  2957. default:
  2958. pr_err("Default lsm port");
  2959. break;
  2960. }
  2961. set_lsm_port(lsm_port);
  2962. msm_routing_get_lsm_fe_idx(kcontrol, &fe_idx);
  2963. lsm_port_index[fe_idx] = ucontrol->value.integer.value[0];
  2964. return 0;
  2965. }
  2966. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2967. struct snd_ctl_elem_value *ucontrol)
  2968. {
  2969. int i;
  2970. u16 port_id;
  2971. enum afe_mad_type mad_type;
  2972. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2973. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2974. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2975. strlen(lsm_port_text[i])))
  2976. break;
  2977. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2978. pr_warn("%s: Invalid id name %s\n", __func__,
  2979. kcontrol->id.name);
  2980. return -EINVAL;
  2981. }
  2982. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2983. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2984. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2985. strlen(lsm_port_text[7])))
  2986. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2987. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2988. strlen(lsm_port_text[8])))
  2989. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2990. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2991. strlen(lsm_port_text[10])))
  2992. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2993. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2994. strlen(lsm_port_text[14])))
  2995. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2996. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2997. strlen(lsm_port_text[15])))
  2998. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2999. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  3000. strlen(lsm_port_text[16])))
  3001. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3002. mad_type = afe_port_get_mad_type(port_id);
  3003. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  3004. mad_type);
  3005. switch (mad_type) {
  3006. case MAD_HW_NONE:
  3007. ucontrol->value.integer.value[0] = MADNONE;
  3008. break;
  3009. case MAD_HW_AUDIO:
  3010. ucontrol->value.integer.value[0] = MADAUDIO;
  3011. break;
  3012. case MAD_HW_BEACON:
  3013. ucontrol->value.integer.value[0] = MADBEACON;
  3014. break;
  3015. case MAD_HW_ULTRASOUND:
  3016. ucontrol->value.integer.value[0] = MADULTRASOUND;
  3017. break;
  3018. case MAD_SW_AUDIO:
  3019. ucontrol->value.integer.value[0] = MADSWAUDIO;
  3020. break;
  3021. default:
  3022. pr_warn("%s: Unknown\n", __func__);
  3023. return -EINVAL;
  3024. }
  3025. return 0;
  3026. }
  3027. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  3028. struct snd_ctl_elem_value *ucontrol)
  3029. {
  3030. int i;
  3031. u16 port_id;
  3032. enum afe_mad_type mad_type;
  3033. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  3034. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  3035. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  3036. strlen(lsm_port_text[i])))
  3037. break;
  3038. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  3039. pr_warn("%s: Invalid id name %s\n", __func__,
  3040. kcontrol->id.name);
  3041. return -EINVAL;
  3042. }
  3043. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  3044. switch (ucontrol->value.integer.value[0]) {
  3045. case MADNONE:
  3046. mad_type = MAD_HW_NONE;
  3047. break;
  3048. case MADAUDIO:
  3049. mad_type = MAD_HW_AUDIO;
  3050. break;
  3051. case MADBEACON:
  3052. mad_type = MAD_HW_BEACON;
  3053. break;
  3054. case MADULTRASOUND:
  3055. mad_type = MAD_HW_ULTRASOUND;
  3056. break;
  3057. case MADSWAUDIO:
  3058. mad_type = MAD_SW_AUDIO;
  3059. break;
  3060. default:
  3061. pr_warn("%s: Unknown\n", __func__);
  3062. return -EINVAL;
  3063. }
  3064. /*Check for Tertiary/Quaternary/INT3 TX port*/
  3065. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  3066. strlen(lsm_port_text[7])))
  3067. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3068. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  3069. strlen(lsm_port_text[8])))
  3070. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3071. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  3072. strlen(lsm_port_text[10])))
  3073. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3074. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  3075. strlen(lsm_port_text[14])))
  3076. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  3077. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  3078. strlen(lsm_port_text[15])))
  3079. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  3080. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  3081. strlen(lsm_port_text[16])))
  3082. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3083. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  3084. mad_type);
  3085. return afe_port_set_mad_type(port_id, mad_type);
  3086. }
  3087. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  3088. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  3089. adm_override_chs_text);
  3090. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  3091. {
  3092. int backend_id;
  3093. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  3094. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  3095. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  3096. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  3097. } else {
  3098. pr_err("%s: unsupported backend id: %s",
  3099. __func__, kcontrol->id.name);
  3100. return -EINVAL;
  3101. }
  3102. return backend_id;
  3103. }
  3104. static int msm_routing_adm_channel_config_get(
  3105. struct snd_kcontrol *kcontrol,
  3106. struct snd_ctl_elem_value *ucontrol)
  3107. {
  3108. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  3109. if (backend_id >= 0) {
  3110. mutex_lock(&routing_lock);
  3111. ucontrol->value.integer.value[0] =
  3112. msm_bedais[backend_id].adm_override_ch;
  3113. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  3114. ucontrol->value.integer.value[0], backend_id);
  3115. mutex_unlock(&routing_lock);
  3116. }
  3117. return 0;
  3118. }
  3119. static int msm_routing_adm_channel_config_put(
  3120. struct snd_kcontrol *kcontrol,
  3121. struct snd_ctl_elem_value *ucontrol)
  3122. {
  3123. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  3124. if (backend_id >= 0) {
  3125. mutex_lock(&routing_lock);
  3126. msm_bedais[backend_id].adm_override_ch =
  3127. ucontrol->value.integer.value[0];
  3128. pr_debug("%s:updating BE :%d adm channels: %d\n",
  3129. __func__, backend_id,
  3130. msm_bedais[backend_id].adm_override_ch);
  3131. mutex_unlock(&routing_lock);
  3132. }
  3133. return 0;
  3134. }
  3135. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  3136. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  3137. msm_routing_adm_channel_config_get,
  3138. msm_routing_adm_channel_config_put),
  3139. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  3140. msm_routing_adm_channel_config_get,
  3141. msm_routing_adm_channel_config_put),
  3142. };
  3143. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  3144. struct snd_ctl_elem_value *ucontrol)
  3145. {
  3146. mutex_lock(&routing_lock);
  3147. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  3148. mutex_unlock(&routing_lock);
  3149. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  3150. ucontrol->value.integer.value[0]);
  3151. return 0;
  3152. };
  3153. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  3154. struct snd_ctl_elem_value *ucontrol)
  3155. {
  3156. struct aanc_data aanc_info;
  3157. mutex_lock(&routing_lock);
  3158. memset(&aanc_info, 0x00, sizeof(aanc_info));
  3159. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  3160. ucontrol->value.integer.value[0]);
  3161. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  3162. if (ucontrol->value.integer.value[0] == 0) {
  3163. aanc_info.aanc_active = false;
  3164. aanc_info.aanc_tx_port = 0;
  3165. aanc_info.aanc_rx_port = 0;
  3166. } else {
  3167. aanc_info.aanc_active = true;
  3168. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  3169. aanc_info.aanc_tx_port =
  3170. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  3171. }
  3172. afe_set_aanc_info(&aanc_info);
  3173. mutex_unlock(&routing_lock);
  3174. return 0;
  3175. };
  3176. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  3177. struct snd_ctl_elem_value *ucontrol)
  3178. {
  3179. int idx = 0, shift = 0;
  3180. struct soc_mixer_control *mc =
  3181. (struct soc_mixer_control *)kcontrol->private_value;
  3182. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3183. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3184. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  3185. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  3186. return -EINVAL;
  3187. }
  3188. if (test_bit(shift,
  3189. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  3190. ucontrol->value.integer.value[0] = 1;
  3191. else
  3192. ucontrol->value.integer.value[0] = 0;
  3193. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  3194. ucontrol->value.integer.value[0]);
  3195. return 0;
  3196. }
  3197. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  3198. struct snd_ctl_elem_value *ucontrol)
  3199. {
  3200. int idx = 0, shift = 0;
  3201. struct soc_mixer_control *mc =
  3202. (struct soc_mixer_control *)kcontrol->private_value;
  3203. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3204. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3205. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  3206. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  3207. return -EINVAL;
  3208. }
  3209. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  3210. __func__, mc->shift, mc->rshift,
  3211. ucontrol->value.integer.value[0], idx, shift);
  3212. if (ucontrol->value.integer.value[0]) {
  3213. afe_loopback(1, msm_bedais[mc->shift].port_id,
  3214. msm_bedais[mc->rshift].port_id);
  3215. set_bit(shift,
  3216. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3217. } else {
  3218. afe_loopback(0, msm_bedais[mc->shift].port_id,
  3219. msm_bedais[mc->rshift].port_id);
  3220. clear_bit(shift,
  3221. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3222. }
  3223. return 1;
  3224. }
  3225. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  3226. struct snd_ctl_elem_value *ucontrol)
  3227. {
  3228. u16 fe_id = 0;
  3229. fe_id = ((struct soc_mixer_control *)
  3230. kcontrol->private_value)->shift;
  3231. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3232. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3233. return -EINVAL;
  3234. }
  3235. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  3236. return 0;
  3237. }
  3238. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  3239. struct snd_ctl_elem_value *ucontrol)
  3240. {
  3241. u16 fe_id = 0;
  3242. fe_id = ((struct soc_mixer_control *)
  3243. kcontrol->private_value)->shift;
  3244. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3245. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3246. return -EINVAL;
  3247. }
  3248. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  3249. return 1;
  3250. }
  3251. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  3252. struct snd_ctl_elem_value *ucontrol)
  3253. {
  3254. u16 fe_id = 0;
  3255. fe_id = ((struct soc_multi_mixer_control *)
  3256. kcontrol->private_value)->shift;
  3257. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3258. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3259. return -EINVAL;
  3260. }
  3261. ucontrol->value.integer.value[0] =
  3262. channel_mixer[fe_id].output_channel;
  3263. return 0;
  3264. }
  3265. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3266. struct snd_ctl_elem_value *ucontrol)
  3267. {
  3268. u16 fe_id = 0;
  3269. fe_id = ((struct soc_multi_mixer_control *)
  3270. kcontrol->private_value)->shift;
  3271. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3272. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3273. return -EINVAL;
  3274. }
  3275. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3276. fe_id,
  3277. (unsigned int)(ucontrol->value.integer.value[0]));
  3278. channel_mixer[fe_id].output_channel =
  3279. (unsigned int)(ucontrol->value.integer.value[0]);
  3280. return 1;
  3281. }
  3282. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3283. /* If new backend is added, need update this array */
  3284. static const char *const be_name[] = {
  3285. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3286. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3287. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3288. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3289. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3290. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3291. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3292. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3293. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3294. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3295. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3296. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3297. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3298. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3299. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3300. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3301. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3302. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3303. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3304. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3305. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3306. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3307. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3308. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3309. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3310. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3311. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3312. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3313. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3314. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3315. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3316. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3317. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3318. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3319. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3320. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3321. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3322. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3323. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3324. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3325. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3326. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3327. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3328. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3329. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3330. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3331. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3332. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3333. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3334. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3335. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3336. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3337. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX", "PRI_META_MI2S_RX",
  3338. "SEC_META_MI2S_RX", "PROXY_RX", "PROXY_TX", "HDMI_RX_MS"
  3339. };
  3340. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3341. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3342. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3343. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3344. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3345. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3346. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3347. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3348. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3349. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3350. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3351. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3352. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3353. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3354. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3355. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3356. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3357. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3358. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3359. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3360. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3361. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3362. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3363. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3364. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3365. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3366. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3367. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3368. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3369. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3370. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3371. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3372. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3373. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3374. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3375. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3376. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3377. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3378. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3379. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3380. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3381. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3382. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3383. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3384. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3385. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3386. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3387. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3388. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3389. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3390. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3391. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3392. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3393. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3394. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3395. unsigned int channels,
  3396. unsigned int items, const char *const names[])
  3397. {
  3398. if (uinfo->value.enumerated.item >= items)
  3399. uinfo->value.enumerated.item = items - 1;
  3400. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3401. sizeof(uinfo->value.enumerated.name),
  3402. "ALSA: too long item name '%s'\n",
  3403. names[uinfo->value.enumerated.item]);
  3404. strlcpy(uinfo->value.enumerated.name,
  3405. names[uinfo->value.enumerated.item],
  3406. sizeof(uinfo->value.enumerated.name));
  3407. return 0;
  3408. }
  3409. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3410. struct snd_ctl_elem_info *uinfo)
  3411. {
  3412. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3413. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3414. uinfo->count = 1;
  3415. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3416. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3417. return 0;
  3418. }
  3419. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3420. struct snd_ctl_elem_value *ucontrol)
  3421. {
  3422. u16 fe_id = 0;
  3423. fe_id = ((struct soc_enum *)
  3424. kcontrol->private_value)->shift_l;
  3425. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3426. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3427. return -EINVAL;
  3428. }
  3429. pr_debug("%s: FE %d %s\n", __func__,
  3430. fe_id,
  3431. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3432. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3433. return 0;
  3434. }
  3435. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3436. struct snd_ctl_elem_value *ucontrol)
  3437. {
  3438. u16 fe_id = 0;
  3439. fe_id = ((struct soc_enum *)
  3440. kcontrol->private_value)->shift_l;
  3441. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3442. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3443. return -EINVAL;
  3444. }
  3445. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3446. pr_debug("%s: %s FE %d\n", __func__,
  3447. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3448. fe_id);
  3449. return 0;
  3450. }
  3451. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3452. struct snd_ctl_elem_info *uinfo)
  3453. {
  3454. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3455. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3456. uinfo->count = 1;
  3457. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3458. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3459. return 0;
  3460. }
  3461. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3462. struct snd_ctl_elem_value *ucontrol)
  3463. {
  3464. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3465. u16 fe_id = 0, in_ch = 0;
  3466. fe_id = e->shift_l;
  3467. in_ch = e->shift_r;
  3468. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3469. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3470. return -EINVAL;
  3471. }
  3472. if (in_ch >= ADM_MAX_CHANNELS) {
  3473. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3474. return -EINVAL;
  3475. }
  3476. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3477. return 1;
  3478. }
  3479. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3480. struct snd_ctl_elem_value *ucontrol)
  3481. {
  3482. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3483. u16 fe_id = 0, in_ch = 0;
  3484. fe_id = e->shift_l;
  3485. in_ch = e->shift_r;
  3486. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3487. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3488. return -EINVAL;
  3489. }
  3490. if (in_ch >= ADM_MAX_CHANNELS) {
  3491. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3492. return -EINVAL;
  3493. }
  3494. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3495. return 1;
  3496. }
  3497. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3498. struct snd_ctl_elem_info *uinfo)
  3499. {
  3500. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3501. uinfo->count = ADM_MAX_CHANNELS;
  3502. uinfo->value.integer.min = 0;
  3503. uinfo->value.integer.max = WEIGHT_0_DB;
  3504. return 0;
  3505. }
  3506. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3507. struct snd_ctl_elem_value *ucontrol)
  3508. {
  3509. u16 fe_id = 0, out_ch = 0;
  3510. int i, weight;
  3511. fe_id = ((struct soc_multi_mixer_control *)
  3512. kcontrol->private_value)->shift;
  3513. out_ch = ((struct soc_multi_mixer_control *)
  3514. kcontrol->private_value)->rshift;
  3515. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3516. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3517. return -EINVAL;
  3518. }
  3519. if (out_ch >= ADM_MAX_CHANNELS) {
  3520. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3521. return -EINVAL;
  3522. }
  3523. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3524. __func__, fe_id,
  3525. ucontrol->value.integer.value[0],
  3526. ucontrol->value.integer.value[1],
  3527. ucontrol->value.integer.value[2],
  3528. ucontrol->value.integer.value[3],
  3529. ucontrol->value.integer.value[4],
  3530. ucontrol->value.integer.value[5],
  3531. ucontrol->value.integer.value[6],
  3532. ucontrol->value.integer.value[7]);
  3533. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3534. weight = ucontrol->value.integer.value[i];
  3535. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3536. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3537. __func__, fe_id, out_ch, i,
  3538. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3539. }
  3540. return 0;
  3541. }
  3542. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3543. struct snd_ctl_elem_value *ucontrol)
  3544. {
  3545. u16 fe_id = 0, out_ch = 0;
  3546. int i;
  3547. fe_id = ((struct soc_multi_mixer_control *)
  3548. kcontrol->private_value)->shift;
  3549. out_ch = ((struct soc_multi_mixer_control *)
  3550. kcontrol->private_value)->rshift;
  3551. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3552. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3553. return -EINVAL;
  3554. }
  3555. if (out_ch >= ADM_MAX_CHANNELS) {
  3556. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3557. return -EINVAL;
  3558. }
  3559. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3560. ucontrol->value.integer.value[i] =
  3561. channel_mixer[fe_id].channel_weight[out_ch][i];
  3562. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3563. __func__, fe_id,
  3564. ucontrol->value.integer.value[0],
  3565. ucontrol->value.integer.value[1],
  3566. ucontrol->value.integer.value[2],
  3567. ucontrol->value.integer.value[3],
  3568. ucontrol->value.integer.value[4],
  3569. ucontrol->value.integer.value[5],
  3570. ucontrol->value.integer.value[6],
  3571. ucontrol->value.integer.value[7]);
  3572. return 0;
  3573. }
  3574. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3575. struct snd_ctl_elem_info *uinfo)
  3576. {
  3577. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3578. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3579. /* Valid channel map value ranges from 1 to 64 */
  3580. uinfo->value.integer.min = 0;
  3581. uinfo->value.integer.max = 64;
  3582. return 0;
  3583. }
  3584. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3585. struct snd_ctl_elem_value *ucontrol)
  3586. {
  3587. u16 fe_id = 0;
  3588. int i, ch_map;
  3589. fe_id = ((struct soc_multi_mixer_control *)
  3590. kcontrol->private_value)->shift;
  3591. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3592. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3593. return -EINVAL;
  3594. }
  3595. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3596. ch_map = ucontrol->value.integer.value[i];
  3597. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3598. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3599. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3600. }
  3601. /* Make override_out_ch_map false if ch map is reset */
  3602. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3603. channel_mixer[fe_id].override_out_ch_map = false;
  3604. else
  3605. channel_mixer[fe_id].override_out_ch_map = true;
  3606. return 0;
  3607. }
  3608. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3609. struct snd_ctl_elem_value *ucontrol)
  3610. {
  3611. u16 fe_id = 0;
  3612. int i;
  3613. fe_id = ((struct soc_multi_mixer_control *)
  3614. kcontrol->private_value)->shift;
  3615. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3616. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3617. return -EINVAL;
  3618. }
  3619. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3620. ucontrol->value.integer.value[i] =
  3621. channel_mixer[fe_id].out_ch_map[i];
  3622. return 0;
  3623. }
  3624. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3625. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3626. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3627. msm_pcm_get_channel_rule_index,
  3628. msm_pcm_put_channel_rule_index),
  3629. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3630. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3631. msm_pcm_get_channel_rule_index,
  3632. msm_pcm_put_channel_rule_index),
  3633. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3634. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3635. msm_pcm_get_channel_rule_index,
  3636. msm_pcm_put_channel_rule_index),
  3637. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3638. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3639. msm_pcm_get_channel_rule_index,
  3640. msm_pcm_put_channel_rule_index),
  3641. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3642. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3643. msm_pcm_get_channel_rule_index,
  3644. msm_pcm_put_channel_rule_index),
  3645. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3646. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3647. msm_pcm_get_channel_rule_index,
  3648. msm_pcm_put_channel_rule_index),
  3649. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3650. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3651. msm_pcm_get_channel_rule_index,
  3652. msm_pcm_put_channel_rule_index),
  3653. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3654. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3655. msm_pcm_get_channel_rule_index,
  3656. msm_pcm_put_channel_rule_index),
  3657. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3658. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3659. msm_pcm_get_channel_rule_index,
  3660. msm_pcm_put_channel_rule_index),
  3661. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3662. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3663. msm_pcm_get_channel_rule_index,
  3664. msm_pcm_put_channel_rule_index),
  3665. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3666. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3667. msm_pcm_get_channel_rule_index,
  3668. msm_pcm_put_channel_rule_index),
  3669. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3670. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3671. msm_pcm_get_out_chs,
  3672. msm_pcm_put_out_chs),
  3673. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3674. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3675. msm_pcm_get_out_chs,
  3676. msm_pcm_put_out_chs),
  3677. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3678. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3679. msm_pcm_get_out_chs,
  3680. msm_pcm_put_out_chs),
  3681. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3682. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3683. msm_pcm_get_out_chs,
  3684. msm_pcm_put_out_chs),
  3685. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3686. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3687. msm_pcm_get_out_chs,
  3688. msm_pcm_put_out_chs),
  3689. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3690. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3691. msm_pcm_get_out_chs,
  3692. msm_pcm_put_out_chs),
  3693. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3694. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3695. msm_pcm_get_out_chs,
  3696. msm_pcm_put_out_chs),
  3697. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3698. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3699. msm_pcm_get_out_chs,
  3700. msm_pcm_put_out_chs),
  3701. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3702. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3703. msm_pcm_get_out_chs,
  3704. msm_pcm_put_out_chs),
  3705. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3706. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3707. msm_pcm_get_out_chs,
  3708. msm_pcm_put_out_chs),
  3709. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3710. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3711. msm_pcm_get_out_chs,
  3712. msm_pcm_put_out_chs),
  3713. {
  3714. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3715. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3716. .name = "MultiMedia1 Channel Mixer",
  3717. .info = msm_pcm_channel_mixer_info,
  3718. .get = msm_pcm_channel_mixer_get,
  3719. .put = msm_pcm_channel_mixer_put,
  3720. .private_value = (unsigned long)&(mm1_channel_mux)
  3721. },
  3722. {
  3723. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3724. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3725. .name = "MultiMedia2 Channel Mixer",
  3726. .info = msm_pcm_channel_mixer_info,
  3727. .get = msm_pcm_channel_mixer_get,
  3728. .put = msm_pcm_channel_mixer_put,
  3729. .private_value = (unsigned long)&(mm2_channel_mux)
  3730. },
  3731. {
  3732. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3733. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3734. .name = "MultiMedia3 Channel Mixer",
  3735. .info = msm_pcm_channel_mixer_info,
  3736. .get = msm_pcm_channel_mixer_get,
  3737. .put = msm_pcm_channel_mixer_put,
  3738. .private_value = (unsigned long)&(mm3_channel_mux)
  3739. },
  3740. {
  3741. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3742. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3743. .name = "MultiMedia4 Channel Mixer",
  3744. .info = msm_pcm_channel_mixer_info,
  3745. .get = msm_pcm_channel_mixer_get,
  3746. .put = msm_pcm_channel_mixer_put,
  3747. .private_value = (unsigned long)&(mm4_channel_mux)
  3748. },
  3749. {
  3750. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3751. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3752. .name = "MultiMedia18 Channel Mixer",
  3753. .info = msm_pcm_channel_mixer_info,
  3754. .get = msm_pcm_channel_mixer_get,
  3755. .put = msm_pcm_channel_mixer_put,
  3756. .private_value = (unsigned long)&(mm18_channel_mux)
  3757. },
  3758. {
  3759. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3760. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3761. .name = "MultiMedia19 Channel Mixer",
  3762. .info = msm_pcm_channel_mixer_info,
  3763. .get = msm_pcm_channel_mixer_get,
  3764. .put = msm_pcm_channel_mixer_put,
  3765. .private_value = (unsigned long)&(mm19_channel_mux)
  3766. },
  3767. {
  3768. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3769. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3770. .name = "MultiMedia28 Channel Mixer",
  3771. .info = msm_pcm_channel_mixer_info,
  3772. .get = msm_pcm_channel_mixer_get,
  3773. .put = msm_pcm_channel_mixer_put,
  3774. .private_value = (unsigned long)&(mm28_channel_mux)
  3775. },
  3776. {
  3777. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3778. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3779. .name = "MultiMedia29 Channel Mixer",
  3780. .info = msm_pcm_channel_mixer_info,
  3781. .get = msm_pcm_channel_mixer_get,
  3782. .put = msm_pcm_channel_mixer_put,
  3783. .private_value = (unsigned long)&(mm29_channel_mux)
  3784. },
  3785. {
  3786. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3787. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3788. .name = "MultiMedia30 Channel Mixer",
  3789. .info = msm_pcm_channel_mixer_info,
  3790. .get = msm_pcm_channel_mixer_get,
  3791. .put = msm_pcm_channel_mixer_put,
  3792. .private_value = (unsigned long)&(mm30_channel_mux)
  3793. },
  3794. {
  3795. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3796. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3797. .name = "MultiMedia1 Output Channel1",
  3798. .info = msm_pcm_channel_weight_info,
  3799. .get = msm_pcm_channel_weight_get,
  3800. .put = msm_pcm_channel_weight_put,
  3801. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3802. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3803. },
  3804. {
  3805. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3806. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3807. .name = "MultiMedia1 Output Channel2",
  3808. .info = msm_pcm_channel_weight_info,
  3809. .get = msm_pcm_channel_weight_get,
  3810. .put = msm_pcm_channel_weight_put,
  3811. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3812. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3813. },
  3814. {
  3815. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3816. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3817. .name = "MultiMedia1 Output Channel3",
  3818. .info = msm_pcm_channel_weight_info,
  3819. .get = msm_pcm_channel_weight_get,
  3820. .put = msm_pcm_channel_weight_put,
  3821. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3822. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3823. },
  3824. {
  3825. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3826. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3827. .name = "MultiMedia1 Output Channel4",
  3828. .info = msm_pcm_channel_weight_info,
  3829. .get = msm_pcm_channel_weight_get,
  3830. .put = msm_pcm_channel_weight_put,
  3831. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3832. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3833. },
  3834. {
  3835. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3836. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3837. .name = "MultiMedia1 Output Channel5",
  3838. .info = msm_pcm_channel_weight_info,
  3839. .get = msm_pcm_channel_weight_get,
  3840. .put = msm_pcm_channel_weight_put,
  3841. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3842. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3843. },
  3844. {
  3845. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3846. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3847. .name = "MultiMedia1 Output Channel6",
  3848. .info = msm_pcm_channel_weight_info,
  3849. .get = msm_pcm_channel_weight_get,
  3850. .put = msm_pcm_channel_weight_put,
  3851. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3852. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3853. },
  3854. {
  3855. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3856. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3857. .name = "MultiMedia1 Output Channel7",
  3858. .info = msm_pcm_channel_weight_info,
  3859. .get = msm_pcm_channel_weight_get,
  3860. .put = msm_pcm_channel_weight_put,
  3861. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3862. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3863. },
  3864. {
  3865. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3866. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3867. .name = "MultiMedia1 Output Channel8",
  3868. .info = msm_pcm_channel_weight_info,
  3869. .get = msm_pcm_channel_weight_get,
  3870. .put = msm_pcm_channel_weight_put,
  3871. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3872. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3873. },
  3874. {
  3875. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3876. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3877. .name = "MultiMedia1 Output Channel9",
  3878. .info = msm_pcm_channel_weight_info,
  3879. .get = msm_pcm_channel_weight_get,
  3880. .put = msm_pcm_channel_weight_put,
  3881. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3882. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3883. },
  3884. {
  3885. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3886. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3887. .name = "MultiMedia1 Output Channel10",
  3888. .info = msm_pcm_channel_weight_info,
  3889. .get = msm_pcm_channel_weight_get,
  3890. .put = msm_pcm_channel_weight_put,
  3891. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3892. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3893. },
  3894. {
  3895. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3896. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3897. .name = "MultiMedia1 Output Channel11",
  3898. .info = msm_pcm_channel_weight_info,
  3899. .get = msm_pcm_channel_weight_get,
  3900. .put = msm_pcm_channel_weight_put,
  3901. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3902. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3903. },
  3904. {
  3905. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3906. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3907. .name = "MultiMedia1 Output Channel12",
  3908. .info = msm_pcm_channel_weight_info,
  3909. .get = msm_pcm_channel_weight_get,
  3910. .put = msm_pcm_channel_weight_put,
  3911. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3912. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3913. },
  3914. {
  3915. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3916. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3917. .name = "MultiMedia1 Output Channel13",
  3918. .info = msm_pcm_channel_weight_info,
  3919. .get = msm_pcm_channel_weight_get,
  3920. .put = msm_pcm_channel_weight_put,
  3921. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3922. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3923. },
  3924. {
  3925. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3926. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3927. .name = "MultiMedia1 Output Channel14",
  3928. .info = msm_pcm_channel_weight_info,
  3929. .get = msm_pcm_channel_weight_get,
  3930. .put = msm_pcm_channel_weight_put,
  3931. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3932. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3933. },
  3934. {
  3935. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3936. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3937. .name = "MultiMedia2 Output Channel1",
  3938. .info = msm_pcm_channel_weight_info,
  3939. .get = msm_pcm_channel_weight_get,
  3940. .put = msm_pcm_channel_weight_put,
  3941. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3942. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3943. },
  3944. {
  3945. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3946. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3947. .name = "MultiMedia2 Output Channel2",
  3948. .info = msm_pcm_channel_weight_info,
  3949. .get = msm_pcm_channel_weight_get,
  3950. .put = msm_pcm_channel_weight_put,
  3951. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3952. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3953. },
  3954. {
  3955. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3956. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3957. .name = "MultiMedia2 Output Channel3",
  3958. .info = msm_pcm_channel_weight_info,
  3959. .get = msm_pcm_channel_weight_get,
  3960. .put = msm_pcm_channel_weight_put,
  3961. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3962. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3963. },
  3964. {
  3965. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3966. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3967. .name = "MultiMedia3 Output Channel1",
  3968. .info = msm_pcm_channel_weight_info,
  3969. .get = msm_pcm_channel_weight_get,
  3970. .put = msm_pcm_channel_weight_put,
  3971. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3972. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3973. },
  3974. {
  3975. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3976. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3977. .name = "MultiMedia3 Output Channel2",
  3978. .info = msm_pcm_channel_weight_info,
  3979. .get = msm_pcm_channel_weight_get,
  3980. .put = msm_pcm_channel_weight_put,
  3981. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3982. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3983. },
  3984. {
  3985. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3986. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3987. .name = "MultiMedia18 Output Channel1",
  3988. .info = msm_pcm_channel_weight_info,
  3989. .get = msm_pcm_channel_weight_get,
  3990. .put = msm_pcm_channel_weight_put,
  3991. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3992. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  3993. },
  3994. {
  3995. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3996. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3997. .name = "MultiMedia18 Output Channel2",
  3998. .info = msm_pcm_channel_weight_info,
  3999. .get = msm_pcm_channel_weight_get,
  4000. .put = msm_pcm_channel_weight_put,
  4001. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4002. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  4003. },
  4004. {
  4005. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4006. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4007. .name = "MultiMedia18 Output Channel3",
  4008. .info = msm_pcm_channel_weight_info,
  4009. .get = msm_pcm_channel_weight_get,
  4010. .put = msm_pcm_channel_weight_put,
  4011. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4012. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 2,}
  4013. },
  4014. {
  4015. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4016. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4017. .name = "MultiMedia18 Output Channel4",
  4018. .info = msm_pcm_channel_weight_info,
  4019. .get = msm_pcm_channel_weight_get,
  4020. .put = msm_pcm_channel_weight_put,
  4021. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4022. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 3,}
  4023. },
  4024. {
  4025. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4026. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4027. .name = "MultiMedia18 Output Channel5",
  4028. .info = msm_pcm_channel_weight_info,
  4029. .get = msm_pcm_channel_weight_get,
  4030. .put = msm_pcm_channel_weight_put,
  4031. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4032. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 4,}
  4033. },
  4034. {
  4035. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4036. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4037. .name = "MultiMedia18 Output Channel6",
  4038. .info = msm_pcm_channel_weight_info,
  4039. .get = msm_pcm_channel_weight_get,
  4040. .put = msm_pcm_channel_weight_put,
  4041. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4042. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 5,}
  4043. },
  4044. {
  4045. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4046. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4047. .name = "MultiMedia18 Output Channel7",
  4048. .info = msm_pcm_channel_weight_info,
  4049. .get = msm_pcm_channel_weight_get,
  4050. .put = msm_pcm_channel_weight_put,
  4051. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4052. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 6,}
  4053. },
  4054. {
  4055. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4056. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4057. .name = "MultiMedia18 Output Channel8",
  4058. .info = msm_pcm_channel_weight_info,
  4059. .get = msm_pcm_channel_weight_get,
  4060. .put = msm_pcm_channel_weight_put,
  4061. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4062. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 7,}
  4063. },
  4064. {
  4065. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4066. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4067. .name = "MultiMedia18 Output Channel9",
  4068. .info = msm_pcm_channel_weight_info,
  4069. .get = msm_pcm_channel_weight_get,
  4070. .put = msm_pcm_channel_weight_put,
  4071. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4072. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 8,}
  4073. },
  4074. {
  4075. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4076. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4077. .name = "MultiMedia18 Output Channel10",
  4078. .info = msm_pcm_channel_weight_info,
  4079. .get = msm_pcm_channel_weight_get,
  4080. .put = msm_pcm_channel_weight_put,
  4081. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4082. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 9,}
  4083. },
  4084. {
  4085. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4086. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4087. .name = "MultiMedia18 Output Channel11",
  4088. .info = msm_pcm_channel_weight_info,
  4089. .get = msm_pcm_channel_weight_get,
  4090. .put = msm_pcm_channel_weight_put,
  4091. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4092. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 10,}
  4093. },
  4094. {
  4095. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4096. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4097. .name = "MultiMedia18 Output Channel12",
  4098. .info = msm_pcm_channel_weight_info,
  4099. .get = msm_pcm_channel_weight_get,
  4100. .put = msm_pcm_channel_weight_put,
  4101. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4102. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 11,}
  4103. },
  4104. {
  4105. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4106. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4107. .name = "MultiMedia18 Output Channel13",
  4108. .info = msm_pcm_channel_weight_info,
  4109. .get = msm_pcm_channel_weight_get,
  4110. .put = msm_pcm_channel_weight_put,
  4111. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4112. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 12,}
  4113. },
  4114. {
  4115. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4116. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4117. .name = "MultiMedia18 Output Channel14",
  4118. .info = msm_pcm_channel_weight_info,
  4119. .get = msm_pcm_channel_weight_get,
  4120. .put = msm_pcm_channel_weight_put,
  4121. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4122. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 13,}
  4123. },
  4124. {
  4125. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4126. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4127. .name = "MultiMedia19 Output Channel1",
  4128. .info = msm_pcm_channel_weight_info,
  4129. .get = msm_pcm_channel_weight_get,
  4130. .put = msm_pcm_channel_weight_put,
  4131. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4132. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 0,}
  4133. },
  4134. {
  4135. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4136. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4137. .name = "MultiMedia19 Output Channel2",
  4138. .info = msm_pcm_channel_weight_info,
  4139. .get = msm_pcm_channel_weight_get,
  4140. .put = msm_pcm_channel_weight_put,
  4141. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4142. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 1, }
  4143. },
  4144. {
  4145. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4146. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4147. .name = "MultiMedia19 Output Channel3",
  4148. .info = msm_pcm_channel_weight_info,
  4149. .get = msm_pcm_channel_weight_get,
  4150. .put = msm_pcm_channel_weight_put,
  4151. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4152. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 2,}
  4153. },
  4154. {
  4155. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4156. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4157. .name = "MultiMedia19 Output Channel4",
  4158. .info = msm_pcm_channel_weight_info,
  4159. .get = msm_pcm_channel_weight_get,
  4160. .put = msm_pcm_channel_weight_put,
  4161. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4162. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 3,}
  4163. },
  4164. {
  4165. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4166. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4167. .name = "MultiMedia19 Output Channel5",
  4168. .info = msm_pcm_channel_weight_info,
  4169. .get = msm_pcm_channel_weight_get,
  4170. .put = msm_pcm_channel_weight_put,
  4171. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4172. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 4,}
  4173. },
  4174. {
  4175. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4176. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4177. .name = "MultiMedia19 Output Channel6",
  4178. .info = msm_pcm_channel_weight_info,
  4179. .get = msm_pcm_channel_weight_get,
  4180. .put = msm_pcm_channel_weight_put,
  4181. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4182. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 5,}
  4183. },
  4184. {
  4185. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4186. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4187. .name = "MultiMedia19 Output Channel7",
  4188. .info = msm_pcm_channel_weight_info,
  4189. .get = msm_pcm_channel_weight_get,
  4190. .put = msm_pcm_channel_weight_put,
  4191. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4192. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 6,}
  4193. },
  4194. {
  4195. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4196. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4197. .name = "MultiMedia19 Output Channel8",
  4198. .info = msm_pcm_channel_weight_info,
  4199. .get = msm_pcm_channel_weight_get,
  4200. .put = msm_pcm_channel_weight_put,
  4201. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4202. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 7,}
  4203. },
  4204. {
  4205. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4206. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4207. .name = "MultiMedia19 Output Channel9",
  4208. .info = msm_pcm_channel_weight_info,
  4209. .get = msm_pcm_channel_weight_get,
  4210. .put = msm_pcm_channel_weight_put,
  4211. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4212. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 8,}
  4213. },
  4214. {
  4215. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4216. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4217. .name = "MultiMedia19 Output Channel10",
  4218. .info = msm_pcm_channel_weight_info,
  4219. .get = msm_pcm_channel_weight_get,
  4220. .put = msm_pcm_channel_weight_put,
  4221. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4222. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 9,}
  4223. },
  4224. {
  4225. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4226. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4227. .name = "MultiMedia19 Output Channel11",
  4228. .info = msm_pcm_channel_weight_info,
  4229. .get = msm_pcm_channel_weight_get,
  4230. .put = msm_pcm_channel_weight_put,
  4231. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4232. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 10,}
  4233. },
  4234. {
  4235. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4236. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4237. .name = "MultiMedia19 Output Channel12",
  4238. .info = msm_pcm_channel_weight_info,
  4239. .get = msm_pcm_channel_weight_get,
  4240. .put = msm_pcm_channel_weight_put,
  4241. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4242. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 11,}
  4243. },
  4244. {
  4245. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4246. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4247. .name = "MultiMedia19 Output Channel13",
  4248. .info = msm_pcm_channel_weight_info,
  4249. .get = msm_pcm_channel_weight_get,
  4250. .put = msm_pcm_channel_weight_put,
  4251. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4252. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 12,}
  4253. },
  4254. {
  4255. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4256. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4257. .name = "MultiMedia19 Output Channel14",
  4258. .info = msm_pcm_channel_weight_info,
  4259. .get = msm_pcm_channel_weight_get,
  4260. .put = msm_pcm_channel_weight_put,
  4261. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4262. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 13,}
  4263. },
  4264. {
  4265. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4266. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4267. .name = "MultiMedia28 Output Channel1",
  4268. .info = msm_pcm_channel_weight_info,
  4269. .get = msm_pcm_channel_weight_get,
  4270. .put = msm_pcm_channel_weight_put,
  4271. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4272. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 0,}
  4273. },
  4274. {
  4275. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4276. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4277. .name = "MultiMedia28 Output Channel2",
  4278. .info = msm_pcm_channel_weight_info,
  4279. .get = msm_pcm_channel_weight_get,
  4280. .put = msm_pcm_channel_weight_put,
  4281. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4282. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 1, }
  4283. },
  4284. {
  4285. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4286. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4287. .name = "MultiMedia28 Output Channel3",
  4288. .info = msm_pcm_channel_weight_info,
  4289. .get = msm_pcm_channel_weight_get,
  4290. .put = msm_pcm_channel_weight_put,
  4291. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4292. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 2,}
  4293. },
  4294. {
  4295. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4296. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4297. .name = "MultiMedia28 Output Channel4",
  4298. .info = msm_pcm_channel_weight_info,
  4299. .get = msm_pcm_channel_weight_get,
  4300. .put = msm_pcm_channel_weight_put,
  4301. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4302. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 3,}
  4303. },
  4304. {
  4305. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4306. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4307. .name = "MultiMedia28 Output Channel5",
  4308. .info = msm_pcm_channel_weight_info,
  4309. .get = msm_pcm_channel_weight_get,
  4310. .put = msm_pcm_channel_weight_put,
  4311. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4312. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 4,}
  4313. },
  4314. {
  4315. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4316. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4317. .name = "MultiMedia28 Output Channel6",
  4318. .info = msm_pcm_channel_weight_info,
  4319. .get = msm_pcm_channel_weight_get,
  4320. .put = msm_pcm_channel_weight_put,
  4321. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4322. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 5,}
  4323. },
  4324. {
  4325. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4326. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4327. .name = "MultiMedia28 Output Channel7",
  4328. .info = msm_pcm_channel_weight_info,
  4329. .get = msm_pcm_channel_weight_get,
  4330. .put = msm_pcm_channel_weight_put,
  4331. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4332. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 6,}
  4333. },
  4334. {
  4335. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4336. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4337. .name = "MultiMedia28 Output Channel8",
  4338. .info = msm_pcm_channel_weight_info,
  4339. .get = msm_pcm_channel_weight_get,
  4340. .put = msm_pcm_channel_weight_put,
  4341. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4342. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 7,}
  4343. },
  4344. {
  4345. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4346. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4347. .name = "MultiMedia28 Output Channel9",
  4348. .info = msm_pcm_channel_weight_info,
  4349. .get = msm_pcm_channel_weight_get,
  4350. .put = msm_pcm_channel_weight_put,
  4351. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4352. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 8,}
  4353. },
  4354. {
  4355. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4356. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4357. .name = "MultiMedia28 Output Channel10",
  4358. .info = msm_pcm_channel_weight_info,
  4359. .get = msm_pcm_channel_weight_get,
  4360. .put = msm_pcm_channel_weight_put,
  4361. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4362. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 9,}
  4363. },
  4364. {
  4365. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4366. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4367. .name = "MultiMedia28 Output Channel11",
  4368. .info = msm_pcm_channel_weight_info,
  4369. .get = msm_pcm_channel_weight_get,
  4370. .put = msm_pcm_channel_weight_put,
  4371. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4372. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 10,}
  4373. },
  4374. {
  4375. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4376. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4377. .name = "MultiMedia28 Output Channel12",
  4378. .info = msm_pcm_channel_weight_info,
  4379. .get = msm_pcm_channel_weight_get,
  4380. .put = msm_pcm_channel_weight_put,
  4381. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4382. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 11,}
  4383. },
  4384. {
  4385. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4386. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4387. .name = "MultiMedia28 Output Channel13",
  4388. .info = msm_pcm_channel_weight_info,
  4389. .get = msm_pcm_channel_weight_get,
  4390. .put = msm_pcm_channel_weight_put,
  4391. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4392. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 12,}
  4393. },
  4394. {
  4395. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4396. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4397. .name = "MultiMedia28 Output Channel14",
  4398. .info = msm_pcm_channel_weight_info,
  4399. .get = msm_pcm_channel_weight_get,
  4400. .put = msm_pcm_channel_weight_put,
  4401. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4402. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 13,}
  4403. },
  4404. {
  4405. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4406. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4407. .name = "MultiMedia29 Output Channel1",
  4408. .info = msm_pcm_channel_weight_info,
  4409. .get = msm_pcm_channel_weight_get,
  4410. .put = msm_pcm_channel_weight_put,
  4411. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4412. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 0,}
  4413. },
  4414. {
  4415. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4416. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4417. .name = "MultiMedia29 Output Channel2",
  4418. .info = msm_pcm_channel_weight_info,
  4419. .get = msm_pcm_channel_weight_get,
  4420. .put = msm_pcm_channel_weight_put,
  4421. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4422. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 1, }
  4423. },
  4424. {
  4425. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4426. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4427. .name = "MultiMedia29 Output Channel3",
  4428. .info = msm_pcm_channel_weight_info,
  4429. .get = msm_pcm_channel_weight_get,
  4430. .put = msm_pcm_channel_weight_put,
  4431. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4432. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 2,}
  4433. },
  4434. {
  4435. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4436. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4437. .name = "MultiMedia29 Output Channel4",
  4438. .info = msm_pcm_channel_weight_info,
  4439. .get = msm_pcm_channel_weight_get,
  4440. .put = msm_pcm_channel_weight_put,
  4441. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4442. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 3,}
  4443. },
  4444. {
  4445. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4446. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4447. .name = "MultiMedia29 Output Channel5",
  4448. .info = msm_pcm_channel_weight_info,
  4449. .get = msm_pcm_channel_weight_get,
  4450. .put = msm_pcm_channel_weight_put,
  4451. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4452. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 4,}
  4453. },
  4454. {
  4455. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4456. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4457. .name = "MultiMedia29 Output Channel6",
  4458. .info = msm_pcm_channel_weight_info,
  4459. .get = msm_pcm_channel_weight_get,
  4460. .put = msm_pcm_channel_weight_put,
  4461. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4462. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 5,}
  4463. },
  4464. {
  4465. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4466. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4467. .name = "MultiMedia29 Output Channel7",
  4468. .info = msm_pcm_channel_weight_info,
  4469. .get = msm_pcm_channel_weight_get,
  4470. .put = msm_pcm_channel_weight_put,
  4471. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4472. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 6,}
  4473. },
  4474. {
  4475. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4476. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4477. .name = "MultiMedia29 Output Channel8",
  4478. .info = msm_pcm_channel_weight_info,
  4479. .get = msm_pcm_channel_weight_get,
  4480. .put = msm_pcm_channel_weight_put,
  4481. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4482. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 7,}
  4483. },
  4484. {
  4485. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4486. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4487. .name = "MultiMedia29 Output Channel9",
  4488. .info = msm_pcm_channel_weight_info,
  4489. .get = msm_pcm_channel_weight_get,
  4490. .put = msm_pcm_channel_weight_put,
  4491. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4492. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 8,}
  4493. },
  4494. {
  4495. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4496. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4497. .name = "MultiMedia29 Output Channel10",
  4498. .info = msm_pcm_channel_weight_info,
  4499. .get = msm_pcm_channel_weight_get,
  4500. .put = msm_pcm_channel_weight_put,
  4501. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4502. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 9,}
  4503. },
  4504. {
  4505. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4506. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4507. .name = "MultiMedia29 Output Channel11",
  4508. .info = msm_pcm_channel_weight_info,
  4509. .get = msm_pcm_channel_weight_get,
  4510. .put = msm_pcm_channel_weight_put,
  4511. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4512. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 10,}
  4513. },
  4514. {
  4515. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4516. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4517. .name = "MultiMedia29 Output Channel12",
  4518. .info = msm_pcm_channel_weight_info,
  4519. .get = msm_pcm_channel_weight_get,
  4520. .put = msm_pcm_channel_weight_put,
  4521. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4522. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 11,}
  4523. },
  4524. {
  4525. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4526. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4527. .name = "MultiMedia29 Output Channel13",
  4528. .info = msm_pcm_channel_weight_info,
  4529. .get = msm_pcm_channel_weight_get,
  4530. .put = msm_pcm_channel_weight_put,
  4531. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4532. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 12,}
  4533. },
  4534. {
  4535. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4536. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4537. .name = "MultiMedia29 Output Channel14",
  4538. .info = msm_pcm_channel_weight_info,
  4539. .get = msm_pcm_channel_weight_get,
  4540. .put = msm_pcm_channel_weight_put,
  4541. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4542. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 13,}
  4543. },
  4544. {
  4545. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4546. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4547. .name = "MultiMedia30 Output Channel1",
  4548. .info = msm_pcm_channel_weight_info,
  4549. .get = msm_pcm_channel_weight_get,
  4550. .put = msm_pcm_channel_weight_put,
  4551. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4552. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 0,}
  4553. },
  4554. {
  4555. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4556. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4557. .name = "MultiMedia30 Output Channel2",
  4558. .info = msm_pcm_channel_weight_info,
  4559. .get = msm_pcm_channel_weight_get,
  4560. .put = msm_pcm_channel_weight_put,
  4561. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4562. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 1, }
  4563. },
  4564. {
  4565. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4566. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4567. .name = "MultiMedia30 Output Channel3",
  4568. .info = msm_pcm_channel_weight_info,
  4569. .get = msm_pcm_channel_weight_get,
  4570. .put = msm_pcm_channel_weight_put,
  4571. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4572. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 2,}
  4573. },
  4574. {
  4575. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4576. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4577. .name = "MultiMedia30 Output Channel4",
  4578. .info = msm_pcm_channel_weight_info,
  4579. .get = msm_pcm_channel_weight_get,
  4580. .put = msm_pcm_channel_weight_put,
  4581. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4582. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 3,}
  4583. },
  4584. {
  4585. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4586. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4587. .name = "MultiMedia30 Output Channel5",
  4588. .info = msm_pcm_channel_weight_info,
  4589. .get = msm_pcm_channel_weight_get,
  4590. .put = msm_pcm_channel_weight_put,
  4591. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4592. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 4,}
  4593. },
  4594. {
  4595. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4596. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4597. .name = "MultiMedia30 Output Channel6",
  4598. .info = msm_pcm_channel_weight_info,
  4599. .get = msm_pcm_channel_weight_get,
  4600. .put = msm_pcm_channel_weight_put,
  4601. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4602. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 5,}
  4603. },
  4604. {
  4605. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4606. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4607. .name = "MultiMedia30 Output Channel7",
  4608. .info = msm_pcm_channel_weight_info,
  4609. .get = msm_pcm_channel_weight_get,
  4610. .put = msm_pcm_channel_weight_put,
  4611. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4612. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 6,}
  4613. },
  4614. {
  4615. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4616. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4617. .name = "MultiMedia30 Output Channel8",
  4618. .info = msm_pcm_channel_weight_info,
  4619. .get = msm_pcm_channel_weight_get,
  4620. .put = msm_pcm_channel_weight_put,
  4621. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4622. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 7,}
  4623. },
  4624. {
  4625. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4626. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4627. .name = "MultiMedia30 Output Channel9",
  4628. .info = msm_pcm_channel_weight_info,
  4629. .get = msm_pcm_channel_weight_get,
  4630. .put = msm_pcm_channel_weight_put,
  4631. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4632. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 8,}
  4633. },
  4634. {
  4635. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4636. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4637. .name = "MultiMedia30 Output Channel10",
  4638. .info = msm_pcm_channel_weight_info,
  4639. .get = msm_pcm_channel_weight_get,
  4640. .put = msm_pcm_channel_weight_put,
  4641. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4642. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 9,}
  4643. },
  4644. {
  4645. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4646. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4647. .name = "MultiMedia30 Output Channel11",
  4648. .info = msm_pcm_channel_weight_info,
  4649. .get = msm_pcm_channel_weight_get,
  4650. .put = msm_pcm_channel_weight_put,
  4651. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4652. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 10,}
  4653. },
  4654. {
  4655. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4656. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4657. .name = "MultiMedia30 Output Channel12",
  4658. .info = msm_pcm_channel_weight_info,
  4659. .get = msm_pcm_channel_weight_get,
  4660. .put = msm_pcm_channel_weight_put,
  4661. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4662. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 11,}
  4663. },
  4664. {
  4665. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4666. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4667. .name = "MultiMedia30 Output Channel13",
  4668. .info = msm_pcm_channel_weight_info,
  4669. .get = msm_pcm_channel_weight_get,
  4670. .put = msm_pcm_channel_weight_put,
  4671. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4672. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 12,}
  4673. },
  4674. {
  4675. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4676. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4677. .name = "MultiMedia30 Output Channel14",
  4678. .info = msm_pcm_channel_weight_info,
  4679. .get = msm_pcm_channel_weight_get,
  4680. .put = msm_pcm_channel_weight_put,
  4681. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4682. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 13,}
  4683. },
  4684. {
  4685. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4686. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4687. .name = "MultiMedia1 Channel1",
  4688. .info = msm_pcm_channel_input_be_info,
  4689. .get = msm_pcm_channel_input_be_get,
  4690. .put = msm_pcm_channel_input_be_put,
  4691. .private_value = (unsigned long)&(mm1_ch1_enum)
  4692. },
  4693. {
  4694. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4695. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4696. .name = "MultiMedia1 Channel2",
  4697. .info = msm_pcm_channel_input_be_info,
  4698. .get = msm_pcm_channel_input_be_get,
  4699. .put = msm_pcm_channel_input_be_put,
  4700. .private_value = (unsigned long)&(mm1_ch2_enum)
  4701. },
  4702. {
  4703. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4704. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4705. .name = "MultiMedia1 Channel3",
  4706. .info = msm_pcm_channel_input_be_info,
  4707. .get = msm_pcm_channel_input_be_get,
  4708. .put = msm_pcm_channel_input_be_put,
  4709. .private_value = (unsigned long)&(mm1_ch3_enum)
  4710. },
  4711. {
  4712. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4713. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4714. .name = "MultiMedia1 Channel4",
  4715. .info = msm_pcm_channel_input_be_info,
  4716. .get = msm_pcm_channel_input_be_get,
  4717. .put = msm_pcm_channel_input_be_put,
  4718. .private_value = (unsigned long)&(mm1_ch4_enum)
  4719. },
  4720. {
  4721. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4722. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4723. .name = "MultiMedia1 Channel5",
  4724. .info = msm_pcm_channel_input_be_info,
  4725. .get = msm_pcm_channel_input_be_get,
  4726. .put = msm_pcm_channel_input_be_put,
  4727. .private_value = (unsigned long)&(mm1_ch5_enum)
  4728. },
  4729. {
  4730. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4731. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4732. .name = "MultiMedia1 Channel6",
  4733. .info = msm_pcm_channel_input_be_info,
  4734. .get = msm_pcm_channel_input_be_get,
  4735. .put = msm_pcm_channel_input_be_put,
  4736. .private_value = (unsigned long)&(mm1_ch6_enum)
  4737. },
  4738. {
  4739. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4740. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4741. .name = "MultiMedia1 Channel7",
  4742. .info = msm_pcm_channel_input_be_info,
  4743. .get = msm_pcm_channel_input_be_get,
  4744. .put = msm_pcm_channel_input_be_put,
  4745. .private_value = (unsigned long)&(mm1_ch7_enum)
  4746. },
  4747. {
  4748. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4749. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4750. .name = "MultiMedia1 Channel8",
  4751. .info = msm_pcm_channel_input_be_info,
  4752. .get = msm_pcm_channel_input_be_get,
  4753. .put = msm_pcm_channel_input_be_put,
  4754. .private_value = (unsigned long)&(mm1_ch8_enum)
  4755. },
  4756. {
  4757. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4758. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4759. .name = "MultiMedia18 Channel1",
  4760. .info = msm_pcm_channel_input_be_info,
  4761. .get = msm_pcm_channel_input_be_get,
  4762. .put = msm_pcm_channel_input_be_put,
  4763. .private_value = (unsigned long)&(mm18_ch1_enum)
  4764. },
  4765. {
  4766. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4767. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4768. .name = "MultiMedia18 Channel2",
  4769. .info = msm_pcm_channel_input_be_info,
  4770. .get = msm_pcm_channel_input_be_get,
  4771. .put = msm_pcm_channel_input_be_put,
  4772. .private_value = (unsigned long)&(mm18_ch2_enum)
  4773. },
  4774. {
  4775. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4776. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4777. .name = "MultiMedia19 Channel1",
  4778. .info = msm_pcm_channel_input_be_info,
  4779. .get = msm_pcm_channel_input_be_get,
  4780. .put = msm_pcm_channel_input_be_put,
  4781. .private_value = (unsigned long)&(mm19_ch1_enum)
  4782. },
  4783. {
  4784. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4785. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4786. .name = "MultiMedia19 Channel2",
  4787. .info = msm_pcm_channel_input_be_info,
  4788. .get = msm_pcm_channel_input_be_get,
  4789. .put = msm_pcm_channel_input_be_put,
  4790. .private_value = (unsigned long)&(mm19_ch2_enum)
  4791. },
  4792. {
  4793. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4794. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4795. .name = "MultiMedia28 Channel1",
  4796. .info = msm_pcm_channel_input_be_info,
  4797. .get = msm_pcm_channel_input_be_get,
  4798. .put = msm_pcm_channel_input_be_put,
  4799. .private_value = (unsigned long)&(mm28_ch1_enum)
  4800. },
  4801. {
  4802. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4803. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4804. .name = "MultiMedia28 Channel2",
  4805. .info = msm_pcm_channel_input_be_info,
  4806. .get = msm_pcm_channel_input_be_get,
  4807. .put = msm_pcm_channel_input_be_put,
  4808. .private_value = (unsigned long)&(mm28_ch2_enum)
  4809. },
  4810. {
  4811. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4812. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4813. .name = "MultiMedia29 Channel1",
  4814. .info = msm_pcm_channel_input_be_info,
  4815. .get = msm_pcm_channel_input_be_get,
  4816. .put = msm_pcm_channel_input_be_put,
  4817. .private_value = (unsigned long)&(mm29_ch1_enum)
  4818. },
  4819. {
  4820. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4821. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4822. .name = "MultiMedia29 Channel2",
  4823. .info = msm_pcm_channel_input_be_info,
  4824. .get = msm_pcm_channel_input_be_get,
  4825. .put = msm_pcm_channel_input_be_put,
  4826. .private_value = (unsigned long)&(mm29_ch2_enum)
  4827. },
  4828. {
  4829. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4830. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4831. .name = "MultiMedia30 Channel1",
  4832. .info = msm_pcm_channel_input_be_info,
  4833. .get = msm_pcm_channel_input_be_get,
  4834. .put = msm_pcm_channel_input_be_put,
  4835. .private_value = (unsigned long)&(mm30_ch1_enum)
  4836. },
  4837. {
  4838. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4839. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4840. .name = "MultiMedia30 Channel2",
  4841. .info = msm_pcm_channel_input_be_info,
  4842. .get = msm_pcm_channel_input_be_get,
  4843. .put = msm_pcm_channel_input_be_put,
  4844. .private_value = (unsigned long)&(mm30_ch2_enum)
  4845. },
  4846. {
  4847. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4848. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4849. .name = "MultiMedia1 Output Channel Map",
  4850. .info = msm_pcm_channel_output_map_info,
  4851. .get = msm_pcm_channel_output_map_get,
  4852. .put = msm_pcm_channel_output_map_put,
  4853. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4854. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4855. },
  4856. {
  4857. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4858. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4859. .name = "MultiMedia2 Output Channel Map",
  4860. .info = msm_pcm_channel_output_map_info,
  4861. .get = msm_pcm_channel_output_map_get,
  4862. .put = msm_pcm_channel_output_map_put,
  4863. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4864. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4865. },
  4866. {
  4867. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4868. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4869. .name = "MultiMedia3 Output Channel Map",
  4870. .info = msm_pcm_channel_output_map_info,
  4871. .get = msm_pcm_channel_output_map_get,
  4872. .put = msm_pcm_channel_output_map_put,
  4873. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4874. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4875. },
  4876. {
  4877. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4878. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4879. .name = "MultiMedia4 Output Channel Map",
  4880. .info = msm_pcm_channel_output_map_info,
  4881. .get = msm_pcm_channel_output_map_get,
  4882. .put = msm_pcm_channel_output_map_put,
  4883. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4884. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4885. },
  4886. {
  4887. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4888. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4889. .name = "MultiMedia5 Output Channel Map",
  4890. .info = msm_pcm_channel_output_map_info,
  4891. .get = msm_pcm_channel_output_map_get,
  4892. .put = msm_pcm_channel_output_map_put,
  4893. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4894. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4895. },
  4896. {
  4897. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4898. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4899. .name = "MultiMedia6 Output Channel Map",
  4900. .info = msm_pcm_channel_output_map_info,
  4901. .get = msm_pcm_channel_output_map_get,
  4902. .put = msm_pcm_channel_output_map_put,
  4903. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4904. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4905. },
  4906. {
  4907. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4908. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4909. .name = "MultiMedia18 Output Channel Map",
  4910. .info = msm_pcm_channel_output_map_info,
  4911. .get = msm_pcm_channel_output_map_get,
  4912. .put = msm_pcm_channel_output_map_put,
  4913. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4914. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4915. },
  4916. {
  4917. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4918. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4919. .name = "MultiMedia19 Output Channel Map",
  4920. .info = msm_pcm_channel_output_map_info,
  4921. .get = msm_pcm_channel_output_map_get,
  4922. .put = msm_pcm_channel_output_map_put,
  4923. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4924. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4925. },
  4926. {
  4927. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4928. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4929. .name = "MultiMedia28 Output Channel Map",
  4930. .info = msm_pcm_channel_output_map_info,
  4931. .get = msm_pcm_channel_output_map_get,
  4932. .put = msm_pcm_channel_output_map_put,
  4933. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4934. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4935. },
  4936. {
  4937. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4938. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4939. .name = "MultiMedia29 Output Channel Map",
  4940. .info = msm_pcm_channel_output_map_info,
  4941. .get = msm_pcm_channel_output_map_get,
  4942. .put = msm_pcm_channel_output_map_put,
  4943. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4944. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4945. },
  4946. {
  4947. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4948. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4949. .name = "MultiMedia30 Output Channel Map",
  4950. .info = msm_pcm_channel_output_map_info,
  4951. .get = msm_pcm_channel_output_map_get,
  4952. .put = msm_pcm_channel_output_map_put,
  4953. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4954. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4955. },
  4956. };
  4957. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4958. struct snd_ctl_elem_value *ucontrol)
  4959. {
  4960. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4961. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4962. ucontrol->value.integer.value[0]);
  4963. return 0;
  4964. }
  4965. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4966. struct snd_ctl_elem_value *ucontrol)
  4967. {
  4968. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4969. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4970. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4971. return 0;
  4972. }
  4973. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4974. struct snd_ctl_elem_value *ucontrol)
  4975. {
  4976. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4977. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4978. ucontrol->value.integer.value[0]);
  4979. return 0;
  4980. }
  4981. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4982. struct snd_ctl_elem_value *ucontrol)
  4983. {
  4984. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4985. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4986. __func__, msm_ec_ref_ch_downmixed);
  4987. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4988. return 0;
  4989. }
  4990. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  4991. struct snd_ctl_elem_value *ucontrol)
  4992. {
  4993. int i = 0, ret = 0;
  4994. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  4995. int out_channel_idx = ((struct soc_multi_mixer_control *)
  4996. kcontrol->private_value)->shift;
  4997. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  4998. weights[i] = ucontrol->value.integer.value[i];
  4999. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  5000. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  5001. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  5002. return ret;
  5003. }
  5004. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  5005. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  5006. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  5007. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  5008. struct snd_ctl_elem_value *ucontrol)
  5009. {
  5010. switch (msm_ec_ref_bit_format) {
  5011. case SNDRV_PCM_FORMAT_S24_LE:
  5012. ucontrol->value.integer.value[0] = 2;
  5013. break;
  5014. case SNDRV_PCM_FORMAT_S16_LE:
  5015. ucontrol->value.integer.value[0] = 1;
  5016. break;
  5017. default:
  5018. ucontrol->value.integer.value[0] = 0;
  5019. break;
  5020. }
  5021. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  5022. __func__, ucontrol->value.integer.value[0]);
  5023. return 0;
  5024. }
  5025. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  5026. struct snd_ctl_elem_value *ucontrol)
  5027. {
  5028. u16 bit_width = 0;
  5029. switch (ucontrol->value.integer.value[0]) {
  5030. case 2:
  5031. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  5032. break;
  5033. case 1:
  5034. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  5035. break;
  5036. default:
  5037. msm_ec_ref_bit_format = 0;
  5038. break;
  5039. }
  5040. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  5041. bit_width = 16;
  5042. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  5043. bit_width = 24;
  5044. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  5045. __func__, msm_ec_ref_bit_format);
  5046. adm_ec_ref_rx_bit_width(bit_width);
  5047. return 0;
  5048. }
  5049. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  5050. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  5051. struct snd_ctl_elem_value *ucontrol)
  5052. {
  5053. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  5054. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  5055. __func__, ucontrol->value.integer.value[0]);
  5056. return 0;
  5057. }
  5058. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  5059. struct snd_ctl_elem_value *ucontrol)
  5060. {
  5061. switch (ucontrol->value.integer.value[0]) {
  5062. case 0:
  5063. msm_ec_ref_sampling_rate = 0;
  5064. break;
  5065. case 1:
  5066. msm_ec_ref_sampling_rate = 8000;
  5067. break;
  5068. case 2:
  5069. msm_ec_ref_sampling_rate = 16000;
  5070. break;
  5071. case 3:
  5072. msm_ec_ref_sampling_rate = 32000;
  5073. break;
  5074. case 4:
  5075. msm_ec_ref_sampling_rate = 44100;
  5076. break;
  5077. case 5:
  5078. msm_ec_ref_sampling_rate = 48000;
  5079. break;
  5080. case 6:
  5081. msm_ec_ref_sampling_rate = 96000;
  5082. break;
  5083. case 7:
  5084. msm_ec_ref_sampling_rate = 192000;
  5085. break;
  5086. case 8:
  5087. msm_ec_ref_sampling_rate = 384000;
  5088. break;
  5089. default:
  5090. msm_ec_ref_sampling_rate = 48000;
  5091. break;
  5092. }
  5093. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  5094. __func__, msm_ec_ref_sampling_rate);
  5095. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  5096. return 0;
  5097. }
  5098. static int get_ec_ref_port_id(int value, int *index)
  5099. {
  5100. int port_id;
  5101. switch (value) {
  5102. case 0:
  5103. *index = 0;
  5104. port_id = AFE_PORT_INVALID;
  5105. break;
  5106. case 1:
  5107. *index = 1;
  5108. port_id = SLIMBUS_0_RX;
  5109. break;
  5110. case 2:
  5111. *index = 2;
  5112. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  5113. break;
  5114. case 3:
  5115. *index = 3;
  5116. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5117. break;
  5118. case 4:
  5119. *index = 4;
  5120. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5121. break;
  5122. case 5:
  5123. *index = 5;
  5124. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5125. break;
  5126. case 6:
  5127. *index = 6;
  5128. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5129. break;
  5130. case 7:
  5131. *index = 7;
  5132. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  5133. break;
  5134. case 9:
  5135. *index = 9;
  5136. port_id = SLIMBUS_5_RX;
  5137. break;
  5138. case 10:
  5139. *index = 10;
  5140. port_id = SLIMBUS_1_TX;
  5141. break;
  5142. case 11:
  5143. *index = 11;
  5144. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  5145. break;
  5146. case 12:
  5147. *index = 12;
  5148. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  5149. break;
  5150. case 13:
  5151. *index = 13;
  5152. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  5153. break;
  5154. case 14:
  5155. *index = 14;
  5156. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  5157. break;
  5158. case 15:
  5159. *index = 15;
  5160. port_id = SLIMBUS_6_RX;
  5161. break;
  5162. case 16:
  5163. *index = 16;
  5164. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  5165. break;
  5166. case 17:
  5167. *index = 17;
  5168. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  5169. break;
  5170. case 18:
  5171. *index = 18;
  5172. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  5173. break;
  5174. case 19:
  5175. *index = 19;
  5176. port_id = AFE_PORT_ID_USB_RX;
  5177. break;
  5178. case 20:
  5179. *index = 20;
  5180. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  5181. break;
  5182. case 21:
  5183. *index = 21;
  5184. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  5185. break;
  5186. case 22:
  5187. *index = 22;
  5188. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  5189. break;
  5190. case 23:
  5191. *index = 23;
  5192. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5193. break;
  5194. case 24:
  5195. *index = 24;
  5196. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  5197. break;
  5198. case 25:
  5199. *index = 25;
  5200. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  5201. break;
  5202. case 26:
  5203. *index = 26;
  5204. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  5205. break;
  5206. case 27:
  5207. *index = 27;
  5208. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  5209. break;
  5210. case 28:
  5211. *index = 28;
  5212. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  5213. break;
  5214. case 29:
  5215. *index = 29;
  5216. port_id = SLIMBUS_7_RX;
  5217. break;
  5218. case 30:
  5219. *index = 30;
  5220. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  5221. break;
  5222. case 31:
  5223. *index = 31;
  5224. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  5225. break;
  5226. case 32:
  5227. *index = 32;
  5228. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  5229. break;
  5230. case 33:
  5231. *index = 33;
  5232. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  5233. break;
  5234. case 34:
  5235. *index = 34;
  5236. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  5237. break;
  5238. case 35:
  5239. *index = 35;
  5240. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  5241. break;
  5242. case 36:
  5243. *index = 36;
  5244. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5245. break;
  5246. case 37:
  5247. *index = 37;
  5248. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5249. break;
  5250. case 38:
  5251. *index = 38;
  5252. port_id = AFE_PORT_ID_SENARY_MI2S_RX;
  5253. break;
  5254. case 39:
  5255. *index = 39;
  5256. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  5257. break;
  5258. case 40:
  5259. *index = 40;
  5260. port_id = AFE_PORT_ID_SENARY_MI2S_TX;
  5261. break;
  5262. default:
  5263. *index = 0; /* NONE */
  5264. pr_err("%s: Invalid value %d\n", __func__, value);
  5265. port_id = AFE_PORT_INVALID;
  5266. break;
  5267. }
  5268. return port_id;
  5269. }
  5270. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  5271. struct snd_ctl_elem_value *ucontrol)
  5272. {
  5273. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  5274. mutex_lock(&routing_lock);
  5275. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  5276. mutex_unlock(&routing_lock);
  5277. return 0;
  5278. }
  5279. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  5280. struct snd_ctl_elem_value *ucontrol)
  5281. {
  5282. int value = ucontrol->value.integer.value[0];
  5283. mutex_lock(&routing_lock);
  5284. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5285. &afe_loopback_tx_port_index);
  5286. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5287. __func__, afe_loopback_tx_port_index);
  5288. mutex_unlock(&routing_lock);
  5289. return 0;
  5290. }
  5291. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5292. "32000", "44100", "48000", "96000", "192000", "384000"};
  5293. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5294. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),
  5295. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_bit_format_text),
  5296. ec_ref_bit_format_text),
  5297. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rate_text), ec_ref_rate_text),
  5298. };
  5299. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5300. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5301. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5302. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5303. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5304. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5305. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5306. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5307. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5308. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5309. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5310. "DISPLAY_PORT1", "SEN_MI2S_RX", "QUIN_TDM_TX_0", "SENARY_MI2S_TX",
  5311. };
  5312. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5313. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5314. };
  5315. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5316. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5317. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5318. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5319. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5320. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5321. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5322. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5323. msm_route_ec_ref_params_enum[0],
  5324. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5325. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5326. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5327. msm_ec_ref_chmixer_weights_put),
  5328. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5329. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5330. msm_ec_ref_chmixer_weights_put),
  5331. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5332. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5333. msm_ec_ref_chmixer_weights_put),
  5334. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5335. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5336. msm_ec_ref_chmixer_weights_put),
  5337. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5338. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5339. msm_ec_ref_chmixer_weights_put),
  5340. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5341. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5342. msm_ec_ref_chmixer_weights_put),
  5343. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch7", SND_SOC_NOPM,
  5344. 6, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5345. msm_ec_ref_chmixer_weights_put),
  5346. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch8", SND_SOC_NOPM,
  5347. 7, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5348. msm_ec_ref_chmixer_weights_put),
  5349. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5350. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5351. };
  5352. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5353. struct snd_ctl_elem_value *ucontrol)
  5354. {
  5355. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5356. mutex_lock(&routing_lock);
  5357. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5358. mutex_unlock(&routing_lock);
  5359. return 0;
  5360. }
  5361. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5362. struct snd_ctl_elem_value *ucontrol)
  5363. {
  5364. int value = ucontrol->value.integer.value[0];
  5365. struct snd_soc_dapm_widget *widget =
  5366. snd_soc_dapm_kcontrol_widget(kcontrol);
  5367. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5368. struct snd_soc_dapm_update *update = NULL;
  5369. mutex_lock(&routing_lock);
  5370. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5371. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5372. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5373. __func__, msm_route_ec_ref_rx);
  5374. mutex_unlock(&routing_lock);
  5375. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5376. msm_route_ec_ref_rx, e, update);
  5377. return 0;
  5378. }
  5379. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5380. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5381. msm_route_ec_ref_rx_enum[0],
  5382. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5383. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5384. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5385. msm_route_ec_ref_rx_enum[0],
  5386. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5387. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5388. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5389. msm_route_ec_ref_rx_enum[0],
  5390. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5391. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5392. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5393. msm_route_ec_ref_rx_enum[0],
  5394. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5395. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5396. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5397. msm_route_ec_ref_rx_enum[0],
  5398. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5399. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5400. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5401. msm_route_ec_ref_rx_enum[0],
  5402. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5403. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5404. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5405. msm_route_ec_ref_rx_enum[0],
  5406. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5407. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5408. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5409. msm_route_ec_ref_rx_enum[0],
  5410. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5411. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5412. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5413. msm_route_ec_ref_rx_enum[0],
  5414. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5415. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5416. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5417. msm_route_ec_ref_rx_enum[0],
  5418. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5419. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5420. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5421. msm_route_ec_ref_rx_enum[0],
  5422. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5423. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5424. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5425. msm_route_ec_ref_rx_enum[0],
  5426. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5427. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5428. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5429. msm_route_ec_ref_rx_enum[0],
  5430. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5431. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5432. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5433. msm_route_ec_ref_rx_enum[0],
  5434. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5435. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5436. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5437. msm_route_ec_ref_rx_enum[0],
  5438. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5439. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5440. struct snd_ctl_elem_value *ucontrol)
  5441. {
  5442. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5443. mutex_lock(&routing_lock);
  5444. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5445. mutex_unlock(&routing_lock);
  5446. return 0;
  5447. }
  5448. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5449. struct snd_ctl_elem_value *ucontrol)
  5450. {
  5451. struct snd_soc_dapm_widget *widget =
  5452. snd_soc_dapm_kcontrol_widget(kcontrol);
  5453. int mux = ucontrol->value.enumerated.item[0];
  5454. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5455. int ret = 1;
  5456. bool state = true;
  5457. uint16_t ext_ec_ref_port_id;
  5458. struct snd_soc_dapm_update *update = NULL;
  5459. if (mux >= e->items) {
  5460. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5461. return -EINVAL;
  5462. }
  5463. mutex_lock(&routing_lock);
  5464. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5465. switch (msm_route_ext_ec_ref) {
  5466. case EXT_EC_REF_PRI_MI2S_TX:
  5467. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5468. break;
  5469. case EXT_EC_REF_SEC_MI2S_TX:
  5470. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5471. break;
  5472. case EXT_EC_REF_TERT_MI2S_TX:
  5473. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5474. break;
  5475. case EXT_EC_REF_QUAT_MI2S_TX:
  5476. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5477. break;
  5478. case EXT_EC_REF_QUIN_MI2S_TX:
  5479. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5480. break;
  5481. case EXT_EC_REF_SLIM_1_TX:
  5482. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5483. break;
  5484. case EXT_EC_REF_PRI_TDM_TX:
  5485. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  5486. break;
  5487. case EXT_EC_REF_SEC_TDM_TX:
  5488. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5489. break;
  5490. case EXT_EC_REF_NONE:
  5491. default:
  5492. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5493. state = false;
  5494. break;
  5495. }
  5496. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5497. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5498. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5499. mutex_unlock(&routing_lock);
  5500. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5501. update);
  5502. } else {
  5503. ret = -EINVAL;
  5504. mutex_unlock(&routing_lock);
  5505. }
  5506. return ret;
  5507. }
  5508. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5509. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5510. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5511. "SLIM_1_TX", "PRI_TDM_TX",
  5512. "SEC_TDM_TX", "SENARY_MI2S_TX"};
  5513. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5514. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5515. };
  5516. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5517. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5518. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5519. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5520. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5521. MSM_BACKEND_DAI_PRI_I2S_RX,
  5522. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5523. msm_routing_put_audio_mixer),
  5524. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5525. MSM_BACKEND_DAI_PRI_I2S_RX,
  5526. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5527. msm_routing_put_audio_mixer),
  5528. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5529. MSM_BACKEND_DAI_PRI_I2S_RX,
  5530. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5531. msm_routing_put_audio_mixer),
  5532. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5533. MSM_BACKEND_DAI_PRI_I2S_RX,
  5534. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5535. msm_routing_put_audio_mixer),
  5536. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5537. MSM_BACKEND_DAI_PRI_I2S_RX,
  5538. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5539. msm_routing_put_audio_mixer),
  5540. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5541. MSM_BACKEND_DAI_PRI_I2S_RX,
  5542. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5543. msm_routing_put_audio_mixer),
  5544. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5545. MSM_BACKEND_DAI_PRI_I2S_RX,
  5546. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5547. msm_routing_put_audio_mixer),
  5548. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5549. MSM_BACKEND_DAI_PRI_I2S_RX,
  5550. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5551. msm_routing_put_audio_mixer),
  5552. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5553. MSM_BACKEND_DAI_PRI_I2S_RX,
  5554. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5555. msm_routing_put_audio_mixer),
  5556. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5557. MSM_BACKEND_DAI_PRI_I2S_RX,
  5558. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5559. msm_routing_put_audio_mixer),
  5560. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5561. MSM_BACKEND_DAI_PRI_I2S_RX,
  5562. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5563. msm_routing_put_audio_mixer),
  5564. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5565. MSM_BACKEND_DAI_PRI_I2S_RX,
  5566. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5567. msm_routing_put_audio_mixer),
  5568. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5569. MSM_BACKEND_DAI_PRI_I2S_RX,
  5570. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5571. msm_routing_put_audio_mixer),
  5572. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5573. MSM_BACKEND_DAI_PRI_I2S_RX,
  5574. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5575. msm_routing_put_audio_mixer),
  5576. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5577. MSM_BACKEND_DAI_PRI_I2S_RX,
  5578. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5579. msm_routing_put_audio_mixer),
  5580. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5581. MSM_BACKEND_DAI_PRI_I2S_RX,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5585. MSM_BACKEND_DAI_PRI_I2S_RX,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_PRI_I2S_RX,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_PRI_I2S_RX,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_PRI_I2S_RX,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5601. MSM_BACKEND_DAI_PRI_I2S_RX,
  5602. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5603. msm_routing_put_audio_mixer),
  5604. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5605. MSM_BACKEND_DAI_PRI_I2S_RX,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5609. MSM_BACKEND_DAI_PRI_I2S_RX,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. };
  5613. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5614. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5615. MSM_BACKEND_DAI_SEC_I2S_RX,
  5616. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5617. msm_routing_put_audio_mixer),
  5618. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5619. MSM_BACKEND_DAI_SEC_I2S_RX,
  5620. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5621. msm_routing_put_audio_mixer),
  5622. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5623. MSM_BACKEND_DAI_SEC_I2S_RX,
  5624. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5625. msm_routing_put_audio_mixer),
  5626. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5627. MSM_BACKEND_DAI_SEC_I2S_RX,
  5628. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5629. msm_routing_put_audio_mixer),
  5630. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5631. MSM_BACKEND_DAI_SEC_I2S_RX,
  5632. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5633. msm_routing_put_audio_mixer),
  5634. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5635. MSM_BACKEND_DAI_SEC_I2S_RX,
  5636. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5637. msm_routing_put_audio_mixer),
  5638. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5639. MSM_BACKEND_DAI_SEC_I2S_RX,
  5640. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5641. msm_routing_put_audio_mixer),
  5642. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5643. MSM_BACKEND_DAI_SEC_I2S_RX,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5647. MSM_BACKEND_DAI_SEC_I2S_RX,
  5648. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5649. msm_routing_put_audio_mixer),
  5650. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5651. MSM_BACKEND_DAI_SEC_I2S_RX,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5655. MSM_BACKEND_DAI_SEC_I2S_RX,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5659. MSM_BACKEND_DAI_SEC_I2S_RX,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5663. MSM_BACKEND_DAI_SEC_I2S_RX,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_SEC_I2S_RX,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5671. MSM_BACKEND_DAI_SEC_I2S_RX,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5675. MSM_BACKEND_DAI_SEC_I2S_RX,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5679. MSM_BACKEND_DAI_SEC_I2S_RX,
  5680. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5681. msm_routing_put_audio_mixer),
  5682. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5683. MSM_BACKEND_DAI_SEC_I2S_RX,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5687. MSM_BACKEND_DAI_SEC_I2S_RX,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5691. MSM_BACKEND_DAI_SEC_I2S_RX,
  5692. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5693. msm_routing_put_audio_mixer),
  5694. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5695. MSM_BACKEND_DAI_SEC_I2S_RX,
  5696. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5697. msm_routing_put_audio_mixer),
  5698. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5699. MSM_BACKEND_DAI_SEC_I2S_RX,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5703. MSM_BACKEND_DAI_SEC_I2S_RX,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. };
  5707. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5708. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5709. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5710. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5711. msm_routing_put_audio_mixer),
  5712. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5713. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5714. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5715. msm_routing_put_audio_mixer),
  5716. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5717. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5718. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5719. msm_routing_put_audio_mixer),
  5720. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5721. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5722. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5723. msm_routing_put_audio_mixer),
  5724. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5725. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5729. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5730. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5731. msm_routing_put_audio_mixer),
  5732. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5733. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5749. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5765. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5769. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5773. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5774. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5775. msm_routing_put_audio_mixer),
  5776. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5777. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5781. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5785. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5786. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5787. msm_routing_put_audio_mixer),
  5788. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5789. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5790. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5791. msm_routing_put_audio_mixer),
  5792. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5793. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5794. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5795. msm_routing_put_audio_mixer),
  5796. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5797. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5798. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5799. msm_routing_put_audio_mixer),
  5800. };
  5801. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5802. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5803. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5804. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5805. msm_routing_put_audio_mixer),
  5806. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5807. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5808. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5809. msm_routing_put_audio_mixer),
  5810. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5811. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5815. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5816. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5817. msm_routing_put_audio_mixer),
  5818. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5819. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5820. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5821. msm_routing_put_audio_mixer),
  5822. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5823. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5824. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5825. msm_routing_put_audio_mixer),
  5826. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5827. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5828. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5829. msm_routing_put_audio_mixer),
  5830. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5831. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5835. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5836. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5837. msm_routing_put_audio_mixer),
  5838. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5839. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5840. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5841. msm_routing_put_audio_mixer),
  5842. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5843. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5847. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5851. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5855. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5859. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5860. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5861. msm_routing_put_audio_mixer),
  5862. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5863. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5864. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5865. msm_routing_put_audio_mixer),
  5866. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5867. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5868. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5869. msm_routing_put_audio_mixer),
  5870. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5871. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5872. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5873. msm_routing_put_audio_mixer),
  5874. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5875. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5876. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5877. msm_routing_put_audio_mixer),
  5878. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5879. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5880. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5881. msm_routing_put_audio_mixer),
  5882. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5883. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5884. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5885. msm_routing_put_audio_mixer),
  5886. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5887. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5888. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5889. msm_routing_put_audio_mixer),
  5890. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5891. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5892. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5893. msm_routing_put_audio_mixer),
  5894. };
  5895. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5896. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5897. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5898. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5899. msm_routing_put_audio_mixer),
  5900. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5901. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5902. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5903. msm_routing_put_audio_mixer),
  5904. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5905. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5906. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5907. msm_routing_put_audio_mixer),
  5908. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5909. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5910. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5911. msm_routing_put_audio_mixer),
  5912. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5913. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5914. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5915. msm_routing_put_audio_mixer),
  5916. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5917. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5918. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5919. msm_routing_put_audio_mixer),
  5920. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5921. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5922. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5923. msm_routing_put_audio_mixer),
  5924. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5925. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5926. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5927. msm_routing_put_audio_mixer),
  5928. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5929. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5930. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5931. msm_routing_put_audio_mixer),
  5932. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5933. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5934. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5935. msm_routing_put_audio_mixer),
  5936. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5937. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5941. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5942. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5943. msm_routing_put_audio_mixer),
  5944. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5945. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5946. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5947. msm_routing_put_audio_mixer),
  5948. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5949. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5953. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5954. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5955. msm_routing_put_audio_mixer),
  5956. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5957. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5958. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5959. msm_routing_put_audio_mixer),
  5960. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5961. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. };
  5965. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5966. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5967. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5968. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5969. msm_routing_put_audio_mixer),
  5970. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5971. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5972. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5973. msm_routing_put_audio_mixer),
  5974. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5975. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5976. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5977. msm_routing_put_audio_mixer),
  5978. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5979. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5980. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5981. msm_routing_put_audio_mixer),
  5982. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5983. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5984. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5985. msm_routing_put_audio_mixer),
  5986. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5987. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5988. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5989. msm_routing_put_audio_mixer),
  5990. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5991. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5992. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5993. msm_routing_put_audio_mixer),
  5994. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5995. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5996. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5997. msm_routing_put_audio_mixer),
  5998. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5999. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6000. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6001. msm_routing_put_audio_mixer),
  6002. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6003. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6004. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6005. msm_routing_put_audio_mixer),
  6006. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6007. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6008. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6009. msm_routing_put_audio_mixer),
  6010. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6011. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6015. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6016. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6017. msm_routing_put_audio_mixer),
  6018. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6019. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6020. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6021. msm_routing_put_audio_mixer),
  6022. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6023. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6027. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6028. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6029. msm_routing_put_audio_mixer),
  6030. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6031. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6032. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6033. msm_routing_put_audio_mixer),
  6034. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6035. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6039. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6043. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6047. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6048. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6049. msm_routing_put_audio_mixer),
  6050. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6051. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6052. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6053. msm_routing_put_audio_mixer),
  6054. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6055. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. };
  6059. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  6060. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6061. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6062. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6063. msm_routing_put_audio_mixer),
  6064. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6065. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6066. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6067. msm_routing_put_audio_mixer),
  6068. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6069. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6070. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6071. msm_routing_put_audio_mixer),
  6072. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6073. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6074. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6075. msm_routing_put_audio_mixer),
  6076. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6077. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6078. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6079. msm_routing_put_audio_mixer),
  6080. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6081. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6082. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6083. msm_routing_put_audio_mixer),
  6084. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6085. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6086. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6087. msm_routing_put_audio_mixer),
  6088. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6089. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6090. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6091. msm_routing_put_audio_mixer),
  6092. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6093. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6094. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6095. msm_routing_put_audio_mixer),
  6096. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6097. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6098. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6099. msm_routing_put_audio_mixer),
  6100. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6101. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6102. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6103. msm_routing_put_audio_mixer),
  6104. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6105. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6106. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6107. msm_routing_put_audio_mixer),
  6108. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6109. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6110. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6111. msm_routing_put_audio_mixer),
  6112. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6113. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6114. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6115. msm_routing_put_audio_mixer),
  6116. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6117. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6121. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6122. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6123. msm_routing_put_audio_mixer),
  6124. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6125. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6126. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6127. msm_routing_put_audio_mixer),
  6128. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6129. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6130. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6131. msm_routing_put_audio_mixer),
  6132. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6133. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6134. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6135. msm_routing_put_audio_mixer),
  6136. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6137. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6141. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6142. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6143. msm_routing_put_audio_mixer),
  6144. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6145. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6149. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. };
  6153. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  6154. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6155. MSM_BACKEND_DAI_MI2S_RX,
  6156. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6157. msm_routing_put_audio_mixer),
  6158. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6159. MSM_BACKEND_DAI_MI2S_RX,
  6160. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6161. msm_routing_put_audio_mixer),
  6162. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6163. MSM_BACKEND_DAI_MI2S_RX,
  6164. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6165. msm_routing_put_audio_mixer),
  6166. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6167. MSM_BACKEND_DAI_MI2S_RX,
  6168. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6169. msm_routing_put_audio_mixer),
  6170. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6171. MSM_BACKEND_DAI_MI2S_RX,
  6172. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6173. msm_routing_put_audio_mixer),
  6174. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6175. MSM_BACKEND_DAI_MI2S_RX,
  6176. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6177. msm_routing_put_audio_mixer),
  6178. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6179. MSM_BACKEND_DAI_MI2S_RX,
  6180. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6181. msm_routing_put_audio_mixer),
  6182. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6183. MSM_BACKEND_DAI_MI2S_RX,
  6184. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6185. msm_routing_put_audio_mixer),
  6186. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6187. MSM_BACKEND_DAI_MI2S_RX,
  6188. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6189. msm_routing_put_audio_mixer),
  6190. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6191. MSM_BACKEND_DAI_MI2S_RX,
  6192. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6193. msm_routing_put_audio_mixer),
  6194. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6195. MSM_BACKEND_DAI_MI2S_RX,
  6196. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6197. msm_routing_put_audio_mixer),
  6198. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6199. MSM_BACKEND_DAI_MI2S_RX,
  6200. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6201. msm_routing_put_audio_mixer),
  6202. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6203. MSM_BACKEND_DAI_MI2S_RX,
  6204. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6205. msm_routing_put_audio_mixer),
  6206. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6207. MSM_BACKEND_DAI_MI2S_RX,
  6208. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6209. msm_routing_put_audio_mixer),
  6210. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6211. MSM_BACKEND_DAI_MI2S_RX,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6215. MSM_BACKEND_DAI_MI2S_RX,
  6216. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6217. msm_routing_put_audio_mixer),
  6218. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6219. MSM_BACKEND_DAI_MI2S_RX,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6223. MSM_BACKEND_DAI_MI2S_RX,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6227. MSM_BACKEND_DAI_MI2S_RX,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6231. MSM_BACKEND_DAI_MI2S_RX,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6235. MSM_BACKEND_DAI_MI2S_RX,
  6236. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6237. msm_routing_put_audio_mixer),
  6238. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6239. MSM_BACKEND_DAI_MI2S_RX,
  6240. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6241. msm_routing_put_audio_mixer),
  6242. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6243. MSM_BACKEND_DAI_MI2S_RX,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. };
  6247. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  6248. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6249. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6250. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6251. msm_routing_put_audio_mixer),
  6252. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6253. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6254. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6255. msm_routing_put_audio_mixer),
  6256. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6257. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6258. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6259. msm_routing_put_audio_mixer),
  6260. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6261. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6262. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6263. msm_routing_put_audio_mixer),
  6264. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6265. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6266. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6267. msm_routing_put_audio_mixer),
  6268. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6269. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6270. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6271. msm_routing_put_audio_mixer),
  6272. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6273. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6274. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6275. msm_routing_put_audio_mixer),
  6276. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6277. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6278. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6279. msm_routing_put_audio_mixer),
  6280. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6281. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6282. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6283. msm_routing_put_audio_mixer),
  6284. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6285. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6286. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6287. msm_routing_put_audio_mixer),
  6288. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6289. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6293. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6297. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6298. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6299. msm_routing_put_audio_mixer),
  6300. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6301. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6302. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6303. msm_routing_put_audio_mixer),
  6304. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6305. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6309. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6310. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6311. msm_routing_put_audio_mixer),
  6312. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6313. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6314. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6315. msm_routing_put_audio_mixer),
  6316. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6317. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6321. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6322. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6323. msm_routing_put_audio_mixer),
  6324. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6325. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6329. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. };
  6345. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6346. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6347. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6348. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6349. msm_routing_put_audio_mixer),
  6350. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6351. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6352. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6353. msm_routing_put_audio_mixer),
  6354. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6355. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6356. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6357. msm_routing_put_audio_mixer),
  6358. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6359. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6360. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6361. msm_routing_put_audio_mixer),
  6362. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6363. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6364. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6365. msm_routing_put_audio_mixer),
  6366. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6367. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6368. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6369. msm_routing_put_audio_mixer),
  6370. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6371. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6372. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6373. msm_routing_put_audio_mixer),
  6374. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6375. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6376. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6377. msm_routing_put_audio_mixer),
  6378. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6379. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6380. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6381. msm_routing_put_audio_mixer),
  6382. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6383. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6384. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6385. msm_routing_put_audio_mixer),
  6386. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6387. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6388. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6389. msm_routing_put_audio_mixer),
  6390. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6391. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6392. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6393. msm_routing_put_audio_mixer),
  6394. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6395. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6396. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6397. msm_routing_put_audio_mixer),
  6398. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6399. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6400. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6401. msm_routing_put_audio_mixer),
  6402. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6403. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6404. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6405. msm_routing_put_audio_mixer),
  6406. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6407. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6408. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6409. msm_routing_put_audio_mixer),
  6410. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6411. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6412. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6413. msm_routing_put_audio_mixer),
  6414. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6415. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6416. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6417. msm_routing_put_audio_mixer),
  6418. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6419. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6420. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6421. msm_routing_put_audio_mixer),
  6422. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6423. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6424. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6425. msm_routing_put_audio_mixer),
  6426. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6427. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6428. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6429. msm_routing_put_audio_mixer),
  6430. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6431. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6432. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6433. msm_routing_put_audio_mixer),
  6434. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6435. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6436. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6437. msm_routing_put_audio_mixer),
  6438. };
  6439. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6440. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6441. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6442. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6443. msm_routing_put_audio_mixer),
  6444. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6445. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6446. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6447. msm_routing_put_audio_mixer),
  6448. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6449. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6450. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6451. msm_routing_put_audio_mixer),
  6452. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6453. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6454. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6455. msm_routing_put_audio_mixer),
  6456. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6457. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6458. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6459. msm_routing_put_audio_mixer),
  6460. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6461. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6462. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6463. msm_routing_put_audio_mixer),
  6464. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6465. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6466. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6467. msm_routing_put_audio_mixer),
  6468. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6469. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6470. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6471. msm_routing_put_audio_mixer),
  6472. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6473. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6474. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6475. msm_routing_put_audio_mixer),
  6476. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6477. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6478. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6479. msm_routing_put_audio_mixer),
  6480. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6481. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6482. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6483. msm_routing_put_audio_mixer),
  6484. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6485. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6486. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6487. msm_routing_put_audio_mixer),
  6488. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6489. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6490. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6491. msm_routing_put_audio_mixer),
  6492. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6493. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6494. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6495. msm_routing_put_audio_mixer),
  6496. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6497. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6498. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6499. msm_routing_put_audio_mixer),
  6500. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6501. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6502. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6503. msm_routing_put_audio_mixer),
  6504. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6505. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6506. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6507. msm_routing_put_audio_mixer),
  6508. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6509. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6510. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6511. msm_routing_put_audio_mixer),
  6512. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6513. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6517. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6518. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6519. msm_routing_put_audio_mixer),
  6520. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6521. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6522. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6523. msm_routing_put_audio_mixer),
  6524. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6525. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6526. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6527. msm_routing_put_audio_mixer),
  6528. };
  6529. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6530. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6531. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6535. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6536. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6537. msm_routing_put_audio_mixer),
  6538. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6539. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6540. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6541. msm_routing_put_audio_mixer),
  6542. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6543. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6544. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6545. msm_routing_put_audio_mixer),
  6546. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6547. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6548. MSM_FRONTEND_DAI_MULTIMEDIA5, 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_TERTIARY_MI2S_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_TERTIARY_MI2S_RX,
  6556. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6557. msm_routing_put_audio_mixer),
  6558. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6559. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6560. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6561. msm_routing_put_audio_mixer),
  6562. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6563. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6564. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6565. msm_routing_put_audio_mixer),
  6566. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6567. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6568. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6569. msm_routing_put_audio_mixer),
  6570. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6571. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6572. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6573. msm_routing_put_audio_mixer),
  6574. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6575. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6576. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6577. msm_routing_put_audio_mixer),
  6578. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6579. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6580. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6583. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6584. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6585. msm_routing_put_audio_mixer),
  6586. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6587. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6588. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6589. msm_routing_put_audio_mixer),
  6590. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6591. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6592. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6593. msm_routing_put_audio_mixer),
  6594. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6595. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6596. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6597. msm_routing_put_audio_mixer),
  6598. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6599. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6600. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6601. msm_routing_put_audio_mixer),
  6602. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6603. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6604. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6605. msm_routing_put_audio_mixer),
  6606. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6607. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6608. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6609. msm_routing_put_audio_mixer),
  6610. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6611. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6612. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6613. msm_routing_put_audio_mixer),
  6614. };
  6615. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6616. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6617. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6618. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6619. msm_routing_put_audio_mixer),
  6620. };
  6621. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6622. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6623. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6624. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6625. msm_routing_put_audio_mixer),
  6626. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6627. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6628. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6629. msm_routing_put_audio_mixer),
  6630. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6631. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6632. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6633. msm_routing_put_audio_mixer),
  6634. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6635. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6636. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6637. msm_routing_put_audio_mixer),
  6638. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6639. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6640. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6641. msm_routing_put_audio_mixer),
  6642. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6643. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6644. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6645. msm_routing_put_audio_mixer),
  6646. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6647. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6648. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6649. msm_routing_put_audio_mixer),
  6650. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6651. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6652. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6653. msm_routing_put_audio_mixer),
  6654. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6655. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6656. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6657. msm_routing_put_audio_mixer),
  6658. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6659. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6660. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6661. msm_routing_put_audio_mixer),
  6662. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6663. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6664. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6665. msm_routing_put_audio_mixer),
  6666. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6667. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6668. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6669. msm_routing_put_audio_mixer),
  6670. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6671. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6672. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6673. msm_routing_put_audio_mixer),
  6674. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6675. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6676. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6677. msm_routing_put_audio_mixer),
  6678. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6679. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6680. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6681. msm_routing_put_audio_mixer),
  6682. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6683. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6684. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6685. msm_routing_put_audio_mixer),
  6686. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6687. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6688. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6689. msm_routing_put_audio_mixer),
  6690. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6691. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6692. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6693. msm_routing_put_audio_mixer),
  6694. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6695. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6696. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6697. msm_routing_put_audio_mixer),
  6698. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6699. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6700. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6701. msm_routing_put_audio_mixer),
  6702. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6703. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6704. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6705. msm_routing_put_audio_mixer),
  6706. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6707. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6708. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6709. msm_routing_put_audio_mixer),
  6710. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6711. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6712. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6713. msm_routing_put_audio_mixer),
  6714. };
  6715. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6716. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6717. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6718. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6719. msm_routing_put_audio_mixer),
  6720. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6721. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6722. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6723. msm_routing_put_audio_mixer),
  6724. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6725. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6726. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6727. msm_routing_put_audio_mixer),
  6728. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6729. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6730. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6731. msm_routing_put_audio_mixer),
  6732. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6733. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6737. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6738. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6739. msm_routing_put_audio_mixer),
  6740. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6741. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6742. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6743. msm_routing_put_audio_mixer),
  6744. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6745. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6746. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6747. msm_routing_put_audio_mixer),
  6748. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6749. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6750. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6751. msm_routing_put_audio_mixer),
  6752. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6753. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6754. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6755. msm_routing_put_audio_mixer),
  6756. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6757. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6761. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6762. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6763. msm_routing_put_audio_mixer),
  6764. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6765. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6766. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6767. msm_routing_put_audio_mixer),
  6768. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6769. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6773. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6774. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6775. msm_routing_put_audio_mixer),
  6776. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6777. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6778. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6779. msm_routing_put_audio_mixer),
  6780. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6781. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6782. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6783. msm_routing_put_audio_mixer),
  6784. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6785. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6786. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6787. msm_routing_put_audio_mixer),
  6788. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6789. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6790. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6791. msm_routing_put_audio_mixer),
  6792. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6793. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6794. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6795. msm_routing_put_audio_mixer),
  6796. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6797. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6798. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6799. msm_routing_put_audio_mixer),
  6800. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6801. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6802. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6803. msm_routing_put_audio_mixer),
  6804. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6805. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6806. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6807. msm_routing_put_audio_mixer),
  6808. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  6809. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6810. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_audio_mixer,
  6811. msm_routing_put_audio_mixer),
  6812. };
  6813. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6814. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6815. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6816. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6817. msm_routing_put_audio_mixer),
  6818. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6819. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6820. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6821. msm_routing_put_audio_mixer),
  6822. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6823. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6824. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6825. msm_routing_put_audio_mixer),
  6826. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6827. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6828. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6829. msm_routing_put_audio_mixer),
  6830. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6831. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6835. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6836. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6837. msm_routing_put_audio_mixer),
  6838. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6839. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6840. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6841. msm_routing_put_audio_mixer),
  6842. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6843. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6847. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6848. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6849. msm_routing_put_audio_mixer),
  6850. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6851. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6852. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6853. msm_routing_put_audio_mixer),
  6854. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6855. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6856. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6857. msm_routing_put_audio_mixer),
  6858. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6859. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6860. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6861. msm_routing_put_audio_mixer),
  6862. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6863. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6864. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6865. msm_routing_put_audio_mixer),
  6866. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6867. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6868. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6869. msm_routing_put_audio_mixer),
  6870. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6871. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6872. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6873. msm_routing_put_audio_mixer),
  6874. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6875. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6876. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6877. msm_routing_put_audio_mixer),
  6878. };
  6879. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6880. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6881. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6882. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6883. msm_routing_put_audio_mixer),
  6884. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6885. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6886. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6887. msm_routing_put_audio_mixer),
  6888. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6889. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6890. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6891. msm_routing_put_audio_mixer),
  6892. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6893. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6894. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6895. msm_routing_put_audio_mixer),
  6896. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6897. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6898. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6899. msm_routing_put_audio_mixer),
  6900. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6901. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6902. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6903. msm_routing_put_audio_mixer),
  6904. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6905. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6906. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6907. msm_routing_put_audio_mixer),
  6908. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6909. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6910. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6911. msm_routing_put_audio_mixer),
  6912. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6913. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6914. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6915. msm_routing_put_audio_mixer),
  6916. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6917. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6921. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6922. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6923. msm_routing_put_audio_mixer),
  6924. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6925. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6926. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6927. msm_routing_put_audio_mixer),
  6928. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6929. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6930. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6931. msm_routing_put_audio_mixer),
  6932. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6933. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6934. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6935. msm_routing_put_audio_mixer),
  6936. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6937. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6938. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6939. msm_routing_put_audio_mixer),
  6940. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6941. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6942. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6943. msm_routing_put_audio_mixer),
  6944. };
  6945. static const struct snd_kcontrol_new pri_meta_mi2s_rx_mixer_controls[] = {
  6946. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6947. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6948. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6949. msm_routing_put_audio_mixer),
  6950. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6951. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6952. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6953. msm_routing_put_audio_mixer),
  6954. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6955. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6956. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6957. msm_routing_put_audio_mixer),
  6958. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6959. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6960. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6961. msm_routing_put_audio_mixer),
  6962. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6963. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6964. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6965. msm_routing_put_audio_mixer),
  6966. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6967. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6968. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6969. msm_routing_put_audio_mixer),
  6970. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6971. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6972. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6973. msm_routing_put_audio_mixer),
  6974. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6975. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6976. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6977. msm_routing_put_audio_mixer),
  6978. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6979. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6980. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6981. msm_routing_put_audio_mixer),
  6982. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6983. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6984. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6985. msm_routing_put_audio_mixer),
  6986. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6987. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6988. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6989. msm_routing_put_audio_mixer),
  6990. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6991. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6992. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6993. msm_routing_put_audio_mixer),
  6994. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6995. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6996. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6997. msm_routing_put_audio_mixer),
  6998. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6999. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7000. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7001. msm_routing_put_audio_mixer),
  7002. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7003. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7004. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7005. msm_routing_put_audio_mixer),
  7006. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7007. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7008. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7009. msm_routing_put_audio_mixer),
  7010. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7011. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7012. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7013. msm_routing_put_audio_mixer),
  7014. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7015. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7016. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7017. msm_routing_put_audio_mixer),
  7018. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7019. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7020. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7021. msm_routing_put_audio_mixer),
  7022. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7023. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7024. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7025. msm_routing_put_audio_mixer),
  7026. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7027. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7028. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7029. msm_routing_put_audio_mixer),
  7030. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7031. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7032. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7033. msm_routing_put_audio_mixer),
  7034. };
  7035. static const struct snd_kcontrol_new sec_meta_mi2s_rx_mixer_controls[] = {
  7036. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7037. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7038. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7039. msm_routing_put_audio_mixer),
  7040. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7041. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7042. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7043. msm_routing_put_audio_mixer),
  7044. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7045. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7046. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7047. msm_routing_put_audio_mixer),
  7048. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7049. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7050. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7051. msm_routing_put_audio_mixer),
  7052. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7053. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7054. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7055. msm_routing_put_audio_mixer),
  7056. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7057. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7058. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7059. msm_routing_put_audio_mixer),
  7060. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7061. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7062. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7063. msm_routing_put_audio_mixer),
  7064. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7065. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7066. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7067. msm_routing_put_audio_mixer),
  7068. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7069. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7070. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7071. msm_routing_put_audio_mixer),
  7072. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7073. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7074. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7075. msm_routing_put_audio_mixer),
  7076. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7077. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7078. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7079. msm_routing_put_audio_mixer),
  7080. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7081. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7082. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7083. msm_routing_put_audio_mixer),
  7084. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7085. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7086. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7087. msm_routing_put_audio_mixer),
  7088. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7089. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7090. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7091. msm_routing_put_audio_mixer),
  7092. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7093. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7094. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7095. msm_routing_put_audio_mixer),
  7096. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7097. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7098. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7099. msm_routing_put_audio_mixer),
  7100. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7101. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7102. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7103. msm_routing_put_audio_mixer),
  7104. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7105. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7106. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7107. msm_routing_put_audio_mixer),
  7108. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7109. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7110. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7111. msm_routing_put_audio_mixer),
  7112. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7113. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7114. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7115. msm_routing_put_audio_mixer),
  7116. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7117. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7118. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7119. msm_routing_put_audio_mixer),
  7120. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7121. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7122. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7123. msm_routing_put_audio_mixer),
  7124. };
  7125. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  7126. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7127. MSM_BACKEND_DAI_HDMI_RX,
  7128. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7129. msm_routing_put_audio_mixer),
  7130. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7131. MSM_BACKEND_DAI_HDMI_RX,
  7132. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7133. msm_routing_put_audio_mixer),
  7134. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7135. MSM_BACKEND_DAI_HDMI_RX,
  7136. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7137. msm_routing_put_audio_mixer),
  7138. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7139. MSM_BACKEND_DAI_HDMI_RX,
  7140. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7141. msm_routing_put_audio_mixer),
  7142. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7143. MSM_BACKEND_DAI_HDMI_RX,
  7144. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7145. msm_routing_put_audio_mixer),
  7146. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7147. MSM_BACKEND_DAI_HDMI_RX,
  7148. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7149. msm_routing_put_audio_mixer),
  7150. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7151. MSM_BACKEND_DAI_HDMI_RX,
  7152. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7153. msm_routing_put_audio_mixer),
  7154. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7155. MSM_BACKEND_DAI_HDMI_RX,
  7156. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7157. msm_routing_put_audio_mixer),
  7158. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7159. MSM_BACKEND_DAI_HDMI_RX,
  7160. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7161. msm_routing_put_audio_mixer),
  7162. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7163. MSM_BACKEND_DAI_HDMI_RX,
  7164. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7165. msm_routing_put_audio_mixer),
  7166. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7167. MSM_BACKEND_DAI_HDMI_RX,
  7168. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7169. msm_routing_put_audio_mixer),
  7170. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7171. MSM_BACKEND_DAI_HDMI_RX,
  7172. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7173. msm_routing_put_audio_mixer),
  7174. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7175. MSM_BACKEND_DAI_HDMI_RX,
  7176. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7177. msm_routing_put_audio_mixer),
  7178. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7179. MSM_BACKEND_DAI_HDMI_RX,
  7180. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7181. msm_routing_put_audio_mixer),
  7182. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7183. MSM_BACKEND_DAI_HDMI_RX,
  7184. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7185. msm_routing_put_audio_mixer),
  7186. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7187. MSM_BACKEND_DAI_HDMI_RX,
  7188. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7189. msm_routing_put_audio_mixer),
  7190. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7191. MSM_BACKEND_DAI_HDMI_RX,
  7192. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7193. msm_routing_put_audio_mixer),
  7194. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7195. MSM_BACKEND_DAI_HDMI_RX,
  7196. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7197. msm_routing_put_audio_mixer),
  7198. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7199. MSM_BACKEND_DAI_HDMI_RX,
  7200. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7201. msm_routing_put_audio_mixer),
  7202. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7203. MSM_BACKEND_DAI_HDMI_RX,
  7204. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7205. msm_routing_put_audio_mixer),
  7206. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7207. MSM_BACKEND_DAI_HDMI_RX,
  7208. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7209. msm_routing_put_audio_mixer),
  7210. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7211. MSM_BACKEND_DAI_HDMI_RX,
  7212. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7213. msm_routing_put_audio_mixer),
  7214. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  7215. MSM_BACKEND_DAI_HDMI_RX,
  7216. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  7217. msm_routing_put_audio_mixer),
  7218. };
  7219. static const struct snd_kcontrol_new hdmi_ms_mixer_controls[] = {
  7220. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7221. MSM_BACKEND_DAI_HDMI_RX_MS,
  7222. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7223. msm_routing_put_audio_mixer),
  7224. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7225. MSM_BACKEND_DAI_HDMI_RX_MS,
  7226. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7227. msm_routing_put_audio_mixer),
  7228. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7229. MSM_BACKEND_DAI_HDMI_RX_MS,
  7230. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7231. msm_routing_put_audio_mixer),
  7232. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7233. MSM_BACKEND_DAI_HDMI_RX_MS,
  7234. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7235. msm_routing_put_audio_mixer),
  7236. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7237. MSM_BACKEND_DAI_HDMI_RX_MS,
  7238. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7239. msm_routing_put_audio_mixer),
  7240. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7241. MSM_BACKEND_DAI_HDMI_RX_MS,
  7242. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7243. msm_routing_put_audio_mixer),
  7244. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7245. MSM_BACKEND_DAI_HDMI_RX_MS,
  7246. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7247. msm_routing_put_audio_mixer),
  7248. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7249. MSM_BACKEND_DAI_HDMI_RX_MS,
  7250. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7251. msm_routing_put_audio_mixer),
  7252. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7253. MSM_BACKEND_DAI_HDMI_RX_MS,
  7254. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7255. msm_routing_put_audio_mixer),
  7256. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7257. MSM_BACKEND_DAI_HDMI_RX_MS,
  7258. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7259. msm_routing_put_audio_mixer),
  7260. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7261. MSM_BACKEND_DAI_HDMI_RX_MS,
  7262. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7263. msm_routing_put_audio_mixer),
  7264. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7265. MSM_BACKEND_DAI_HDMI_RX_MS,
  7266. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7267. msm_routing_put_audio_mixer),
  7268. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7269. MSM_BACKEND_DAI_HDMI_RX_MS,
  7270. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7271. msm_routing_put_audio_mixer),
  7272. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7273. MSM_BACKEND_DAI_HDMI_RX_MS,
  7274. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7275. msm_routing_put_audio_mixer),
  7276. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7277. MSM_BACKEND_DAI_HDMI_RX_MS,
  7278. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7279. msm_routing_put_audio_mixer),
  7280. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7281. MSM_BACKEND_DAI_HDMI_RX_MS,
  7282. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7283. msm_routing_put_audio_mixer),
  7284. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7285. MSM_BACKEND_DAI_HDMI_RX_MS,
  7286. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7287. msm_routing_put_audio_mixer),
  7288. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7289. MSM_BACKEND_DAI_HDMI_RX_MS,
  7290. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7291. msm_routing_put_audio_mixer),
  7292. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7293. MSM_BACKEND_DAI_HDMI_RX_MS,
  7294. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7295. msm_routing_put_audio_mixer),
  7296. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7297. MSM_BACKEND_DAI_HDMI_RX_MS,
  7298. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7299. msm_routing_put_audio_mixer),
  7300. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7301. MSM_BACKEND_DAI_HDMI_RX_MS,
  7302. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7303. msm_routing_put_audio_mixer),
  7304. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7305. MSM_BACKEND_DAI_HDMI_RX_MS,
  7306. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7307. msm_routing_put_audio_mixer),
  7308. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  7309. MSM_BACKEND_DAI_HDMI_RX_MS,
  7310. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  7311. msm_routing_put_audio_mixer),
  7312. };
  7313. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  7314. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7315. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7316. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7317. msm_routing_put_audio_mixer),
  7318. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7319. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7320. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7321. msm_routing_put_audio_mixer),
  7322. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7323. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7324. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7325. msm_routing_put_audio_mixer),
  7326. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7327. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7328. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7329. msm_routing_put_audio_mixer),
  7330. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7331. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7332. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7333. msm_routing_put_audio_mixer),
  7334. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7335. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7336. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7337. msm_routing_put_audio_mixer),
  7338. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7339. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7340. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7341. msm_routing_put_audio_mixer),
  7342. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7343. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7344. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7345. msm_routing_put_audio_mixer),
  7346. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7347. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7348. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7349. msm_routing_put_audio_mixer),
  7350. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7351. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7352. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7353. msm_routing_put_audio_mixer),
  7354. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7355. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7356. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7357. msm_routing_put_audio_mixer),
  7358. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7359. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7360. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7361. msm_routing_put_audio_mixer),
  7362. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7363. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7364. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7365. msm_routing_put_audio_mixer),
  7366. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7367. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7368. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7369. msm_routing_put_audio_mixer),
  7370. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7371. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7372. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7373. msm_routing_put_audio_mixer),
  7374. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7375. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7376. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7377. msm_routing_put_audio_mixer),
  7378. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7379. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7380. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7381. msm_routing_put_audio_mixer),
  7382. };
  7383. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  7384. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7385. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7386. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7387. msm_routing_put_audio_mixer),
  7388. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7389. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7390. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7391. msm_routing_put_audio_mixer),
  7392. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7393. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7394. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7395. msm_routing_put_audio_mixer),
  7396. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7397. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7398. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7399. msm_routing_put_audio_mixer),
  7400. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7401. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7402. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7403. msm_routing_put_audio_mixer),
  7404. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7405. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7406. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7407. msm_routing_put_audio_mixer),
  7408. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7409. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7410. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7411. msm_routing_put_audio_mixer),
  7412. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7413. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7414. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7415. msm_routing_put_audio_mixer),
  7416. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7417. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7418. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7419. msm_routing_put_audio_mixer),
  7420. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7421. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7422. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7423. msm_routing_put_audio_mixer),
  7424. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7425. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7426. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7427. msm_routing_put_audio_mixer),
  7428. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7429. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7430. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7431. msm_routing_put_audio_mixer),
  7432. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7433. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7434. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7435. msm_routing_put_audio_mixer),
  7436. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7437. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7438. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7439. msm_routing_put_audio_mixer),
  7440. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7441. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7442. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7443. msm_routing_put_audio_mixer),
  7444. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7445. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7446. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7447. msm_routing_put_audio_mixer),
  7448. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7449. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7450. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7451. msm_routing_put_audio_mixer),
  7452. };
  7453. /* incall music delivery mixer */
  7454. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  7455. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7456. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7457. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7458. msm_routing_put_audio_mixer),
  7459. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7460. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7461. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7462. msm_routing_put_audio_mixer),
  7463. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7464. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7465. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7466. msm_routing_put_audio_mixer),
  7467. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7468. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7469. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7470. msm_routing_put_audio_mixer),
  7471. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7472. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7473. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7474. msm_routing_put_audio_mixer),
  7475. };
  7476. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  7477. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7478. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7479. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7480. msm_routing_put_audio_mixer),
  7481. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7482. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7483. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7484. msm_routing_put_audio_mixer),
  7485. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7486. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7487. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7488. msm_routing_put_audio_mixer),
  7489. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7490. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7491. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7492. msm_routing_put_audio_mixer),
  7493. };
  7494. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  7495. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7496. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7497. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7498. msm_routing_put_audio_mixer),
  7499. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7500. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7501. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7502. msm_routing_put_audio_mixer),
  7503. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7504. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7505. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7506. msm_routing_put_audio_mixer),
  7507. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7508. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7509. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7510. msm_routing_put_audio_mixer),
  7511. };
  7512. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  7513. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7514. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7515. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7516. msm_routing_put_audio_mixer),
  7517. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7518. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7519. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7520. msm_routing_put_audio_mixer),
  7521. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7522. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7523. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7524. msm_routing_put_audio_mixer),
  7525. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7526. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7527. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7528. msm_routing_put_audio_mixer),
  7529. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7530. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7531. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7532. msm_routing_put_audio_mixer),
  7533. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7534. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7535. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7536. msm_routing_put_audio_mixer),
  7537. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7538. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7539. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7540. msm_routing_put_audio_mixer),
  7541. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7542. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7543. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7544. msm_routing_put_audio_mixer),
  7545. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7546. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7547. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7548. msm_routing_put_audio_mixer),
  7549. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7550. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7551. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7552. msm_routing_put_audio_mixer),
  7553. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7554. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7555. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7556. msm_routing_put_audio_mixer),
  7557. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7558. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7559. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7560. msm_routing_put_audio_mixer),
  7561. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7562. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7563. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7564. msm_routing_put_audio_mixer),
  7565. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7566. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7567. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7568. msm_routing_put_audio_mixer),
  7569. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7570. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7571. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7572. msm_routing_put_audio_mixer),
  7573. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7574. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7575. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7576. msm_routing_put_audio_mixer),
  7577. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7578. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7579. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7580. msm_routing_put_audio_mixer),
  7581. };
  7582. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7583. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7584. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7585. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7586. msm_routing_put_audio_mixer),
  7587. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7588. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7589. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7590. msm_routing_put_audio_mixer),
  7591. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7592. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7593. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7594. msm_routing_put_audio_mixer),
  7595. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7596. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7597. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7598. msm_routing_put_audio_mixer),
  7599. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7600. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7601. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7602. msm_routing_put_audio_mixer),
  7603. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7604. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7605. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7606. msm_routing_put_audio_mixer),
  7607. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7608. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7609. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7610. msm_routing_put_audio_mixer),
  7611. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7612. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7613. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7614. msm_routing_put_audio_mixer),
  7615. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7616. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7617. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7618. msm_routing_put_audio_mixer),
  7619. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7620. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7621. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7622. msm_routing_put_audio_mixer),
  7623. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7624. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7625. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7626. msm_routing_put_audio_mixer),
  7627. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7628. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7629. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7630. msm_routing_put_audio_mixer),
  7631. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7632. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7633. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7634. msm_routing_put_audio_mixer),
  7635. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7636. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7637. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7638. msm_routing_put_audio_mixer),
  7639. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7640. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7641. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7642. msm_routing_put_audio_mixer),
  7643. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7644. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7645. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7646. msm_routing_put_audio_mixer),
  7647. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7648. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7649. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7650. msm_routing_put_audio_mixer),
  7651. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7652. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7653. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7654. msm_routing_put_audio_mixer),
  7655. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7656. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7657. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7658. msm_routing_put_audio_mixer),
  7659. };
  7660. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7661. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7662. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7663. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7664. msm_routing_put_audio_mixer),
  7665. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7666. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7667. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7668. msm_routing_put_audio_mixer),
  7669. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7670. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7671. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7672. msm_routing_put_audio_mixer),
  7673. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7674. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7675. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7676. msm_routing_put_audio_mixer),
  7677. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7678. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7679. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7680. msm_routing_put_audio_mixer),
  7681. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7682. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7683. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7684. msm_routing_put_audio_mixer),
  7685. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7686. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7687. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7688. msm_routing_put_audio_mixer),
  7689. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7690. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7691. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7692. msm_routing_put_audio_mixer),
  7693. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7694. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7695. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7696. msm_routing_put_audio_mixer),
  7697. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7698. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7699. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7700. msm_routing_put_audio_mixer),
  7701. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7702. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7703. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7704. msm_routing_put_audio_mixer),
  7705. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7706. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7707. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7708. msm_routing_put_audio_mixer),
  7709. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7710. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7711. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7712. msm_routing_put_audio_mixer),
  7713. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7714. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7715. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7716. msm_routing_put_audio_mixer),
  7717. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7718. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7719. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7720. msm_routing_put_audio_mixer),
  7721. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7722. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7723. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7724. msm_routing_put_audio_mixer),
  7725. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7726. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7727. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7728. msm_routing_put_audio_mixer),
  7729. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7730. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7731. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7732. msm_routing_put_audio_mixer),
  7733. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7734. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7735. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7736. msm_routing_put_audio_mixer),
  7737. };
  7738. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7739. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7740. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7741. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7742. msm_routing_put_audio_mixer),
  7743. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7744. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7745. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7746. msm_routing_put_audio_mixer),
  7747. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7748. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7749. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7750. msm_routing_put_audio_mixer),
  7751. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7752. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7753. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7754. msm_routing_put_audio_mixer),
  7755. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7756. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7757. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7758. msm_routing_put_audio_mixer),
  7759. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7760. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7761. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7762. msm_routing_put_audio_mixer),
  7763. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7764. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7765. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7766. msm_routing_put_audio_mixer),
  7767. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7768. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7769. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7770. msm_routing_put_audio_mixer),
  7771. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7772. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7773. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7774. msm_routing_put_audio_mixer),
  7775. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7776. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7777. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7778. msm_routing_put_audio_mixer),
  7779. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7780. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7781. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7782. msm_routing_put_audio_mixer),
  7783. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7784. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7785. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7786. msm_routing_put_audio_mixer),
  7787. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7788. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7789. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7790. msm_routing_put_audio_mixer),
  7791. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7792. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7793. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7794. msm_routing_put_audio_mixer),
  7795. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7796. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7797. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7798. msm_routing_put_audio_mixer),
  7799. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7800. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7801. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7802. msm_routing_put_audio_mixer),
  7803. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7804. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7805. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7806. msm_routing_put_audio_mixer),
  7807. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7808. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7809. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7810. msm_routing_put_audio_mixer),
  7811. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7812. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7813. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7814. msm_routing_put_audio_mixer),
  7815. };
  7816. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7817. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7818. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7819. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7820. msm_routing_put_audio_mixer),
  7821. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7822. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7823. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7824. msm_routing_put_audio_mixer),
  7825. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7826. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7827. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7828. msm_routing_put_audio_mixer),
  7829. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7830. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7831. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7832. msm_routing_put_audio_mixer),
  7833. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7834. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7835. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7836. msm_routing_put_audio_mixer),
  7837. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7838. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7839. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7840. msm_routing_put_audio_mixer),
  7841. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7842. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7843. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7844. msm_routing_put_audio_mixer),
  7845. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7846. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7847. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7848. msm_routing_put_audio_mixer),
  7849. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7850. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7851. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7852. msm_routing_put_audio_mixer),
  7853. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7854. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7855. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7856. msm_routing_put_audio_mixer),
  7857. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7858. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7859. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7860. msm_routing_put_audio_mixer),
  7861. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7862. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7863. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7864. msm_routing_put_audio_mixer),
  7865. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7866. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7867. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7868. msm_routing_put_audio_mixer),
  7869. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7870. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7871. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7872. msm_routing_put_audio_mixer),
  7873. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7874. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7875. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7876. msm_routing_put_audio_mixer),
  7877. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7878. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7879. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7880. msm_routing_put_audio_mixer),
  7881. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7882. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7883. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7884. msm_routing_put_audio_mixer),
  7885. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7886. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7887. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7888. msm_routing_put_audio_mixer),
  7889. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7890. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7891. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7892. msm_routing_put_audio_mixer),
  7893. };
  7894. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7895. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7896. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7897. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7898. msm_routing_put_audio_mixer),
  7899. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7900. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7901. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7902. msm_routing_put_audio_mixer),
  7903. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7904. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7905. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7906. msm_routing_put_audio_mixer),
  7907. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7908. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7909. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7910. msm_routing_put_audio_mixer),
  7911. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7912. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7913. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7914. msm_routing_put_audio_mixer),
  7915. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7916. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7917. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7918. msm_routing_put_audio_mixer),
  7919. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7920. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7921. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7922. msm_routing_put_audio_mixer),
  7923. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7924. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7925. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7926. msm_routing_put_audio_mixer),
  7927. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7928. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7929. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7930. msm_routing_put_audio_mixer),
  7931. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7932. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7933. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7934. msm_routing_put_audio_mixer),
  7935. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7936. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7937. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7938. msm_routing_put_audio_mixer),
  7939. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7940. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7941. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7942. msm_routing_put_audio_mixer),
  7943. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7944. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7945. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7946. msm_routing_put_audio_mixer),
  7947. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7948. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7949. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7950. msm_routing_put_audio_mixer),
  7951. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7952. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7953. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7954. msm_routing_put_audio_mixer),
  7955. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7956. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7957. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7958. msm_routing_put_audio_mixer),
  7959. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7960. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7961. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7962. msm_routing_put_audio_mixer),
  7963. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7964. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7965. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7966. msm_routing_put_audio_mixer),
  7967. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7968. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7969. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7970. msm_routing_put_audio_mixer),
  7971. };
  7972. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7973. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7974. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7975. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7976. msm_routing_put_audio_mixer),
  7977. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7978. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7979. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7980. msm_routing_put_audio_mixer),
  7981. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7982. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7983. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7984. msm_routing_put_audio_mixer),
  7985. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7986. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7987. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7988. msm_routing_put_audio_mixer),
  7989. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7990. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7991. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7992. msm_routing_put_audio_mixer),
  7993. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7994. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7995. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7996. msm_routing_put_audio_mixer),
  7997. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7998. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7999. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8000. msm_routing_put_audio_mixer),
  8001. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8002. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8003. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8004. msm_routing_put_audio_mixer),
  8005. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8006. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8007. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8008. msm_routing_put_audio_mixer),
  8009. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8010. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8011. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8012. msm_routing_put_audio_mixer),
  8013. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8014. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8015. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8016. msm_routing_put_audio_mixer),
  8017. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8018. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8019. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8020. msm_routing_put_audio_mixer),
  8021. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8022. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8023. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8024. msm_routing_put_audio_mixer),
  8025. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8026. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8027. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8028. msm_routing_put_audio_mixer),
  8029. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8030. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8031. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8032. msm_routing_put_audio_mixer),
  8033. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8034. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8035. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8036. msm_routing_put_audio_mixer),
  8037. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8038. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8039. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8040. msm_routing_put_audio_mixer),
  8041. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8042. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8043. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8044. msm_routing_put_audio_mixer),
  8045. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8046. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8047. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8048. msm_routing_put_audio_mixer),
  8049. };
  8050. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  8051. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8052. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8053. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8054. msm_routing_put_audio_mixer),
  8055. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8056. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8057. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8058. msm_routing_put_audio_mixer),
  8059. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8060. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8061. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8062. msm_routing_put_audio_mixer),
  8063. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8064. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8065. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8066. msm_routing_put_audio_mixer),
  8067. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8068. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8069. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8070. msm_routing_put_audio_mixer),
  8071. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8072. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8073. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8074. msm_routing_put_audio_mixer),
  8075. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8076. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8077. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8078. msm_routing_put_audio_mixer),
  8079. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8080. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8081. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8082. msm_routing_put_audio_mixer),
  8083. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8084. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8085. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8086. msm_routing_put_audio_mixer),
  8087. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8088. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8089. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8090. msm_routing_put_audio_mixer),
  8091. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8092. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8093. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8094. msm_routing_put_audio_mixer),
  8095. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8096. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8097. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8098. msm_routing_put_audio_mixer),
  8099. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8100. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8101. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8102. msm_routing_put_audio_mixer),
  8103. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8104. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8105. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8106. msm_routing_put_audio_mixer),
  8107. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8108. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8109. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8110. msm_routing_put_audio_mixer),
  8111. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8112. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8113. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8114. msm_routing_put_audio_mixer),
  8115. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8116. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8117. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8118. msm_routing_put_audio_mixer),
  8119. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8120. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8121. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8122. msm_routing_put_audio_mixer),
  8123. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8124. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8125. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8126. msm_routing_put_audio_mixer),
  8127. };
  8128. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  8129. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8130. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8131. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8132. msm_routing_put_audio_mixer),
  8133. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8146. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8147. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8148. msm_routing_put_audio_mixer),
  8149. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8150. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8151. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8152. msm_routing_put_audio_mixer),
  8153. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8154. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8155. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8156. msm_routing_put_audio_mixer),
  8157. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8158. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8159. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8160. msm_routing_put_audio_mixer),
  8161. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8162. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8163. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8164. msm_routing_put_audio_mixer),
  8165. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8166. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8167. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8168. msm_routing_put_audio_mixer),
  8169. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8170. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8171. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8172. msm_routing_put_audio_mixer),
  8173. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8174. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8175. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8176. msm_routing_put_audio_mixer),
  8177. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8178. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8179. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8180. msm_routing_put_audio_mixer),
  8181. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8182. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8183. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8184. msm_routing_put_audio_mixer),
  8185. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8186. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8187. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8188. msm_routing_put_audio_mixer),
  8189. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8190. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8191. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8192. msm_routing_put_audio_mixer),
  8193. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8194. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8195. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8196. msm_routing_put_audio_mixer),
  8197. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8198. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8199. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8200. msm_routing_put_audio_mixer),
  8201. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8202. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8203. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8204. msm_routing_put_audio_mixer),
  8205. };
  8206. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  8207. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8208. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8209. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8210. msm_routing_put_audio_mixer),
  8211. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8212. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8213. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8214. msm_routing_put_audio_mixer),
  8215. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8216. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8217. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8218. msm_routing_put_audio_mixer),
  8219. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8220. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8221. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8222. msm_routing_put_audio_mixer),
  8223. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8224. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8225. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8226. msm_routing_put_audio_mixer),
  8227. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8228. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8229. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8230. msm_routing_put_audio_mixer),
  8231. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8232. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8233. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8234. msm_routing_put_audio_mixer),
  8235. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8236. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8237. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8238. msm_routing_put_audio_mixer),
  8239. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8240. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8241. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8242. msm_routing_put_audio_mixer),
  8243. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8244. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8245. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8246. msm_routing_put_audio_mixer),
  8247. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8248. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8249. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8250. msm_routing_put_audio_mixer),
  8251. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8252. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8253. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8254. msm_routing_put_audio_mixer),
  8255. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8256. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8257. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8258. msm_routing_put_audio_mixer),
  8259. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8260. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8261. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8262. msm_routing_put_audio_mixer),
  8263. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8264. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8265. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8266. msm_routing_put_audio_mixer),
  8267. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8268. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8269. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8270. msm_routing_put_audio_mixer),
  8271. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8272. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8273. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8274. msm_routing_put_audio_mixer),
  8275. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8276. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8277. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8278. msm_routing_put_audio_mixer),
  8279. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8280. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8281. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8282. msm_routing_put_audio_mixer),
  8283. };
  8284. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  8285. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8286. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8287. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8288. msm_routing_put_audio_mixer),
  8289. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8290. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8291. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8292. msm_routing_put_audio_mixer),
  8293. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8294. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8295. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8296. msm_routing_put_audio_mixer),
  8297. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8298. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8299. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8300. msm_routing_put_audio_mixer),
  8301. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8302. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8303. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8304. msm_routing_put_audio_mixer),
  8305. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8306. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8307. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8308. msm_routing_put_audio_mixer),
  8309. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8310. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8311. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8312. msm_routing_put_audio_mixer),
  8313. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8314. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8315. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8316. msm_routing_put_audio_mixer),
  8317. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8318. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8319. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8320. msm_routing_put_audio_mixer),
  8321. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8322. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8323. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8324. msm_routing_put_audio_mixer),
  8325. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8326. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8327. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8328. msm_routing_put_audio_mixer),
  8329. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8330. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8331. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8332. msm_routing_put_audio_mixer),
  8333. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8334. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8335. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8336. msm_routing_put_audio_mixer),
  8337. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8338. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8339. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8340. msm_routing_put_audio_mixer),
  8341. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8342. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8343. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8344. msm_routing_put_audio_mixer),
  8345. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8346. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8347. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8348. msm_routing_put_audio_mixer),
  8349. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8350. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8351. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8352. msm_routing_put_audio_mixer),
  8353. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8354. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8355. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8356. msm_routing_put_audio_mixer),
  8357. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8358. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8359. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8360. msm_routing_put_audio_mixer),
  8361. };
  8362. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  8363. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8364. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8365. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8366. msm_routing_put_audio_mixer),
  8367. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8368. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8369. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8370. msm_routing_put_audio_mixer),
  8371. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8372. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8373. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8374. msm_routing_put_audio_mixer),
  8375. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8376. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8377. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8378. msm_routing_put_audio_mixer),
  8379. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8380. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8381. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8382. msm_routing_put_audio_mixer),
  8383. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8384. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8385. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8386. msm_routing_put_audio_mixer),
  8387. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8388. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8389. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8390. msm_routing_put_audio_mixer),
  8391. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8392. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8393. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8394. msm_routing_put_audio_mixer),
  8395. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8396. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8397. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8398. msm_routing_put_audio_mixer),
  8399. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8400. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8401. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8402. msm_routing_put_audio_mixer),
  8403. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8404. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8405. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8406. msm_routing_put_audio_mixer),
  8407. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8408. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8409. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8410. msm_routing_put_audio_mixer),
  8411. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8412. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8413. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8414. msm_routing_put_audio_mixer),
  8415. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8416. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8417. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8418. msm_routing_put_audio_mixer),
  8419. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8420. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8421. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8422. msm_routing_put_audio_mixer),
  8423. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8424. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8425. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8426. msm_routing_put_audio_mixer),
  8427. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8428. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8429. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8430. msm_routing_put_audio_mixer),
  8431. };
  8432. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  8433. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8434. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8435. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8436. msm_routing_put_audio_mixer),
  8437. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8438. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8439. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8440. msm_routing_put_audio_mixer),
  8441. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8442. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8443. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8444. msm_routing_put_audio_mixer),
  8445. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8446. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8447. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8448. msm_routing_put_audio_mixer),
  8449. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8450. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8451. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8452. msm_routing_put_audio_mixer),
  8453. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8454. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8455. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8456. msm_routing_put_audio_mixer),
  8457. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8458. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8459. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8460. msm_routing_put_audio_mixer),
  8461. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8462. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8463. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8464. msm_routing_put_audio_mixer),
  8465. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8466. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8467. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8468. msm_routing_put_audio_mixer),
  8469. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8470. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8471. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8472. msm_routing_put_audio_mixer),
  8473. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8474. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8475. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8476. msm_routing_put_audio_mixer),
  8477. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8478. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8479. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8480. msm_routing_put_audio_mixer),
  8481. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8482. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8483. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8484. msm_routing_put_audio_mixer),
  8485. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8486. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8487. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8488. msm_routing_put_audio_mixer),
  8489. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8490. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8491. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8492. msm_routing_put_audio_mixer),
  8493. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8494. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8495. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8496. msm_routing_put_audio_mixer),
  8497. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8498. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8499. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8500. msm_routing_put_audio_mixer),
  8501. };
  8502. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  8503. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8504. MSM_BACKEND_DAI_USB_RX,
  8505. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8506. msm_routing_put_audio_mixer),
  8507. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8508. MSM_BACKEND_DAI_USB_RX,
  8509. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8510. msm_routing_put_audio_mixer),
  8511. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8512. MSM_BACKEND_DAI_USB_RX,
  8513. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8514. msm_routing_put_audio_mixer),
  8515. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8516. MSM_BACKEND_DAI_USB_RX,
  8517. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8518. msm_routing_put_audio_mixer),
  8519. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8520. MSM_BACKEND_DAI_USB_RX,
  8521. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8522. msm_routing_put_audio_mixer),
  8523. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8524. MSM_BACKEND_DAI_USB_RX,
  8525. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8526. msm_routing_put_audio_mixer),
  8527. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8528. MSM_BACKEND_DAI_USB_RX,
  8529. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8530. msm_routing_put_audio_mixer),
  8531. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8532. MSM_BACKEND_DAI_USB_RX,
  8533. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8534. msm_routing_put_audio_mixer),
  8535. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8536. MSM_BACKEND_DAI_USB_RX,
  8537. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8538. msm_routing_put_audio_mixer),
  8539. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8540. MSM_BACKEND_DAI_USB_RX,
  8541. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8542. msm_routing_put_audio_mixer),
  8543. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8544. MSM_BACKEND_DAI_USB_RX,
  8545. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8546. msm_routing_put_audio_mixer),
  8547. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8548. MSM_BACKEND_DAI_USB_RX,
  8549. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8550. msm_routing_put_audio_mixer),
  8551. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8552. MSM_BACKEND_DAI_USB_RX,
  8553. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8554. msm_routing_put_audio_mixer),
  8555. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8556. MSM_BACKEND_DAI_USB_RX,
  8557. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8558. msm_routing_put_audio_mixer),
  8559. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8560. MSM_BACKEND_DAI_USB_RX,
  8561. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8562. msm_routing_put_audio_mixer),
  8563. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8564. MSM_BACKEND_DAI_USB_RX,
  8565. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8566. msm_routing_put_audio_mixer),
  8567. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8568. MSM_BACKEND_DAI_USB_RX,
  8569. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8570. msm_routing_put_audio_mixer),
  8571. };
  8572. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  8573. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8574. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8575. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8576. msm_routing_put_audio_mixer),
  8577. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8578. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8579. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8580. msm_routing_put_audio_mixer),
  8581. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8582. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8583. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8584. msm_routing_put_audio_mixer),
  8585. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8586. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8587. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8588. msm_routing_put_audio_mixer),
  8589. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8590. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8591. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8592. msm_routing_put_audio_mixer),
  8593. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8594. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8595. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8596. msm_routing_put_audio_mixer),
  8597. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8598. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8599. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8600. msm_routing_put_audio_mixer),
  8601. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8602. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8603. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8604. msm_routing_put_audio_mixer),
  8605. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8606. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8607. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8608. msm_routing_put_audio_mixer),
  8609. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8610. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8611. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8612. msm_routing_put_audio_mixer),
  8613. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8614. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8615. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8616. msm_routing_put_audio_mixer),
  8617. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8618. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8619. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8620. msm_routing_put_audio_mixer),
  8621. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8622. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8623. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8624. msm_routing_put_audio_mixer),
  8625. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8626. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8627. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8628. msm_routing_put_audio_mixer),
  8629. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8630. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8631. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8632. msm_routing_put_audio_mixer),
  8633. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8634. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8635. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8636. msm_routing_put_audio_mixer),
  8637. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8638. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8639. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8640. msm_routing_put_audio_mixer),
  8641. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8642. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8643. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8644. msm_routing_put_audio_mixer),
  8645. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8646. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8647. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8648. msm_routing_put_audio_mixer),
  8649. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8650. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8651. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8652. msm_routing_put_audio_mixer),
  8653. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8654. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8655. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8656. msm_routing_put_audio_mixer),
  8657. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8658. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8659. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8660. msm_routing_put_audio_mixer),
  8661. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8662. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8663. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8664. msm_routing_put_audio_mixer),
  8665. };
  8666. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8667. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8668. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8669. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8670. msm_routing_put_audio_mixer),
  8671. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8672. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8673. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8674. msm_routing_put_audio_mixer),
  8675. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8676. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8677. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8678. msm_routing_put_audio_mixer),
  8679. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8680. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8681. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8682. msm_routing_put_audio_mixer),
  8683. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8684. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8685. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8686. msm_routing_put_audio_mixer),
  8687. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8688. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8689. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8690. msm_routing_put_audio_mixer),
  8691. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8692. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8693. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8694. msm_routing_put_audio_mixer),
  8695. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8696. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8697. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8698. msm_routing_put_audio_mixer),
  8699. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8700. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8701. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8702. msm_routing_put_audio_mixer),
  8703. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8704. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8705. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8706. msm_routing_put_audio_mixer),
  8707. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8708. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8709. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8710. msm_routing_put_audio_mixer),
  8711. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8712. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8713. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8714. msm_routing_put_audio_mixer),
  8715. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8716. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8717. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8718. msm_routing_put_audio_mixer),
  8719. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8720. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8721. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8722. msm_routing_put_audio_mixer),
  8723. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8724. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8725. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8726. msm_routing_put_audio_mixer),
  8727. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8728. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8729. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8730. msm_routing_put_audio_mixer),
  8731. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8732. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8733. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8734. msm_routing_put_audio_mixer),
  8735. };
  8736. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8737. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8738. MSM_BACKEND_DAI_INT_FM_RX,
  8739. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8740. msm_routing_put_audio_mixer),
  8741. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8742. MSM_BACKEND_DAI_INT_FM_RX,
  8743. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8744. msm_routing_put_audio_mixer),
  8745. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8746. MSM_BACKEND_DAI_INT_FM_RX,
  8747. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8748. msm_routing_put_audio_mixer),
  8749. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8750. MSM_BACKEND_DAI_INT_FM_RX,
  8751. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8752. msm_routing_put_audio_mixer),
  8753. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8754. MSM_BACKEND_DAI_INT_FM_RX,
  8755. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8756. msm_routing_put_audio_mixer),
  8757. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8758. MSM_BACKEND_DAI_INT_FM_RX,
  8759. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8760. msm_routing_put_audio_mixer),
  8761. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8762. MSM_BACKEND_DAI_INT_FM_RX,
  8763. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8764. msm_routing_put_audio_mixer),
  8765. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8766. MSM_BACKEND_DAI_INT_FM_RX,
  8767. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8768. msm_routing_put_audio_mixer),
  8769. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8770. MSM_BACKEND_DAI_INT_FM_RX,
  8771. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8772. msm_routing_put_audio_mixer),
  8773. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8774. MSM_BACKEND_DAI_INT_FM_RX,
  8775. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8776. msm_routing_put_audio_mixer),
  8777. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8778. MSM_BACKEND_DAI_INT_FM_RX,
  8779. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8780. msm_routing_put_audio_mixer),
  8781. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8782. MSM_BACKEND_DAI_INT_FM_RX,
  8783. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8784. msm_routing_put_audio_mixer),
  8785. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8786. MSM_BACKEND_DAI_INT_FM_RX,
  8787. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8788. msm_routing_put_audio_mixer),
  8789. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8790. MSM_BACKEND_DAI_INT_FM_RX,
  8791. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8792. msm_routing_put_audio_mixer),
  8793. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8794. MSM_BACKEND_DAI_INT_FM_RX,
  8795. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8796. msm_routing_put_audio_mixer),
  8797. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8798. MSM_BACKEND_DAI_INT_FM_RX,
  8799. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8800. msm_routing_put_audio_mixer),
  8801. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8802. MSM_BACKEND_DAI_INT_FM_RX,
  8803. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8804. msm_routing_put_audio_mixer),
  8805. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8806. MSM_BACKEND_DAI_INT_FM_RX,
  8807. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8808. msm_routing_put_audio_mixer),
  8809. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8810. MSM_BACKEND_DAI_INT_FM_RX,
  8811. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8812. msm_routing_put_audio_mixer),
  8813. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8814. MSM_BACKEND_DAI_INT_FM_RX,
  8815. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8816. msm_routing_put_audio_mixer),
  8817. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8818. MSM_BACKEND_DAI_INT_FM_RX,
  8819. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8820. msm_routing_put_audio_mixer),
  8821. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8822. MSM_BACKEND_DAI_INT_FM_RX,
  8823. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8824. msm_routing_put_audio_mixer),
  8825. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8826. MSM_BACKEND_DAI_INT_FM_RX,
  8827. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8828. msm_routing_put_audio_mixer),
  8829. };
  8830. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8831. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8832. MSM_BACKEND_DAI_AFE_PCM_RX,
  8833. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8834. msm_routing_put_audio_mixer),
  8835. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8836. MSM_BACKEND_DAI_AFE_PCM_RX,
  8837. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8838. msm_routing_put_audio_mixer),
  8839. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8840. MSM_BACKEND_DAI_AFE_PCM_RX,
  8841. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8842. msm_routing_put_audio_mixer),
  8843. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8844. MSM_BACKEND_DAI_AFE_PCM_RX,
  8845. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8846. msm_routing_put_audio_mixer),
  8847. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8848. MSM_BACKEND_DAI_AFE_PCM_RX,
  8849. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8850. msm_routing_put_audio_mixer),
  8851. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8852. MSM_BACKEND_DAI_AFE_PCM_RX,
  8853. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8854. msm_routing_put_audio_mixer),
  8855. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8856. MSM_BACKEND_DAI_AFE_PCM_RX,
  8857. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8858. msm_routing_put_audio_mixer),
  8859. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8860. MSM_BACKEND_DAI_AFE_PCM_RX,
  8861. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8862. msm_routing_put_audio_mixer),
  8863. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8864. MSM_BACKEND_DAI_AFE_PCM_RX,
  8865. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8866. msm_routing_put_audio_mixer),
  8867. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8868. MSM_BACKEND_DAI_AFE_PCM_RX,
  8869. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8870. msm_routing_put_audio_mixer),
  8871. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8872. MSM_BACKEND_DAI_AFE_PCM_RX,
  8873. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8874. msm_routing_put_audio_mixer),
  8875. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8876. MSM_BACKEND_DAI_AFE_PCM_RX,
  8877. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8878. msm_routing_put_audio_mixer),
  8879. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8880. MSM_BACKEND_DAI_AFE_PCM_RX,
  8881. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8882. msm_routing_put_audio_mixer),
  8883. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8884. MSM_BACKEND_DAI_AFE_PCM_RX,
  8885. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8886. msm_routing_put_audio_mixer),
  8887. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8888. MSM_BACKEND_DAI_AFE_PCM_RX,
  8889. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8890. msm_routing_put_audio_mixer),
  8891. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8892. MSM_BACKEND_DAI_AFE_PCM_RX,
  8893. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8894. msm_routing_put_audio_mixer),
  8895. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8896. MSM_BACKEND_DAI_AFE_PCM_RX,
  8897. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8898. msm_routing_put_audio_mixer),
  8899. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8900. MSM_BACKEND_DAI_AFE_PCM_RX,
  8901. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8902. msm_routing_put_audio_mixer),
  8903. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8904. MSM_BACKEND_DAI_AFE_PCM_RX,
  8905. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8906. msm_routing_put_audio_mixer),
  8907. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8908. MSM_BACKEND_DAI_AFE_PCM_RX,
  8909. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8910. msm_routing_put_audio_mixer),
  8911. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8912. MSM_BACKEND_DAI_AFE_PCM_RX,
  8913. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8914. msm_routing_put_audio_mixer),
  8915. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8916. MSM_BACKEND_DAI_AFE_PCM_RX,
  8917. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8918. msm_routing_put_audio_mixer),
  8919. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8920. MSM_BACKEND_DAI_AFE_PCM_RX,
  8921. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8922. msm_routing_put_audio_mixer),
  8923. };
  8924. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8925. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8926. MSM_BACKEND_DAI_AUXPCM_RX,
  8927. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8928. msm_routing_put_audio_mixer),
  8929. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8930. MSM_BACKEND_DAI_AUXPCM_RX,
  8931. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8932. msm_routing_put_audio_mixer),
  8933. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8934. MSM_BACKEND_DAI_AUXPCM_RX,
  8935. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8936. msm_routing_put_audio_mixer),
  8937. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8938. MSM_BACKEND_DAI_AUXPCM_RX,
  8939. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8940. msm_routing_put_audio_mixer),
  8941. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8942. MSM_BACKEND_DAI_AUXPCM_RX,
  8943. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8944. msm_routing_put_audio_mixer),
  8945. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8946. MSM_BACKEND_DAI_AUXPCM_RX,
  8947. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8948. msm_routing_put_audio_mixer),
  8949. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8950. MSM_BACKEND_DAI_AUXPCM_RX,
  8951. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8952. msm_routing_put_audio_mixer),
  8953. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8954. MSM_BACKEND_DAI_AUXPCM_RX,
  8955. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8956. msm_routing_put_audio_mixer),
  8957. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8958. MSM_BACKEND_DAI_AUXPCM_RX,
  8959. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8960. msm_routing_put_audio_mixer),
  8961. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8962. MSM_BACKEND_DAI_AUXPCM_RX,
  8963. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8964. msm_routing_put_audio_mixer),
  8965. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8966. MSM_BACKEND_DAI_AUXPCM_RX,
  8967. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8968. msm_routing_put_audio_mixer),
  8969. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8970. MSM_BACKEND_DAI_AUXPCM_RX,
  8971. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8972. msm_routing_put_audio_mixer),
  8973. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8974. MSM_BACKEND_DAI_AUXPCM_RX,
  8975. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8976. msm_routing_put_audio_mixer),
  8977. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8978. MSM_BACKEND_DAI_AUXPCM_RX,
  8979. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8980. msm_routing_put_audio_mixer),
  8981. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8982. MSM_BACKEND_DAI_AUXPCM_RX,
  8983. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8984. msm_routing_put_audio_mixer),
  8985. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8986. MSM_BACKEND_DAI_AUXPCM_RX,
  8987. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8988. msm_routing_put_audio_mixer),
  8989. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8990. MSM_BACKEND_DAI_AUXPCM_RX,
  8991. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8992. msm_routing_put_audio_mixer),
  8993. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8994. MSM_BACKEND_DAI_AUXPCM_RX,
  8995. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8996. msm_routing_put_audio_mixer),
  8997. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8998. MSM_BACKEND_DAI_AUXPCM_RX,
  8999. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9000. msm_routing_put_audio_mixer),
  9001. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9002. MSM_BACKEND_DAI_AUXPCM_RX,
  9003. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9004. msm_routing_put_audio_mixer),
  9005. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9006. MSM_BACKEND_DAI_AUXPCM_RX,
  9007. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9008. msm_routing_put_audio_mixer),
  9009. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  9010. MSM_BACKEND_DAI_AUXPCM_RX,
  9011. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9012. msm_routing_put_audio_mixer),
  9013. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  9014. MSM_BACKEND_DAI_AUXPCM_RX,
  9015. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9016. msm_routing_put_audio_mixer),
  9017. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  9018. MSM_BACKEND_DAI_AUXPCM_RX,
  9019. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  9020. msm_routing_put_audio_mixer),
  9021. };
  9022. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  9023. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9024. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9025. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9026. msm_routing_put_audio_mixer),
  9027. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9028. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9029. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9030. msm_routing_put_audio_mixer),
  9031. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9032. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9033. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9034. msm_routing_put_audio_mixer),
  9035. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9036. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9037. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9038. msm_routing_put_audio_mixer),
  9039. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9040. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9041. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9042. msm_routing_put_audio_mixer),
  9043. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9044. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9045. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9046. msm_routing_put_audio_mixer),
  9047. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9048. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9049. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9050. msm_routing_put_audio_mixer),
  9051. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9052. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9053. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9054. msm_routing_put_audio_mixer),
  9055. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9056. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9057. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9058. msm_routing_put_audio_mixer),
  9059. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9060. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9061. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9062. msm_routing_put_audio_mixer),
  9063. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9064. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9065. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9066. msm_routing_put_audio_mixer),
  9067. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9068. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9069. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9070. msm_routing_put_audio_mixer),
  9071. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9072. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9073. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9074. msm_routing_put_audio_mixer),
  9075. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9076. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9077. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9078. msm_routing_put_audio_mixer),
  9079. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9080. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9081. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9082. msm_routing_put_audio_mixer),
  9083. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9084. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9085. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9086. msm_routing_put_audio_mixer),
  9087. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  9088. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9089. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9090. msm_routing_put_audio_mixer),
  9091. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  9092. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9093. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9094. msm_routing_put_audio_mixer),
  9095. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  9096. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9097. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9098. msm_routing_put_audio_mixer),
  9099. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9100. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9101. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9102. msm_routing_put_audio_mixer),
  9103. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9104. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9105. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9106. msm_routing_put_audio_mixer),
  9107. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  9108. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9109. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9110. msm_routing_put_audio_mixer),
  9111. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  9112. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9113. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9114. msm_routing_put_audio_mixer),
  9115. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  9116. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9117. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  9118. msm_routing_put_audio_mixer),
  9119. };
  9120. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  9121. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9122. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9123. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9124. msm_routing_put_audio_mixer),
  9125. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9126. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9127. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9128. msm_routing_put_audio_mixer),
  9129. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9130. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9131. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9132. msm_routing_put_audio_mixer),
  9133. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9134. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9135. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9136. msm_routing_put_audio_mixer),
  9137. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9138. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9139. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9140. msm_routing_put_audio_mixer),
  9141. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9142. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9143. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9144. msm_routing_put_audio_mixer),
  9145. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9146. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9147. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9148. msm_routing_put_audio_mixer),
  9149. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9150. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9151. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9152. msm_routing_put_audio_mixer),
  9153. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9154. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9155. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9156. msm_routing_put_audio_mixer),
  9157. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9158. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9159. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9160. msm_routing_put_audio_mixer),
  9161. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9162. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9163. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9164. msm_routing_put_audio_mixer),
  9165. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9166. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9167. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9168. msm_routing_put_audio_mixer),
  9169. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9170. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9171. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9172. msm_routing_put_audio_mixer),
  9173. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9174. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9175. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9176. msm_routing_put_audio_mixer),
  9177. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9178. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9179. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9180. msm_routing_put_audio_mixer),
  9181. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9182. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9183. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9184. msm_routing_put_audio_mixer),
  9185. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9186. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9187. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9188. msm_routing_put_audio_mixer),
  9189. };
  9190. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  9191. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9192. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9193. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9194. msm_routing_put_audio_mixer),
  9195. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9196. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9197. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9198. msm_routing_put_audio_mixer),
  9199. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9200. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9201. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9202. msm_routing_put_audio_mixer),
  9203. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9204. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9205. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9206. msm_routing_put_audio_mixer),
  9207. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9208. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9209. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9210. msm_routing_put_audio_mixer),
  9211. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9212. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9213. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9214. msm_routing_put_audio_mixer),
  9215. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9216. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9217. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9218. msm_routing_put_audio_mixer),
  9219. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9220. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9221. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9222. msm_routing_put_audio_mixer),
  9223. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9224. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9225. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9226. msm_routing_put_audio_mixer),
  9227. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9228. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9229. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9230. msm_routing_put_audio_mixer),
  9231. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9232. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9233. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9234. msm_routing_put_audio_mixer),
  9235. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9236. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9237. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9238. msm_routing_put_audio_mixer),
  9239. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9240. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9241. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9242. msm_routing_put_audio_mixer),
  9243. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9244. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9245. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9246. msm_routing_put_audio_mixer),
  9247. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9248. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9249. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9250. msm_routing_put_audio_mixer),
  9251. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9252. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9253. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9254. msm_routing_put_audio_mixer),
  9255. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9256. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9257. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9258. msm_routing_put_audio_mixer),
  9259. };
  9260. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  9261. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9263. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9264. msm_routing_put_audio_mixer),
  9265. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9267. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9268. msm_routing_put_audio_mixer),
  9269. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9270. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9271. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9272. msm_routing_put_audio_mixer),
  9273. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9274. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9275. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9276. msm_routing_put_audio_mixer),
  9277. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9278. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9279. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9280. msm_routing_put_audio_mixer),
  9281. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9282. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9283. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9284. msm_routing_put_audio_mixer),
  9285. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9286. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9287. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9288. msm_routing_put_audio_mixer),
  9289. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9290. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9291. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9292. msm_routing_put_audio_mixer),
  9293. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9294. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9295. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9296. msm_routing_put_audio_mixer),
  9297. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9299. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9300. msm_routing_put_audio_mixer),
  9301. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9302. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9303. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9304. msm_routing_put_audio_mixer),
  9305. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9306. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9307. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9308. msm_routing_put_audio_mixer),
  9309. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9311. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9312. msm_routing_put_audio_mixer),
  9313. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9314. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9315. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9316. msm_routing_put_audio_mixer),
  9317. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9318. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9319. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9320. msm_routing_put_audio_mixer),
  9321. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9322. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9323. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9324. msm_routing_put_audio_mixer),
  9325. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9326. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9327. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9328. msm_routing_put_audio_mixer),
  9329. };
  9330. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  9331. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9332. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9333. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9334. msm_routing_put_audio_mixer),
  9335. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9336. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9337. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9338. msm_routing_put_audio_mixer),
  9339. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9340. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9341. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9342. msm_routing_put_audio_mixer),
  9343. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9344. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9345. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9346. msm_routing_put_audio_mixer),
  9347. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9348. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9349. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9350. msm_routing_put_audio_mixer),
  9351. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9352. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9353. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9354. msm_routing_put_audio_mixer),
  9355. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9356. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9357. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9358. msm_routing_put_audio_mixer),
  9359. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9360. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9361. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9362. msm_routing_put_audio_mixer),
  9363. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9364. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9365. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9366. msm_routing_put_audio_mixer),
  9367. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9368. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9369. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9370. msm_routing_put_audio_mixer),
  9371. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9372. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9373. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9374. msm_routing_put_audio_mixer),
  9375. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9376. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9377. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9378. msm_routing_put_audio_mixer),
  9379. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9380. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9381. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9382. msm_routing_put_audio_mixer),
  9383. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9384. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9385. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9386. msm_routing_put_audio_mixer),
  9387. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9388. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9389. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9390. msm_routing_put_audio_mixer),
  9391. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9392. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9393. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9394. msm_routing_put_audio_mixer),
  9395. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9396. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9397. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9398. msm_routing_put_audio_mixer),
  9399. };
  9400. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  9401. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9402. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9403. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9404. msm_routing_put_audio_mixer),
  9405. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9406. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9407. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9408. msm_routing_put_audio_mixer),
  9409. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9410. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9411. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9412. msm_routing_put_audio_mixer),
  9413. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9414. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9415. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9416. msm_routing_put_audio_mixer),
  9417. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9418. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9419. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9420. msm_routing_put_audio_mixer),
  9421. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9422. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9423. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9424. msm_routing_put_audio_mixer),
  9425. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9426. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9427. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9428. msm_routing_put_audio_mixer),
  9429. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9430. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9431. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9432. msm_routing_put_audio_mixer),
  9433. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9435. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9436. msm_routing_put_audio_mixer),
  9437. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9438. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9439. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9440. msm_routing_put_audio_mixer),
  9441. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9442. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9443. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9444. msm_routing_put_audio_mixer),
  9445. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9446. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9447. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9448. msm_routing_put_audio_mixer),
  9449. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9450. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9451. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9452. msm_routing_put_audio_mixer),
  9453. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9454. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9455. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9456. msm_routing_put_audio_mixer),
  9457. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9458. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9459. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9460. msm_routing_put_audio_mixer),
  9461. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9462. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9463. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9464. msm_routing_put_audio_mixer),
  9465. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9466. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9467. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9468. msm_routing_put_audio_mixer),
  9469. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9470. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9471. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9472. msm_routing_put_audio_mixer),
  9473. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9474. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9475. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9476. msm_routing_put_audio_mixer),
  9477. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9478. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9479. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9480. msm_routing_put_audio_mixer),
  9481. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9482. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9483. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9484. msm_routing_put_audio_mixer),
  9485. };
  9486. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  9487. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9488. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9489. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9490. msm_routing_put_audio_mixer),
  9491. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9493. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9494. msm_routing_put_audio_mixer),
  9495. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9520. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9521. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9522. msm_routing_put_audio_mixer),
  9523. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9524. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9525. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9526. msm_routing_put_audio_mixer),
  9527. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9528. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9529. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9530. msm_routing_put_audio_mixer),
  9531. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9532. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9533. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9534. msm_routing_put_audio_mixer),
  9535. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9536. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9537. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9538. msm_routing_put_audio_mixer),
  9539. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9540. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9541. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9542. msm_routing_put_audio_mixer),
  9543. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9544. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9545. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9546. msm_routing_put_audio_mixer),
  9547. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9548. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9549. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9550. msm_routing_put_audio_mixer),
  9551. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9552. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9553. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9554. msm_routing_put_audio_mixer),
  9555. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9556. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9557. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9558. msm_routing_put_audio_mixer),
  9559. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9560. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9561. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9562. msm_routing_put_audio_mixer),
  9563. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9564. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9565. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9566. msm_routing_put_audio_mixer),
  9567. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9568. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9569. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9570. msm_routing_put_audio_mixer),
  9571. };
  9572. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  9573. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9575. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9576. msm_routing_put_audio_mixer),
  9577. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9582. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9583. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9584. msm_routing_put_audio_mixer),
  9585. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9586. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9587. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9588. msm_routing_put_audio_mixer),
  9589. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9590. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9591. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9592. msm_routing_put_audio_mixer),
  9593. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9594. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9595. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9596. msm_routing_put_audio_mixer),
  9597. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9606. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9607. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9608. msm_routing_put_audio_mixer),
  9609. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9610. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9611. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9612. msm_routing_put_audio_mixer),
  9613. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9614. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9615. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9616. msm_routing_put_audio_mixer),
  9617. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9618. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9619. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9620. msm_routing_put_audio_mixer),
  9621. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9622. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9623. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9624. msm_routing_put_audio_mixer),
  9625. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9626. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9627. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9628. msm_routing_put_audio_mixer),
  9629. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9630. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9631. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9632. msm_routing_put_audio_mixer),
  9633. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9634. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9635. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9636. msm_routing_put_audio_mixer),
  9637. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9638. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9639. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9640. msm_routing_put_audio_mixer),
  9641. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9642. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9643. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9644. msm_routing_put_audio_mixer),
  9645. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9646. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9647. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9648. msm_routing_put_audio_mixer),
  9649. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9650. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9651. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9652. msm_routing_put_audio_mixer),
  9653. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9654. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9655. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9656. msm_routing_put_audio_mixer),
  9657. };
  9658. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  9659. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9660. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9661. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9662. msm_routing_put_audio_mixer),
  9663. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9664. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9665. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9666. msm_routing_put_audio_mixer),
  9667. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9668. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9669. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9670. msm_routing_put_audio_mixer),
  9671. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9672. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9673. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9674. msm_routing_put_audio_mixer),
  9675. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9676. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9677. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9678. msm_routing_put_audio_mixer),
  9679. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9680. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9681. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9682. msm_routing_put_audio_mixer),
  9683. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9684. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9685. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9686. msm_routing_put_audio_mixer),
  9687. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9688. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9689. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9690. msm_routing_put_audio_mixer),
  9691. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9692. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9693. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9694. msm_routing_put_audio_mixer),
  9695. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9696. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9697. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9698. msm_routing_put_audio_mixer),
  9699. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9700. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9701. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9702. msm_routing_put_audio_mixer),
  9703. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9704. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9705. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9706. msm_routing_put_audio_mixer),
  9707. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9708. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9709. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9710. msm_routing_put_audio_mixer),
  9711. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9712. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9713. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9714. msm_routing_put_audio_mixer),
  9715. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9716. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9717. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9718. msm_routing_put_audio_mixer),
  9719. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9720. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9721. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9722. msm_routing_put_audio_mixer),
  9723. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9724. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9725. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9726. msm_routing_put_audio_mixer),
  9727. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9728. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9729. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9730. msm_routing_put_audio_mixer),
  9731. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9732. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9733. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9734. msm_routing_put_audio_mixer),
  9735. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9736. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9737. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9738. msm_routing_put_audio_mixer),
  9739. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9740. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9741. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9742. msm_routing_put_audio_mixer),
  9743. };
  9744. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9745. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9748. msm_routing_put_audio_mixer),
  9749. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9750. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9751. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9752. msm_routing_put_audio_mixer),
  9753. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9754. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9755. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9756. msm_routing_put_audio_mixer),
  9757. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9758. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9759. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9760. msm_routing_put_audio_mixer),
  9761. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9762. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9763. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9764. msm_routing_put_audio_mixer),
  9765. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9766. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9767. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9768. msm_routing_put_audio_mixer),
  9769. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9770. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9771. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9772. msm_routing_put_audio_mixer),
  9773. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9774. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9775. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9776. msm_routing_put_audio_mixer),
  9777. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9778. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9779. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9780. msm_routing_put_audio_mixer),
  9781. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9782. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9783. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9784. msm_routing_put_audio_mixer),
  9785. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9786. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9787. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9788. msm_routing_put_audio_mixer),
  9789. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9790. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9791. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9792. msm_routing_put_audio_mixer),
  9793. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9794. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9795. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9796. msm_routing_put_audio_mixer),
  9797. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9798. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9799. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9800. msm_routing_put_audio_mixer),
  9801. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9802. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9803. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9804. msm_routing_put_audio_mixer),
  9805. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9806. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9807. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9808. msm_routing_put_audio_mixer),
  9809. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9810. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9811. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9812. msm_routing_put_audio_mixer),
  9813. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9814. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9815. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9816. msm_routing_put_audio_mixer),
  9817. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9818. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9819. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9820. msm_routing_put_audio_mixer),
  9821. };
  9822. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9823. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9824. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9825. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9826. msm_routing_put_audio_mixer),
  9827. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9828. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9829. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9830. msm_routing_put_audio_mixer),
  9831. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9832. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9833. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9834. msm_routing_put_audio_mixer),
  9835. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9836. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9837. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9838. msm_routing_put_audio_mixer),
  9839. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9840. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9841. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9842. msm_routing_put_audio_mixer),
  9843. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9844. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9845. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9846. msm_routing_put_audio_mixer),
  9847. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9848. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9849. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9850. msm_routing_put_audio_mixer),
  9851. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9852. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9853. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9854. msm_routing_put_audio_mixer),
  9855. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9856. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9857. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9858. msm_routing_put_audio_mixer),
  9859. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9860. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9861. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9862. msm_routing_put_audio_mixer),
  9863. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9864. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9865. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9866. msm_routing_put_audio_mixer),
  9867. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9868. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9869. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9870. msm_routing_put_audio_mixer),
  9871. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9872. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9873. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9874. msm_routing_put_audio_mixer),
  9875. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9876. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9877. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9878. msm_routing_put_audio_mixer),
  9879. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9880. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9881. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9882. msm_routing_put_audio_mixer),
  9883. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9884. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9885. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9886. msm_routing_put_audio_mixer),
  9887. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9888. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9889. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9890. msm_routing_put_audio_mixer),
  9891. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9892. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9893. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9894. msm_routing_put_audio_mixer),
  9895. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9896. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9897. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9898. msm_routing_put_audio_mixer),
  9899. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9900. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9901. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9902. msm_routing_put_audio_mixer),
  9903. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9904. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9905. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9906. msm_routing_put_audio_mixer),
  9907. };
  9908. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9909. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9910. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9911. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9912. msm_routing_put_audio_mixer),
  9913. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9914. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9915. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9916. msm_routing_put_audio_mixer),
  9917. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9918. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9919. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9920. msm_routing_put_audio_mixer),
  9921. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9922. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9923. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9924. msm_routing_put_audio_mixer),
  9925. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9926. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9927. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9928. msm_routing_put_audio_mixer),
  9929. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9930. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9931. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9932. msm_routing_put_audio_mixer),
  9933. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9934. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9935. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9936. msm_routing_put_audio_mixer),
  9937. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9938. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9939. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9940. msm_routing_put_audio_mixer),
  9941. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9942. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9943. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9944. msm_routing_put_audio_mixer),
  9945. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9946. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9947. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9948. msm_routing_put_audio_mixer),
  9949. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9950. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9951. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9952. msm_routing_put_audio_mixer),
  9953. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9954. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9955. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9956. msm_routing_put_audio_mixer),
  9957. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9958. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9959. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9960. msm_routing_put_audio_mixer),
  9961. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9962. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9963. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9964. msm_routing_put_audio_mixer),
  9965. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9966. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9967. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9968. msm_routing_put_audio_mixer),
  9969. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9970. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9971. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9972. msm_routing_put_audio_mixer),
  9973. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9974. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9975. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9976. msm_routing_put_audio_mixer),
  9977. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9978. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9979. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9980. msm_routing_put_audio_mixer),
  9981. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9982. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9983. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9984. msm_routing_put_audio_mixer),
  9985. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9986. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9987. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9988. msm_routing_put_audio_mixer),
  9989. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9990. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9991. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9992. msm_routing_put_audio_mixer),
  9993. };
  9994. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  9995. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9996. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9997. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9998. msm_routing_put_audio_mixer),
  9999. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10000. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10001. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10002. msm_routing_put_audio_mixer),
  10003. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10004. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10005. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10006. msm_routing_put_audio_mixer),
  10007. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10008. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10009. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10010. msm_routing_put_audio_mixer),
  10011. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10012. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10013. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10014. msm_routing_put_audio_mixer),
  10015. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10016. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10017. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10018. msm_routing_put_audio_mixer),
  10019. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10020. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10021. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10022. msm_routing_put_audio_mixer),
  10023. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10024. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10025. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10026. msm_routing_put_audio_mixer),
  10027. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10028. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10029. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10030. msm_routing_put_audio_mixer),
  10031. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10032. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10033. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10034. msm_routing_put_audio_mixer),
  10035. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10036. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10037. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10038. msm_routing_put_audio_mixer),
  10039. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10040. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10041. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10042. msm_routing_put_audio_mixer),
  10043. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10044. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10045. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10046. msm_routing_put_audio_mixer),
  10047. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10048. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10049. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10050. msm_routing_put_audio_mixer),
  10051. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10052. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10053. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10054. msm_routing_put_audio_mixer),
  10055. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10056. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10057. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10058. msm_routing_put_audio_mixer),
  10059. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10060. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10061. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10062. msm_routing_put_audio_mixer),
  10063. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10064. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10065. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10066. msm_routing_put_audio_mixer),
  10067. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10068. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10069. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10070. msm_routing_put_audio_mixer),
  10071. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10072. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10073. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10074. msm_routing_put_audio_mixer),
  10075. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10076. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10077. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10078. msm_routing_put_audio_mixer),
  10079. };
  10080. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  10081. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10082. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10083. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10084. msm_routing_put_audio_mixer),
  10085. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10086. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10087. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10088. msm_routing_put_audio_mixer),
  10089. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10090. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10091. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10092. msm_routing_put_audio_mixer),
  10093. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10094. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10095. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10096. msm_routing_put_audio_mixer),
  10097. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10098. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10099. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10100. msm_routing_put_audio_mixer),
  10101. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10102. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10103. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10104. msm_routing_put_audio_mixer),
  10105. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10106. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10107. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10108. msm_routing_put_audio_mixer),
  10109. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10110. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10111. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10112. msm_routing_put_audio_mixer),
  10113. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10114. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10115. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10116. msm_routing_put_audio_mixer),
  10117. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10118. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10119. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10120. msm_routing_put_audio_mixer),
  10121. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10122. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10123. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10124. msm_routing_put_audio_mixer),
  10125. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10127. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10128. msm_routing_put_audio_mixer),
  10129. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10131. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10132. msm_routing_put_audio_mixer),
  10133. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10135. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10136. msm_routing_put_audio_mixer),
  10137. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10139. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10140. msm_routing_put_audio_mixer),
  10141. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10142. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10143. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10144. msm_routing_put_audio_mixer),
  10145. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10146. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10147. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10148. msm_routing_put_audio_mixer),
  10149. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10150. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10151. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10152. msm_routing_put_audio_mixer),
  10153. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10154. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10155. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10156. msm_routing_put_audio_mixer),
  10157. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10158. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10159. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10160. msm_routing_put_audio_mixer),
  10161. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10162. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10163. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10164. msm_routing_put_audio_mixer),
  10165. };
  10166. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  10167. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10168. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10169. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10170. msm_routing_put_audio_mixer),
  10171. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10172. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10173. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10174. msm_routing_put_audio_mixer),
  10175. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10176. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10177. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10178. msm_routing_put_audio_mixer),
  10179. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10180. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10181. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10182. msm_routing_put_audio_mixer),
  10183. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10184. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10185. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10186. msm_routing_put_audio_mixer),
  10187. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10188. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10189. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10190. msm_routing_put_audio_mixer),
  10191. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10192. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10193. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10194. msm_routing_put_audio_mixer),
  10195. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10196. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10197. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10198. msm_routing_put_audio_mixer),
  10199. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10200. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10201. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10202. msm_routing_put_audio_mixer),
  10203. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10204. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10205. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10206. msm_routing_put_audio_mixer),
  10207. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10208. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10209. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10210. msm_routing_put_audio_mixer),
  10211. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10212. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10213. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10214. msm_routing_put_audio_mixer),
  10215. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10216. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10217. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10218. msm_routing_put_audio_mixer),
  10219. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10220. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10221. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10222. msm_routing_put_audio_mixer),
  10223. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10224. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10225. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10226. msm_routing_put_audio_mixer),
  10227. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10228. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10229. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10230. msm_routing_put_audio_mixer),
  10231. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10232. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10233. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10234. msm_routing_put_audio_mixer),
  10235. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10236. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10237. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10238. msm_routing_put_audio_mixer),
  10239. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10240. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10241. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10242. msm_routing_put_audio_mixer),
  10243. };
  10244. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  10245. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10246. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10247. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10248. msm_routing_put_audio_mixer),
  10249. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10250. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10251. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10252. msm_routing_put_audio_mixer),
  10253. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10254. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10255. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10256. msm_routing_put_audio_mixer),
  10257. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10258. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10259. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10260. msm_routing_put_audio_mixer),
  10261. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10262. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10263. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10264. msm_routing_put_audio_mixer),
  10265. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10267. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10268. msm_routing_put_audio_mixer),
  10269. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10271. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10272. msm_routing_put_audio_mixer),
  10273. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10274. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10275. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10276. msm_routing_put_audio_mixer),
  10277. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10278. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10279. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10280. msm_routing_put_audio_mixer),
  10281. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10282. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10283. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10284. msm_routing_put_audio_mixer),
  10285. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10286. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10287. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10288. msm_routing_put_audio_mixer),
  10289. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10290. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10291. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10292. msm_routing_put_audio_mixer),
  10293. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10294. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10295. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10296. msm_routing_put_audio_mixer),
  10297. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10298. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10299. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10300. msm_routing_put_audio_mixer),
  10301. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10302. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10303. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10304. msm_routing_put_audio_mixer),
  10305. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10306. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10307. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10308. msm_routing_put_audio_mixer),
  10309. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10310. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10311. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10312. msm_routing_put_audio_mixer),
  10313. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10314. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10315. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10316. msm_routing_put_audio_mixer),
  10317. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10318. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10319. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10320. msm_routing_put_audio_mixer),
  10321. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10322. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10323. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10324. msm_routing_put_audio_mixer),
  10325. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10326. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10327. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10328. msm_routing_put_audio_mixer),
  10329. };
  10330. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  10331. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10332. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10333. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10334. msm_routing_put_audio_mixer),
  10335. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10336. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10337. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10338. msm_routing_put_audio_mixer),
  10339. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10340. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10341. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10342. msm_routing_put_audio_mixer),
  10343. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10344. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10345. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10346. msm_routing_put_audio_mixer),
  10347. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10349. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10350. msm_routing_put_audio_mixer),
  10351. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10353. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10354. msm_routing_put_audio_mixer),
  10355. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10357. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10358. msm_routing_put_audio_mixer),
  10359. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10361. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10362. msm_routing_put_audio_mixer),
  10363. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10365. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10366. msm_routing_put_audio_mixer),
  10367. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10368. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10369. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10370. msm_routing_put_audio_mixer),
  10371. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10372. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10373. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10374. msm_routing_put_audio_mixer),
  10375. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10376. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10377. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10378. msm_routing_put_audio_mixer),
  10379. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10380. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10381. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10382. msm_routing_put_audio_mixer),
  10383. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10384. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10385. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10386. msm_routing_put_audio_mixer),
  10387. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10388. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10389. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10390. msm_routing_put_audio_mixer),
  10391. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10392. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10393. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10394. msm_routing_put_audio_mixer),
  10395. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10396. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10397. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10398. msm_routing_put_audio_mixer),
  10399. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10400. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10401. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10402. msm_routing_put_audio_mixer),
  10403. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10404. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10405. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10406. msm_routing_put_audio_mixer),
  10407. };
  10408. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  10409. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10410. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10411. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10412. msm_routing_put_audio_mixer),
  10413. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10414. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10415. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10416. msm_routing_put_audio_mixer),
  10417. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10418. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10419. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10420. msm_routing_put_audio_mixer),
  10421. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10422. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10423. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10424. msm_routing_put_audio_mixer),
  10425. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10427. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10428. msm_routing_put_audio_mixer),
  10429. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10430. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10431. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10432. msm_routing_put_audio_mixer),
  10433. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10434. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10435. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10436. msm_routing_put_audio_mixer),
  10437. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10438. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10439. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10440. msm_routing_put_audio_mixer),
  10441. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10443. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10444. msm_routing_put_audio_mixer),
  10445. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10446. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10447. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10448. msm_routing_put_audio_mixer),
  10449. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10450. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10451. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10452. msm_routing_put_audio_mixer),
  10453. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10454. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10455. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10456. msm_routing_put_audio_mixer),
  10457. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10458. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10459. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10460. msm_routing_put_audio_mixer),
  10461. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10462. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10463. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10464. msm_routing_put_audio_mixer),
  10465. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10466. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10467. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10468. msm_routing_put_audio_mixer),
  10469. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10470. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10471. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10472. msm_routing_put_audio_mixer),
  10473. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10474. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10475. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10476. msm_routing_put_audio_mixer),
  10477. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10478. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10479. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10480. msm_routing_put_audio_mixer),
  10481. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10482. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10483. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10484. msm_routing_put_audio_mixer),
  10485. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10486. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10487. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10488. msm_routing_put_audio_mixer),
  10489. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10490. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10491. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10492. msm_routing_put_audio_mixer),
  10493. };
  10494. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  10495. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10496. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10497. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10498. msm_routing_put_audio_mixer),
  10499. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10500. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10501. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10502. msm_routing_put_audio_mixer),
  10503. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10505. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10506. msm_routing_put_audio_mixer),
  10507. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10508. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10509. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10510. msm_routing_put_audio_mixer),
  10511. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10512. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10513. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10514. msm_routing_put_audio_mixer),
  10515. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10517. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10518. msm_routing_put_audio_mixer),
  10519. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10520. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10521. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10522. msm_routing_put_audio_mixer),
  10523. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10524. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10525. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10526. msm_routing_put_audio_mixer),
  10527. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10529. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10530. msm_routing_put_audio_mixer),
  10531. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10532. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10533. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10534. msm_routing_put_audio_mixer),
  10535. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10536. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10537. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10538. msm_routing_put_audio_mixer),
  10539. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10540. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10541. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10542. msm_routing_put_audio_mixer),
  10543. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10544. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10545. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10546. msm_routing_put_audio_mixer),
  10547. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10548. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10549. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10550. msm_routing_put_audio_mixer),
  10551. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10552. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10553. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10554. msm_routing_put_audio_mixer),
  10555. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10556. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10557. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10558. msm_routing_put_audio_mixer),
  10559. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10560. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10561. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10562. msm_routing_put_audio_mixer),
  10563. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10564. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10565. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10566. msm_routing_put_audio_mixer),
  10567. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10568. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10569. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10570. msm_routing_put_audio_mixer),
  10571. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10572. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10573. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10574. msm_routing_put_audio_mixer),
  10575. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10576. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10577. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10578. msm_routing_put_audio_mixer),
  10579. };
  10580. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  10581. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10583. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10584. msm_routing_put_audio_mixer),
  10585. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10587. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10588. msm_routing_put_audio_mixer),
  10589. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10591. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10592. msm_routing_put_audio_mixer),
  10593. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10595. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10596. msm_routing_put_audio_mixer),
  10597. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10599. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10600. msm_routing_put_audio_mixer),
  10601. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10603. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10604. msm_routing_put_audio_mixer),
  10605. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10607. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10608. msm_routing_put_audio_mixer),
  10609. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10610. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10611. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10612. msm_routing_put_audio_mixer),
  10613. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10614. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10615. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10616. msm_routing_put_audio_mixer),
  10617. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10619. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10620. msm_routing_put_audio_mixer),
  10621. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10622. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10623. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10624. msm_routing_put_audio_mixer),
  10625. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10626. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10627. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10628. msm_routing_put_audio_mixer),
  10629. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10630. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10631. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10632. msm_routing_put_audio_mixer),
  10633. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10634. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10635. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10636. msm_routing_put_audio_mixer),
  10637. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10638. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10639. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10640. msm_routing_put_audio_mixer),
  10641. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10642. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10643. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10644. msm_routing_put_audio_mixer),
  10645. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10646. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10647. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10648. msm_routing_put_audio_mixer),
  10649. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10650. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10651. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10652. msm_routing_put_audio_mixer),
  10653. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10654. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10655. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10656. msm_routing_put_audio_mixer),
  10657. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10658. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10659. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10660. msm_routing_put_audio_mixer),
  10661. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10662. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10663. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10664. msm_routing_put_audio_mixer),
  10665. };
  10666. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  10667. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10668. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10669. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10670. msm_routing_put_audio_mixer),
  10671. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10672. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10673. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10674. msm_routing_put_audio_mixer),
  10675. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10676. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10677. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10678. msm_routing_put_audio_mixer),
  10679. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10680. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10681. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10682. msm_routing_put_audio_mixer),
  10683. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10684. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10685. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10686. msm_routing_put_audio_mixer),
  10687. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10689. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10690. msm_routing_put_audio_mixer),
  10691. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10693. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10694. msm_routing_put_audio_mixer),
  10695. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10697. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10698. msm_routing_put_audio_mixer),
  10699. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10700. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10701. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10702. msm_routing_put_audio_mixer),
  10703. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10705. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10706. msm_routing_put_audio_mixer),
  10707. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10708. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10709. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10710. msm_routing_put_audio_mixer),
  10711. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10712. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10713. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10714. msm_routing_put_audio_mixer),
  10715. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10716. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10717. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10718. msm_routing_put_audio_mixer),
  10719. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10720. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10721. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10722. msm_routing_put_audio_mixer),
  10723. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10724. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10725. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10726. msm_routing_put_audio_mixer),
  10727. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10728. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10729. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10730. msm_routing_put_audio_mixer),
  10731. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10732. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10733. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10734. msm_routing_put_audio_mixer),
  10735. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10736. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10737. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10738. msm_routing_put_audio_mixer),
  10739. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10740. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10741. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10742. msm_routing_put_audio_mixer),
  10743. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10744. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10745. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10746. msm_routing_put_audio_mixer),
  10747. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10748. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10749. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10750. msm_routing_put_audio_mixer),
  10751. };
  10752. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  10753. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10754. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10755. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10756. msm_routing_put_audio_mixer),
  10757. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10758. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10759. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10760. msm_routing_put_audio_mixer),
  10761. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10762. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10763. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10764. msm_routing_put_audio_mixer),
  10765. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10766. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10767. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10768. msm_routing_put_audio_mixer),
  10769. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10770. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10771. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10772. msm_routing_put_audio_mixer),
  10773. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10775. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10776. msm_routing_put_audio_mixer),
  10777. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10779. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10780. msm_routing_put_audio_mixer),
  10781. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10782. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10783. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10784. msm_routing_put_audio_mixer),
  10785. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10786. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10787. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10788. msm_routing_put_audio_mixer),
  10789. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10790. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10791. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10792. msm_routing_put_audio_mixer),
  10793. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10794. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10795. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10796. msm_routing_put_audio_mixer),
  10797. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10798. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10799. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10800. msm_routing_put_audio_mixer),
  10801. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10802. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10803. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10804. msm_routing_put_audio_mixer),
  10805. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10806. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10807. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10808. msm_routing_put_audio_mixer),
  10809. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10810. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10811. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10812. msm_routing_put_audio_mixer),
  10813. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10814. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10815. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10816. msm_routing_put_audio_mixer),
  10817. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10818. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10819. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10820. msm_routing_put_audio_mixer),
  10821. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10822. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10823. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10824. msm_routing_put_audio_mixer),
  10825. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10826. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10827. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10828. msm_routing_put_audio_mixer),
  10829. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10830. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10831. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10832. msm_routing_put_audio_mixer),
  10833. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10834. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10835. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10836. msm_routing_put_audio_mixer),
  10837. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10838. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10839. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10840. msm_routing_put_audio_mixer),
  10841. };
  10842. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  10843. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10845. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10846. msm_routing_put_audio_mixer),
  10847. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10849. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10850. msm_routing_put_audio_mixer),
  10851. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10853. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10854. msm_routing_put_audio_mixer),
  10855. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10856. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10857. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10858. msm_routing_put_audio_mixer),
  10859. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10860. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10861. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10862. msm_routing_put_audio_mixer),
  10863. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10864. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10865. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10866. msm_routing_put_audio_mixer),
  10867. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10868. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10869. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10870. msm_routing_put_audio_mixer),
  10871. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10873. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10874. msm_routing_put_audio_mixer),
  10875. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10876. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10877. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10878. msm_routing_put_audio_mixer),
  10879. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10880. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10881. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10882. msm_routing_put_audio_mixer),
  10883. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10884. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10885. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10886. msm_routing_put_audio_mixer),
  10887. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10888. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10889. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10890. msm_routing_put_audio_mixer),
  10891. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10892. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10893. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10894. msm_routing_put_audio_mixer),
  10895. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10896. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10897. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10898. msm_routing_put_audio_mixer),
  10899. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10900. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10901. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10902. msm_routing_put_audio_mixer),
  10903. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10904. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10905. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10906. msm_routing_put_audio_mixer),
  10907. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10908. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10909. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10910. msm_routing_put_audio_mixer),
  10911. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10912. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10913. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10914. msm_routing_put_audio_mixer),
  10915. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10916. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10917. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10918. msm_routing_put_audio_mixer),
  10919. };
  10920. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  10921. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10923. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10924. msm_routing_put_audio_mixer),
  10925. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10927. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10928. msm_routing_put_audio_mixer),
  10929. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10931. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10932. msm_routing_put_audio_mixer),
  10933. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10935. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10936. msm_routing_put_audio_mixer),
  10937. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10938. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10939. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10940. msm_routing_put_audio_mixer),
  10941. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10942. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10943. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10944. msm_routing_put_audio_mixer),
  10945. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10946. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10947. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10948. msm_routing_put_audio_mixer),
  10949. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10950. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10951. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10952. msm_routing_put_audio_mixer),
  10953. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10954. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10955. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10956. msm_routing_put_audio_mixer),
  10957. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10958. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10959. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10960. msm_routing_put_audio_mixer),
  10961. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10962. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10963. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10964. msm_routing_put_audio_mixer),
  10965. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10966. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10967. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10968. msm_routing_put_audio_mixer),
  10969. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10970. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10971. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10972. msm_routing_put_audio_mixer),
  10973. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10974. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10975. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10976. msm_routing_put_audio_mixer),
  10977. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10978. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10979. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10980. msm_routing_put_audio_mixer),
  10981. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10982. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10983. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10984. msm_routing_put_audio_mixer),
  10985. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10986. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10987. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10988. msm_routing_put_audio_mixer),
  10989. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10990. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10991. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10992. msm_routing_put_audio_mixer),
  10993. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10994. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10995. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10996. msm_routing_put_audio_mixer),
  10997. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10998. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10999. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11000. msm_routing_put_audio_mixer),
  11001. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11002. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11003. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11004. msm_routing_put_audio_mixer),
  11005. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11006. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11007. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11008. msm_routing_put_audio_mixer),
  11009. };
  11010. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  11011. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11012. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11013. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11014. msm_routing_put_audio_mixer),
  11015. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11016. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11017. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11018. msm_routing_put_audio_mixer),
  11019. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11020. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11021. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11022. msm_routing_put_audio_mixer),
  11023. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11024. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11025. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11026. msm_routing_put_audio_mixer),
  11027. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11028. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11029. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11030. msm_routing_put_audio_mixer),
  11031. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11032. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11033. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11034. msm_routing_put_audio_mixer),
  11035. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11036. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11037. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11038. msm_routing_put_audio_mixer),
  11039. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11040. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11041. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11042. msm_routing_put_audio_mixer),
  11043. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11044. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11045. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11046. msm_routing_put_audio_mixer),
  11047. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11048. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11049. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11050. msm_routing_put_audio_mixer),
  11051. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11052. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11053. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11054. msm_routing_put_audio_mixer),
  11055. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11056. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11057. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11058. msm_routing_put_audio_mixer),
  11059. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11060. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11061. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11062. msm_routing_put_audio_mixer),
  11063. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11064. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11065. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11066. msm_routing_put_audio_mixer),
  11067. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11068. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11069. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11070. msm_routing_put_audio_mixer),
  11071. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11072. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11073. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11074. msm_routing_put_audio_mixer),
  11075. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11076. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11077. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11078. msm_routing_put_audio_mixer),
  11079. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11080. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11081. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11082. msm_routing_put_audio_mixer),
  11083. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11084. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11085. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11086. msm_routing_put_audio_mixer),
  11087. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11088. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11089. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11090. msm_routing_put_audio_mixer),
  11091. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11092. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11093. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11094. msm_routing_put_audio_mixer),
  11095. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11096. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11097. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11098. msm_routing_put_audio_mixer),
  11099. };
  11100. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  11101. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11102. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11103. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11104. msm_routing_put_audio_mixer),
  11105. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11106. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11107. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11108. msm_routing_put_audio_mixer),
  11109. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11110. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11111. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11112. msm_routing_put_audio_mixer),
  11113. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11114. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11115. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11116. msm_routing_put_audio_mixer),
  11117. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11118. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11119. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11120. msm_routing_put_audio_mixer),
  11121. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11122. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11123. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11124. msm_routing_put_audio_mixer),
  11125. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11126. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11127. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11128. msm_routing_put_audio_mixer),
  11129. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11130. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11131. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11132. msm_routing_put_audio_mixer),
  11133. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11134. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11135. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11136. msm_routing_put_audio_mixer),
  11137. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11138. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11139. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11140. msm_routing_put_audio_mixer),
  11141. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11142. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11143. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11144. msm_routing_put_audio_mixer),
  11145. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11146. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11147. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11148. msm_routing_put_audio_mixer),
  11149. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11150. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11151. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11152. msm_routing_put_audio_mixer),
  11153. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11154. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11155. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11156. msm_routing_put_audio_mixer),
  11157. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11158. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11159. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11160. msm_routing_put_audio_mixer),
  11161. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11162. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11163. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11164. msm_routing_put_audio_mixer),
  11165. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11166. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11167. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11168. msm_routing_put_audio_mixer),
  11169. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11170. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11171. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11172. msm_routing_put_audio_mixer),
  11173. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11174. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11175. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11176. msm_routing_put_audio_mixer),
  11177. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11178. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11179. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11180. msm_routing_put_audio_mixer),
  11181. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11182. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11183. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11184. msm_routing_put_audio_mixer),
  11185. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11186. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11187. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11188. msm_routing_put_audio_mixer),
  11189. };
  11190. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  11191. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11192. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11193. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11194. msm_routing_put_audio_mixer),
  11195. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11196. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11197. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11198. msm_routing_put_audio_mixer),
  11199. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11200. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11201. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11202. msm_routing_put_audio_mixer),
  11203. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11204. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11205. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11206. msm_routing_put_audio_mixer),
  11207. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11208. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11209. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11210. msm_routing_put_audio_mixer),
  11211. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11212. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11213. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11214. msm_routing_put_audio_mixer),
  11215. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11216. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11217. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11218. msm_routing_put_audio_mixer),
  11219. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11220. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11221. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11222. msm_routing_put_audio_mixer),
  11223. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11224. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11225. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11226. msm_routing_put_audio_mixer),
  11227. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11228. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11229. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11230. msm_routing_put_audio_mixer),
  11231. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11232. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11233. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11234. msm_routing_put_audio_mixer),
  11235. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11236. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11237. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11238. msm_routing_put_audio_mixer),
  11239. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11240. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11241. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11242. msm_routing_put_audio_mixer),
  11243. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11244. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11245. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11246. msm_routing_put_audio_mixer),
  11247. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11248. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11249. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11250. msm_routing_put_audio_mixer),
  11251. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11252. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11253. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11254. msm_routing_put_audio_mixer),
  11255. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11256. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11257. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11258. msm_routing_put_audio_mixer),
  11259. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11260. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11261. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11262. msm_routing_put_audio_mixer),
  11263. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11264. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11265. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11266. msm_routing_put_audio_mixer),
  11267. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11268. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11269. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11270. msm_routing_put_audio_mixer),
  11271. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11272. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11273. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11274. msm_routing_put_audio_mixer),
  11275. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11276. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11277. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11278. msm_routing_put_audio_mixer),
  11279. };
  11280. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  11281. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11282. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11283. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11284. msm_routing_put_audio_mixer),
  11285. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11286. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11287. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11288. msm_routing_put_audio_mixer),
  11289. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11290. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11291. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11292. msm_routing_put_audio_mixer),
  11293. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11294. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11295. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11296. msm_routing_put_audio_mixer),
  11297. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11298. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11299. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11300. msm_routing_put_audio_mixer),
  11301. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11302. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11303. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11304. msm_routing_put_audio_mixer),
  11305. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11306. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11307. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11308. msm_routing_put_audio_mixer),
  11309. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11310. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11311. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11312. msm_routing_put_audio_mixer),
  11313. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11314. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11315. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11316. msm_routing_put_audio_mixer),
  11317. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11318. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11319. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11320. msm_routing_put_audio_mixer),
  11321. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11322. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11323. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11324. msm_routing_put_audio_mixer),
  11325. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11326. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11327. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11328. msm_routing_put_audio_mixer),
  11329. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11330. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11331. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11332. msm_routing_put_audio_mixer),
  11333. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11334. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11335. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11336. msm_routing_put_audio_mixer),
  11337. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11338. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11339. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11340. msm_routing_put_audio_mixer),
  11341. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11342. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11343. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11344. msm_routing_put_audio_mixer),
  11345. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11346. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11347. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11348. msm_routing_put_audio_mixer),
  11349. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11350. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11351. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11352. msm_routing_put_audio_mixer),
  11353. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11354. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11355. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11356. msm_routing_put_audio_mixer),
  11357. };
  11358. static const struct snd_kcontrol_new quin_tdm_tx_1_mixer_controls[] = {
  11359. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11360. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11361. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11362. msm_routing_put_audio_mixer),
  11363. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11364. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11365. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11366. msm_routing_put_audio_mixer),
  11367. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11368. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11369. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11370. msm_routing_put_audio_mixer),
  11371. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11372. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11373. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11374. msm_routing_put_audio_mixer),
  11375. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11376. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11377. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11378. msm_routing_put_audio_mixer),
  11379. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11380. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11381. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11382. msm_routing_put_audio_mixer),
  11383. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11384. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11385. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11386. msm_routing_put_audio_mixer),
  11387. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11388. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11389. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11390. msm_routing_put_audio_mixer),
  11391. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11392. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11393. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11394. msm_routing_put_audio_mixer),
  11395. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11396. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11397. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11398. msm_routing_put_audio_mixer),
  11399. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11400. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11401. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11402. msm_routing_put_audio_mixer),
  11403. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11404. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11405. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11406. msm_routing_put_audio_mixer),
  11407. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11408. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11409. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11410. msm_routing_put_audio_mixer),
  11411. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11412. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11413. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11414. msm_routing_put_audio_mixer),
  11415. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11416. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11417. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11418. msm_routing_put_audio_mixer),
  11419. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11420. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11421. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11422. msm_routing_put_audio_mixer),
  11423. };
  11424. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  11425. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11426. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11427. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11428. msm_routing_put_audio_mixer),
  11429. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11430. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11431. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11432. msm_routing_put_audio_mixer),
  11433. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11434. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11435. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11436. msm_routing_put_audio_mixer),
  11437. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11438. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11439. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11440. msm_routing_put_audio_mixer),
  11441. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11442. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11443. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11444. msm_routing_put_audio_mixer),
  11445. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11446. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11447. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11448. msm_routing_put_audio_mixer),
  11449. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11450. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11451. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11452. msm_routing_put_audio_mixer),
  11453. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11454. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11455. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11456. msm_routing_put_audio_mixer),
  11457. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11458. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11459. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11460. msm_routing_put_audio_mixer),
  11461. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11462. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11463. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11464. msm_routing_put_audio_mixer),
  11465. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11466. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11467. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11468. msm_routing_put_audio_mixer),
  11469. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11470. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11471. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11472. msm_routing_put_audio_mixer),
  11473. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11474. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11475. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11476. msm_routing_put_audio_mixer),
  11477. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11478. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11479. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11480. msm_routing_put_audio_mixer),
  11481. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11482. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11483. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11484. msm_routing_put_audio_mixer),
  11485. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11486. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11487. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11488. msm_routing_put_audio_mixer),
  11489. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11490. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11491. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11492. msm_routing_put_audio_mixer),
  11493. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11494. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11495. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11496. msm_routing_put_audio_mixer),
  11497. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11498. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11499. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11500. msm_routing_put_audio_mixer),
  11501. };
  11502. static const struct snd_kcontrol_new quin_tdm_tx_2_mixer_controls[] = {
  11503. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11504. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11505. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11506. msm_routing_put_audio_mixer),
  11507. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11508. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11509. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11510. msm_routing_put_audio_mixer),
  11511. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11512. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11513. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11514. msm_routing_put_audio_mixer),
  11515. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11516. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11517. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11518. msm_routing_put_audio_mixer),
  11519. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11520. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11521. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11522. msm_routing_put_audio_mixer),
  11523. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11524. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11525. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11526. msm_routing_put_audio_mixer),
  11527. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11528. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11529. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11530. msm_routing_put_audio_mixer),
  11531. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11532. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11533. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11534. msm_routing_put_audio_mixer),
  11535. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11536. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11537. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11538. msm_routing_put_audio_mixer),
  11539. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11540. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11541. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11542. msm_routing_put_audio_mixer),
  11543. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11544. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11545. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11546. msm_routing_put_audio_mixer),
  11547. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11548. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11549. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11550. msm_routing_put_audio_mixer),
  11551. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11552. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11553. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11554. msm_routing_put_audio_mixer),
  11555. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11556. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11557. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11558. msm_routing_put_audio_mixer),
  11559. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11560. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11561. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11562. msm_routing_put_audio_mixer),
  11563. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11564. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11565. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11566. msm_routing_put_audio_mixer),
  11567. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11568. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11569. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11570. msm_routing_put_audio_mixer),
  11571. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11572. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11573. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11574. msm_routing_put_audio_mixer),
  11575. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11576. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11577. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11578. msm_routing_put_audio_mixer),
  11579. };
  11580. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  11581. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11582. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11583. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11584. msm_routing_put_audio_mixer),
  11585. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11586. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11587. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11588. msm_routing_put_audio_mixer),
  11589. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11590. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11591. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11592. msm_routing_put_audio_mixer),
  11593. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11594. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11595. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11596. msm_routing_put_audio_mixer),
  11597. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11598. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11599. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11600. msm_routing_put_audio_mixer),
  11601. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11602. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11603. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11604. msm_routing_put_audio_mixer),
  11605. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11606. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11607. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11608. msm_routing_put_audio_mixer),
  11609. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11610. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11611. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11612. msm_routing_put_audio_mixer),
  11613. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11614. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11615. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11616. msm_routing_put_audio_mixer),
  11617. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11618. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11619. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11620. msm_routing_put_audio_mixer),
  11621. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11622. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11623. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11624. msm_routing_put_audio_mixer),
  11625. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11626. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11627. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11628. msm_routing_put_audio_mixer),
  11629. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11630. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11631. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11632. msm_routing_put_audio_mixer),
  11633. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11634. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11635. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11636. msm_routing_put_audio_mixer),
  11637. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11638. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11639. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11640. msm_routing_put_audio_mixer),
  11641. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11642. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11643. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11644. msm_routing_put_audio_mixer),
  11645. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11646. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11647. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11648. msm_routing_put_audio_mixer),
  11649. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11650. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11651. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11652. msm_routing_put_audio_mixer),
  11653. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11654. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11655. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11656. msm_routing_put_audio_mixer),
  11657. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11658. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11659. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11660. msm_routing_put_audio_mixer),
  11661. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11662. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11663. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11664. msm_routing_put_audio_mixer),
  11665. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11666. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11667. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11668. msm_routing_put_audio_mixer),
  11669. };
  11670. static const struct snd_kcontrol_new quin_tdm_tx_3_mixer_controls[] = {
  11671. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11672. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11673. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11674. msm_routing_put_audio_mixer),
  11675. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11676. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11677. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11678. msm_routing_put_audio_mixer),
  11679. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11680. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11681. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11682. msm_routing_put_audio_mixer),
  11683. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11684. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11685. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11686. msm_routing_put_audio_mixer),
  11687. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11688. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11689. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11690. msm_routing_put_audio_mixer),
  11691. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11692. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11693. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11694. msm_routing_put_audio_mixer),
  11695. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11696. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11697. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11698. msm_routing_put_audio_mixer),
  11699. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11700. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11701. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11702. msm_routing_put_audio_mixer),
  11703. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11704. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11705. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11706. msm_routing_put_audio_mixer),
  11707. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11708. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11709. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11710. msm_routing_put_audio_mixer),
  11711. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11712. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11713. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11714. msm_routing_put_audio_mixer),
  11715. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11716. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11717. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11718. msm_routing_put_audio_mixer),
  11719. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11720. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11721. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11722. msm_routing_put_audio_mixer),
  11723. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11724. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11725. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11726. msm_routing_put_audio_mixer),
  11727. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11728. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11729. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11730. msm_routing_put_audio_mixer),
  11731. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11732. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11733. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11734. msm_routing_put_audio_mixer),
  11735. };
  11736. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  11737. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11738. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11739. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11740. msm_routing_put_audio_mixer),
  11741. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11742. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11743. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11744. msm_routing_put_audio_mixer),
  11745. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11746. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11747. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11748. msm_routing_put_audio_mixer),
  11749. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11750. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11751. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11752. msm_routing_put_audio_mixer),
  11753. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11754. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11755. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11756. msm_routing_put_audio_mixer),
  11757. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11758. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11759. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11760. msm_routing_put_audio_mixer),
  11761. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11762. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11763. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11764. msm_routing_put_audio_mixer),
  11765. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11766. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11767. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11768. msm_routing_put_audio_mixer),
  11769. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11770. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11771. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11772. msm_routing_put_audio_mixer),
  11773. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11774. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11775. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11776. msm_routing_put_audio_mixer),
  11777. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11778. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11779. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11780. msm_routing_put_audio_mixer),
  11781. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11782. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11783. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11784. msm_routing_put_audio_mixer),
  11785. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11786. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11787. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11788. msm_routing_put_audio_mixer),
  11789. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11790. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11791. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11792. msm_routing_put_audio_mixer),
  11793. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11794. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11795. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11796. msm_routing_put_audio_mixer),
  11797. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11798. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11799. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11800. msm_routing_put_audio_mixer),
  11801. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11802. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11803. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11804. msm_routing_put_audio_mixer),
  11805. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11806. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11807. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11808. msm_routing_put_audio_mixer),
  11809. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11810. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11811. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11812. msm_routing_put_audio_mixer),
  11813. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11814. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11815. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11816. msm_routing_put_audio_mixer),
  11817. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11818. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11819. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11820. msm_routing_put_audio_mixer),
  11821. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11822. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11823. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11824. msm_routing_put_audio_mixer),
  11825. };
  11826. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  11827. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11828. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11829. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11830. msm_routing_put_audio_mixer),
  11831. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11832. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11833. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11834. msm_routing_put_audio_mixer),
  11835. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11836. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11837. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11838. msm_routing_put_audio_mixer),
  11839. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11840. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11841. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11842. msm_routing_put_audio_mixer),
  11843. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11844. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11845. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11846. msm_routing_put_audio_mixer),
  11847. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11848. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11849. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11850. msm_routing_put_audio_mixer),
  11851. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11852. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11853. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11854. msm_routing_put_audio_mixer),
  11855. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11856. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11857. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11858. msm_routing_put_audio_mixer),
  11859. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11860. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11861. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11862. msm_routing_put_audio_mixer),
  11863. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11864. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11865. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11866. msm_routing_put_audio_mixer),
  11867. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11868. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11869. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11870. msm_routing_put_audio_mixer),
  11871. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11872. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11873. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11874. msm_routing_put_audio_mixer),
  11875. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11876. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11877. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11878. msm_routing_put_audio_mixer),
  11879. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11880. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11881. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11882. msm_routing_put_audio_mixer),
  11883. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11884. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11885. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11886. msm_routing_put_audio_mixer),
  11887. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11888. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11889. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11890. msm_routing_put_audio_mixer),
  11891. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11892. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11893. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11894. msm_routing_put_audio_mixer),
  11895. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11896. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11897. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11898. msm_routing_put_audio_mixer),
  11899. };
  11900. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  11901. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11902. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11903. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11904. msm_routing_put_audio_mixer),
  11905. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11906. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11907. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11908. msm_routing_put_audio_mixer),
  11909. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11910. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11911. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11912. msm_routing_put_audio_mixer),
  11913. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11914. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11915. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11916. msm_routing_put_audio_mixer),
  11917. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11918. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11919. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11920. msm_routing_put_audio_mixer),
  11921. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11922. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11923. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11924. msm_routing_put_audio_mixer),
  11925. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11926. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11927. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11928. msm_routing_put_audio_mixer),
  11929. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11930. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11931. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11932. msm_routing_put_audio_mixer),
  11933. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11934. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11935. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11936. msm_routing_put_audio_mixer),
  11937. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11938. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11939. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11940. msm_routing_put_audio_mixer),
  11941. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11942. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11943. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11944. msm_routing_put_audio_mixer),
  11945. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11946. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11947. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11948. msm_routing_put_audio_mixer),
  11949. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11950. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11951. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11952. msm_routing_put_audio_mixer),
  11953. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11954. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11955. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11956. msm_routing_put_audio_mixer),
  11957. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11958. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11959. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11960. msm_routing_put_audio_mixer),
  11961. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11962. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11963. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11964. msm_routing_put_audio_mixer),
  11965. };
  11966. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  11967. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11968. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11969. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11970. msm_routing_put_audio_mixer),
  11971. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11972. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11973. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11974. msm_routing_put_audio_mixer),
  11975. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11976. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11977. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11978. msm_routing_put_audio_mixer),
  11979. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11980. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11981. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11982. msm_routing_put_audio_mixer),
  11983. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11984. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11985. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11986. msm_routing_put_audio_mixer),
  11987. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11988. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11989. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11990. msm_routing_put_audio_mixer),
  11991. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11992. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11993. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11994. msm_routing_put_audio_mixer),
  11995. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11996. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11997. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11998. msm_routing_put_audio_mixer),
  11999. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  12000. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12001. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12002. msm_routing_put_audio_mixer),
  12003. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  12004. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12005. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12006. msm_routing_put_audio_mixer),
  12007. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  12008. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12009. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  12010. msm_routing_put_audio_mixer),
  12011. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  12012. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12013. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  12014. msm_routing_put_audio_mixer),
  12015. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  12016. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12017. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  12018. msm_routing_put_audio_mixer),
  12019. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  12020. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12021. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  12022. msm_routing_put_audio_mixer),
  12023. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  12024. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12025. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  12026. msm_routing_put_audio_mixer),
  12027. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  12028. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12029. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12030. msm_routing_put_audio_mixer),
  12031. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  12032. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12033. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12034. msm_routing_put_audio_mixer),
  12035. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  12036. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12037. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12038. msm_routing_put_audio_mixer),
  12039. };
  12040. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  12041. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  12042. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12043. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12044. msm_routing_put_audio_mixer),
  12045. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  12046. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12047. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12048. msm_routing_put_audio_mixer),
  12049. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  12050. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12051. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12052. msm_routing_put_audio_mixer),
  12053. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  12054. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12055. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12056. msm_routing_put_audio_mixer),
  12057. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  12058. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12059. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12060. msm_routing_put_audio_mixer),
  12061. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  12062. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12063. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12064. msm_routing_put_audio_mixer),
  12065. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  12066. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12067. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  12068. msm_routing_put_audio_mixer),
  12069. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  12070. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12071. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12072. msm_routing_put_audio_mixer),
  12073. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  12074. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12075. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12076. msm_routing_put_audio_mixer),
  12077. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  12078. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12079. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12080. msm_routing_put_audio_mixer),
  12081. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  12082. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12083. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  12084. msm_routing_put_audio_mixer),
  12085. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  12086. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12087. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  12088. msm_routing_put_audio_mixer),
  12089. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  12090. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12091. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  12092. msm_routing_put_audio_mixer),
  12093. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  12094. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12095. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  12096. msm_routing_put_audio_mixer),
  12097. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  12098. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12099. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  12100. msm_routing_put_audio_mixer),
  12101. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  12102. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12103. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12104. msm_routing_put_audio_mixer),
  12105. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  12106. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12107. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12108. msm_routing_put_audio_mixer),
  12109. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  12110. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12111. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12112. msm_routing_put_audio_mixer),
  12113. };
  12114. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  12115. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  12116. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12117. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12118. msm_routing_put_audio_mixer),
  12119. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  12120. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12121. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12122. msm_routing_put_audio_mixer),
  12123. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  12124. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12125. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12126. msm_routing_put_audio_mixer),
  12127. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  12128. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12129. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12130. msm_routing_put_audio_mixer),
  12131. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  12132. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12133. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12134. msm_routing_put_audio_mixer),
  12135. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  12136. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12137. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12138. msm_routing_put_audio_mixer),
  12139. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  12140. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12141. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  12142. msm_routing_put_audio_mixer),
  12143. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  12144. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12145. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12146. msm_routing_put_audio_mixer),
  12147. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  12148. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12149. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12150. msm_routing_put_audio_mixer),
  12151. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  12152. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12153. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12154. msm_routing_put_audio_mixer),
  12155. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  12156. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12157. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  12158. msm_routing_put_audio_mixer),
  12159. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  12160. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12161. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  12162. msm_routing_put_audio_mixer),
  12163. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  12164. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12165. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  12166. msm_routing_put_audio_mixer),
  12167. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  12168. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12169. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  12170. msm_routing_put_audio_mixer),
  12171. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  12172. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12173. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  12174. msm_routing_put_audio_mixer),
  12175. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  12176. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12177. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12178. msm_routing_put_audio_mixer),
  12179. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  12180. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12181. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12182. msm_routing_put_audio_mixer),
  12183. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  12184. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12185. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12186. msm_routing_put_audio_mixer),
  12187. };
  12188. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  12189. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  12190. MSM_BACKEND_DAI_PRI_I2S_TX,
  12191. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12192. msm_routing_put_audio_mixer),
  12193. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12194. MSM_BACKEND_DAI_MI2S_TX,
  12195. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12196. msm_routing_put_audio_mixer),
  12197. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12198. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12199. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12200. msm_routing_put_audio_mixer),
  12201. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12202. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12203. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12204. msm_routing_put_audio_mixer),
  12205. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12206. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12207. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12208. msm_routing_put_audio_mixer),
  12209. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12210. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12211. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12212. msm_routing_put_audio_mixer),
  12213. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12214. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12215. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12216. msm_routing_put_audio_mixer),
  12217. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12218. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12219. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12220. msm_routing_put_audio_mixer),
  12221. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12222. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12223. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12224. msm_routing_put_audio_mixer),
  12225. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12226. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12227. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12228. msm_routing_put_audio_mixer),
  12229. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12230. MSM_BACKEND_DAI_AUXPCM_TX,
  12231. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12232. msm_routing_put_audio_mixer),
  12233. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12234. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12235. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12236. msm_routing_put_audio_mixer),
  12237. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12238. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12239. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12240. msm_routing_put_audio_mixer),
  12241. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12242. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12243. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12244. msm_routing_put_audio_mixer),
  12245. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12246. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12247. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12248. msm_routing_put_audio_mixer),
  12249. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12250. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12251. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12252. msm_routing_put_audio_mixer),
  12253. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12254. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12255. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12256. msm_routing_put_audio_mixer),
  12257. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12258. MSM_BACKEND_DAI_INT_FM_TX,
  12259. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12260. msm_routing_put_audio_mixer),
  12261. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12262. MSM_BACKEND_DAI_AFE_PCM_TX,
  12263. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12264. msm_routing_put_audio_mixer),
  12265. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12266. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12267. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12268. msm_routing_put_audio_mixer),
  12269. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12270. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12271. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12272. msm_routing_put_audio_mixer),
  12273. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  12274. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  12275. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12276. msm_routing_put_audio_mixer),
  12277. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12278. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12279. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12280. msm_routing_put_audio_mixer),
  12281. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12282. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12283. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12284. msm_routing_put_audio_mixer),
  12285. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12286. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12287. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12288. msm_routing_put_audio_mixer),
  12289. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12290. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12291. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12292. msm_routing_put_audio_mixer),
  12293. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12294. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12295. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12296. msm_routing_put_audio_mixer),
  12297. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12298. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12299. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12300. msm_routing_put_audio_mixer),
  12301. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12302. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12303. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12304. msm_routing_put_audio_mixer),
  12305. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12306. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12307. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12308. msm_routing_put_audio_mixer),
  12309. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12310. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12311. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12312. msm_routing_put_audio_mixer),
  12313. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12314. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12315. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12316. msm_routing_put_audio_mixer),
  12317. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12318. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12319. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12320. msm_routing_put_audio_mixer),
  12321. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12322. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12323. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12324. msm_routing_put_audio_mixer),
  12325. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12326. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12327. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12328. msm_routing_put_audio_mixer),
  12329. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12330. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12331. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12332. msm_routing_put_audio_mixer),
  12333. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12334. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12335. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12336. msm_routing_put_audio_mixer),
  12337. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12338. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12339. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12340. msm_routing_put_audio_mixer),
  12341. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12342. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12343. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12344. msm_routing_put_audio_mixer),
  12345. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12346. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12347. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12348. msm_routing_put_audio_mixer),
  12349. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12350. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12351. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12352. msm_routing_put_audio_mixer),
  12353. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12354. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12355. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12356. msm_routing_put_audio_mixer),
  12357. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12358. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12359. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12360. msm_routing_put_audio_mixer),
  12361. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12362. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12363. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12364. msm_routing_put_audio_mixer),
  12365. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12366. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12367. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12368. msm_routing_put_audio_mixer),
  12369. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12370. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12371. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12372. msm_routing_put_audio_mixer),
  12373. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12374. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12375. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12376. msm_routing_put_audio_mixer),
  12377. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12378. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12379. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12380. msm_routing_put_audio_mixer),
  12381. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12382. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12383. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12384. msm_routing_put_audio_mixer),
  12385. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12386. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12387. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12388. msm_routing_put_audio_mixer),
  12389. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12390. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12391. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12392. msm_routing_put_audio_mixer),
  12393. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12394. MSM_BACKEND_DAI_USB_TX,
  12395. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12396. msm_routing_put_audio_mixer),
  12397. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12398. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12399. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12400. msm_routing_put_audio_mixer),
  12401. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12402. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12403. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12404. msm_routing_put_audio_mixer),
  12405. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12406. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12407. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12408. msm_routing_put_audio_mixer),
  12409. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12410. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12411. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12412. msm_routing_put_audio_mixer),
  12413. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12414. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12415. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12416. msm_routing_put_audio_mixer),
  12417. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12418. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12419. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12420. msm_routing_put_audio_mixer),
  12421. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12422. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12423. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12424. msm_routing_put_audio_mixer),
  12425. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12426. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12427. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12428. msm_routing_put_audio_mixer),
  12429. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12430. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12431. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12432. msm_routing_put_audio_mixer),
  12433. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12434. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12435. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12436. msm_routing_put_audio_mixer),
  12437. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12438. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12439. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12440. msm_routing_put_audio_mixer),
  12441. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12442. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12443. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12444. msm_routing_put_audio_mixer),
  12445. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12446. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12447. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12448. msm_routing_put_audio_mixer),
  12449. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12450. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12451. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12452. msm_routing_put_audio_mixer),
  12453. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12454. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12455. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12456. msm_routing_put_audio_mixer),
  12457. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12458. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12459. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12460. msm_routing_put_audio_mixer),
  12461. };
  12462. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  12463. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12464. MSM_BACKEND_DAI_INT_FM_TX,
  12465. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12466. msm_routing_put_audio_mixer),
  12467. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12468. MSM_BACKEND_DAI_MI2S_TX,
  12469. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12470. msm_routing_put_audio_mixer),
  12471. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12472. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12473. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12474. msm_routing_put_audio_mixer),
  12475. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12476. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12477. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12478. msm_routing_put_audio_mixer),
  12479. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12480. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12481. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12482. msm_routing_put_audio_mixer),
  12483. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12484. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12485. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12486. msm_routing_put_audio_mixer),
  12487. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12488. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12489. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12490. msm_routing_put_audio_mixer),
  12491. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12492. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12493. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12494. msm_routing_put_audio_mixer),
  12495. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12496. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12497. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12498. msm_routing_put_audio_mixer),
  12499. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12500. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12501. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12502. msm_routing_put_audio_mixer),
  12503. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12504. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12505. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12506. msm_routing_put_audio_mixer),
  12507. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12508. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12509. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12510. msm_routing_put_audio_mixer),
  12511. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12512. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12513. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12514. msm_routing_put_audio_mixer),
  12515. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12516. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12517. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12518. msm_routing_put_audio_mixer),
  12519. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12520. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12521. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12522. msm_routing_put_audio_mixer),
  12523. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12524. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12525. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12526. msm_routing_put_audio_mixer),
  12527. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12528. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12529. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12530. msm_routing_put_audio_mixer),
  12531. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12532. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12533. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12534. msm_routing_put_audio_mixer),
  12535. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12536. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12537. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12538. msm_routing_put_audio_mixer),
  12539. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12540. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12541. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12542. msm_routing_put_audio_mixer),
  12543. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12544. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12545. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12546. msm_routing_put_audio_mixer),
  12547. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12548. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12549. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12550. msm_routing_put_audio_mixer),
  12551. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12552. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12553. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12554. msm_routing_put_audio_mixer),
  12555. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12556. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12557. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12558. msm_routing_put_audio_mixer),
  12559. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12560. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12561. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12562. msm_routing_put_audio_mixer),
  12563. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12564. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12565. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12566. msm_routing_put_audio_mixer),
  12567. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12568. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12569. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12570. msm_routing_put_audio_mixer),
  12571. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12572. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12573. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12574. msm_routing_put_audio_mixer),
  12575. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12576. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12577. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12578. msm_routing_put_audio_mixer),
  12579. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12580. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12581. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12582. msm_routing_put_audio_mixer),
  12583. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12584. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12585. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12586. msm_routing_put_audio_mixer),
  12587. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12588. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12589. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12590. msm_routing_put_audio_mixer),
  12591. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12592. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12593. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12594. msm_routing_put_audio_mixer),
  12595. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12596. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12597. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12598. msm_routing_put_audio_mixer),
  12599. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12600. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12601. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12602. msm_routing_put_audio_mixer),
  12603. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12604. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12605. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12606. msm_routing_put_audio_mixer),
  12607. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12608. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12609. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12610. msm_routing_put_audio_mixer),
  12611. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12612. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12613. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12614. msm_routing_put_audio_mixer),
  12615. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12616. MSM_BACKEND_DAI_USB_TX,
  12617. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12618. msm_routing_put_audio_mixer),
  12619. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12620. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12621. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12622. msm_routing_put_audio_mixer),
  12623. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12624. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12625. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12626. msm_routing_put_audio_mixer),
  12627. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12628. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12629. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12630. msm_routing_put_audio_mixer),
  12631. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12632. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12633. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12634. msm_routing_put_audio_mixer),
  12635. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12636. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12637. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12638. msm_routing_put_audio_mixer),
  12639. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12640. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12641. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12642. msm_routing_put_audio_mixer),
  12643. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12644. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12645. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12646. msm_routing_put_audio_mixer),
  12647. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12648. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12649. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12650. msm_routing_put_audio_mixer),
  12651. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12652. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12653. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12654. msm_routing_put_audio_mixer),
  12655. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12656. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12657. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12658. msm_routing_put_audio_mixer),
  12659. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12660. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12661. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12662. msm_routing_put_audio_mixer),
  12663. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12664. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12665. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12666. msm_routing_put_audio_mixer),
  12667. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12668. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12669. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12670. msm_routing_put_audio_mixer),
  12671. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12672. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12673. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12674. msm_routing_put_audio_mixer),
  12675. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12676. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12677. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12678. msm_routing_put_audio_mixer),
  12679. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12680. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12681. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12682. msm_routing_put_audio_mixer),
  12683. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12684. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12685. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12686. msm_routing_put_audio_mixer),
  12687. };
  12688. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  12689. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12690. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12691. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12692. msm_routing_put_audio_mixer),
  12693. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12694. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12695. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12696. msm_routing_put_audio_mixer),
  12697. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12698. MSM_BACKEND_DAI_INT_FM_TX,
  12699. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12700. msm_routing_put_audio_mixer),
  12701. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12702. MSM_BACKEND_DAI_MI2S_TX,
  12703. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12704. msm_routing_put_audio_mixer),
  12705. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12706. MSM_BACKEND_DAI_AFE_PCM_TX,
  12707. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12708. msm_routing_put_audio_mixer),
  12709. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12710. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12711. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12712. msm_routing_put_audio_mixer),
  12713. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  12714. MSM_BACKEND_DAI_AUXPCM_TX,
  12715. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12716. msm_routing_put_audio_mixer),
  12717. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12718. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12719. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12720. msm_routing_put_audio_mixer),
  12721. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12722. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12723. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12724. msm_routing_put_audio_mixer),
  12725. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12726. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12727. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12728. msm_routing_put_audio_mixer),
  12729. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12730. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12731. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12732. msm_routing_put_audio_mixer),
  12733. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12734. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12735. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12736. msm_routing_put_audio_mixer),
  12737. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12738. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12739. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12740. msm_routing_put_audio_mixer),
  12741. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12742. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12743. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12744. msm_routing_put_audio_mixer),
  12745. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12746. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12747. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12748. msm_routing_put_audio_mixer),
  12749. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12750. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12751. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12752. msm_routing_put_audio_mixer),
  12753. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12754. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12755. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12756. msm_routing_put_audio_mixer),
  12757. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12758. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12759. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12760. msm_routing_put_audio_mixer),
  12761. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12762. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12763. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12764. msm_routing_put_audio_mixer),
  12765. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12766. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12767. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12768. msm_routing_put_audio_mixer),
  12769. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12770. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12771. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12772. msm_routing_put_audio_mixer),
  12773. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12774. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12775. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12776. msm_routing_put_audio_mixer),
  12777. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12778. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12779. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12780. msm_routing_put_audio_mixer),
  12781. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12782. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12783. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12784. msm_routing_put_audio_mixer),
  12785. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12786. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12787. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12788. msm_routing_put_audio_mixer),
  12789. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12790. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12791. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12792. msm_routing_put_audio_mixer),
  12793. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12794. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12795. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12796. msm_routing_put_audio_mixer),
  12797. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12798. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12799. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12800. msm_routing_put_audio_mixer),
  12801. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12802. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12803. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12804. msm_routing_put_audio_mixer),
  12805. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12806. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12807. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12808. msm_routing_put_audio_mixer),
  12809. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12810. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12811. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12812. msm_routing_put_audio_mixer),
  12813. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12814. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12815. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12816. msm_routing_put_audio_mixer),
  12817. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12818. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12819. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12820. msm_routing_put_audio_mixer),
  12821. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12822. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12823. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12824. msm_routing_put_audio_mixer),
  12825. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12826. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12827. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12828. msm_routing_put_audio_mixer),
  12829. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12830. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12831. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12832. msm_routing_put_audio_mixer),
  12833. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12834. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12835. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12836. msm_routing_put_audio_mixer),
  12837. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12838. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12839. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12840. msm_routing_put_audio_mixer),
  12841. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12842. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12843. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12844. msm_routing_put_audio_mixer),
  12845. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12846. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12847. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12848. msm_routing_put_audio_mixer),
  12849. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12850. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12851. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12852. msm_routing_put_audio_mixer),
  12853. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12854. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12855. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12856. msm_routing_put_audio_mixer),
  12857. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12858. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12859. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12860. msm_routing_put_audio_mixer),
  12861. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12862. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12863. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12864. msm_routing_put_audio_mixer),
  12865. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12866. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12867. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12868. msm_routing_put_audio_mixer),
  12869. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12870. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12871. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12872. msm_routing_put_audio_mixer),
  12873. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12874. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12875. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12876. msm_routing_put_audio_mixer),
  12877. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12879. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12880. msm_routing_put_audio_mixer),
  12881. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12882. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12883. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12884. msm_routing_put_audio_mixer),
  12885. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12886. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12887. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12888. msm_routing_put_audio_mixer),
  12889. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12890. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12891. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12892. msm_routing_put_audio_mixer),
  12893. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12894. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12895. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12896. msm_routing_put_audio_mixer),
  12897. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12899. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12900. msm_routing_put_audio_mixer),
  12901. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12902. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12903. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12904. msm_routing_put_audio_mixer),
  12905. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12906. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12907. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12908. msm_routing_put_audio_mixer),
  12909. };
  12910. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  12911. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12912. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12913. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12914. msm_routing_put_audio_mixer),
  12915. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12916. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12917. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12918. msm_routing_put_audio_mixer),
  12919. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12920. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12921. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12922. msm_routing_put_audio_mixer),
  12923. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12924. MSM_BACKEND_DAI_INT_FM_TX,
  12925. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12926. msm_routing_put_audio_mixer),
  12927. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12928. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12929. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12930. msm_routing_put_audio_mixer),
  12931. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12932. MSM_BACKEND_DAI_AFE_PCM_TX,
  12933. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12934. msm_routing_put_audio_mixer),
  12935. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12936. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12937. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12938. msm_routing_put_audio_mixer),
  12939. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12940. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12941. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12942. msm_routing_put_audio_mixer),
  12943. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12944. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12945. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12946. msm_routing_put_audio_mixer),
  12947. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12948. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12949. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12950. msm_routing_put_audio_mixer),
  12951. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12952. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12953. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12954. msm_routing_put_audio_mixer),
  12955. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12956. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12957. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12958. msm_routing_put_audio_mixer),
  12959. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12960. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12961. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12962. msm_routing_put_audio_mixer),
  12963. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12964. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12965. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12966. msm_routing_put_audio_mixer),
  12967. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12968. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12969. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12970. msm_routing_put_audio_mixer),
  12971. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12972. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12973. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12974. msm_routing_put_audio_mixer),
  12975. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12976. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12977. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12978. msm_routing_put_audio_mixer),
  12979. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12980. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12981. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12982. msm_routing_put_audio_mixer),
  12983. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12984. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12985. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12986. msm_routing_put_audio_mixer),
  12987. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12988. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12989. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12990. msm_routing_put_audio_mixer),
  12991. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12992. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12993. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12994. msm_routing_put_audio_mixer),
  12995. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12996. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12997. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12998. msm_routing_put_audio_mixer),
  12999. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13000. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13001. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13002. msm_routing_put_audio_mixer),
  13003. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13004. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13005. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13006. msm_routing_put_audio_mixer),
  13007. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13008. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13009. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13010. msm_routing_put_audio_mixer),
  13011. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13012. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13013. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13014. msm_routing_put_audio_mixer),
  13015. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13016. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13017. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13018. msm_routing_put_audio_mixer),
  13019. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13020. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13021. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13022. msm_routing_put_audio_mixer),
  13023. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13024. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13025. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13026. msm_routing_put_audio_mixer),
  13027. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13028. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13029. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13030. msm_routing_put_audio_mixer),
  13031. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13032. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13033. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13034. msm_routing_put_audio_mixer),
  13035. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13036. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13037. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13038. msm_routing_put_audio_mixer),
  13039. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13040. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13041. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13042. msm_routing_put_audio_mixer),
  13043. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13044. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13045. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13046. msm_routing_put_audio_mixer),
  13047. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13048. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13049. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13050. msm_routing_put_audio_mixer),
  13051. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13052. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13053. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13054. msm_routing_put_audio_mixer),
  13055. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13056. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13057. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13058. msm_routing_put_audio_mixer),
  13059. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13060. MSM_BACKEND_DAI_USB_TX,
  13061. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13062. msm_routing_put_audio_mixer),
  13063. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13064. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13065. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13066. msm_routing_put_audio_mixer),
  13067. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13068. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13069. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13070. msm_routing_put_audio_mixer),
  13071. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13072. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13073. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13074. msm_routing_put_audio_mixer),
  13075. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13076. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13077. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13078. msm_routing_put_audio_mixer),
  13079. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13080. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13081. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13082. msm_routing_put_audio_mixer),
  13083. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13084. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13085. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13086. msm_routing_put_audio_mixer),
  13087. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13088. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13089. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13090. msm_routing_put_audio_mixer),
  13091. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13092. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13093. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13094. msm_routing_put_audio_mixer),
  13095. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13096. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13097. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13098. msm_routing_put_audio_mixer),
  13099. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13100. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13101. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13102. msm_routing_put_audio_mixer),
  13103. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13104. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13105. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13106. msm_routing_put_audio_mixer),
  13107. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13108. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13109. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13110. msm_routing_put_audio_mixer),
  13111. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13112. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13113. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13114. msm_routing_put_audio_mixer),
  13115. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13116. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13117. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13118. msm_routing_put_audio_mixer),
  13119. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13120. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13121. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13122. msm_routing_put_audio_mixer),
  13123. };
  13124. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  13125. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13126. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13127. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13128. msm_routing_put_audio_mixer),
  13129. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13130. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13131. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13132. msm_routing_put_audio_mixer),
  13133. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13134. MSM_BACKEND_DAI_INT_FM_TX,
  13135. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13136. msm_routing_put_audio_mixer),
  13137. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13138. MSM_BACKEND_DAI_MI2S_TX,
  13139. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13140. msm_routing_put_audio_mixer),
  13141. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13142. MSM_BACKEND_DAI_AFE_PCM_TX,
  13143. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13144. msm_routing_put_audio_mixer),
  13145. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13146. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13147. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13148. msm_routing_put_audio_mixer),
  13149. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13150. MSM_BACKEND_DAI_AUXPCM_TX,
  13151. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13152. msm_routing_put_audio_mixer),
  13153. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13154. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13155. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13156. msm_routing_put_audio_mixer),
  13157. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  13158. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13159. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13160. msm_routing_put_audio_mixer),
  13161. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13162. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13163. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13164. msm_routing_put_audio_mixer),
  13165. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  13166. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  13167. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13168. msm_routing_put_audio_mixer),
  13169. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  13170. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  13171. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13172. msm_routing_put_audio_mixer),
  13173. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13174. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13175. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13176. msm_routing_put_audio_mixer),
  13177. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13178. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13179. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13180. msm_routing_put_audio_mixer),
  13181. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13182. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13183. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13184. msm_routing_put_audio_mixer),
  13185. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13186. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13187. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13188. msm_routing_put_audio_mixer),
  13189. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13190. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13191. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13192. msm_routing_put_audio_mixer),
  13193. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13194. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13195. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13196. msm_routing_put_audio_mixer),
  13197. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13198. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13199. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13200. msm_routing_put_audio_mixer),
  13201. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13202. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13203. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13204. msm_routing_put_audio_mixer),
  13205. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13206. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13207. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13208. msm_routing_put_audio_mixer),
  13209. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13210. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13211. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13212. msm_routing_put_audio_mixer),
  13213. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13214. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13215. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13216. msm_routing_put_audio_mixer),
  13217. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13218. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13219. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13220. msm_routing_put_audio_mixer),
  13221. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13222. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13223. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13224. msm_routing_put_audio_mixer),
  13225. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13226. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13227. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13228. msm_routing_put_audio_mixer),
  13229. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13230. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13231. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13232. msm_routing_put_audio_mixer),
  13233. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13234. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13235. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13236. msm_routing_put_audio_mixer),
  13237. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13238. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13239. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13240. msm_routing_put_audio_mixer),
  13241. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13242. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13243. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13244. msm_routing_put_audio_mixer),
  13245. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13246. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13247. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13248. msm_routing_put_audio_mixer),
  13249. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13250. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13251. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13252. msm_routing_put_audio_mixer),
  13253. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13254. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13255. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13256. msm_routing_put_audio_mixer),
  13257. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13258. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13259. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13260. msm_routing_put_audio_mixer),
  13261. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13262. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13263. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13264. msm_routing_put_audio_mixer),
  13265. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13266. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13267. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13268. msm_routing_put_audio_mixer),
  13269. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13270. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13271. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13272. msm_routing_put_audio_mixer),
  13273. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13274. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13275. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13276. msm_routing_put_audio_mixer),
  13277. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13278. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13279. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13280. msm_routing_put_audio_mixer),
  13281. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13282. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13283. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13284. msm_routing_put_audio_mixer),
  13285. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13286. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13287. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13288. msm_routing_put_audio_mixer),
  13289. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13290. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13291. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13292. msm_routing_put_audio_mixer),
  13293. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13294. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13295. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13296. msm_routing_put_audio_mixer),
  13297. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13298. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13299. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13300. msm_routing_put_audio_mixer),
  13301. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13302. MSM_BACKEND_DAI_USB_TX,
  13303. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13304. msm_routing_put_audio_mixer),
  13305. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13306. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13307. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13308. msm_routing_put_audio_mixer),
  13309. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13310. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13311. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13312. msm_routing_put_audio_mixer),
  13313. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13314. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13315. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13316. msm_routing_put_audio_mixer),
  13317. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13318. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13319. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13320. msm_routing_put_audio_mixer),
  13321. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13322. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13323. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13324. msm_routing_put_audio_mixer),
  13325. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13326. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13327. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13328. msm_routing_put_audio_mixer),
  13329. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13330. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13331. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13332. msm_routing_put_audio_mixer),
  13333. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13334. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13335. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13336. msm_routing_put_audio_mixer),
  13337. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13338. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13339. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13340. msm_routing_put_audio_mixer),
  13341. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13342. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13343. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13344. msm_routing_put_audio_mixer),
  13345. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13346. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13347. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13348. msm_routing_put_audio_mixer),
  13349. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13350. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13351. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13352. msm_routing_put_audio_mixer),
  13353. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13354. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13355. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13356. msm_routing_put_audio_mixer),
  13357. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13358. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13359. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13360. msm_routing_put_audio_mixer),
  13361. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13362. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13363. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13364. msm_routing_put_audio_mixer),
  13365. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13366. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13367. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13368. msm_routing_put_audio_mixer),
  13369. };
  13370. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  13371. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13372. MSM_BACKEND_DAI_INT_FM_TX,
  13373. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13374. msm_routing_put_audio_mixer),
  13375. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13376. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13377. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13378. msm_routing_put_audio_mixer),
  13379. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13380. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13381. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13382. msm_routing_put_audio_mixer),
  13383. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13384. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13385. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13386. msm_routing_put_audio_mixer),
  13387. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13388. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13389. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13390. msm_routing_put_audio_mixer),
  13391. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13392. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13393. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13394. msm_routing_put_audio_mixer),
  13395. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13396. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13397. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13398. msm_routing_put_audio_mixer),
  13399. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13400. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13401. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13402. msm_routing_put_audio_mixer),
  13403. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13404. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13405. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13406. msm_routing_put_audio_mixer),
  13407. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13408. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13409. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13410. msm_routing_put_audio_mixer),
  13411. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13412. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13413. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13414. msm_routing_put_audio_mixer),
  13415. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13416. MSM_BACKEND_DAI_AUXPCM_TX,
  13417. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13418. msm_routing_put_audio_mixer),
  13419. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13420. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13421. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13422. msm_routing_put_audio_mixer),
  13423. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13424. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13425. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13426. msm_routing_put_audio_mixer),
  13427. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13428. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13429. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13430. msm_routing_put_audio_mixer),
  13431. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13433. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13434. msm_routing_put_audio_mixer),
  13435. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13436. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13437. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13438. msm_routing_put_audio_mixer),
  13439. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13440. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13441. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13442. msm_routing_put_audio_mixer),
  13443. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13444. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13445. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13446. msm_routing_put_audio_mixer),
  13447. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13448. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13449. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13450. msm_routing_put_audio_mixer),
  13451. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13452. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13453. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13454. msm_routing_put_audio_mixer),
  13455. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13456. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13457. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13458. msm_routing_put_audio_mixer),
  13459. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13460. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13461. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13462. msm_routing_put_audio_mixer),
  13463. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13464. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13465. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13466. msm_routing_put_audio_mixer),
  13467. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13468. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13469. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13470. msm_routing_put_audio_mixer),
  13471. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13473. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13474. msm_routing_put_audio_mixer),
  13475. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13476. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13477. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13478. msm_routing_put_audio_mixer),
  13479. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13480. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13481. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13482. msm_routing_put_audio_mixer),
  13483. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13484. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13485. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13486. msm_routing_put_audio_mixer),
  13487. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13488. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13489. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13490. msm_routing_put_audio_mixer),
  13491. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13492. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13493. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13494. msm_routing_put_audio_mixer),
  13495. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13496. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13497. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13498. msm_routing_put_audio_mixer),
  13499. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13500. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13501. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13502. msm_routing_put_audio_mixer),
  13503. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13504. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13505. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13506. msm_routing_put_audio_mixer),
  13507. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13508. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13509. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13510. msm_routing_put_audio_mixer),
  13511. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13512. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13513. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13514. msm_routing_put_audio_mixer),
  13515. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13516. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13517. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13518. msm_routing_put_audio_mixer),
  13519. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13520. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13521. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13522. msm_routing_put_audio_mixer),
  13523. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13524. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13525. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13526. msm_routing_put_audio_mixer),
  13527. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13528. MSM_BACKEND_DAI_USB_TX,
  13529. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13530. msm_routing_put_audio_mixer),
  13531. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13532. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13533. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13534. msm_routing_put_audio_mixer),
  13535. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13536. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13537. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13538. msm_routing_put_audio_mixer),
  13539. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13540. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13541. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13542. msm_routing_put_audio_mixer),
  13543. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13544. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13545. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13546. msm_routing_put_audio_mixer),
  13547. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13548. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13549. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13550. msm_routing_put_audio_mixer),
  13551. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13552. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13553. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13554. msm_routing_put_audio_mixer),
  13555. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13556. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13557. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13558. msm_routing_put_audio_mixer),
  13559. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13561. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13562. msm_routing_put_audio_mixer),
  13563. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13564. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13565. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13566. msm_routing_put_audio_mixer),
  13567. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13568. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13569. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13570. msm_routing_put_audio_mixer),
  13571. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13572. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13573. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13574. msm_routing_put_audio_mixer),
  13575. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13576. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13577. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13578. msm_routing_put_audio_mixer),
  13579. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13580. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13581. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13582. msm_routing_put_audio_mixer),
  13583. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13584. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13585. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13586. msm_routing_put_audio_mixer),
  13587. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13588. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13589. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13590. msm_routing_put_audio_mixer),
  13591. };
  13592. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  13593. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13594. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13595. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13596. msm_routing_put_audio_mixer),
  13597. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13598. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13599. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13600. msm_routing_put_audio_mixer),
  13601. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13602. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13603. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13604. msm_routing_put_audio_mixer),
  13605. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13606. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13607. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13608. msm_routing_put_audio_mixer),
  13609. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13610. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13611. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13612. msm_routing_put_audio_mixer),
  13613. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13614. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13615. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13616. msm_routing_put_audio_mixer),
  13617. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13618. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13619. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13620. msm_routing_put_audio_mixer),
  13621. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13622. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13623. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13624. msm_routing_put_audio_mixer),
  13625. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13626. MSM_BACKEND_DAI_INT_FM_TX,
  13627. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13628. msm_routing_put_audio_mixer),
  13629. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13630. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13631. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13632. msm_routing_put_audio_mixer),
  13633. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13634. MSM_BACKEND_DAI_AFE_PCM_TX,
  13635. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13636. msm_routing_put_audio_mixer),
  13637. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13638. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13639. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13640. msm_routing_put_audio_mixer),
  13641. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13642. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13643. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13644. msm_routing_put_audio_mixer),
  13645. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13646. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13647. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13648. msm_routing_put_audio_mixer),
  13649. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13650. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13651. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13652. msm_routing_put_audio_mixer),
  13653. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13654. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13655. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13656. msm_routing_put_audio_mixer),
  13657. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13658. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13659. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13660. msm_routing_put_audio_mixer),
  13661. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13662. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13663. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13664. msm_routing_put_audio_mixer),
  13665. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13666. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13667. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13668. msm_routing_put_audio_mixer),
  13669. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13670. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13671. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13672. msm_routing_put_audio_mixer),
  13673. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13674. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13675. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13676. msm_routing_put_audio_mixer),
  13677. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13678. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13679. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13680. msm_routing_put_audio_mixer),
  13681. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13682. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13683. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13684. msm_routing_put_audio_mixer),
  13685. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13686. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13687. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13688. msm_routing_put_audio_mixer),
  13689. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13690. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13691. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13692. msm_routing_put_audio_mixer),
  13693. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13694. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13695. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13696. msm_routing_put_audio_mixer),
  13697. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13698. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13699. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13700. msm_routing_put_audio_mixer),
  13701. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13702. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13703. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13704. msm_routing_put_audio_mixer),
  13705. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13706. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13707. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13708. msm_routing_put_audio_mixer),
  13709. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13710. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13711. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13712. msm_routing_put_audio_mixer),
  13713. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13714. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13715. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13716. msm_routing_put_audio_mixer),
  13717. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13718. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13719. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13720. msm_routing_put_audio_mixer),
  13721. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13722. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13723. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13724. msm_routing_put_audio_mixer),
  13725. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13726. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13727. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13728. msm_routing_put_audio_mixer),
  13729. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13730. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13731. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13732. msm_routing_put_audio_mixer),
  13733. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13734. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13735. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13736. msm_routing_put_audio_mixer),
  13737. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13738. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13739. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13740. msm_routing_put_audio_mixer),
  13741. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13742. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13743. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13744. msm_routing_put_audio_mixer),
  13745. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13746. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13747. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13748. msm_routing_put_audio_mixer),
  13749. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13750. MSM_BACKEND_DAI_USB_TX,
  13751. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13752. msm_routing_put_audio_mixer),
  13753. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13754. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13755. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13756. msm_routing_put_audio_mixer),
  13757. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13758. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13759. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13760. msm_routing_put_audio_mixer),
  13761. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13762. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13763. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13764. msm_routing_put_audio_mixer),
  13765. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13766. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13767. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13768. msm_routing_put_audio_mixer),
  13769. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13770. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13771. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13772. msm_routing_put_audio_mixer),
  13773. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13774. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13775. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13776. msm_routing_put_audio_mixer),
  13777. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13778. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13779. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13780. msm_routing_put_audio_mixer),
  13781. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13782. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13783. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13784. msm_routing_put_audio_mixer),
  13785. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13786. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13787. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13788. msm_routing_put_audio_mixer),
  13789. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13790. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13791. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13792. msm_routing_put_audio_mixer),
  13793. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13794. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13795. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13796. msm_routing_put_audio_mixer),
  13797. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13798. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13799. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13800. msm_routing_put_audio_mixer),
  13801. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13802. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13803. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13804. msm_routing_put_audio_mixer),
  13805. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13806. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13807. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13808. msm_routing_put_audio_mixer),
  13809. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13810. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13811. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13812. msm_routing_put_audio_mixer),
  13813. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13814. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13815. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13816. msm_routing_put_audio_mixer),
  13817. };
  13818. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  13819. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13820. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13821. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13822. msm_routing_put_audio_mixer),
  13823. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13824. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13825. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13826. msm_routing_put_audio_mixer),
  13827. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13828. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13829. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13830. msm_routing_put_audio_mixer),
  13831. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13832. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13833. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13834. msm_routing_put_audio_mixer),
  13835. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13836. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13837. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13838. msm_routing_put_audio_mixer),
  13839. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13840. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13841. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13842. msm_routing_put_audio_mixer),
  13843. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13844. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13845. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13846. msm_routing_put_audio_mixer),
  13847. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13848. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13849. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13850. msm_routing_put_audio_mixer),
  13851. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13852. MSM_BACKEND_DAI_INT_FM_TX,
  13853. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13854. msm_routing_put_audio_mixer),
  13855. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13856. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13857. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13858. msm_routing_put_audio_mixer),
  13859. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13860. MSM_BACKEND_DAI_AFE_PCM_TX,
  13861. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13862. msm_routing_put_audio_mixer),
  13863. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13864. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13865. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13866. msm_routing_put_audio_mixer),
  13867. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13868. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13869. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13870. msm_routing_put_audio_mixer),
  13871. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13872. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13873. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13874. msm_routing_put_audio_mixer),
  13875. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13876. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13877. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13878. msm_routing_put_audio_mixer),
  13879. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13880. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13881. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13882. msm_routing_put_audio_mixer),
  13883. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13884. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13885. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13886. msm_routing_put_audio_mixer),
  13887. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13888. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13889. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13890. msm_routing_put_audio_mixer),
  13891. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13892. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13893. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13894. msm_routing_put_audio_mixer),
  13895. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13896. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13897. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13898. msm_routing_put_audio_mixer),
  13899. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13900. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13901. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13902. msm_routing_put_audio_mixer),
  13903. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13904. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13905. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13906. msm_routing_put_audio_mixer),
  13907. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13908. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13909. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13910. msm_routing_put_audio_mixer),
  13911. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13912. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13913. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13914. msm_routing_put_audio_mixer),
  13915. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13916. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13917. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13918. msm_routing_put_audio_mixer),
  13919. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13920. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13921. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13922. msm_routing_put_audio_mixer),
  13923. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13924. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13925. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13926. msm_routing_put_audio_mixer),
  13927. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13928. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13929. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13930. msm_routing_put_audio_mixer),
  13931. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13932. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13933. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13934. msm_routing_put_audio_mixer),
  13935. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13936. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13937. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13938. msm_routing_put_audio_mixer),
  13939. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13940. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13941. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13942. msm_routing_put_audio_mixer),
  13943. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13944. MSM_BACKEND_DAI_USB_TX,
  13945. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13946. msm_routing_put_audio_mixer),
  13947. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13948. MSM_BACKEND_DAI_MI2S_TX,
  13949. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13950. msm_routing_put_audio_mixer),
  13951. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13952. MSM_BACKEND_DAI_AUXPCM_TX,
  13953. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13954. msm_routing_put_audio_mixer),
  13955. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13956. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13957. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13958. msm_routing_put_audio_mixer),
  13959. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13960. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13961. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13962. msm_routing_put_audio_mixer),
  13963. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13964. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13965. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13966. msm_routing_put_audio_mixer),
  13967. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13968. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13969. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13970. msm_routing_put_audio_mixer),
  13971. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13972. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13973. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13974. msm_routing_put_audio_mixer),
  13975. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13976. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13977. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13978. msm_routing_put_audio_mixer),
  13979. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13980. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13981. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13982. msm_routing_put_audio_mixer),
  13983. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13984. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13985. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13986. msm_routing_put_audio_mixer),
  13987. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13988. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13989. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13990. msm_routing_get_audio_mixer,
  13991. msm_routing_put_audio_mixer),
  13992. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13993. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13994. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13995. msm_routing_get_audio_mixer,
  13996. msm_routing_put_audio_mixer),
  13997. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13998. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13999. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  14000. msm_routing_get_audio_mixer,
  14001. msm_routing_put_audio_mixer),
  14002. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14003. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14004. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  14005. msm_routing_get_audio_mixer,
  14006. msm_routing_put_audio_mixer),
  14007. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14008. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14009. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  14010. msm_routing_get_audio_mixer,
  14011. msm_routing_put_audio_mixer),
  14012. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14013. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14014. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  14015. msm_routing_get_audio_mixer,
  14016. msm_routing_put_audio_mixer),
  14017. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14018. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14019. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  14020. msm_routing_put_audio_mixer),
  14021. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14022. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14023. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  14024. msm_routing_put_audio_mixer),
  14025. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14026. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14027. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  14028. msm_routing_put_audio_mixer),
  14029. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14030. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14031. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  14032. msm_routing_put_audio_mixer),
  14033. };
  14034. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  14035. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14036. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14037. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14038. msm_routing_put_audio_mixer),
  14039. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14040. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14041. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14042. msm_routing_put_audio_mixer),
  14043. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14044. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14045. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14046. msm_routing_put_audio_mixer),
  14047. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14048. MSM_BACKEND_DAI_INT_FM_TX,
  14049. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14050. msm_routing_put_audio_mixer),
  14051. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14052. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14053. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14054. msm_routing_put_audio_mixer),
  14055. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14056. MSM_BACKEND_DAI_AFE_PCM_TX,
  14057. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14058. msm_routing_put_audio_mixer),
  14059. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14060. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14061. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14062. msm_routing_put_audio_mixer),
  14063. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14064. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14065. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14066. msm_routing_put_audio_mixer),
  14067. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  14068. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  14069. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14070. msm_routing_put_audio_mixer),
  14071. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14072. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14073. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14074. msm_routing_put_audio_mixer),
  14075. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14076. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14077. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14078. msm_routing_put_audio_mixer),
  14079. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14080. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14081. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14082. msm_routing_put_audio_mixer),
  14083. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14084. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14085. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14086. msm_routing_put_audio_mixer),
  14087. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14088. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14089. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14090. msm_routing_put_audio_mixer),
  14091. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14092. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14093. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14094. msm_routing_put_audio_mixer),
  14095. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14096. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14097. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14098. msm_routing_put_audio_mixer),
  14099. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14100. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14101. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14102. msm_routing_put_audio_mixer),
  14103. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14104. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14105. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14106. msm_routing_put_audio_mixer),
  14107. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14108. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14109. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14110. msm_routing_put_audio_mixer),
  14111. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14112. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14113. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14114. msm_routing_put_audio_mixer),
  14115. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14116. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14117. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14118. msm_routing_put_audio_mixer),
  14119. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14120. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14121. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14122. msm_routing_put_audio_mixer),
  14123. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14124. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14125. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14126. msm_routing_put_audio_mixer),
  14127. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14128. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14129. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14130. msm_routing_put_audio_mixer),
  14131. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14132. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14133. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14134. msm_routing_put_audio_mixer),
  14135. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14136. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14137. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14138. msm_routing_put_audio_mixer),
  14139. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14140. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14141. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14142. msm_routing_put_audio_mixer),
  14143. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14144. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14145. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14146. msm_routing_put_audio_mixer),
  14147. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14148. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14149. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14150. msm_routing_put_audio_mixer),
  14151. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14152. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14153. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14154. msm_routing_put_audio_mixer),
  14155. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14156. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14157. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14158. msm_routing_put_audio_mixer),
  14159. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14160. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14161. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14162. msm_routing_put_audio_mixer),
  14163. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14164. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14165. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14166. msm_routing_put_audio_mixer),
  14167. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14168. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14169. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14170. msm_routing_put_audio_mixer),
  14171. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14172. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14173. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14174. msm_routing_put_audio_mixer),
  14175. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14176. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14177. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14178. msm_routing_put_audio_mixer),
  14179. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14180. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14181. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14182. msm_routing_put_audio_mixer),
  14183. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14184. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14185. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14186. msm_routing_put_audio_mixer),
  14187. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14188. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14189. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14190. msm_routing_put_audio_mixer),
  14191. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14192. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14193. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14194. msm_routing_put_audio_mixer),
  14195. };
  14196. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  14197. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14198. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14199. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14200. msm_routing_put_audio_mixer),
  14201. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14202. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14203. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14204. msm_routing_put_audio_mixer),
  14205. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14206. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14207. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14208. msm_routing_put_audio_mixer),
  14209. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14210. MSM_BACKEND_DAI_INT_FM_TX,
  14211. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14212. msm_routing_put_audio_mixer),
  14213. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14214. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14215. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14216. msm_routing_put_audio_mixer),
  14217. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14218. MSM_BACKEND_DAI_AFE_PCM_TX,
  14219. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14220. msm_routing_put_audio_mixer),
  14221. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14222. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14223. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14224. msm_routing_put_audio_mixer),
  14225. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14226. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14227. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14228. msm_routing_put_audio_mixer),
  14229. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  14230. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  14231. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14232. msm_routing_put_audio_mixer),
  14233. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14234. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14235. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14236. msm_routing_put_audio_mixer),
  14237. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14238. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14239. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14240. msm_routing_put_audio_mixer),
  14241. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14242. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14243. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14244. msm_routing_put_audio_mixer),
  14245. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14246. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14247. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14248. msm_routing_put_audio_mixer),
  14249. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14250. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14251. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14252. msm_routing_put_audio_mixer),
  14253. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14254. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14255. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14256. msm_routing_put_audio_mixer),
  14257. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14258. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14259. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14260. msm_routing_put_audio_mixer),
  14261. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14262. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14263. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14264. msm_routing_put_audio_mixer),
  14265. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14266. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14267. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14268. msm_routing_put_audio_mixer),
  14269. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  14270. MSM_BACKEND_DAI_USB_TX,
  14271. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14272. msm_routing_put_audio_mixer),
  14273. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14274. MSM_BACKEND_DAI_MI2S_TX,
  14275. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14276. msm_routing_put_audio_mixer),
  14277. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  14278. MSM_BACKEND_DAI_AUXPCM_TX,
  14279. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14280. msm_routing_put_audio_mixer),
  14281. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  14282. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14283. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14284. msm_routing_put_audio_mixer),
  14285. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  14286. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14287. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14288. msm_routing_put_audio_mixer),
  14289. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  14290. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14291. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14292. msm_routing_put_audio_mixer),
  14293. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14294. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14295. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14296. msm_routing_put_audio_mixer),
  14297. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  14298. MSM_BACKEND_DAI_INT2_MI2S_TX,
  14299. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14300. msm_routing_put_audio_mixer),
  14301. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14302. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14303. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14304. msm_routing_put_audio_mixer),
  14305. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14306. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14307. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14308. msm_routing_put_audio_mixer),
  14309. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14310. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14311. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14312. msm_routing_put_audio_mixer),
  14313. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14314. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14315. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14316. msm_routing_put_audio_mixer),
  14317. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14318. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14319. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14320. msm_routing_put_audio_mixer),
  14321. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14322. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14323. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14324. msm_routing_put_audio_mixer),
  14325. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14326. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14327. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14328. msm_routing_put_audio_mixer),
  14329. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14330. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14331. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14332. msm_routing_get_audio_mixer,
  14333. msm_routing_put_audio_mixer),
  14334. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14335. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14336. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14337. msm_routing_get_audio_mixer,
  14338. msm_routing_put_audio_mixer),
  14339. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14340. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14341. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14342. msm_routing_get_audio_mixer,
  14343. msm_routing_put_audio_mixer),
  14344. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14345. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14346. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14347. msm_routing_get_audio_mixer,
  14348. msm_routing_put_audio_mixer),
  14349. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14350. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14351. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14352. msm_routing_get_audio_mixer,
  14353. msm_routing_put_audio_mixer),
  14354. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14355. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14356. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14357. msm_routing_get_audio_mixer,
  14358. msm_routing_put_audio_mixer),
  14359. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14360. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14361. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14362. msm_routing_put_audio_mixer),
  14363. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14364. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14365. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14366. msm_routing_put_audio_mixer),
  14367. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14368. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14369. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14370. msm_routing_put_audio_mixer),
  14371. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14372. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14373. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14374. msm_routing_put_audio_mixer),
  14375. };
  14376. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  14377. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14378. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14379. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14380. msm_routing_put_audio_mixer),
  14381. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14382. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14383. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14384. msm_routing_put_audio_mixer),
  14385. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14386. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14387. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14388. msm_routing_put_audio_mixer),
  14389. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14390. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14391. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14392. msm_routing_put_audio_mixer),
  14393. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14394. MSM_BACKEND_DAI_INT_FM_TX,
  14395. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14396. msm_routing_put_audio_mixer),
  14397. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14398. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14399. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14400. msm_routing_put_audio_mixer),
  14401. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14402. MSM_BACKEND_DAI_AFE_PCM_TX,
  14403. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14404. msm_routing_put_audio_mixer),
  14405. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14406. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14407. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14408. msm_routing_put_audio_mixer),
  14409. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14410. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14411. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14412. msm_routing_put_audio_mixer),
  14413. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14414. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14415. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14416. msm_routing_put_audio_mixer),
  14417. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14418. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14419. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14420. msm_routing_put_audio_mixer),
  14421. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14422. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14423. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14424. msm_routing_put_audio_mixer),
  14425. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14426. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14427. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14428. msm_routing_put_audio_mixer),
  14429. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14430. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14431. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14432. msm_routing_put_audio_mixer),
  14433. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14434. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14435. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14436. msm_routing_put_audio_mixer),
  14437. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14438. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14439. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14440. msm_routing_put_audio_mixer),
  14441. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14442. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14443. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14444. msm_routing_put_audio_mixer),
  14445. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14446. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14447. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14448. msm_routing_get_audio_mixer,
  14449. msm_routing_put_audio_mixer),
  14450. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14451. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14452. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14453. msm_routing_get_audio_mixer,
  14454. msm_routing_put_audio_mixer),
  14455. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14456. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14457. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14458. msm_routing_get_audio_mixer,
  14459. msm_routing_put_audio_mixer),
  14460. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14461. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14462. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14463. msm_routing_get_audio_mixer,
  14464. msm_routing_put_audio_mixer),
  14465. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14466. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14467. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14468. msm_routing_get_audio_mixer,
  14469. msm_routing_put_audio_mixer),
  14470. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14471. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14472. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14473. msm_routing_get_audio_mixer,
  14474. msm_routing_put_audio_mixer),
  14475. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14476. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14477. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14478. msm_routing_put_audio_mixer),
  14479. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14480. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14481. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14482. msm_routing_put_audio_mixer),
  14483. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14484. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14485. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14486. msm_routing_put_audio_mixer),
  14487. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14488. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14489. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14490. msm_routing_put_audio_mixer),
  14491. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  14492. MSM_BACKEND_DAI_USB_TX,
  14493. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14494. msm_routing_put_audio_mixer),
  14495. };
  14496. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  14497. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14498. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14499. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14500. msm_routing_put_audio_mixer),
  14501. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14502. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14503. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14504. msm_routing_put_audio_mixer),
  14505. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14506. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14507. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14508. msm_routing_put_audio_mixer),
  14509. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14510. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14511. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14512. msm_routing_put_audio_mixer),
  14513. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14514. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14515. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14516. msm_routing_put_audio_mixer),
  14517. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14518. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14519. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14520. msm_routing_put_audio_mixer),
  14521. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14522. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14523. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14524. msm_routing_put_audio_mixer),
  14525. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14526. MSM_BACKEND_DAI_INT_FM_TX,
  14527. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14528. msm_routing_put_audio_mixer),
  14529. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14530. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14531. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14532. msm_routing_put_audio_mixer),
  14533. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14534. MSM_BACKEND_DAI_AFE_PCM_TX,
  14535. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14536. msm_routing_put_audio_mixer),
  14537. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14538. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14539. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14540. msm_routing_put_audio_mixer),
  14541. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14542. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14543. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14544. msm_routing_put_audio_mixer),
  14545. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14546. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14547. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14548. msm_routing_put_audio_mixer),
  14549. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14550. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14551. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14552. msm_routing_put_audio_mixer),
  14553. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14554. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14555. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14556. msm_routing_put_audio_mixer),
  14557. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14558. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14559. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14560. msm_routing_put_audio_mixer),
  14561. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14562. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14563. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14564. msm_routing_put_audio_mixer),
  14565. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14566. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14567. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14568. msm_routing_put_audio_mixer),
  14569. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14570. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14571. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14572. msm_routing_get_audio_mixer,
  14573. msm_routing_put_audio_mixer),
  14574. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14575. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14576. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14577. msm_routing_get_audio_mixer,
  14578. msm_routing_put_audio_mixer),
  14579. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14580. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14581. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14582. msm_routing_get_audio_mixer,
  14583. msm_routing_put_audio_mixer),
  14584. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14585. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14586. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14587. msm_routing_get_audio_mixer,
  14588. msm_routing_put_audio_mixer),
  14589. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14590. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14591. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14592. msm_routing_get_audio_mixer,
  14593. msm_routing_put_audio_mixer),
  14594. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14595. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14596. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14597. msm_routing_get_audio_mixer,
  14598. msm_routing_put_audio_mixer),
  14599. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14600. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14601. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14602. msm_routing_put_audio_mixer),
  14603. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14604. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14605. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14606. msm_routing_put_audio_mixer),
  14607. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14608. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14609. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14610. msm_routing_put_audio_mixer),
  14611. };
  14612. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  14613. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14614. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14615. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14616. msm_routing_put_audio_mixer),
  14617. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14618. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14619. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14620. msm_routing_put_audio_mixer),
  14621. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14622. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14623. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14624. msm_routing_put_audio_mixer),
  14625. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14626. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14627. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14628. msm_routing_put_audio_mixer),
  14629. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14630. MSM_BACKEND_DAI_INT_FM_TX,
  14631. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14632. msm_routing_put_audio_mixer),
  14633. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14634. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14635. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14636. msm_routing_put_audio_mixer),
  14637. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14638. MSM_BACKEND_DAI_AFE_PCM_TX,
  14639. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14640. msm_routing_put_audio_mixer),
  14641. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14642. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14643. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14644. msm_routing_put_audio_mixer),
  14645. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14646. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14647. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14648. msm_routing_put_audio_mixer),
  14649. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14650. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14651. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14652. msm_routing_put_audio_mixer),
  14653. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14654. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14655. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14656. msm_routing_put_audio_mixer),
  14657. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14658. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14659. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14660. msm_routing_put_audio_mixer),
  14661. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14662. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14663. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14664. msm_routing_put_audio_mixer),
  14665. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14666. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14667. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14668. msm_routing_put_audio_mixer),
  14669. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14670. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14671. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14672. msm_routing_put_audio_mixer),
  14673. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14674. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14675. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14676. msm_routing_put_audio_mixer),
  14677. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14678. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14679. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14680. msm_routing_put_audio_mixer),
  14681. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14682. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14683. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14684. msm_routing_put_audio_mixer),
  14685. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14686. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14687. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14688. msm_routing_get_audio_mixer,
  14689. msm_routing_put_audio_mixer),
  14690. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14691. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14692. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14693. msm_routing_get_audio_mixer,
  14694. msm_routing_put_audio_mixer),
  14695. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14696. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14697. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14698. msm_routing_get_audio_mixer,
  14699. msm_routing_put_audio_mixer),
  14700. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14701. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14702. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14703. msm_routing_get_audio_mixer,
  14704. msm_routing_put_audio_mixer),
  14705. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14706. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14707. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14708. msm_routing_get_audio_mixer,
  14709. msm_routing_put_audio_mixer),
  14710. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14711. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14712. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14713. msm_routing_get_audio_mixer,
  14714. msm_routing_put_audio_mixer),
  14715. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14716. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14717. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14718. msm_routing_put_audio_mixer),
  14719. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14720. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14721. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14722. msm_routing_put_audio_mixer),
  14723. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14724. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14725. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14726. msm_routing_put_audio_mixer),
  14727. };
  14728. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  14729. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14730. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14731. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14732. msm_routing_put_audio_mixer),
  14733. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14734. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14735. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14736. msm_routing_put_audio_mixer),
  14737. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14738. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14739. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14740. msm_routing_put_audio_mixer),
  14741. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14742. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14743. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14744. msm_routing_put_audio_mixer),
  14745. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14746. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14747. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14748. msm_routing_put_audio_mixer),
  14749. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14750. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14751. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14752. msm_routing_put_audio_mixer),
  14753. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14754. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14755. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14756. msm_routing_put_audio_mixer),
  14757. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14758. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14759. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14760. msm_routing_put_audio_mixer),
  14761. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14762. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14763. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14764. msm_routing_put_audio_mixer),
  14765. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14766. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14767. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14768. msm_routing_put_audio_mixer),
  14769. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14770. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14771. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14772. msm_routing_put_audio_mixer),
  14773. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14774. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14775. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14776. msm_routing_put_audio_mixer),
  14777. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14778. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14779. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14780. msm_routing_put_audio_mixer),
  14781. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14782. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14783. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14784. msm_routing_put_audio_mixer),
  14785. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14786. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14787. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14788. msm_routing_put_audio_mixer),
  14789. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14790. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14791. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14792. msm_routing_put_audio_mixer),
  14793. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14794. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14795. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14796. msm_routing_put_audio_mixer),
  14797. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14798. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14799. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14800. msm_routing_put_audio_mixer),
  14801. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14802. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14803. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14804. msm_routing_put_audio_mixer),
  14805. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14806. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14807. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14808. msm_routing_put_audio_mixer),
  14809. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14810. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14811. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14812. msm_routing_put_audio_mixer),
  14813. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14814. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14815. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14816. msm_routing_put_audio_mixer),
  14817. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14818. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14819. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14820. msm_routing_put_audio_mixer),
  14821. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14822. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14823. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14824. msm_routing_put_audio_mixer),
  14825. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14826. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14827. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14828. msm_routing_put_audio_mixer),
  14829. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14830. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14831. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14832. msm_routing_put_audio_mixer),
  14833. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14834. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14835. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14836. msm_routing_put_audio_mixer),
  14837. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14838. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14839. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14840. msm_routing_put_audio_mixer),
  14841. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14842. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14843. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14844. msm_routing_put_audio_mixer),
  14845. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14846. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14847. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14848. msm_routing_put_audio_mixer),
  14849. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14850. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14851. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14852. msm_routing_put_audio_mixer),
  14853. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14854. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14855. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14856. msm_routing_put_audio_mixer),
  14857. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14858. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14859. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14860. msm_routing_put_audio_mixer),
  14861. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14862. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14863. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14864. msm_routing_put_audio_mixer),
  14865. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14866. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14867. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14868. msm_routing_put_audio_mixer),
  14869. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14870. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14871. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14872. msm_routing_put_audio_mixer),
  14873. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14874. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14875. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14876. msm_routing_put_audio_mixer),
  14877. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14878. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14879. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14880. msm_routing_put_audio_mixer),
  14881. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14882. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14883. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14884. msm_routing_put_audio_mixer),
  14885. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14886. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14887. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14888. msm_routing_put_audio_mixer),
  14889. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14890. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14891. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14892. msm_routing_put_audio_mixer),
  14893. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14894. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14895. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14896. msm_routing_put_audio_mixer),
  14897. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14898. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14899. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14900. msm_routing_put_audio_mixer),
  14901. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14902. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14903. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14904. msm_routing_put_audio_mixer),
  14905. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14906. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14907. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14908. msm_routing_put_audio_mixer),
  14909. };
  14910. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  14911. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14912. MSM_BACKEND_DAI_AUXPCM_TX,
  14913. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14914. msm_routing_put_audio_mixer),
  14915. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14916. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14917. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14918. msm_routing_put_audio_mixer),
  14919. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14920. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14921. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14922. msm_routing_put_audio_mixer),
  14923. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14924. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14925. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14926. msm_routing_put_audio_mixer),
  14927. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14928. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14929. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14930. msm_routing_put_audio_mixer),
  14931. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14932. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14933. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14934. msm_routing_put_audio_mixer),
  14935. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14936. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14937. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14938. msm_routing_put_audio_mixer),
  14939. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14940. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14941. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14942. msm_routing_put_audio_mixer),
  14943. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14944. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14945. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14946. msm_routing_put_audio_mixer),
  14947. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14948. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14949. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14950. msm_routing_put_audio_mixer),
  14951. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14952. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14953. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14954. msm_routing_put_audio_mixer),
  14955. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14956. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14957. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14958. msm_routing_put_audio_mixer),
  14959. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14960. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14961. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14962. msm_routing_put_audio_mixer),
  14963. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14964. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14965. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14966. msm_routing_put_audio_mixer),
  14967. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14968. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14969. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14970. msm_routing_put_audio_mixer),
  14971. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14972. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14973. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14974. msm_routing_put_audio_mixer),
  14975. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14976. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14977. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14978. msm_routing_put_audio_mixer),
  14979. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14980. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14981. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14982. msm_routing_put_audio_mixer),
  14983. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14984. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14985. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14986. msm_routing_put_audio_mixer),
  14987. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14988. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14989. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14990. msm_routing_put_audio_mixer),
  14991. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14992. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14993. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14994. msm_routing_put_audio_mixer),
  14995. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14996. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14997. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14998. msm_routing_put_audio_mixer),
  14999. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  15001. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15002. msm_routing_put_audio_mixer),
  15003. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15004. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  15005. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15006. msm_routing_put_audio_mixer),
  15007. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15008. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  15009. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15010. msm_routing_put_audio_mixer),
  15011. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15012. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  15013. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15014. msm_routing_put_audio_mixer),
  15015. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15016. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15017. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15018. msm_routing_put_audio_mixer),
  15019. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15020. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15021. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15022. msm_routing_put_audio_mixer),
  15023. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15024. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15025. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15026. msm_routing_put_audio_mixer),
  15027. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15028. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15029. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15030. msm_routing_put_audio_mixer),
  15031. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15032. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15033. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15034. msm_routing_put_audio_mixer),
  15035. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15036. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15037. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15038. msm_routing_put_audio_mixer),
  15039. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15040. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15041. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15042. msm_routing_put_audio_mixer),
  15043. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15044. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15045. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15046. msm_routing_put_audio_mixer),
  15047. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15048. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15049. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15050. msm_routing_put_audio_mixer),
  15051. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15052. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15053. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15054. msm_routing_put_audio_mixer),
  15055. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15056. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15057. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15058. msm_routing_put_audio_mixer),
  15059. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15060. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15061. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15062. msm_routing_put_audio_mixer),
  15063. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15064. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15065. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15066. msm_routing_put_audio_mixer),
  15067. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15068. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15069. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15070. msm_routing_put_audio_mixer),
  15071. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15072. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15073. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15074. msm_routing_put_audio_mixer),
  15075. };
  15076. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  15077. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15078. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15079. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15080. msm_routing_put_audio_mixer),
  15081. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15082. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15083. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15084. msm_routing_put_audio_mixer),
  15085. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15086. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15087. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15088. msm_routing_put_audio_mixer),
  15089. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15090. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15091. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15092. msm_routing_put_audio_mixer),
  15093. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15094. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15095. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15096. msm_routing_put_audio_mixer),
  15097. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15098. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15099. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15100. msm_routing_put_audio_mixer),
  15101. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15102. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15103. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15104. msm_routing_put_audio_mixer),
  15105. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15106. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15107. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15108. msm_routing_put_audio_mixer),
  15109. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15110. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15111. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15112. msm_routing_put_audio_mixer),
  15113. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15114. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15115. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15116. msm_routing_put_audio_mixer),
  15117. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15118. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15119. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15120. msm_routing_put_audio_mixer),
  15121. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15122. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15123. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15124. msm_routing_put_audio_mixer),
  15125. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15126. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15127. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15128. msm_routing_put_audio_mixer),
  15129. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15130. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15131. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15132. msm_routing_put_audio_mixer),
  15133. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15134. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15135. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15136. msm_routing_put_audio_mixer),
  15137. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15138. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15139. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15140. msm_routing_put_audio_mixer),
  15141. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15142. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15143. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15144. msm_routing_put_audio_mixer),
  15145. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15146. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15147. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15148. msm_routing_put_audio_mixer),
  15149. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15150. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15151. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15152. msm_routing_put_audio_mixer),
  15153. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15154. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15155. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15156. msm_routing_put_audio_mixer),
  15157. };
  15158. static const struct snd_kcontrol_new mmul23_mixer_controls[] = {
  15159. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15160. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15161. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15162. msm_routing_put_audio_mixer),
  15163. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15164. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15165. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15166. msm_routing_put_audio_mixer),
  15167. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15168. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15169. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15170. msm_routing_put_audio_mixer),
  15171. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15172. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15173. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15174. msm_routing_put_audio_mixer),
  15175. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15176. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15177. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15178. msm_routing_put_audio_mixer),
  15179. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15180. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15181. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15182. msm_routing_put_audio_mixer),
  15183. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15184. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15185. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15186. msm_routing_put_audio_mixer),
  15187. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15188. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15189. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15190. msm_routing_put_audio_mixer),
  15191. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15192. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15193. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15194. msm_routing_put_audio_mixer),
  15195. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15196. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15197. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15198. msm_routing_put_audio_mixer),
  15199. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15200. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15201. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15202. msm_routing_put_audio_mixer),
  15203. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15204. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15205. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15206. msm_routing_put_audio_mixer),
  15207. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15208. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15209. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15210. msm_routing_put_audio_mixer),
  15211. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15212. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15213. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15214. msm_routing_put_audio_mixer),
  15215. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15216. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15217. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15218. msm_routing_put_audio_mixer),
  15219. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15220. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15221. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15222. msm_routing_put_audio_mixer),
  15223. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15224. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15225. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15226. msm_routing_put_audio_mixer),
  15227. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15228. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15229. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15230. msm_routing_put_audio_mixer),
  15231. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15232. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15233. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15234. msm_routing_put_audio_mixer),
  15235. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15236. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15237. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15238. msm_routing_put_audio_mixer),
  15239. };
  15240. static const struct snd_kcontrol_new mmul24_mixer_controls[] = {
  15241. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15242. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15243. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15244. msm_routing_put_audio_mixer),
  15245. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15246. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15247. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15248. msm_routing_put_audio_mixer),
  15249. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15250. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15251. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15252. msm_routing_put_audio_mixer),
  15253. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15254. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15255. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15256. msm_routing_put_audio_mixer),
  15257. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15258. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15259. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15260. msm_routing_put_audio_mixer),
  15261. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15262. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15263. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15264. msm_routing_put_audio_mixer),
  15265. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15266. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15267. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15268. msm_routing_put_audio_mixer),
  15269. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15270. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15271. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15272. msm_routing_put_audio_mixer),
  15273. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15274. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15275. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15276. msm_routing_put_audio_mixer),
  15277. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15278. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15279. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15280. msm_routing_put_audio_mixer),
  15281. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15282. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15283. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15284. msm_routing_put_audio_mixer),
  15285. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15286. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15287. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15288. msm_routing_put_audio_mixer),
  15289. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15290. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15291. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15292. msm_routing_put_audio_mixer),
  15293. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15294. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15295. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15296. msm_routing_put_audio_mixer),
  15297. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15298. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15299. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15300. msm_routing_put_audio_mixer),
  15301. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15302. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15303. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15304. msm_routing_put_audio_mixer),
  15305. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15306. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15307. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15308. msm_routing_put_audio_mixer),
  15309. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15310. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15311. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15312. msm_routing_put_audio_mixer),
  15313. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15314. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15315. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15316. msm_routing_put_audio_mixer),
  15317. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15318. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15319. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15320. msm_routing_put_audio_mixer),
  15321. };
  15322. static const struct snd_kcontrol_new mmul25_mixer_controls[] = {
  15323. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15324. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15325. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15326. msm_routing_put_audio_mixer),
  15327. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15328. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15329. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15330. msm_routing_put_audio_mixer),
  15331. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15332. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15333. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15334. msm_routing_put_audio_mixer),
  15335. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15336. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15337. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15338. msm_routing_put_audio_mixer),
  15339. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15340. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15341. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15342. msm_routing_put_audio_mixer),
  15343. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15344. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15345. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15346. msm_routing_put_audio_mixer),
  15347. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15348. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15349. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15350. msm_routing_put_audio_mixer),
  15351. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15352. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15353. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15354. msm_routing_put_audio_mixer),
  15355. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15356. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15357. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15358. msm_routing_put_audio_mixer),
  15359. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15360. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15361. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15362. msm_routing_put_audio_mixer),
  15363. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15364. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15365. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15366. msm_routing_put_audio_mixer),
  15367. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15368. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15369. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15370. msm_routing_put_audio_mixer),
  15371. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15372. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15373. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15374. msm_routing_put_audio_mixer),
  15375. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15376. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15377. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15378. msm_routing_put_audio_mixer),
  15379. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15380. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15381. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15382. msm_routing_put_audio_mixer),
  15383. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15384. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15385. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15386. msm_routing_put_audio_mixer),
  15387. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15388. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15389. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15390. msm_routing_put_audio_mixer),
  15391. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15392. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15393. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15394. msm_routing_put_audio_mixer),
  15395. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15396. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15397. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15398. msm_routing_put_audio_mixer),
  15399. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15400. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15401. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15402. msm_routing_put_audio_mixer),
  15403. };
  15404. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  15405. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15406. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15407. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15408. msm_routing_put_audio_mixer),
  15409. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15410. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15411. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15412. msm_routing_put_audio_mixer),
  15413. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  15414. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  15415. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15416. msm_routing_put_audio_mixer),
  15417. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15418. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15419. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15420. msm_routing_put_audio_mixer),
  15421. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15422. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15423. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15424. msm_routing_put_audio_mixer),
  15425. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15426. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15427. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15428. msm_routing_put_audio_mixer),
  15429. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15430. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15431. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15432. msm_routing_put_audio_mixer),
  15433. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15434. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15435. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15436. msm_routing_put_audio_mixer),
  15437. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15438. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  15439. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15440. msm_routing_put_audio_mixer),
  15441. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15442. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  15443. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15444. msm_routing_put_audio_mixer),
  15445. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15446. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15447. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15448. msm_routing_put_audio_mixer),
  15449. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15450. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15451. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15452. msm_routing_put_audio_mixer),
  15453. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  15454. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  15455. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15456. msm_routing_put_audio_mixer),
  15457. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15458. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15459. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15460. msm_routing_put_audio_mixer),
  15461. };
  15462. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  15463. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15464. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15465. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15466. msm_routing_put_audio_mixer),
  15467. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15468. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15469. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15470. msm_routing_put_audio_mixer),
  15471. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15472. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15473. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15474. msm_routing_put_audio_mixer),
  15475. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15476. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15477. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15478. msm_routing_put_audio_mixer),
  15479. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15480. MSM_BACKEND_DAI_INT_FM_TX,
  15481. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15482. msm_routing_put_audio_mixer),
  15483. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15484. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15485. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15486. msm_routing_put_audio_mixer),
  15487. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15488. MSM_BACKEND_DAI_AFE_PCM_TX,
  15489. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15490. msm_routing_put_audio_mixer),
  15491. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15492. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15493. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15494. msm_routing_put_audio_mixer),
  15495. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15496. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15497. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15498. msm_routing_put_audio_mixer),
  15499. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15500. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15501. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15502. msm_routing_put_audio_mixer),
  15503. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15504. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15505. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15506. msm_routing_put_audio_mixer),
  15507. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15508. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15509. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15510. msm_routing_put_audio_mixer),
  15511. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15512. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15513. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15514. msm_routing_put_audio_mixer),
  15515. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15516. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15517. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15518. msm_routing_put_audio_mixer),
  15519. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15520. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15521. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15522. msm_routing_put_audio_mixer),
  15523. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15524. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15525. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15526. msm_routing_put_audio_mixer),
  15527. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15528. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15529. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15530. msm_routing_put_audio_mixer),
  15531. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15532. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15533. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15534. msm_routing_put_audio_mixer),
  15535. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15536. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15537. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15538. msm_routing_get_audio_mixer,
  15539. msm_routing_put_audio_mixer),
  15540. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15541. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15542. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15543. msm_routing_get_audio_mixer,
  15544. msm_routing_put_audio_mixer),
  15545. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15546. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15547. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15548. msm_routing_get_audio_mixer,
  15549. msm_routing_put_audio_mixer),
  15550. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15551. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15552. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15553. msm_routing_get_audio_mixer,
  15554. msm_routing_put_audio_mixer),
  15555. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15556. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15557. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15558. msm_routing_get_audio_mixer,
  15559. msm_routing_put_audio_mixer),
  15560. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15561. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15562. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15563. msm_routing_get_audio_mixer,
  15564. msm_routing_put_audio_mixer),
  15565. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15566. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15567. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15568. msm_routing_put_audio_mixer),
  15569. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15570. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15571. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15572. msm_routing_put_audio_mixer),
  15573. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15574. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15575. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15576. msm_routing_put_audio_mixer),
  15577. };
  15578. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  15579. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15580. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15581. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15582. msm_routing_put_audio_mixer),
  15583. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15584. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15585. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15586. msm_routing_put_audio_mixer),
  15587. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15588. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15589. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15590. msm_routing_put_audio_mixer),
  15591. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15592. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15593. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15594. msm_routing_put_audio_mixer),
  15595. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15596. MSM_BACKEND_DAI_INT_FM_TX,
  15597. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15598. msm_routing_put_audio_mixer),
  15599. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15600. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15601. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15602. msm_routing_put_audio_mixer),
  15603. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15604. MSM_BACKEND_DAI_AFE_PCM_TX,
  15605. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15606. msm_routing_put_audio_mixer),
  15607. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15608. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15609. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15610. msm_routing_put_audio_mixer),
  15611. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15612. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15613. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15614. msm_routing_put_audio_mixer),
  15615. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15616. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15617. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15618. msm_routing_put_audio_mixer),
  15619. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15620. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15621. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15622. msm_routing_put_audio_mixer),
  15623. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15624. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15625. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15626. msm_routing_put_audio_mixer),
  15627. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15628. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15629. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15630. msm_routing_put_audio_mixer),
  15631. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15632. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15633. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15634. msm_routing_put_audio_mixer),
  15635. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15636. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15637. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15638. msm_routing_put_audio_mixer),
  15639. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15640. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15641. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15642. msm_routing_put_audio_mixer),
  15643. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15644. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15645. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15646. msm_routing_put_audio_mixer),
  15647. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15648. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15649. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15650. msm_routing_put_audio_mixer),
  15651. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15652. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15653. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15654. msm_routing_get_audio_mixer,
  15655. msm_routing_put_audio_mixer),
  15656. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15657. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15658. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15659. msm_routing_get_audio_mixer,
  15660. msm_routing_put_audio_mixer),
  15661. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15662. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15663. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15664. msm_routing_get_audio_mixer,
  15665. msm_routing_put_audio_mixer),
  15666. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15667. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15668. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15669. msm_routing_get_audio_mixer,
  15670. msm_routing_put_audio_mixer),
  15671. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15672. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15673. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15674. msm_routing_get_audio_mixer,
  15675. msm_routing_put_audio_mixer),
  15676. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15677. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15678. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15679. msm_routing_get_audio_mixer,
  15680. msm_routing_put_audio_mixer),
  15681. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15682. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15683. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15684. msm_routing_put_audio_mixer),
  15685. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15686. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15687. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15688. msm_routing_put_audio_mixer),
  15689. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15690. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15691. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15692. msm_routing_put_audio_mixer),
  15693. };
  15694. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  15695. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15696. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15697. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15698. msm_routing_put_audio_mixer),
  15699. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15700. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15701. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15702. msm_routing_put_audio_mixer),
  15703. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15704. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15705. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15706. msm_routing_put_audio_mixer),
  15707. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15708. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15709. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15710. msm_routing_put_audio_mixer),
  15711. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15712. MSM_BACKEND_DAI_INT_FM_TX,
  15713. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15714. msm_routing_put_audio_mixer),
  15715. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15716. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15717. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15718. msm_routing_put_audio_mixer),
  15719. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15720. MSM_BACKEND_DAI_AFE_PCM_TX,
  15721. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15722. msm_routing_put_audio_mixer),
  15723. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15724. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15725. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15726. msm_routing_put_audio_mixer),
  15727. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15728. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15729. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15730. msm_routing_put_audio_mixer),
  15731. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15732. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15733. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15734. msm_routing_put_audio_mixer),
  15735. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15736. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15737. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15738. msm_routing_put_audio_mixer),
  15739. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15740. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15741. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15742. msm_routing_put_audio_mixer),
  15743. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15744. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15745. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15746. msm_routing_put_audio_mixer),
  15747. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15748. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15749. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15750. msm_routing_put_audio_mixer),
  15751. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15752. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15753. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15754. msm_routing_put_audio_mixer),
  15755. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15756. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15757. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15758. msm_routing_put_audio_mixer),
  15759. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15760. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15761. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15762. msm_routing_put_audio_mixer),
  15763. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15764. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15765. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15766. msm_routing_get_audio_mixer,
  15767. msm_routing_put_audio_mixer),
  15768. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15769. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15770. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15771. msm_routing_get_audio_mixer,
  15772. msm_routing_put_audio_mixer),
  15773. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15774. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15775. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15776. msm_routing_get_audio_mixer,
  15777. msm_routing_put_audio_mixer),
  15778. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15779. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15780. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15781. msm_routing_get_audio_mixer,
  15782. msm_routing_put_audio_mixer),
  15783. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15784. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15785. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15786. msm_routing_get_audio_mixer,
  15787. msm_routing_put_audio_mixer),
  15788. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15789. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15790. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15791. msm_routing_get_audio_mixer,
  15792. msm_routing_put_audio_mixer),
  15793. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15794. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15795. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15796. msm_routing_put_audio_mixer),
  15797. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15798. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15799. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15800. msm_routing_put_audio_mixer),
  15801. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15802. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15803. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15804. msm_routing_put_audio_mixer),
  15805. };
  15806. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  15807. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15808. MSM_BACKEND_DAI_PRI_I2S_RX,
  15809. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15810. msm_routing_put_voice_mixer),
  15811. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15812. MSM_BACKEND_DAI_PRI_I2S_RX,
  15813. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15814. msm_routing_put_voice_mixer),
  15815. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15816. MSM_BACKEND_DAI_PRI_I2S_RX,
  15817. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15818. msm_routing_put_voice_mixer),
  15819. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15820. MSM_BACKEND_DAI_PRI_I2S_RX,
  15821. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15822. msm_routing_put_voice_mixer),
  15823. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15824. MSM_BACKEND_DAI_PRI_I2S_RX,
  15825. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15826. msm_routing_put_voice_mixer),
  15827. };
  15828. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  15829. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15830. MSM_BACKEND_DAI_SEC_I2S_RX,
  15831. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15832. msm_routing_put_voice_mixer),
  15833. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15834. MSM_BACKEND_DAI_SEC_I2S_RX,
  15835. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15836. msm_routing_put_voice_mixer),
  15837. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15838. MSM_BACKEND_DAI_SEC_I2S_RX,
  15839. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15840. msm_routing_put_voice_mixer),
  15841. };
  15842. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  15843. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15844. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15845. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15846. msm_routing_put_voice_mixer),
  15847. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15848. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15849. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15850. msm_routing_put_voice_mixer),
  15851. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15852. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15853. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15854. msm_routing_put_voice_mixer),
  15855. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15856. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15857. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15858. msm_routing_put_voice_mixer),
  15859. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15860. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15861. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15862. msm_routing_put_voice_mixer),
  15863. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15864. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15865. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15866. msm_routing_put_voice_mixer),
  15867. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15868. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15869. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15870. msm_routing_put_voice_mixer),
  15871. };
  15872. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  15873. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15874. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15875. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15876. msm_routing_put_voice_mixer),
  15877. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15878. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15879. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15880. msm_routing_put_voice_mixer),
  15881. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15882. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15883. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15884. msm_routing_put_voice_mixer),
  15885. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15886. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15887. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15888. msm_routing_put_voice_mixer),
  15889. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15890. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15891. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15892. msm_routing_put_voice_mixer),
  15893. };
  15894. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  15895. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15896. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15897. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15898. msm_routing_put_voice_mixer),
  15899. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15900. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15901. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15902. msm_routing_put_voice_mixer),
  15903. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15904. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15905. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15906. msm_routing_put_voice_mixer),
  15907. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15908. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15909. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15910. msm_routing_put_voice_mixer),
  15911. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15912. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15913. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15914. msm_routing_put_voice_mixer),
  15915. };
  15916. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  15917. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15918. MSM_BACKEND_DAI_USB_RX,
  15919. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15920. msm_routing_put_voice_mixer),
  15921. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15922. MSM_BACKEND_DAI_USB_RX,
  15923. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15924. msm_routing_put_voice_mixer),
  15925. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15926. MSM_BACKEND_DAI_USB_RX,
  15927. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15928. msm_routing_put_voice_mixer),
  15929. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15930. MSM_BACKEND_DAI_USB_RX,
  15931. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15932. msm_routing_put_voice_mixer),
  15933. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15934. MSM_BACKEND_DAI_USB_RX,
  15935. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15936. msm_routing_put_voice_mixer),
  15937. };
  15938. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  15939. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15940. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15941. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15942. msm_routing_put_voice_mixer),
  15943. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15944. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15945. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15946. msm_routing_put_voice_mixer),
  15947. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15948. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15949. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15950. msm_routing_put_voice_mixer),
  15951. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15952. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15953. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15954. msm_routing_put_voice_mixer),
  15955. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15956. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15957. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15958. msm_routing_put_voice_mixer),
  15959. };
  15960. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  15961. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15962. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15963. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15964. msm_routing_put_voice_mixer),
  15965. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15966. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15967. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15968. msm_routing_put_voice_mixer),
  15969. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15970. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15971. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15972. msm_routing_put_voice_mixer),
  15973. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15974. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15975. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15976. msm_routing_put_voice_mixer),
  15977. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15978. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15979. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15980. msm_routing_put_voice_mixer),
  15981. };
  15982. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  15983. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15984. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15985. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15986. msm_routing_put_voice_mixer),
  15987. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15988. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15989. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15990. msm_routing_put_voice_mixer),
  15991. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15992. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15993. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15994. msm_routing_put_voice_mixer),
  15995. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15996. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15997. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15998. msm_routing_put_voice_mixer),
  15999. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16000. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16001. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16002. msm_routing_put_voice_mixer),
  16003. };
  16004. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  16005. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16006. MSM_BACKEND_DAI_MI2S_RX,
  16007. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16008. msm_routing_put_voice_mixer),
  16009. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16010. MSM_BACKEND_DAI_MI2S_RX,
  16011. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16012. msm_routing_put_voice_mixer),
  16013. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16014. MSM_BACKEND_DAI_MI2S_RX,
  16015. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  16016. msm_routing_put_voice_mixer),
  16017. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16018. MSM_BACKEND_DAI_MI2S_RX,
  16019. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16020. msm_routing_put_voice_mixer),
  16021. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16022. MSM_BACKEND_DAI_MI2S_RX,
  16023. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16024. msm_routing_put_voice_mixer),
  16025. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16026. MSM_BACKEND_DAI_MI2S_RX,
  16027. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16028. msm_routing_put_voice_mixer),
  16029. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16030. MSM_BACKEND_DAI_MI2S_RX,
  16031. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16032. msm_routing_put_voice_mixer),
  16033. };
  16034. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  16035. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16036. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16037. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16038. msm_routing_put_voice_mixer),
  16039. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16040. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16041. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16042. msm_routing_put_voice_mixer),
  16043. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16044. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16045. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  16046. msm_routing_put_voice_mixer),
  16047. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16048. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16049. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16050. msm_routing_put_voice_mixer),
  16051. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16052. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16053. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16054. msm_routing_put_voice_mixer),
  16055. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16056. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16057. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16058. msm_routing_put_voice_mixer),
  16059. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16060. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16061. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16062. msm_routing_put_voice_mixer),
  16063. };
  16064. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  16065. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16066. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16067. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16068. msm_routing_put_voice_mixer),
  16069. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16070. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16071. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16072. msm_routing_put_voice_mixer),
  16073. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16074. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16075. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16076. msm_routing_put_voice_mixer),
  16077. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16078. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16079. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16080. msm_routing_put_voice_mixer),
  16081. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16082. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16083. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16084. msm_routing_put_voice_mixer),
  16085. };
  16086. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  16087. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16088. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16089. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16090. msm_routing_put_voice_mixer),
  16091. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16092. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16093. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16094. msm_routing_put_voice_mixer),
  16095. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16096. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16097. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16098. msm_routing_put_voice_mixer),
  16099. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16100. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16101. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16102. msm_routing_put_voice_mixer),
  16103. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16104. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16105. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16106. msm_routing_put_voice_mixer),
  16107. };
  16108. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  16109. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16110. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16111. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16112. msm_routing_put_voice_mixer),
  16113. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16114. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16115. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16116. msm_routing_put_voice_mixer),
  16117. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16118. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16119. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  16120. msm_routing_put_voice_mixer),
  16121. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16122. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16123. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16124. msm_routing_put_voice_mixer),
  16125. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16126. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16127. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16128. msm_routing_put_voice_mixer),
  16129. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16130. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16131. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16132. msm_routing_put_voice_mixer),
  16133. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16134. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16135. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16136. msm_routing_put_voice_mixer),
  16137. };
  16138. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  16139. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16140. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16141. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16142. msm_routing_put_voice_mixer),
  16143. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16144. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16145. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16146. msm_routing_put_voice_mixer),
  16147. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16148. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16149. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  16150. msm_routing_put_voice_mixer),
  16151. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16152. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16153. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16154. msm_routing_put_voice_mixer),
  16155. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16156. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16157. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16158. msm_routing_put_voice_mixer),
  16159. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16160. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16161. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16162. msm_routing_put_voice_mixer),
  16163. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16164. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16165. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16166. msm_routing_put_voice_mixer),
  16167. };
  16168. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  16169. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16170. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16171. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16172. msm_routing_put_voice_mixer),
  16173. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16174. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16175. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16176. msm_routing_put_voice_stub_mixer),
  16177. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16178. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16179. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16180. msm_routing_put_voice_stub_mixer),
  16181. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16182. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16183. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16184. msm_routing_put_voice_mixer),
  16185. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16186. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16187. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16188. msm_routing_put_voice_mixer),
  16189. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16190. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16191. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16192. msm_routing_put_voice_mixer),
  16193. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16194. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16195. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16196. msm_routing_put_voice_mixer),
  16197. };
  16198. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  16199. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16200. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16201. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16202. msm_routing_put_voice_mixer),
  16203. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16204. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16205. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16206. msm_routing_put_voice_mixer),
  16207. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16208. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16209. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16210. msm_routing_put_voice_mixer),
  16211. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16212. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16213. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16214. msm_routing_put_voice_mixer),
  16215. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16216. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16217. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16218. msm_routing_put_voice_mixer),
  16219. };
  16220. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  16221. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16222. MSM_BACKEND_DAI_AFE_PCM_RX,
  16223. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16224. msm_routing_put_voice_mixer),
  16225. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16226. MSM_BACKEND_DAI_AFE_PCM_RX,
  16227. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16228. msm_routing_put_voice_mixer),
  16229. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16230. MSM_BACKEND_DAI_AFE_PCM_RX,
  16231. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16232. msm_routing_put_voice_mixer),
  16233. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16234. MSM_BACKEND_DAI_AFE_PCM_RX,
  16235. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16236. msm_routing_put_voice_mixer),
  16237. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16238. MSM_BACKEND_DAI_AFE_PCM_RX,
  16239. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16240. msm_routing_put_voice_mixer),
  16241. };
  16242. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  16243. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16244. MSM_BACKEND_DAI_AUXPCM_RX,
  16245. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16246. msm_routing_put_voice_mixer),
  16247. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16248. MSM_BACKEND_DAI_AUXPCM_RX,
  16249. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16250. msm_routing_put_voice_mixer),
  16251. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16252. MSM_BACKEND_DAI_AUXPCM_RX,
  16253. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16254. msm_routing_put_voice_mixer),
  16255. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16256. MSM_BACKEND_DAI_AUXPCM_RX,
  16257. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16258. msm_routing_put_voice_mixer),
  16259. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16260. MSM_BACKEND_DAI_AUXPCM_RX,
  16261. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16262. msm_routing_put_voice_mixer),
  16263. };
  16264. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  16265. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16266. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16267. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16268. msm_routing_put_voice_mixer),
  16269. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16270. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16271. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16272. msm_routing_put_voice_mixer),
  16273. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16274. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16275. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16276. msm_routing_put_voice_mixer),
  16277. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16278. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16279. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16280. msm_routing_put_voice_mixer),
  16281. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16282. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16283. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16284. msm_routing_put_voice_mixer),
  16285. };
  16286. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  16287. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16288. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16289. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16290. msm_routing_put_voice_mixer),
  16291. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16292. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16293. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16294. msm_routing_put_voice_mixer),
  16295. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16296. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16297. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16298. msm_routing_put_voice_mixer),
  16299. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16300. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16301. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16302. msm_routing_put_voice_mixer),
  16303. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16304. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16305. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16306. msm_routing_put_voice_mixer),
  16307. };
  16308. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  16309. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16310. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16311. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16312. msm_routing_put_voice_mixer),
  16313. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16314. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16315. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16316. msm_routing_put_voice_mixer),
  16317. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16318. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16319. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16320. msm_routing_put_voice_mixer),
  16321. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16322. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16323. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16324. msm_routing_put_voice_mixer),
  16325. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16326. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16327. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16328. msm_routing_put_voice_mixer),
  16329. };
  16330. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  16331. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16332. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16333. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16334. msm_routing_put_voice_mixer),
  16335. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16336. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16337. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16338. msm_routing_put_voice_mixer),
  16339. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16340. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16341. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16342. msm_routing_put_voice_mixer),
  16343. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16344. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16345. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16346. msm_routing_put_voice_mixer),
  16347. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16348. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16349. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16350. msm_routing_put_voice_mixer),
  16351. };
  16352. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  16353. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16354. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16355. msm_routing_put_voice_mixer),
  16356. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16357. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16358. msm_routing_put_voice_mixer),
  16359. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16360. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16361. msm_routing_put_voice_mixer),
  16362. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16363. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16364. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16365. msm_routing_put_voice_mixer),
  16366. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16367. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16368. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16369. msm_routing_put_voice_mixer),
  16370. };
  16371. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  16372. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16373. MSM_BACKEND_DAI_HDMI_RX,
  16374. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16375. msm_routing_put_voice_mixer),
  16376. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16377. MSM_BACKEND_DAI_HDMI_RX,
  16378. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16379. msm_routing_put_voice_mixer),
  16380. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16381. MSM_BACKEND_DAI_HDMI_RX,
  16382. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16383. msm_routing_put_voice_mixer),
  16384. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16385. MSM_BACKEND_DAI_HDMI_RX,
  16386. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16387. msm_routing_put_voice_mixer),
  16388. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16389. MSM_BACKEND_DAI_HDMI_RX,
  16390. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16391. msm_routing_put_voice_mixer),
  16392. };
  16393. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  16394. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16395. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16396. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16397. msm_routing_put_voice_mixer),
  16398. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16399. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16400. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16401. msm_routing_put_voice_mixer),
  16402. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16403. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16404. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16405. msm_routing_put_voice_mixer),
  16406. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16407. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16408. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16409. msm_routing_put_voice_mixer),
  16410. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16411. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16412. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16413. msm_routing_put_voice_mixer),
  16414. };
  16415. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  16416. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16417. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16418. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16419. msm_routing_put_voice_mixer),
  16420. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16421. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16422. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16423. msm_routing_put_voice_mixer),
  16424. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16425. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16426. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16427. msm_routing_put_voice_mixer),
  16428. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16429. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16430. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16431. msm_routing_put_voice_mixer),
  16432. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16433. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16434. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16435. msm_routing_put_voice_mixer),
  16436. };
  16437. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  16438. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16439. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  16440. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16441. msm_routing_put_voice_mixer),
  16442. };
  16443. static const struct snd_kcontrol_new quin_tdm_rx_2_voice_mixer_controls[] = {
  16444. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16445. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16446. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16447. msm_routing_put_voice_mixer),
  16448. };
  16449. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  16450. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16451. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16452. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16453. msm_routing_put_voice_mixer),
  16454. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16455. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16456. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16457. msm_routing_put_voice_mixer),
  16458. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16459. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16460. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16461. msm_routing_put_voice_mixer),
  16462. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16463. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16464. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16465. msm_routing_put_voice_mixer),
  16466. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16467. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16468. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16469. msm_routing_put_voice_mixer),
  16470. };
  16471. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  16472. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16473. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16474. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16475. msm_routing_put_voice_mixer),
  16476. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16477. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16478. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16479. msm_routing_put_voice_mixer),
  16480. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16481. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16482. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16483. msm_routing_put_voice_mixer),
  16484. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16485. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16486. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16487. msm_routing_put_voice_mixer),
  16488. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16489. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16490. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16491. msm_routing_put_voice_mixer),
  16492. };
  16493. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  16494. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16495. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16496. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16497. msm_routing_put_voice_mixer),
  16498. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16499. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16500. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16501. msm_routing_put_voice_mixer),
  16502. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16503. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16504. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16505. msm_routing_put_voice_mixer),
  16506. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16507. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16508. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16509. msm_routing_put_voice_mixer),
  16510. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16511. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16512. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16513. msm_routing_put_voice_mixer),
  16514. };
  16515. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  16516. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16517. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16518. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16519. msm_routing_put_voice_mixer),
  16520. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16521. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16522. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16523. msm_routing_put_voice_mixer),
  16524. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16525. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16526. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16527. msm_routing_put_voice_mixer),
  16528. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16529. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16530. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16531. msm_routing_put_voice_mixer),
  16532. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16533. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16534. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16535. msm_routing_put_voice_mixer),
  16536. };
  16537. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  16538. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16539. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16540. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16541. msm_routing_put_voice_mixer),
  16542. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16543. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16544. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16545. msm_routing_put_voice_mixer),
  16546. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16547. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16548. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16549. msm_routing_put_voice_mixer),
  16550. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16551. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16552. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16553. msm_routing_put_voice_mixer),
  16554. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16555. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16556. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16557. msm_routing_put_voice_mixer),
  16558. };
  16559. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  16560. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16561. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16562. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16563. msm_routing_put_voice_mixer),
  16564. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16565. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16566. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16567. msm_routing_put_voice_mixer),
  16568. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16569. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16570. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16571. msm_routing_put_voice_mixer),
  16572. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16573. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16574. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16575. msm_routing_put_voice_mixer),
  16576. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16577. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16578. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16579. msm_routing_put_voice_mixer),
  16580. };
  16581. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  16582. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16583. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16584. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16585. msm_routing_put_voice_mixer),
  16586. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16587. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16588. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16589. msm_routing_put_voice_mixer),
  16590. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16591. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16592. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16593. msm_routing_put_voice_mixer),
  16594. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16595. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16596. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16597. msm_routing_put_voice_mixer),
  16598. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16599. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16600. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16601. msm_routing_put_voice_mixer),
  16602. };
  16603. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  16604. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16605. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16606. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16607. msm_routing_put_voice_mixer),
  16608. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16609. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16610. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16611. msm_routing_put_voice_mixer),
  16612. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16613. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16614. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16615. msm_routing_put_voice_mixer),
  16616. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16617. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16618. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16619. msm_routing_put_voice_mixer),
  16620. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16621. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16622. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16623. msm_routing_put_voice_mixer),
  16624. };
  16625. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  16626. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16627. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16628. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16629. msm_routing_put_voice_mixer),
  16630. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16631. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16632. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16633. msm_routing_put_voice_mixer),
  16634. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16635. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16636. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16637. msm_routing_put_voice_mixer),
  16638. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16639. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16640. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16641. msm_routing_put_voice_mixer),
  16642. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16643. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16644. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16645. msm_routing_put_voice_mixer),
  16646. };
  16647. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  16648. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16649. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16650. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16651. msm_routing_put_voice_mixer),
  16652. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16653. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16654. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16655. msm_routing_put_voice_mixer),
  16656. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16657. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16658. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16659. msm_routing_put_voice_mixer),
  16660. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16661. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16662. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16663. msm_routing_put_voice_mixer),
  16664. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16665. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16666. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16667. msm_routing_put_voice_mixer),
  16668. };
  16669. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  16670. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16671. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16672. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16673. msm_routing_put_voice_mixer),
  16674. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16675. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16676. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16677. msm_routing_put_voice_stub_mixer),
  16678. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16679. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16680. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16681. msm_routing_put_voice_stub_mixer),
  16682. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16683. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16684. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16685. msm_routing_put_voice_mixer),
  16686. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16687. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16688. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16689. msm_routing_put_voice_mixer),
  16690. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16691. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16692. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16693. msm_routing_put_voice_mixer),
  16694. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16695. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16696. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16697. msm_routing_put_voice_mixer),
  16698. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16699. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16700. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16701. msm_routing_put_voice_mixer),
  16702. };
  16703. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  16704. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16705. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16706. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16707. msm_routing_put_voice_mixer),
  16708. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16709. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16710. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16711. msm_routing_put_voice_stub_mixer),
  16712. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16713. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16714. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16715. msm_routing_put_voice_stub_mixer),
  16716. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16717. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16718. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16719. msm_routing_put_voice_mixer),
  16720. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16721. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16722. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16723. msm_routing_put_voice_mixer),
  16724. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16725. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16726. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16727. msm_routing_put_voice_mixer),
  16728. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16729. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16730. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16731. msm_routing_put_voice_mixer),
  16732. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16733. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16734. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16735. msm_routing_put_voice_mixer),
  16736. };
  16737. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  16738. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16739. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16740. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16741. msm_routing_put_voice_mixer),
  16742. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16743. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16744. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16745. msm_routing_put_voice_stub_mixer),
  16746. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16747. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16748. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16749. msm_routing_put_voice_stub_mixer),
  16750. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16751. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16752. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16753. msm_routing_put_voice_mixer),
  16754. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16755. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16756. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16757. msm_routing_put_voice_mixer),
  16758. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16759. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16760. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16761. msm_routing_put_voice_mixer),
  16762. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16763. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16764. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16765. msm_routing_put_voice_mixer),
  16766. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16767. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16768. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16769. msm_routing_put_voice_mixer),
  16770. };
  16771. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  16772. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16773. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16774. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16775. msm_routing_put_voice_mixer),
  16776. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16777. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16778. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16779. msm_routing_put_voice_stub_mixer),
  16780. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16781. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16782. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16783. msm_routing_put_voice_stub_mixer),
  16784. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16785. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16786. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16787. msm_routing_put_voice_mixer),
  16788. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16789. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16790. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16791. msm_routing_put_voice_mixer),
  16792. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16793. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16794. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16795. msm_routing_put_voice_mixer),
  16796. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16797. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16798. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16799. msm_routing_put_voice_mixer),
  16800. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16801. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16802. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16803. msm_routing_put_voice_mixer),
  16804. };
  16805. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  16806. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16807. MSM_BACKEND_DAI_EXTPROC_RX,
  16808. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16809. msm_routing_put_voice_mixer),
  16810. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16811. MSM_BACKEND_DAI_EXTPROC_RX,
  16812. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16813. msm_routing_put_voice_mixer),
  16814. };
  16815. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  16816. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16817. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16818. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16819. msm_routing_put_voice_mixer),
  16820. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16821. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16822. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16823. msm_routing_put_voice_mixer),
  16824. };
  16825. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  16826. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16827. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16828. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16829. msm_routing_put_voice_mixer),
  16830. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16831. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16832. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16833. msm_routing_put_voice_mixer),
  16834. };
  16835. static const struct snd_kcontrol_new proxy_rx_voice_mixer_controls[] = {
  16836. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16837. MSM_BACKEND_DAI_PROXY_RX,
  16838. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16839. msm_routing_put_voice_mixer),
  16840. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16841. MSM_BACKEND_DAI_PROXY_RX,
  16842. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16843. msm_routing_put_voice_mixer),
  16844. };
  16845. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  16846. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  16847. MSM_BACKEND_DAI_PRI_I2S_TX,
  16848. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16849. msm_routing_put_voice_mixer),
  16850. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  16851. MSM_BACKEND_DAI_MI2S_TX,
  16852. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16853. msm_routing_put_voice_mixer),
  16854. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  16855. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16856. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16857. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  16858. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16859. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16860. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  16861. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16862. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16863. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16864. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16865. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16866. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16867. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16868. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16869. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16870. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16871. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16872. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16873. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16874. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16875. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16876. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16877. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16878. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16879. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16880. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16881. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  16882. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16883. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16884. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  16885. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16886. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16887. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16888. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16889. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16890. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  16891. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16892. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16893. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  16894. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16895. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16896. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  16897. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16898. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16899. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  16900. MSM_BACKEND_DAI_USB_TX,
  16901. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16902. msm_routing_put_voice_mixer),
  16903. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  16904. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16905. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16906. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16907. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16908. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16909. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16910. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16911. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16912. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16913. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16914. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16915. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16916. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16917. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16918. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16919. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16920. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16921. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16922. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16923. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16924. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  16925. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16926. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16927. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  16928. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  16929. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16930. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  16931. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  16932. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16933. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16934. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16935. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16936. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  16937. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16938. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16939. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  16940. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16941. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16942. SOC_DOUBLE_EXT("PROXY_TX_MMode1", SND_SOC_NOPM,
  16943. MSM_BACKEND_DAI_PROXY_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16944. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16945. };
  16946. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  16947. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  16948. MSM_BACKEND_DAI_PRI_I2S_TX,
  16949. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16950. msm_routing_put_voice_mixer),
  16951. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  16952. MSM_BACKEND_DAI_MI2S_TX,
  16953. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16954. msm_routing_put_voice_mixer),
  16955. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  16956. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16957. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16958. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  16959. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16960. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16961. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  16962. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16963. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16964. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16965. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16966. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16967. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16968. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16969. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16970. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16971. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16972. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16973. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16974. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16975. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16976. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16977. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16978. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16979. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16980. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16981. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16982. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  16983. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16984. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16985. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  16986. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16987. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16988. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16989. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16990. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16991. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  16992. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16993. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16994. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  16995. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16996. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16997. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  16998. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16999. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17000. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  17001. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  17002. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17003. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  17004. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  17005. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17006. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  17007. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  17008. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17009. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  17010. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  17011. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17012. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  17013. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  17014. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17015. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  17016. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  17017. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17018. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  17019. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  17020. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17021. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  17022. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  17023. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17024. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  17025. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  17026. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17027. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  17028. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  17029. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17030. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  17031. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  17032. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17033. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  17034. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  17035. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17036. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  17037. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  17038. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17039. SOC_DOUBLE_EXT("PROXY_TX_MMode2", SND_SOC_NOPM,
  17040. MSM_BACKEND_DAI_PROXY_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  17041. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17042. };
  17043. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  17044. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  17045. MSM_BACKEND_DAI_PRI_I2S_TX,
  17046. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17047. msm_routing_put_voice_mixer),
  17048. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  17049. MSM_BACKEND_DAI_MI2S_TX,
  17050. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17051. msm_routing_put_voice_mixer),
  17052. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  17053. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17054. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17055. msm_routing_put_voice_mixer),
  17056. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  17057. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17058. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17059. msm_routing_put_voice_mixer),
  17060. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  17061. MSM_BACKEND_DAI_AFE_PCM_TX,
  17062. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17063. msm_routing_put_voice_mixer),
  17064. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17065. MSM_BACKEND_DAI_AUXPCM_TX,
  17066. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17067. msm_routing_put_voice_mixer),
  17068. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17069. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17070. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17071. msm_routing_put_voice_mixer),
  17072. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17073. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17074. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17075. msm_routing_put_voice_mixer),
  17076. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17077. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17078. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17079. msm_routing_put_voice_mixer),
  17080. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17081. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17082. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17083. msm_routing_put_voice_mixer),
  17084. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17085. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17086. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17087. msm_routing_put_voice_mixer),
  17088. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  17089. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17090. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17091. msm_routing_put_voice_mixer),
  17092. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  17093. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  17094. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17095. msm_routing_put_voice_mixer),
  17096. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  17097. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17098. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17099. msm_routing_put_voice_mixer),
  17100. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  17101. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17102. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17103. msm_routing_put_voice_mixer),
  17104. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  17105. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17106. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17107. msm_routing_put_voice_mixer),
  17108. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  17109. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17110. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17111. msm_routing_put_voice_mixer),
  17112. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  17113. MSM_BACKEND_DAI_USB_TX,
  17114. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17115. msm_routing_put_voice_mixer),
  17116. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  17117. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  17118. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17119. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  17120. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  17121. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17122. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  17123. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  17124. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17125. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  17126. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  17127. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17128. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  17129. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  17130. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17131. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  17132. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  17133. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17134. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  17135. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  17136. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17137. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  17138. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  17139. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17140. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  17141. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  17142. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17143. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  17144. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17145. msm_routing_put_voice_mixer),
  17146. };
  17147. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  17148. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  17149. MSM_BACKEND_DAI_EXTPROC_TX,
  17150. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17151. msm_routing_put_voice_stub_mixer),
  17152. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17153. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17154. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17155. msm_routing_put_voice_stub_mixer),
  17156. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17157. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17158. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17159. msm_routing_put_voice_stub_mixer),
  17160. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  17161. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  17162. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17163. msm_routing_put_voice_stub_mixer),
  17164. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17165. MSM_BACKEND_DAI_MI2S_TX,
  17166. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17167. msm_routing_put_voice_stub_mixer),
  17168. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17169. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17170. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17171. msm_routing_put_voice_stub_mixer),
  17172. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17173. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17174. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17175. msm_routing_put_voice_stub_mixer),
  17176. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17177. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17178. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17179. msm_routing_put_voice_stub_mixer),
  17180. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17181. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17182. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17183. msm_routing_put_voice_stub_mixer),
  17184. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17185. MSM_BACKEND_DAI_AUXPCM_TX,
  17186. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17187. msm_routing_put_voice_stub_mixer),
  17188. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17189. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17190. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17191. msm_routing_put_voice_stub_mixer),
  17192. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17193. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17194. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17195. msm_routing_put_voice_stub_mixer),
  17196. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17197. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17198. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17199. msm_routing_put_voice_stub_mixer),
  17200. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17201. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17202. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17203. msm_routing_put_voice_stub_mixer),
  17204. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17205. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17206. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17207. msm_routing_put_voice_stub_mixer),
  17208. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17209. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17210. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17211. msm_routing_put_voice_stub_mixer),
  17212. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17213. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17214. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17215. msm_routing_put_voice_stub_mixer),
  17216. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17217. MSM_BACKEND_DAI_AFE_PCM_TX,
  17218. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17219. msm_routing_put_voice_stub_mixer),
  17220. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17221. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17222. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17223. msm_routing_put_voice_stub_mixer),
  17224. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17225. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17226. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17227. msm_routing_put_voice_stub_mixer),
  17228. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17229. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  17230. 1, 0, msm_routing_get_voice_stub_mixer,
  17231. msm_routing_put_voice_stub_mixer),
  17232. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17233. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  17234. 1, 0, msm_routing_get_voice_stub_mixer,
  17235. msm_routing_put_voice_stub_mixer),
  17236. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17237. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  17238. 1, 0, msm_routing_get_voice_stub_mixer,
  17239. msm_routing_put_voice_stub_mixer),
  17240. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17241. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  17242. 1, 0, msm_routing_get_voice_stub_mixer,
  17243. msm_routing_put_voice_stub_mixer),
  17244. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17245. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  17246. 1, 0, msm_routing_get_voice_stub_mixer,
  17247. msm_routing_put_voice_stub_mixer),
  17248. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17249. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  17250. 1, 0, msm_routing_get_voice_stub_mixer,
  17251. msm_routing_put_voice_stub_mixer),
  17252. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17253. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  17254. 1, 0, msm_routing_get_voice_stub_mixer,
  17255. msm_routing_put_voice_stub_mixer),
  17256. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17257. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  17258. 1, 0, msm_routing_get_voice_stub_mixer,
  17259. msm_routing_put_voice_stub_mixer),
  17260. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17261. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  17262. 1, 0, msm_routing_get_voice_stub_mixer,
  17263. msm_routing_put_voice_stub_mixer),
  17264. };
  17265. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  17266. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  17267. MSM_BACKEND_DAI_EXTPROC_TX,
  17268. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17269. msm_routing_put_voice_stub_mixer),
  17270. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17271. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17272. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17273. msm_routing_put_voice_stub_mixer),
  17274. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  17275. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  17276. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17277. msm_routing_put_voice_stub_mixer),
  17278. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17279. MSM_BACKEND_DAI_AUXPCM_TX,
  17280. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17281. msm_routing_put_voice_stub_mixer),
  17282. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17283. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17284. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17285. msm_routing_put_voice_stub_mixer),
  17286. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17287. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17288. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17289. msm_routing_put_voice_stub_mixer),
  17290. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17291. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17292. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17293. msm_routing_put_voice_stub_mixer),
  17294. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17295. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17296. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17297. msm_routing_put_voice_stub_mixer),
  17298. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17299. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17300. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17301. msm_routing_put_voice_stub_mixer),
  17302. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17303. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17304. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17305. msm_routing_put_voice_stub_mixer),
  17306. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17307. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17308. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17309. msm_routing_put_voice_stub_mixer),
  17310. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17311. MSM_BACKEND_DAI_AFE_PCM_TX,
  17312. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17313. msm_routing_put_voice_stub_mixer),
  17314. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17315. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17316. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17317. msm_routing_put_voice_stub_mixer),
  17318. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17319. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17320. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17321. msm_routing_put_voice_stub_mixer),
  17322. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17323. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17324. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17325. msm_routing_put_voice_stub_mixer),
  17326. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17327. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17328. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17329. msm_routing_put_voice_stub_mixer),
  17330. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17331. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17332. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17333. msm_routing_put_voice_stub_mixer),
  17334. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17335. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  17336. 1, 0, msm_routing_get_voice_stub_mixer,
  17337. msm_routing_put_voice_stub_mixer),
  17338. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17339. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  17340. 1, 0, msm_routing_get_voice_stub_mixer,
  17341. msm_routing_put_voice_stub_mixer),
  17342. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17343. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  17344. 1, 0, msm_routing_get_voice_stub_mixer,
  17345. msm_routing_put_voice_stub_mixer),
  17346. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17347. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  17348. 1, 0, msm_routing_get_voice_stub_mixer,
  17349. msm_routing_put_voice_stub_mixer),
  17350. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17351. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  17352. 1, 0, msm_routing_get_voice_stub_mixer,
  17353. msm_routing_put_voice_stub_mixer),
  17354. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17355. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  17356. 1, 0, msm_routing_get_voice_stub_mixer,
  17357. msm_routing_put_voice_stub_mixer),
  17358. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17359. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  17360. 1, 0, msm_routing_get_voice_stub_mixer,
  17361. msm_routing_put_voice_stub_mixer),
  17362. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17363. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  17364. 1, 0, msm_routing_get_voice_stub_mixer,
  17365. msm_routing_put_voice_stub_mixer),
  17366. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17367. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  17368. 1, 0, msm_routing_get_voice_stub_mixer,
  17369. msm_routing_put_voice_stub_mixer),
  17370. };
  17371. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  17372. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  17373. MSM_BACKEND_DAI_EXTPROC_TX,
  17374. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17375. msm_routing_put_voice_stub_mixer),
  17376. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17377. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17378. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17379. msm_routing_put_voice_stub_mixer),
  17380. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  17381. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  17382. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17383. msm_routing_put_voice_stub_mixer),
  17384. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17385. MSM_BACKEND_DAI_AUXPCM_TX,
  17386. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17387. msm_routing_put_voice_stub_mixer),
  17388. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17389. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17390. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17391. msm_routing_put_voice_stub_mixer),
  17392. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17393. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17394. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17395. msm_routing_put_voice_stub_mixer),
  17396. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17397. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17398. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17399. msm_routing_put_voice_stub_mixer),
  17400. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17401. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17402. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17403. msm_routing_put_voice_stub_mixer),
  17404. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17405. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17406. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17407. msm_routing_put_voice_stub_mixer),
  17408. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17409. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17410. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17411. msm_routing_put_voice_stub_mixer),
  17412. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17413. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17414. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17415. msm_routing_put_voice_stub_mixer),
  17416. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17417. MSM_BACKEND_DAI_AFE_PCM_TX,
  17418. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17419. msm_routing_put_voice_stub_mixer),
  17420. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17421. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17422. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17423. msm_routing_put_voice_stub_mixer),
  17424. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17425. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17426. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17427. msm_routing_put_voice_stub_mixer),
  17428. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17429. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17430. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17431. msm_routing_put_voice_stub_mixer),
  17432. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17433. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17434. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17435. msm_routing_put_voice_stub_mixer),
  17436. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17437. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17438. 1, 0, msm_routing_get_voice_stub_mixer,
  17439. msm_routing_put_voice_stub_mixer),
  17440. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17441. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17442. 1, 0, msm_routing_get_voice_stub_mixer,
  17443. msm_routing_put_voice_stub_mixer),
  17444. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17445. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17446. 1, 0, msm_routing_get_voice_stub_mixer,
  17447. msm_routing_put_voice_stub_mixer),
  17448. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17449. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17450. 1, 0, msm_routing_get_voice_stub_mixer,
  17451. msm_routing_put_voice_stub_mixer),
  17452. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17453. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17454. 1, 0, msm_routing_get_voice_stub_mixer,
  17455. msm_routing_put_voice_stub_mixer),
  17456. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17457. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17458. 1, 0, msm_routing_get_voice_stub_mixer,
  17459. msm_routing_put_voice_stub_mixer),
  17460. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17461. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  17462. 1, 0, msm_routing_get_voice_stub_mixer,
  17463. msm_routing_put_voice_stub_mixer),
  17464. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17465. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  17466. 1, 0, msm_routing_get_voice_stub_mixer,
  17467. msm_routing_put_voice_stub_mixer),
  17468. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17469. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  17470. 1, 0, msm_routing_get_voice_stub_mixer,
  17471. msm_routing_put_voice_stub_mixer),
  17472. };
  17473. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  17474. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  17475. MSM_BACKEND_DAI_PRI_I2S_TX,
  17476. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17477. msm_routing_put_voice_mixer),
  17478. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  17479. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17480. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17481. msm_routing_put_voice_mixer),
  17482. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  17483. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17484. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  17485. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17486. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  17487. MSM_BACKEND_DAI_AFE_PCM_TX,
  17488. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17489. msm_routing_put_voice_mixer),
  17490. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17491. MSM_BACKEND_DAI_AUXPCM_TX,
  17492. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17493. msm_routing_put_voice_mixer),
  17494. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17495. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17496. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17497. msm_routing_put_voice_mixer),
  17498. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17499. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17500. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17501. msm_routing_put_voice_mixer),
  17502. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17503. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17504. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17505. msm_routing_put_voice_mixer),
  17506. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17507. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17508. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17509. msm_routing_put_voice_mixer),
  17510. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17511. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17512. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17513. msm_routing_put_voice_mixer),
  17514. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  17515. MSM_BACKEND_DAI_MI2S_TX,
  17516. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17517. msm_routing_put_voice_mixer),
  17518. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17519. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17520. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17521. msm_routing_put_voice_mixer),
  17522. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17523. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17524. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17525. msm_routing_put_voice_mixer),
  17526. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17527. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17528. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17529. msm_routing_put_voice_mixer),
  17530. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  17531. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17532. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17533. msm_routing_put_voice_mixer),
  17534. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  17535. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17536. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17537. msm_routing_put_voice_mixer),
  17538. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  17539. MSM_BACKEND_DAI_USB_TX,
  17540. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17541. msm_routing_put_voice_mixer),
  17542. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17543. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17544. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17545. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17546. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17547. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17548. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17549. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17550. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17551. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17552. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17553. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17554. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17555. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17556. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17557. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17558. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17559. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17560. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  17561. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  17562. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17563. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  17564. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  17565. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17566. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  17567. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  17568. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17569. };
  17570. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  17571. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17572. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17573. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17574. msm_routing_put_port_mixer),
  17575. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17576. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17577. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17578. msm_routing_put_port_mixer),
  17579. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17580. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17581. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17582. msm_routing_put_port_mixer),
  17583. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17584. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17585. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17586. msm_routing_put_port_mixer),
  17587. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17588. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17589. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17590. msm_routing_put_port_mixer),
  17591. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17592. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17593. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17594. msm_routing_put_port_mixer),
  17595. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17596. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17597. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17598. msm_routing_put_port_mixer),
  17599. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17600. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17601. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17602. msm_routing_put_port_mixer),
  17603. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17604. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17605. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17606. msm_routing_put_port_mixer),
  17607. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17608. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17609. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17610. msm_routing_put_port_mixer),
  17611. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17612. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17613. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17614. msm_routing_put_port_mixer),
  17615. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17616. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17617. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17618. msm_routing_put_port_mixer),
  17619. };
  17620. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  17621. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17622. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17623. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17624. msm_routing_put_port_mixer),
  17625. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17626. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17627. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17628. msm_routing_put_port_mixer),
  17629. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17630. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17631. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17632. msm_routing_put_port_mixer),
  17633. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17634. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17635. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17636. msm_routing_put_port_mixer),
  17637. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17638. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17639. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17640. msm_routing_put_port_mixer),
  17641. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17642. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17643. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17644. msm_routing_put_port_mixer),
  17645. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17646. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17647. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17648. msm_routing_put_port_mixer),
  17649. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17650. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17651. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17652. msm_routing_put_port_mixer),
  17653. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17654. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17655. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17656. msm_routing_put_port_mixer),
  17657. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17658. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17659. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17660. msm_routing_put_port_mixer),
  17661. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17662. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17663. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17664. msm_routing_put_port_mixer),
  17665. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17666. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17667. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17668. msm_routing_put_port_mixer),
  17669. };
  17670. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  17671. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17672. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17673. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17674. msm_routing_put_port_mixer),
  17675. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17676. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17677. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17678. msm_routing_put_port_mixer),
  17679. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17680. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17681. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17682. msm_routing_put_port_mixer),
  17683. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17684. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17685. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17686. msm_routing_put_port_mixer),
  17687. };
  17688. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  17689. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17690. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17691. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17692. msm_routing_put_port_mixer),
  17693. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17694. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17695. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17696. msm_routing_put_port_mixer),
  17697. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17698. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17699. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17700. msm_routing_put_port_mixer),
  17701. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17702. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17703. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17704. msm_routing_put_port_mixer),
  17705. };
  17706. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_port_mixer_controls[] = {
  17707. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17708. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17709. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17710. msm_routing_put_port_mixer),
  17711. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17712. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17713. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17714. msm_routing_put_port_mixer),
  17715. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17716. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17717. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17718. msm_routing_put_port_mixer),
  17719. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17720. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17721. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17722. msm_routing_put_port_mixer),
  17723. };
  17724. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  17725. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17726. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17727. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17728. msm_routing_put_port_mixer),
  17729. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17730. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17731. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17732. msm_routing_put_port_mixer),
  17733. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17734. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17735. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17736. msm_routing_put_port_mixer),
  17737. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17738. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17739. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17740. msm_routing_put_port_mixer),
  17741. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17742. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17743. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17744. msm_routing_put_port_mixer),
  17745. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17746. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17747. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17748. msm_routing_put_port_mixer),
  17749. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17750. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17751. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17752. msm_routing_put_port_mixer),
  17753. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17754. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17755. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17756. msm_routing_put_port_mixer),
  17757. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17758. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17759. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17760. msm_routing_put_port_mixer),
  17761. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17762. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17763. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17764. msm_routing_put_port_mixer),
  17765. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17766. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17767. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17768. msm_routing_put_port_mixer),
  17769. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17770. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17771. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17772. msm_routing_put_port_mixer),
  17773. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17774. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17775. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17776. msm_routing_put_port_mixer),
  17777. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17778. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17779. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17780. msm_routing_put_port_mixer),
  17781. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17782. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17783. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17784. msm_routing_put_port_mixer),
  17785. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17786. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17787. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17788. msm_routing_put_port_mixer),
  17789. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17790. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17791. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17792. msm_routing_put_port_mixer),
  17793. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17794. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17795. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17796. msm_routing_put_port_mixer),
  17797. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17798. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17799. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17800. msm_routing_put_port_mixer),
  17801. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  17802. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17803. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17804. msm_routing_put_port_mixer),
  17805. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  17806. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17807. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17808. msm_routing_put_port_mixer),
  17809. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  17810. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17811. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17812. msm_routing_put_port_mixer),
  17813. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  17814. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17815. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17816. msm_routing_put_port_mixer),
  17817. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  17818. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17819. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17820. msm_routing_put_port_mixer),
  17821. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  17822. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17823. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17824. msm_routing_put_port_mixer),
  17825. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17826. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17827. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17828. msm_routing_put_port_mixer),
  17829. };
  17830. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  17831. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17832. MSM_BACKEND_DAI_AUXPCM_RX,
  17833. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17834. msm_routing_put_port_mixer),
  17835. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17836. MSM_BACKEND_DAI_AUXPCM_RX,
  17837. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17838. msm_routing_put_port_mixer),
  17839. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17840. MSM_BACKEND_DAI_AUXPCM_RX,
  17841. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17842. msm_routing_put_port_mixer),
  17843. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17844. MSM_BACKEND_DAI_AUXPCM_RX,
  17845. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17846. msm_routing_put_port_mixer),
  17847. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17848. MSM_BACKEND_DAI_AUXPCM_RX,
  17849. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17850. msm_routing_put_port_mixer),
  17851. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17852. MSM_BACKEND_DAI_AUXPCM_RX,
  17853. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17854. msm_routing_put_port_mixer),
  17855. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17856. MSM_BACKEND_DAI_AUXPCM_RX,
  17857. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17858. msm_routing_put_port_mixer),
  17859. };
  17860. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  17861. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17862. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17863. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17864. msm_routing_put_port_mixer),
  17865. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17866. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17867. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17868. msm_routing_put_port_mixer),
  17869. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17870. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17871. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17872. msm_routing_put_port_mixer),
  17873. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17874. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17875. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17876. msm_routing_put_port_mixer),
  17877. };
  17878. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  17879. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17880. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17881. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17882. msm_routing_put_port_mixer),
  17883. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17884. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17885. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17886. msm_routing_put_port_mixer),
  17887. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17888. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17889. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17890. msm_routing_put_port_mixer),
  17891. };
  17892. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  17893. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17894. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17895. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17896. msm_routing_put_port_mixer),
  17897. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17898. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17899. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17900. msm_routing_put_port_mixer),
  17901. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17902. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17903. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17904. msm_routing_put_port_mixer),
  17905. };
  17906. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  17907. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17908. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17909. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17910. msm_routing_put_port_mixer),
  17911. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17912. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17913. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17914. msm_routing_put_port_mixer),
  17915. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17916. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17917. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17918. msm_routing_put_port_mixer),
  17919. };
  17920. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  17921. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17922. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17923. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17924. msm_routing_put_port_mixer),
  17925. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17926. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17927. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17928. msm_routing_put_port_mixer),
  17929. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17930. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17931. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17932. msm_routing_put_port_mixer),
  17933. };
  17934. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  17935. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17936. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17937. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17938. msm_routing_put_port_mixer),
  17939. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17940. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17941. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  17942. msm_routing_put_port_mixer),
  17943. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17944. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17945. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17946. msm_routing_put_port_mixer),
  17947. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17948. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17949. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17950. msm_routing_put_port_mixer),
  17951. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17952. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17953. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17954. msm_routing_put_port_mixer),
  17955. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17956. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17957. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17958. msm_routing_put_port_mixer),
  17959. };
  17960. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  17961. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  17962. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17963. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  17964. msm_routing_put_port_mixer),
  17965. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17966. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17967. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17968. msm_routing_put_port_mixer),
  17969. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  17970. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17971. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  17972. msm_routing_put_port_mixer),
  17973. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  17974. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17975. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  17976. msm_routing_put_port_mixer),
  17977. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  17978. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17979. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  17980. msm_routing_put_port_mixer),
  17981. };
  17982. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  17983. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17984. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17985. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17986. msm_routing_put_port_mixer),
  17987. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17988. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17989. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17990. msm_routing_put_port_mixer),
  17991. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17992. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17993. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17994. msm_routing_put_port_mixer),
  17995. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17996. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17997. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17998. msm_routing_put_port_mixer),
  17999. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18000. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18001. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18002. msm_routing_put_port_mixer),
  18003. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18004. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18005. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  18006. msm_routing_put_port_mixer),
  18007. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18008. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18009. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  18010. msm_routing_put_port_mixer),
  18011. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18012. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18013. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18014. msm_routing_put_port_mixer),
  18015. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18016. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18017. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18018. msm_routing_put_port_mixer),
  18019. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18020. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18021. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18022. msm_routing_put_port_mixer),
  18023. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18024. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18025. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18026. msm_routing_put_port_mixer),
  18027. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18028. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18029. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  18030. msm_routing_put_port_mixer),
  18031. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  18032. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18033. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  18034. msm_routing_put_port_mixer),
  18035. };
  18036. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  18037. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  18038. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  18039. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  18040. msm_routing_put_port_mixer),
  18041. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18042. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  18043. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18044. msm_routing_put_port_mixer),
  18045. };
  18046. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  18047. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18048. MSM_BACKEND_DAI_AFE_PCM_RX,
  18049. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  18050. msm_routing_put_port_mixer),
  18051. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  18052. MSM_BACKEND_DAI_AFE_PCM_RX,
  18053. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  18054. msm_routing_put_port_mixer),
  18055. };
  18056. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  18057. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18058. MSM_BACKEND_DAI_HDMI_RX,
  18059. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18060. msm_routing_put_port_mixer),
  18061. };
  18062. static const struct snd_kcontrol_new hdmi_rx_ms_port_mixer_controls[] = {
  18063. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18064. MSM_BACKEND_DAI_HDMI_RX_MS,
  18065. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18066. msm_routing_put_port_mixer),
  18067. };
  18068. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  18069. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18070. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  18071. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18072. msm_routing_put_port_mixer),
  18073. };
  18074. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  18075. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18076. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  18077. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18078. msm_routing_put_port_mixer),
  18079. };
  18080. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  18081. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18082. MSM_BACKEND_DAI_SEC_I2S_RX,
  18083. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18084. msm_routing_put_port_mixer),
  18085. };
  18086. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  18087. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  18088. MSM_BACKEND_DAI_MI2S_RX,
  18089. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  18090. msm_routing_put_port_mixer),
  18091. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18092. MSM_BACKEND_DAI_MI2S_RX,
  18093. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18094. msm_routing_put_port_mixer),
  18095. };
  18096. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  18097. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18098. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18099. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18100. msm_routing_put_port_mixer),
  18101. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18102. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18103. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18104. msm_routing_put_port_mixer),
  18105. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18106. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18107. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  18108. msm_routing_put_port_mixer),
  18109. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18110. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18111. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18112. msm_routing_put_port_mixer),
  18113. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18114. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18115. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  18116. msm_routing_put_port_mixer),
  18117. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18118. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18119. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18120. msm_routing_put_port_mixer),
  18121. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18122. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18123. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18124. msm_routing_put_port_mixer),
  18125. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18126. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18127. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18128. msm_routing_put_port_mixer),
  18129. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18130. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18131. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18132. msm_routing_put_port_mixer),
  18133. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18134. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18135. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18136. msm_routing_put_port_mixer),
  18137. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18138. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18139. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  18140. msm_routing_put_port_mixer),
  18141. };
  18142. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  18143. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  18144. MSM_BACKEND_DAI_USB_RX,
  18145. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  18146. msm_routing_put_port_mixer),
  18147. };
  18148. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  18149. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18150. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18151. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18152. msm_routing_put_port_mixer),
  18153. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18154. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18155. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18156. msm_routing_put_port_mixer),
  18157. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18158. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18159. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  18160. msm_routing_put_port_mixer),
  18161. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18162. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18163. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  18164. msm_routing_put_port_mixer),
  18165. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18166. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18167. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18168. msm_routing_put_port_mixer),
  18169. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18170. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18171. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18172. msm_routing_put_port_mixer),
  18173. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18174. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18175. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18176. msm_routing_put_port_mixer),
  18177. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18178. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18179. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18180. msm_routing_put_port_mixer),
  18181. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18182. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18183. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18184. msm_routing_put_port_mixer),
  18185. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18186. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18187. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18188. msm_routing_put_port_mixer),
  18189. };
  18190. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  18191. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18192. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18193. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18194. msm_routing_put_port_mixer),
  18195. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18196. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18197. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18198. msm_routing_put_port_mixer),
  18199. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18200. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18201. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18202. msm_routing_put_port_mixer),
  18203. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18204. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18205. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18206. msm_routing_put_port_mixer),
  18207. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18208. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18209. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18210. msm_routing_put_port_mixer),
  18211. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18212. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18213. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18214. msm_routing_put_port_mixer),
  18215. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18216. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18217. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18218. msm_routing_put_port_mixer),
  18219. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18220. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18221. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18222. msm_routing_put_port_mixer),
  18223. };
  18224. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  18225. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18226. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18227. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18228. msm_routing_put_port_mixer),
  18229. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18230. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18231. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18232. msm_routing_put_port_mixer),
  18233. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18234. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18235. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18236. msm_routing_put_port_mixer),
  18237. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18238. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18239. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18240. msm_routing_put_port_mixer),
  18241. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18242. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18243. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18244. msm_routing_put_port_mixer),
  18245. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18246. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18247. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18248. msm_routing_put_port_mixer),
  18249. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18250. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18251. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18252. msm_routing_put_port_mixer),
  18253. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18254. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18255. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18256. msm_routing_put_port_mixer),
  18257. };
  18258. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  18259. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18260. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18261. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18262. msm_routing_get_port_mixer,
  18263. msm_routing_put_port_mixer),
  18264. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18265. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18266. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18267. msm_routing_get_port_mixer,
  18268. msm_routing_put_port_mixer),
  18269. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18270. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18271. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18272. msm_routing_get_port_mixer,
  18273. msm_routing_put_port_mixer),
  18274. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18275. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18276. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18277. msm_routing_get_port_mixer,
  18278. msm_routing_put_port_mixer),
  18279. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18280. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18281. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18282. msm_routing_get_port_mixer,
  18283. msm_routing_put_port_mixer),
  18284. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18285. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18286. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18287. msm_routing_get_port_mixer,
  18288. msm_routing_put_port_mixer),
  18289. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18290. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18291. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18292. msm_routing_get_port_mixer,
  18293. msm_routing_put_port_mixer),
  18294. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18295. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18296. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18297. msm_routing_get_port_mixer,
  18298. msm_routing_put_port_mixer),
  18299. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18300. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18301. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18302. msm_routing_get_port_mixer,
  18303. msm_routing_put_port_mixer),
  18304. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18305. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18306. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18307. msm_routing_get_port_mixer,
  18308. msm_routing_put_port_mixer),
  18309. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18310. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18311. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18312. msm_routing_get_port_mixer,
  18313. msm_routing_put_port_mixer),
  18314. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18315. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18316. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18317. msm_routing_get_port_mixer,
  18318. msm_routing_put_port_mixer),
  18319. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18320. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18321. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18322. msm_routing_get_port_mixer,
  18323. msm_routing_put_port_mixer),
  18324. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18325. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18326. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18327. msm_routing_get_port_mixer,
  18328. msm_routing_put_port_mixer),
  18329. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18330. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18331. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18332. msm_routing_get_port_mixer,
  18333. msm_routing_put_port_mixer),
  18334. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18335. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18336. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18337. msm_routing_get_port_mixer,
  18338. msm_routing_put_port_mixer),
  18339. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18340. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18341. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18342. msm_routing_get_port_mixer,
  18343. msm_routing_put_port_mixer),
  18344. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18345. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18346. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18347. msm_routing_get_port_mixer,
  18348. msm_routing_put_port_mixer),
  18349. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18350. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18351. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18352. msm_routing_get_port_mixer,
  18353. msm_routing_put_port_mixer),
  18354. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18355. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18356. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18357. msm_routing_get_port_mixer,
  18358. msm_routing_put_port_mixer),
  18359. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18360. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18361. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18362. msm_routing_get_port_mixer,
  18363. msm_routing_put_port_mixer),
  18364. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18365. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18366. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18367. msm_routing_get_port_mixer,
  18368. msm_routing_put_port_mixer),
  18369. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18370. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18371. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18372. msm_routing_get_port_mixer,
  18373. msm_routing_put_port_mixer),
  18374. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18375. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18376. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18377. msm_routing_get_port_mixer,
  18378. msm_routing_put_port_mixer),
  18379. };
  18380. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  18381. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18382. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18383. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18384. msm_routing_get_port_mixer,
  18385. msm_routing_put_port_mixer),
  18386. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18387. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18388. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18389. msm_routing_get_port_mixer,
  18390. msm_routing_put_port_mixer),
  18391. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18392. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18393. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18394. msm_routing_get_port_mixer,
  18395. msm_routing_put_port_mixer),
  18396. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18397. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18398. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18399. msm_routing_get_port_mixer,
  18400. msm_routing_put_port_mixer),
  18401. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18402. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18403. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18404. msm_routing_get_port_mixer,
  18405. msm_routing_put_port_mixer),
  18406. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18407. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18408. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18409. msm_routing_get_port_mixer,
  18410. msm_routing_put_port_mixer),
  18411. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18412. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18413. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18414. msm_routing_get_port_mixer,
  18415. msm_routing_put_port_mixer),
  18416. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18417. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18418. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18419. msm_routing_get_port_mixer,
  18420. msm_routing_put_port_mixer),
  18421. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18422. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18423. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18424. msm_routing_get_port_mixer,
  18425. msm_routing_put_port_mixer),
  18426. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18427. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18428. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18429. msm_routing_get_port_mixer,
  18430. msm_routing_put_port_mixer),
  18431. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18432. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18433. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18434. msm_routing_get_port_mixer,
  18435. msm_routing_put_port_mixer),
  18436. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18437. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18438. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18439. msm_routing_get_port_mixer,
  18440. msm_routing_put_port_mixer),
  18441. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18442. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18443. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18444. msm_routing_get_port_mixer,
  18445. msm_routing_put_port_mixer),
  18446. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18447. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18448. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18449. msm_routing_get_port_mixer,
  18450. msm_routing_put_port_mixer),
  18451. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18452. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18453. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18454. msm_routing_get_port_mixer,
  18455. msm_routing_put_port_mixer),
  18456. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18457. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18458. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18459. msm_routing_get_port_mixer,
  18460. msm_routing_put_port_mixer),
  18461. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18462. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18463. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18464. msm_routing_get_port_mixer,
  18465. msm_routing_put_port_mixer),
  18466. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18467. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18468. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18469. msm_routing_get_port_mixer,
  18470. msm_routing_put_port_mixer),
  18471. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18472. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18473. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18474. msm_routing_get_port_mixer,
  18475. msm_routing_put_port_mixer),
  18476. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18477. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18478. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18479. msm_routing_get_port_mixer,
  18480. msm_routing_put_port_mixer),
  18481. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18482. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18483. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18484. msm_routing_get_port_mixer,
  18485. msm_routing_put_port_mixer),
  18486. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18487. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18488. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18489. msm_routing_get_port_mixer,
  18490. msm_routing_put_port_mixer),
  18491. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18492. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18493. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18494. msm_routing_get_port_mixer,
  18495. msm_routing_put_port_mixer),
  18496. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18497. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18498. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18499. msm_routing_get_port_mixer,
  18500. msm_routing_put_port_mixer),
  18501. };
  18502. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  18503. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18504. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18505. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18506. msm_routing_get_port_mixer,
  18507. msm_routing_put_port_mixer),
  18508. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18509. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18510. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18511. msm_routing_get_port_mixer,
  18512. msm_routing_put_port_mixer),
  18513. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18514. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18515. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18516. msm_routing_get_port_mixer,
  18517. msm_routing_put_port_mixer),
  18518. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18519. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18520. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18521. msm_routing_get_port_mixer,
  18522. msm_routing_put_port_mixer),
  18523. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18524. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18525. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18526. msm_routing_get_port_mixer,
  18527. msm_routing_put_port_mixer),
  18528. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18529. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18530. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18531. msm_routing_get_port_mixer,
  18532. msm_routing_put_port_mixer),
  18533. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18534. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18535. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18536. msm_routing_get_port_mixer,
  18537. msm_routing_put_port_mixer),
  18538. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18539. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18540. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18541. msm_routing_get_port_mixer,
  18542. msm_routing_put_port_mixer),
  18543. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18544. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18545. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18546. msm_routing_get_port_mixer,
  18547. msm_routing_put_port_mixer),
  18548. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18549. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18550. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18551. msm_routing_get_port_mixer,
  18552. msm_routing_put_port_mixer),
  18553. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18554. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18555. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18556. msm_routing_get_port_mixer,
  18557. msm_routing_put_port_mixer),
  18558. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18559. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18560. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18561. msm_routing_get_port_mixer,
  18562. msm_routing_put_port_mixer),
  18563. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18564. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18565. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18566. msm_routing_get_port_mixer,
  18567. msm_routing_put_port_mixer),
  18568. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18569. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18570. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18571. msm_routing_get_port_mixer,
  18572. msm_routing_put_port_mixer),
  18573. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18574. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18575. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18576. msm_routing_get_port_mixer,
  18577. msm_routing_put_port_mixer),
  18578. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18579. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18580. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18581. msm_routing_get_port_mixer,
  18582. msm_routing_put_port_mixer),
  18583. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18584. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18585. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18586. msm_routing_get_port_mixer,
  18587. msm_routing_put_port_mixer),
  18588. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18589. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18590. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18591. msm_routing_get_port_mixer,
  18592. msm_routing_put_port_mixer),
  18593. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18594. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18595. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18596. msm_routing_get_port_mixer,
  18597. msm_routing_put_port_mixer),
  18598. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18599. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18600. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18601. msm_routing_get_port_mixer,
  18602. msm_routing_put_port_mixer),
  18603. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18604. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18605. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18606. msm_routing_get_port_mixer,
  18607. msm_routing_put_port_mixer),
  18608. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18609. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18610. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18611. msm_routing_get_port_mixer,
  18612. msm_routing_put_port_mixer),
  18613. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18614. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18615. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18616. msm_routing_get_port_mixer,
  18617. msm_routing_put_port_mixer),
  18618. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18619. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18620. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18621. msm_routing_get_port_mixer,
  18622. msm_routing_put_port_mixer),
  18623. };
  18624. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  18625. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18626. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18627. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18628. msm_routing_get_port_mixer,
  18629. msm_routing_put_port_mixer),
  18630. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18631. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18632. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18633. msm_routing_get_port_mixer,
  18634. msm_routing_put_port_mixer),
  18635. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18636. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18637. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18638. msm_routing_get_port_mixer,
  18639. msm_routing_put_port_mixer),
  18640. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18641. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18642. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18643. msm_routing_get_port_mixer,
  18644. msm_routing_put_port_mixer),
  18645. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18646. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18647. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18648. msm_routing_get_port_mixer,
  18649. msm_routing_put_port_mixer),
  18650. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18651. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18652. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18653. msm_routing_get_port_mixer,
  18654. msm_routing_put_port_mixer),
  18655. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18656. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18657. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18658. msm_routing_get_port_mixer,
  18659. msm_routing_put_port_mixer),
  18660. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18661. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18662. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18663. msm_routing_get_port_mixer,
  18664. msm_routing_put_port_mixer),
  18665. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18666. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18667. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18668. msm_routing_get_port_mixer,
  18669. msm_routing_put_port_mixer),
  18670. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18671. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18672. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18673. msm_routing_get_port_mixer,
  18674. msm_routing_put_port_mixer),
  18675. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18676. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18677. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18678. msm_routing_get_port_mixer,
  18679. msm_routing_put_port_mixer),
  18680. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18681. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18682. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18683. msm_routing_get_port_mixer,
  18684. msm_routing_put_port_mixer),
  18685. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18686. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18687. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18688. msm_routing_get_port_mixer,
  18689. msm_routing_put_port_mixer),
  18690. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18691. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18692. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18693. msm_routing_get_port_mixer,
  18694. msm_routing_put_port_mixer),
  18695. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18696. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18697. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18698. msm_routing_get_port_mixer,
  18699. msm_routing_put_port_mixer),
  18700. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18701. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18702. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18703. msm_routing_get_port_mixer,
  18704. msm_routing_put_port_mixer),
  18705. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18706. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18707. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18708. msm_routing_get_port_mixer,
  18709. msm_routing_put_port_mixer),
  18710. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18711. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18712. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18713. msm_routing_get_port_mixer,
  18714. msm_routing_put_port_mixer),
  18715. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18716. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18717. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18718. msm_routing_get_port_mixer,
  18719. msm_routing_put_port_mixer),
  18720. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18721. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18722. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18723. msm_routing_get_port_mixer,
  18724. msm_routing_put_port_mixer),
  18725. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18726. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18727. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18728. msm_routing_get_port_mixer,
  18729. msm_routing_put_port_mixer),
  18730. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18731. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18732. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18733. msm_routing_get_port_mixer,
  18734. msm_routing_put_port_mixer),
  18735. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18736. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18737. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18738. msm_routing_get_port_mixer,
  18739. msm_routing_put_port_mixer),
  18740. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18741. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18742. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18743. msm_routing_get_port_mixer,
  18744. msm_routing_put_port_mixer),
  18745. };
  18746. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  18747. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18748. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18749. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18750. msm_routing_get_port_mixer,
  18751. msm_routing_put_port_mixer),
  18752. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18753. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18754. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18755. msm_routing_get_port_mixer,
  18756. msm_routing_put_port_mixer),
  18757. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18758. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18759. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18760. msm_routing_get_port_mixer,
  18761. msm_routing_put_port_mixer),
  18762. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18763. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18764. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18765. msm_routing_get_port_mixer,
  18766. msm_routing_put_port_mixer),
  18767. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18768. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18769. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18770. msm_routing_get_port_mixer,
  18771. msm_routing_put_port_mixer),
  18772. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18773. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18774. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18775. msm_routing_get_port_mixer,
  18776. msm_routing_put_port_mixer),
  18777. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18778. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18779. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18780. msm_routing_get_port_mixer,
  18781. msm_routing_put_port_mixer),
  18782. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18783. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18784. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18785. msm_routing_get_port_mixer,
  18786. msm_routing_put_port_mixer),
  18787. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18788. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18789. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18790. msm_routing_get_port_mixer,
  18791. msm_routing_put_port_mixer),
  18792. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18793. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18794. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18795. msm_routing_get_port_mixer,
  18796. msm_routing_put_port_mixer),
  18797. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18798. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18799. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18800. msm_routing_get_port_mixer,
  18801. msm_routing_put_port_mixer),
  18802. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18803. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18804. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18805. msm_routing_get_port_mixer,
  18806. msm_routing_put_port_mixer),
  18807. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18808. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18809. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18810. msm_routing_get_port_mixer,
  18811. msm_routing_put_port_mixer),
  18812. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18813. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18814. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18815. msm_routing_get_port_mixer,
  18816. msm_routing_put_port_mixer),
  18817. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18818. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18819. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18820. msm_routing_get_port_mixer,
  18821. msm_routing_put_port_mixer),
  18822. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18823. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18824. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18825. msm_routing_get_port_mixer,
  18826. msm_routing_put_port_mixer),
  18827. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18828. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18829. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18830. msm_routing_get_port_mixer,
  18831. msm_routing_put_port_mixer),
  18832. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18833. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18834. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18835. msm_routing_get_port_mixer,
  18836. msm_routing_put_port_mixer),
  18837. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18838. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18839. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18840. msm_routing_get_port_mixer,
  18841. msm_routing_put_port_mixer),
  18842. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18843. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18844. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18845. msm_routing_get_port_mixer,
  18846. msm_routing_put_port_mixer),
  18847. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18848. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18849. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18850. msm_routing_get_port_mixer,
  18851. msm_routing_put_port_mixer),
  18852. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18853. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18854. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18855. msm_routing_get_port_mixer,
  18856. msm_routing_put_port_mixer),
  18857. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18858. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18859. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18860. msm_routing_get_port_mixer,
  18861. msm_routing_put_port_mixer),
  18862. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18863. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18864. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18865. msm_routing_get_port_mixer,
  18866. msm_routing_put_port_mixer),
  18867. };
  18868. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  18869. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18870. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18871. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18872. msm_routing_get_port_mixer,
  18873. msm_routing_put_port_mixer),
  18874. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18875. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18876. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18877. msm_routing_get_port_mixer,
  18878. msm_routing_put_port_mixer),
  18879. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18880. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18881. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18882. msm_routing_get_port_mixer,
  18883. msm_routing_put_port_mixer),
  18884. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18885. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18886. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18887. msm_routing_get_port_mixer,
  18888. msm_routing_put_port_mixer),
  18889. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18890. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18891. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18892. msm_routing_get_port_mixer,
  18893. msm_routing_put_port_mixer),
  18894. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18895. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18896. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18897. msm_routing_get_port_mixer,
  18898. msm_routing_put_port_mixer),
  18899. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18900. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18901. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18902. msm_routing_get_port_mixer,
  18903. msm_routing_put_port_mixer),
  18904. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18905. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18906. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18907. msm_routing_get_port_mixer,
  18908. msm_routing_put_port_mixer),
  18909. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18910. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18911. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18912. msm_routing_get_port_mixer,
  18913. msm_routing_put_port_mixer),
  18914. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18915. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18916. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18917. msm_routing_get_port_mixer,
  18918. msm_routing_put_port_mixer),
  18919. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18920. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18921. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18922. msm_routing_get_port_mixer,
  18923. msm_routing_put_port_mixer),
  18924. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18925. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18926. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18927. msm_routing_get_port_mixer,
  18928. msm_routing_put_port_mixer),
  18929. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18930. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18931. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18932. msm_routing_get_port_mixer,
  18933. msm_routing_put_port_mixer),
  18934. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18935. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18936. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18937. msm_routing_get_port_mixer,
  18938. msm_routing_put_port_mixer),
  18939. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18940. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18941. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18942. msm_routing_get_port_mixer,
  18943. msm_routing_put_port_mixer),
  18944. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18945. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18946. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18947. msm_routing_get_port_mixer,
  18948. msm_routing_put_port_mixer),
  18949. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18950. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18951. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18952. msm_routing_get_port_mixer,
  18953. msm_routing_put_port_mixer),
  18954. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18955. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18956. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18957. msm_routing_get_port_mixer,
  18958. msm_routing_put_port_mixer),
  18959. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18960. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18961. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18962. msm_routing_get_port_mixer,
  18963. msm_routing_put_port_mixer),
  18964. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18965. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18966. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18967. msm_routing_get_port_mixer,
  18968. msm_routing_put_port_mixer),
  18969. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18970. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18971. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18972. msm_routing_get_port_mixer,
  18973. msm_routing_put_port_mixer),
  18974. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18975. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18976. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18977. msm_routing_get_port_mixer,
  18978. msm_routing_put_port_mixer),
  18979. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18980. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18981. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18982. msm_routing_get_port_mixer,
  18983. msm_routing_put_port_mixer),
  18984. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18985. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18986. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18987. msm_routing_get_port_mixer,
  18988. msm_routing_put_port_mixer),
  18989. };
  18990. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  18991. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18992. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18993. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18994. msm_routing_get_port_mixer,
  18995. msm_routing_put_port_mixer),
  18996. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18997. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18998. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18999. msm_routing_get_port_mixer,
  19000. msm_routing_put_port_mixer),
  19001. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19002. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19003. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19004. msm_routing_get_port_mixer,
  19005. msm_routing_put_port_mixer),
  19006. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19007. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19008. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19009. msm_routing_get_port_mixer,
  19010. msm_routing_put_port_mixer),
  19011. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19012. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19013. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19014. msm_routing_get_port_mixer,
  19015. msm_routing_put_port_mixer),
  19016. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19017. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19018. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19019. msm_routing_get_port_mixer,
  19020. msm_routing_put_port_mixer),
  19021. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19022. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19023. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19024. msm_routing_get_port_mixer,
  19025. msm_routing_put_port_mixer),
  19026. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19027. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19028. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19029. msm_routing_get_port_mixer,
  19030. msm_routing_put_port_mixer),
  19031. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  19032. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19033. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  19034. msm_routing_get_port_mixer,
  19035. msm_routing_put_port_mixer),
  19036. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  19037. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19038. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  19039. msm_routing_get_port_mixer,
  19040. msm_routing_put_port_mixer),
  19041. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  19042. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19043. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  19044. msm_routing_get_port_mixer,
  19045. msm_routing_put_port_mixer),
  19046. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  19047. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19048. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  19049. msm_routing_get_port_mixer,
  19050. msm_routing_put_port_mixer),
  19051. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19052. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19053. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19054. msm_routing_get_port_mixer,
  19055. msm_routing_put_port_mixer),
  19056. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19057. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19058. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19059. msm_routing_get_port_mixer,
  19060. msm_routing_put_port_mixer),
  19061. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19062. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19063. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19064. msm_routing_get_port_mixer,
  19065. msm_routing_put_port_mixer),
  19066. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19067. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19068. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19069. msm_routing_get_port_mixer,
  19070. msm_routing_put_port_mixer),
  19071. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19072. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19073. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19074. msm_routing_get_port_mixer,
  19075. msm_routing_put_port_mixer),
  19076. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19077. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19078. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19079. msm_routing_get_port_mixer,
  19080. msm_routing_put_port_mixer),
  19081. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19082. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19083. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19084. msm_routing_get_port_mixer,
  19085. msm_routing_put_port_mixer),
  19086. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19087. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19088. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19089. msm_routing_get_port_mixer,
  19090. msm_routing_put_port_mixer),
  19091. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19092. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19093. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19094. msm_routing_get_port_mixer,
  19095. msm_routing_put_port_mixer),
  19096. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19097. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19098. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19099. msm_routing_get_port_mixer,
  19100. msm_routing_put_port_mixer),
  19101. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19102. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19103. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19104. msm_routing_get_port_mixer,
  19105. msm_routing_put_port_mixer),
  19106. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19107. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19108. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19109. msm_routing_get_port_mixer,
  19110. msm_routing_put_port_mixer),
  19111. };
  19112. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  19113. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19114. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19115. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19116. msm_routing_get_port_mixer,
  19117. msm_routing_put_port_mixer),
  19118. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19119. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19120. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19121. msm_routing_get_port_mixer,
  19122. msm_routing_put_port_mixer),
  19123. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19124. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19125. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19126. msm_routing_get_port_mixer,
  19127. msm_routing_put_port_mixer),
  19128. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19129. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19130. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19131. msm_routing_get_port_mixer,
  19132. msm_routing_put_port_mixer),
  19133. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19134. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19135. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19136. msm_routing_get_port_mixer,
  19137. msm_routing_put_port_mixer),
  19138. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19139. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19140. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19141. msm_routing_get_port_mixer,
  19142. msm_routing_put_port_mixer),
  19143. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19144. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19145. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19146. msm_routing_get_port_mixer,
  19147. msm_routing_put_port_mixer),
  19148. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19149. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19150. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19151. msm_routing_get_port_mixer,
  19152. msm_routing_put_port_mixer),
  19153. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  19154. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19155. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  19156. msm_routing_get_port_mixer,
  19157. msm_routing_put_port_mixer),
  19158. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  19159. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19160. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  19161. msm_routing_get_port_mixer,
  19162. msm_routing_put_port_mixer),
  19163. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  19164. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19165. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  19166. msm_routing_get_port_mixer,
  19167. msm_routing_put_port_mixer),
  19168. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  19169. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19170. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  19171. msm_routing_get_port_mixer,
  19172. msm_routing_put_port_mixer),
  19173. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19174. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19175. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19176. msm_routing_get_port_mixer,
  19177. msm_routing_put_port_mixer),
  19178. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19179. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19180. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19181. msm_routing_get_port_mixer,
  19182. msm_routing_put_port_mixer),
  19183. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19184. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19185. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19186. msm_routing_get_port_mixer,
  19187. msm_routing_put_port_mixer),
  19188. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19189. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19190. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19191. msm_routing_get_port_mixer,
  19192. msm_routing_put_port_mixer),
  19193. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19194. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19195. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19196. msm_routing_get_port_mixer,
  19197. msm_routing_put_port_mixer),
  19198. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19199. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19200. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19201. msm_routing_get_port_mixer,
  19202. msm_routing_put_port_mixer),
  19203. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19204. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19205. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19206. msm_routing_get_port_mixer,
  19207. msm_routing_put_port_mixer),
  19208. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19209. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19210. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19211. msm_routing_get_port_mixer,
  19212. msm_routing_put_port_mixer),
  19213. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19214. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19215. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19216. msm_routing_get_port_mixer,
  19217. msm_routing_put_port_mixer),
  19218. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19219. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19220. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19221. msm_routing_get_port_mixer,
  19222. msm_routing_put_port_mixer),
  19223. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19224. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19225. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19226. msm_routing_get_port_mixer,
  19227. msm_routing_put_port_mixer),
  19228. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19229. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19230. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19231. msm_routing_get_port_mixer,
  19232. msm_routing_put_port_mixer),
  19233. };
  19234. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  19235. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  19236. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  19237. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  19238. msm_routing_get_port_mixer,
  19239. msm_routing_put_port_mixer),
  19240. };
  19241. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  19242. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19243. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19244. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19245. msm_routing_get_port_mixer,
  19246. msm_routing_put_port_mixer),
  19247. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19248. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19249. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19250. msm_routing_get_port_mixer,
  19251. msm_routing_put_port_mixer),
  19252. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19253. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19254. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19255. msm_routing_get_port_mixer,
  19256. msm_routing_put_port_mixer),
  19257. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19258. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19259. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19260. msm_routing_get_port_mixer,
  19261. msm_routing_put_port_mixer),
  19262. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19263. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19264. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19265. msm_routing_get_port_mixer,
  19266. msm_routing_put_port_mixer),
  19267. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19268. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19269. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19270. msm_routing_get_port_mixer,
  19271. msm_routing_put_port_mixer),
  19272. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19273. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19274. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19275. msm_routing_get_port_mixer,
  19276. msm_routing_put_port_mixer),
  19277. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19278. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19279. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19280. msm_routing_get_port_mixer,
  19281. msm_routing_put_port_mixer),
  19282. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19283. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19284. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19285. msm_routing_get_port_mixer,
  19286. msm_routing_put_port_mixer),
  19287. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19288. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19289. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19290. msm_routing_get_port_mixer,
  19291. msm_routing_put_port_mixer),
  19292. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19293. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19294. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19295. msm_routing_get_port_mixer,
  19296. msm_routing_put_port_mixer),
  19297. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19298. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19299. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19300. msm_routing_get_port_mixer,
  19301. msm_routing_put_port_mixer),
  19302. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19303. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19304. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19305. msm_routing_get_port_mixer,
  19306. msm_routing_put_port_mixer),
  19307. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19308. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19309. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19310. msm_routing_get_port_mixer,
  19311. msm_routing_put_port_mixer),
  19312. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19313. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19314. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19315. msm_routing_get_port_mixer,
  19316. msm_routing_put_port_mixer),
  19317. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19318. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19319. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19320. msm_routing_get_port_mixer,
  19321. msm_routing_put_port_mixer),
  19322. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19323. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19324. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19325. msm_routing_get_port_mixer,
  19326. msm_routing_put_port_mixer),
  19327. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19328. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19329. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19330. msm_routing_get_port_mixer,
  19331. msm_routing_put_port_mixer),
  19332. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19333. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19334. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19335. msm_routing_get_port_mixer,
  19336. msm_routing_put_port_mixer),
  19337. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19338. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19339. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19340. msm_routing_get_port_mixer,
  19341. msm_routing_put_port_mixer),
  19342. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19343. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19344. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19345. msm_routing_get_port_mixer,
  19346. msm_routing_put_port_mixer),
  19347. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19348. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19349. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19350. msm_routing_get_port_mixer,
  19351. msm_routing_put_port_mixer),
  19352. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19353. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19354. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19355. msm_routing_get_port_mixer,
  19356. msm_routing_put_port_mixer),
  19357. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19358. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19359. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19360. msm_routing_get_port_mixer,
  19361. msm_routing_put_port_mixer),
  19362. };
  19363. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  19364. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19365. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19366. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19367. msm_routing_get_port_mixer,
  19368. msm_routing_put_port_mixer),
  19369. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19370. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19371. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19372. msm_routing_get_port_mixer,
  19373. msm_routing_put_port_mixer),
  19374. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19375. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19376. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19377. msm_routing_get_port_mixer,
  19378. msm_routing_put_port_mixer),
  19379. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19380. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19381. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19382. msm_routing_get_port_mixer,
  19383. msm_routing_put_port_mixer),
  19384. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19385. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19386. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19387. msm_routing_get_port_mixer,
  19388. msm_routing_put_port_mixer),
  19389. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19390. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19391. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19392. msm_routing_get_port_mixer,
  19393. msm_routing_put_port_mixer),
  19394. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19395. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19396. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19397. msm_routing_get_port_mixer,
  19398. msm_routing_put_port_mixer),
  19399. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19400. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19401. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19402. msm_routing_get_port_mixer,
  19403. msm_routing_put_port_mixer),
  19404. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19405. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19406. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19407. msm_routing_get_port_mixer,
  19408. msm_routing_put_port_mixer),
  19409. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19410. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19411. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19412. msm_routing_get_port_mixer,
  19413. msm_routing_put_port_mixer),
  19414. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19415. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19416. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19417. msm_routing_get_port_mixer,
  19418. msm_routing_put_port_mixer),
  19419. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19420. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19421. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19422. msm_routing_get_port_mixer,
  19423. msm_routing_put_port_mixer),
  19424. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19425. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19426. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19427. msm_routing_get_port_mixer,
  19428. msm_routing_put_port_mixer),
  19429. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19430. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19431. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19432. msm_routing_get_port_mixer,
  19433. msm_routing_put_port_mixer),
  19434. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19435. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19436. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19437. msm_routing_get_port_mixer,
  19438. msm_routing_put_port_mixer),
  19439. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19440. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19441. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19442. msm_routing_get_port_mixer,
  19443. msm_routing_put_port_mixer),
  19444. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19445. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19446. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19447. msm_routing_get_port_mixer,
  19448. msm_routing_put_port_mixer),
  19449. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19450. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19451. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19452. msm_routing_get_port_mixer,
  19453. msm_routing_put_port_mixer),
  19454. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19455. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19456. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19457. msm_routing_get_port_mixer,
  19458. msm_routing_put_port_mixer),
  19459. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19460. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19461. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19462. msm_routing_get_port_mixer,
  19463. msm_routing_put_port_mixer),
  19464. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19465. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19466. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19467. msm_routing_get_port_mixer,
  19468. msm_routing_put_port_mixer),
  19469. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19470. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19471. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19472. msm_routing_get_port_mixer,
  19473. msm_routing_put_port_mixer),
  19474. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19475. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19476. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19477. msm_routing_get_port_mixer,
  19478. msm_routing_put_port_mixer),
  19479. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19480. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19481. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19482. msm_routing_get_port_mixer,
  19483. msm_routing_put_port_mixer),
  19484. };
  19485. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  19486. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19487. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19488. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19489. msm_routing_get_port_mixer,
  19490. msm_routing_put_port_mixer),
  19491. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19492. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19493. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19494. msm_routing_get_port_mixer,
  19495. msm_routing_put_port_mixer),
  19496. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19497. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19498. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19499. msm_routing_get_port_mixer,
  19500. msm_routing_put_port_mixer),
  19501. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19502. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19503. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19504. msm_routing_get_port_mixer,
  19505. msm_routing_put_port_mixer),
  19506. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19507. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19508. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19509. msm_routing_get_port_mixer,
  19510. msm_routing_put_port_mixer),
  19511. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19512. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19513. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19514. msm_routing_get_port_mixer,
  19515. msm_routing_put_port_mixer),
  19516. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19517. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19518. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19519. msm_routing_get_port_mixer,
  19520. msm_routing_put_port_mixer),
  19521. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19522. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19523. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19524. msm_routing_get_port_mixer,
  19525. msm_routing_put_port_mixer),
  19526. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19527. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19528. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19529. msm_routing_get_port_mixer,
  19530. msm_routing_put_port_mixer),
  19531. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19532. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19533. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19534. msm_routing_get_port_mixer,
  19535. msm_routing_put_port_mixer),
  19536. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19537. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19538. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19539. msm_routing_get_port_mixer,
  19540. msm_routing_put_port_mixer),
  19541. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19542. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19543. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19544. msm_routing_get_port_mixer,
  19545. msm_routing_put_port_mixer),
  19546. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19547. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19548. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19549. msm_routing_get_port_mixer,
  19550. msm_routing_put_port_mixer),
  19551. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19552. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19553. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19554. msm_routing_get_port_mixer,
  19555. msm_routing_put_port_mixer),
  19556. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19557. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19558. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19559. msm_routing_get_port_mixer,
  19560. msm_routing_put_port_mixer),
  19561. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19562. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19563. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19564. msm_routing_get_port_mixer,
  19565. msm_routing_put_port_mixer),
  19566. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19567. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19568. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19569. msm_routing_get_port_mixer,
  19570. msm_routing_put_port_mixer),
  19571. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19572. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19573. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19574. msm_routing_get_port_mixer,
  19575. msm_routing_put_port_mixer),
  19576. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19577. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19578. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19579. msm_routing_get_port_mixer,
  19580. msm_routing_put_port_mixer),
  19581. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19582. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19583. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19584. msm_routing_get_port_mixer,
  19585. msm_routing_put_port_mixer),
  19586. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19587. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19588. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19589. msm_routing_get_port_mixer,
  19590. msm_routing_put_port_mixer),
  19591. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19592. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19593. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19594. msm_routing_get_port_mixer,
  19595. msm_routing_put_port_mixer),
  19596. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19597. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19598. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19599. msm_routing_get_port_mixer,
  19600. msm_routing_put_port_mixer),
  19601. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19602. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19603. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19604. msm_routing_get_port_mixer,
  19605. msm_routing_put_port_mixer),
  19606. };
  19607. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  19608. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19609. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19610. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19611. msm_routing_get_port_mixer,
  19612. msm_routing_put_port_mixer),
  19613. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19614. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19615. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19616. msm_routing_get_port_mixer,
  19617. msm_routing_put_port_mixer),
  19618. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19619. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19620. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19621. msm_routing_get_port_mixer,
  19622. msm_routing_put_port_mixer),
  19623. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19624. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19625. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19626. msm_routing_get_port_mixer,
  19627. msm_routing_put_port_mixer),
  19628. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19629. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19630. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19631. msm_routing_get_port_mixer,
  19632. msm_routing_put_port_mixer),
  19633. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19634. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19635. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19636. msm_routing_get_port_mixer,
  19637. msm_routing_put_port_mixer),
  19638. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19639. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19640. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19641. msm_routing_get_port_mixer,
  19642. msm_routing_put_port_mixer),
  19643. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19644. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19645. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19646. msm_routing_get_port_mixer,
  19647. msm_routing_put_port_mixer),
  19648. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19649. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19650. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19651. msm_routing_get_port_mixer,
  19652. msm_routing_put_port_mixer),
  19653. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19654. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19655. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19656. msm_routing_get_port_mixer,
  19657. msm_routing_put_port_mixer),
  19658. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19659. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19660. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19661. msm_routing_get_port_mixer,
  19662. msm_routing_put_port_mixer),
  19663. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19664. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19665. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19666. msm_routing_get_port_mixer,
  19667. msm_routing_put_port_mixer),
  19668. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19669. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19670. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19671. msm_routing_get_port_mixer,
  19672. msm_routing_put_port_mixer),
  19673. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19674. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19675. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19676. msm_routing_get_port_mixer,
  19677. msm_routing_put_port_mixer),
  19678. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19679. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19680. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19681. msm_routing_get_port_mixer,
  19682. msm_routing_put_port_mixer),
  19683. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19684. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19685. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19686. msm_routing_get_port_mixer,
  19687. msm_routing_put_port_mixer),
  19688. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19689. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19690. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19691. msm_routing_get_port_mixer,
  19692. msm_routing_put_port_mixer),
  19693. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19694. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19695. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19696. msm_routing_get_port_mixer,
  19697. msm_routing_put_port_mixer),
  19698. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19699. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19700. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19701. msm_routing_get_port_mixer,
  19702. msm_routing_put_port_mixer),
  19703. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19704. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19705. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19706. msm_routing_get_port_mixer,
  19707. msm_routing_put_port_mixer),
  19708. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19709. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19710. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19711. msm_routing_get_port_mixer,
  19712. msm_routing_put_port_mixer),
  19713. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19714. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19715. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19716. msm_routing_get_port_mixer,
  19717. msm_routing_put_port_mixer),
  19718. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19719. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19720. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19721. msm_routing_get_port_mixer,
  19722. msm_routing_put_port_mixer),
  19723. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19724. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19725. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19726. msm_routing_get_port_mixer,
  19727. msm_routing_put_port_mixer),
  19728. };
  19729. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  19730. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19731. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19732. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19733. msm_routing_get_port_mixer,
  19734. msm_routing_put_port_mixer),
  19735. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19736. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19737. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19738. msm_routing_get_port_mixer,
  19739. msm_routing_put_port_mixer),
  19740. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19741. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19742. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19743. msm_routing_get_port_mixer,
  19744. msm_routing_put_port_mixer),
  19745. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19746. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19747. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19748. msm_routing_get_port_mixer,
  19749. msm_routing_put_port_mixer),
  19750. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19751. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19752. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19753. msm_routing_get_port_mixer,
  19754. msm_routing_put_port_mixer),
  19755. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19756. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19757. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19758. msm_routing_get_port_mixer,
  19759. msm_routing_put_port_mixer),
  19760. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19761. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19762. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19763. msm_routing_get_port_mixer,
  19764. msm_routing_put_port_mixer),
  19765. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19766. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19767. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19768. msm_routing_get_port_mixer,
  19769. msm_routing_put_port_mixer),
  19770. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19771. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19772. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19773. msm_routing_get_port_mixer,
  19774. msm_routing_put_port_mixer),
  19775. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19776. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19777. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19778. msm_routing_get_port_mixer,
  19779. msm_routing_put_port_mixer),
  19780. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19781. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19782. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19783. msm_routing_get_port_mixer,
  19784. msm_routing_put_port_mixer),
  19785. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19786. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19787. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19788. msm_routing_get_port_mixer,
  19789. msm_routing_put_port_mixer),
  19790. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19791. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19792. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19793. msm_routing_get_port_mixer,
  19794. msm_routing_put_port_mixer),
  19795. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19796. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19797. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19798. msm_routing_get_port_mixer,
  19799. msm_routing_put_port_mixer),
  19800. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19801. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19802. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19803. msm_routing_get_port_mixer,
  19804. msm_routing_put_port_mixer),
  19805. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19806. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19807. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19808. msm_routing_get_port_mixer,
  19809. msm_routing_put_port_mixer),
  19810. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19811. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19812. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19813. msm_routing_get_port_mixer,
  19814. msm_routing_put_port_mixer),
  19815. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19816. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19817. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19818. msm_routing_get_port_mixer,
  19819. msm_routing_put_port_mixer),
  19820. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19821. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19822. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19823. msm_routing_get_port_mixer,
  19824. msm_routing_put_port_mixer),
  19825. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19826. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19827. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19828. msm_routing_get_port_mixer,
  19829. msm_routing_put_port_mixer),
  19830. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19831. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19832. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19833. msm_routing_get_port_mixer,
  19834. msm_routing_put_port_mixer),
  19835. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19836. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19837. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19838. msm_routing_get_port_mixer,
  19839. msm_routing_put_port_mixer),
  19840. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19841. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19842. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19843. msm_routing_get_port_mixer,
  19844. msm_routing_put_port_mixer),
  19845. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19846. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19847. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19848. msm_routing_get_port_mixer,
  19849. msm_routing_put_port_mixer),
  19850. };
  19851. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  19852. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19853. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19854. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19855. msm_routing_get_port_mixer,
  19856. msm_routing_put_port_mixer),
  19857. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19858. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19859. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19860. msm_routing_get_port_mixer,
  19861. msm_routing_put_port_mixer),
  19862. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19863. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19864. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19865. msm_routing_get_port_mixer,
  19866. msm_routing_put_port_mixer),
  19867. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19868. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19869. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19870. msm_routing_get_port_mixer,
  19871. msm_routing_put_port_mixer),
  19872. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19873. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19874. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19875. msm_routing_get_port_mixer,
  19876. msm_routing_put_port_mixer),
  19877. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19878. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19879. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19880. msm_routing_get_port_mixer,
  19881. msm_routing_put_port_mixer),
  19882. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19883. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19884. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19885. msm_routing_get_port_mixer,
  19886. msm_routing_put_port_mixer),
  19887. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19888. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19889. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19890. msm_routing_get_port_mixer,
  19891. msm_routing_put_port_mixer),
  19892. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19893. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19894. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19895. msm_routing_get_port_mixer,
  19896. msm_routing_put_port_mixer),
  19897. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19898. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19899. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19900. msm_routing_get_port_mixer,
  19901. msm_routing_put_port_mixer),
  19902. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19903. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19904. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19905. msm_routing_get_port_mixer,
  19906. msm_routing_put_port_mixer),
  19907. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19908. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19909. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19910. msm_routing_get_port_mixer,
  19911. msm_routing_put_port_mixer),
  19912. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19913. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19914. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19915. msm_routing_get_port_mixer,
  19916. msm_routing_put_port_mixer),
  19917. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19918. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19919. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19920. msm_routing_get_port_mixer,
  19921. msm_routing_put_port_mixer),
  19922. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19923. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19924. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19925. msm_routing_get_port_mixer,
  19926. msm_routing_put_port_mixer),
  19927. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19928. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19929. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19930. msm_routing_get_port_mixer,
  19931. msm_routing_put_port_mixer),
  19932. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19933. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19934. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19935. msm_routing_get_port_mixer,
  19936. msm_routing_put_port_mixer),
  19937. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19938. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19939. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19940. msm_routing_get_port_mixer,
  19941. msm_routing_put_port_mixer),
  19942. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19943. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19944. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19945. msm_routing_get_port_mixer,
  19946. msm_routing_put_port_mixer),
  19947. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19948. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19949. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19950. msm_routing_get_port_mixer,
  19951. msm_routing_put_port_mixer),
  19952. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19953. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19954. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19955. msm_routing_get_port_mixer,
  19956. msm_routing_put_port_mixer),
  19957. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19958. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19959. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19960. msm_routing_get_port_mixer,
  19961. msm_routing_put_port_mixer),
  19962. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19963. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19964. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19965. msm_routing_get_port_mixer,
  19966. msm_routing_put_port_mixer),
  19967. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19968. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19969. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19970. msm_routing_get_port_mixer,
  19971. msm_routing_put_port_mixer),
  19972. };
  19973. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  19974. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19975. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19976. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19977. msm_routing_get_port_mixer,
  19978. msm_routing_put_port_mixer),
  19979. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19980. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19981. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19982. msm_routing_get_port_mixer,
  19983. msm_routing_put_port_mixer),
  19984. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19985. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19986. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19987. msm_routing_get_port_mixer,
  19988. msm_routing_put_port_mixer),
  19989. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19990. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19991. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19992. msm_routing_get_port_mixer,
  19993. msm_routing_put_port_mixer),
  19994. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19995. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19996. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19997. msm_routing_get_port_mixer,
  19998. msm_routing_put_port_mixer),
  19999. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20000. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20001. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20002. msm_routing_get_port_mixer,
  20003. msm_routing_put_port_mixer),
  20004. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20005. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20006. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20007. msm_routing_get_port_mixer,
  20008. msm_routing_put_port_mixer),
  20009. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20010. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20011. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20012. msm_routing_get_port_mixer,
  20013. msm_routing_put_port_mixer),
  20014. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20015. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20016. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20017. msm_routing_get_port_mixer,
  20018. msm_routing_put_port_mixer),
  20019. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20020. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20021. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20022. msm_routing_get_port_mixer,
  20023. msm_routing_put_port_mixer),
  20024. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20025. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20026. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20027. msm_routing_get_port_mixer,
  20028. msm_routing_put_port_mixer),
  20029. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20030. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20031. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20032. msm_routing_get_port_mixer,
  20033. msm_routing_put_port_mixer),
  20034. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20035. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20036. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20037. msm_routing_get_port_mixer,
  20038. msm_routing_put_port_mixer),
  20039. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20040. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20041. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20042. msm_routing_get_port_mixer,
  20043. msm_routing_put_port_mixer),
  20044. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20045. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20046. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20047. msm_routing_get_port_mixer,
  20048. msm_routing_put_port_mixer),
  20049. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20050. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20051. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20052. msm_routing_get_port_mixer,
  20053. msm_routing_put_port_mixer),
  20054. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20055. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20056. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20057. msm_routing_get_port_mixer,
  20058. msm_routing_put_port_mixer),
  20059. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20060. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20061. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20062. msm_routing_get_port_mixer,
  20063. msm_routing_put_port_mixer),
  20064. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20065. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20066. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20067. msm_routing_get_port_mixer,
  20068. msm_routing_put_port_mixer),
  20069. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20070. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20071. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20072. msm_routing_get_port_mixer,
  20073. msm_routing_put_port_mixer),
  20074. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20075. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20076. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20077. msm_routing_get_port_mixer,
  20078. msm_routing_put_port_mixer),
  20079. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20080. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20081. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20082. msm_routing_get_port_mixer,
  20083. msm_routing_put_port_mixer),
  20084. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20085. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20086. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20087. msm_routing_get_port_mixer,
  20088. msm_routing_put_port_mixer),
  20089. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20090. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20091. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20092. msm_routing_get_port_mixer,
  20093. msm_routing_put_port_mixer),
  20094. };
  20095. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  20096. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20097. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20098. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20099. msm_routing_get_port_mixer,
  20100. msm_routing_put_port_mixer),
  20101. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20102. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20103. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20104. msm_routing_get_port_mixer,
  20105. msm_routing_put_port_mixer),
  20106. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20107. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20108. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20109. msm_routing_get_port_mixer,
  20110. msm_routing_put_port_mixer),
  20111. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20112. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20113. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20114. msm_routing_get_port_mixer,
  20115. msm_routing_put_port_mixer),
  20116. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20117. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20118. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20119. msm_routing_get_port_mixer,
  20120. msm_routing_put_port_mixer),
  20121. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20122. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20123. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20124. msm_routing_get_port_mixer,
  20125. msm_routing_put_port_mixer),
  20126. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20127. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20128. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20129. msm_routing_get_port_mixer,
  20130. msm_routing_put_port_mixer),
  20131. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20132. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20133. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20134. msm_routing_get_port_mixer,
  20135. msm_routing_put_port_mixer),
  20136. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20137. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20138. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20139. msm_routing_get_port_mixer,
  20140. msm_routing_put_port_mixer),
  20141. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20142. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20143. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20144. msm_routing_get_port_mixer,
  20145. msm_routing_put_port_mixer),
  20146. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20147. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20148. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20149. msm_routing_get_port_mixer,
  20150. msm_routing_put_port_mixer),
  20151. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20152. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20153. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20154. msm_routing_get_port_mixer,
  20155. msm_routing_put_port_mixer),
  20156. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20157. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20158. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20159. msm_routing_get_port_mixer,
  20160. msm_routing_put_port_mixer),
  20161. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20162. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20163. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20164. msm_routing_get_port_mixer,
  20165. msm_routing_put_port_mixer),
  20166. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20167. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20168. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20169. msm_routing_get_port_mixer,
  20170. msm_routing_put_port_mixer),
  20171. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20172. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20173. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20174. msm_routing_get_port_mixer,
  20175. msm_routing_put_port_mixer),
  20176. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20177. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20178. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20179. msm_routing_get_port_mixer,
  20180. msm_routing_put_port_mixer),
  20181. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20182. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20183. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20184. msm_routing_get_port_mixer,
  20185. msm_routing_put_port_mixer),
  20186. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20187. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20188. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20189. msm_routing_get_port_mixer,
  20190. msm_routing_put_port_mixer),
  20191. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20192. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20193. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20194. msm_routing_get_port_mixer,
  20195. msm_routing_put_port_mixer),
  20196. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20197. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20198. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20199. msm_routing_get_port_mixer,
  20200. msm_routing_put_port_mixer),
  20201. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20202. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20203. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20204. msm_routing_get_port_mixer,
  20205. msm_routing_put_port_mixer),
  20206. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20207. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20208. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20209. msm_routing_get_port_mixer,
  20210. msm_routing_put_port_mixer),
  20211. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20212. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20213. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20214. msm_routing_get_port_mixer,
  20215. msm_routing_put_port_mixer),
  20216. };
  20217. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  20218. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  20219. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  20220. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  20221. msm_routing_get_port_mixer,
  20222. msm_routing_put_port_mixer),
  20223. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  20224. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  20225. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  20226. msm_routing_get_port_mixer,
  20227. msm_routing_put_port_mixer),
  20228. };
  20229. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  20230. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20231. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20232. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20233. msm_routing_get_port_mixer,
  20234. msm_routing_put_port_mixer),
  20235. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20236. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20237. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20238. msm_routing_get_port_mixer,
  20239. msm_routing_put_port_mixer),
  20240. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20241. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20242. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20243. msm_routing_get_port_mixer,
  20244. msm_routing_put_port_mixer),
  20245. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20246. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20247. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20248. msm_routing_get_port_mixer,
  20249. msm_routing_put_port_mixer),
  20250. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20251. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20252. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20253. msm_routing_get_port_mixer,
  20254. msm_routing_put_port_mixer),
  20255. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20256. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20257. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20258. msm_routing_get_port_mixer,
  20259. msm_routing_put_port_mixer),
  20260. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20261. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20262. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20263. msm_routing_get_port_mixer,
  20264. msm_routing_put_port_mixer),
  20265. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20266. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20267. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20268. msm_routing_get_port_mixer,
  20269. msm_routing_put_port_mixer),
  20270. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20271. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20272. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20273. msm_routing_get_port_mixer,
  20274. msm_routing_put_port_mixer),
  20275. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20276. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20277. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20278. msm_routing_get_port_mixer,
  20279. msm_routing_put_port_mixer),
  20280. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20281. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20282. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20283. msm_routing_get_port_mixer,
  20284. msm_routing_put_port_mixer),
  20285. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20286. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20287. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20288. msm_routing_get_port_mixer,
  20289. msm_routing_put_port_mixer),
  20290. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20291. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20292. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20293. msm_routing_get_port_mixer,
  20294. msm_routing_put_port_mixer),
  20295. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20296. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20297. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20298. msm_routing_get_port_mixer,
  20299. msm_routing_put_port_mixer),
  20300. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20301. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20302. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20303. msm_routing_get_port_mixer,
  20304. msm_routing_put_port_mixer),
  20305. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20306. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20307. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20308. msm_routing_get_port_mixer,
  20309. msm_routing_put_port_mixer),
  20310. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20311. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20312. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20313. msm_routing_get_port_mixer,
  20314. msm_routing_put_port_mixer),
  20315. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20316. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20317. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20318. msm_routing_get_port_mixer,
  20319. msm_routing_put_port_mixer),
  20320. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20321. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20322. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20323. msm_routing_get_port_mixer,
  20324. msm_routing_put_port_mixer),
  20325. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20326. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20327. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20328. msm_routing_get_port_mixer,
  20329. msm_routing_put_port_mixer),
  20330. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20331. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20332. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20333. msm_routing_get_port_mixer,
  20334. msm_routing_put_port_mixer),
  20335. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20336. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20337. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20338. msm_routing_get_port_mixer,
  20339. msm_routing_put_port_mixer),
  20340. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20341. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20342. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20343. msm_routing_get_port_mixer,
  20344. msm_routing_put_port_mixer),
  20345. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20346. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20347. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20348. msm_routing_get_port_mixer,
  20349. msm_routing_put_port_mixer),
  20350. };
  20351. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  20352. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20353. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20354. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20355. msm_routing_get_port_mixer,
  20356. msm_routing_put_port_mixer),
  20357. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20358. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20359. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20360. msm_routing_get_port_mixer,
  20361. msm_routing_put_port_mixer),
  20362. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20363. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20364. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20365. msm_routing_get_port_mixer,
  20366. msm_routing_put_port_mixer),
  20367. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20368. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20369. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20370. msm_routing_get_port_mixer,
  20371. msm_routing_put_port_mixer),
  20372. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20373. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20374. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20375. msm_routing_get_port_mixer,
  20376. msm_routing_put_port_mixer),
  20377. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20378. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20379. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20380. msm_routing_get_port_mixer,
  20381. msm_routing_put_port_mixer),
  20382. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20383. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20384. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20385. msm_routing_get_port_mixer,
  20386. msm_routing_put_port_mixer),
  20387. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20388. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20389. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20390. msm_routing_get_port_mixer,
  20391. msm_routing_put_port_mixer),
  20392. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20393. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20394. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20395. msm_routing_get_port_mixer,
  20396. msm_routing_put_port_mixer),
  20397. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20398. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20399. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20400. msm_routing_get_port_mixer,
  20401. msm_routing_put_port_mixer),
  20402. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20403. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20404. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20405. msm_routing_get_port_mixer,
  20406. msm_routing_put_port_mixer),
  20407. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20408. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20409. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20410. msm_routing_get_port_mixer,
  20411. msm_routing_put_port_mixer),
  20412. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20413. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20414. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20415. msm_routing_get_port_mixer,
  20416. msm_routing_put_port_mixer),
  20417. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20418. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20419. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20420. msm_routing_get_port_mixer,
  20421. msm_routing_put_port_mixer),
  20422. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20423. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20424. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20425. msm_routing_get_port_mixer,
  20426. msm_routing_put_port_mixer),
  20427. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20428. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20429. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20430. msm_routing_get_port_mixer,
  20431. msm_routing_put_port_mixer),
  20432. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20433. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20434. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20435. msm_routing_get_port_mixer,
  20436. msm_routing_put_port_mixer),
  20437. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20438. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20439. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20440. msm_routing_get_port_mixer,
  20441. msm_routing_put_port_mixer),
  20442. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20443. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20444. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20445. msm_routing_get_port_mixer,
  20446. msm_routing_put_port_mixer),
  20447. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20448. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20449. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20450. msm_routing_get_port_mixer,
  20451. msm_routing_put_port_mixer),
  20452. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20453. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20454. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20455. msm_routing_get_port_mixer,
  20456. msm_routing_put_port_mixer),
  20457. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20458. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20459. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20460. msm_routing_get_port_mixer,
  20461. msm_routing_put_port_mixer),
  20462. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20463. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20464. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20465. msm_routing_get_port_mixer,
  20466. msm_routing_put_port_mixer),
  20467. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20468. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20469. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20470. msm_routing_get_port_mixer,
  20471. msm_routing_put_port_mixer),
  20472. };
  20473. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  20474. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20475. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20476. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20477. msm_routing_get_port_mixer,
  20478. msm_routing_put_port_mixer),
  20479. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20480. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20481. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20482. msm_routing_get_port_mixer,
  20483. msm_routing_put_port_mixer),
  20484. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20485. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20486. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20487. msm_routing_get_port_mixer,
  20488. msm_routing_put_port_mixer),
  20489. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20490. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20491. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20492. msm_routing_get_port_mixer,
  20493. msm_routing_put_port_mixer),
  20494. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20495. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20496. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20497. msm_routing_get_port_mixer,
  20498. msm_routing_put_port_mixer),
  20499. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20500. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20501. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20502. msm_routing_get_port_mixer,
  20503. msm_routing_put_port_mixer),
  20504. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20505. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20506. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20507. msm_routing_get_port_mixer,
  20508. msm_routing_put_port_mixer),
  20509. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20510. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20511. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20512. msm_routing_get_port_mixer,
  20513. msm_routing_put_port_mixer),
  20514. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20515. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20516. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20517. msm_routing_get_port_mixer,
  20518. msm_routing_put_port_mixer),
  20519. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20520. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20521. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20522. msm_routing_get_port_mixer,
  20523. msm_routing_put_port_mixer),
  20524. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20525. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20526. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20527. msm_routing_get_port_mixer,
  20528. msm_routing_put_port_mixer),
  20529. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20530. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20531. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20532. msm_routing_get_port_mixer,
  20533. msm_routing_put_port_mixer),
  20534. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20535. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20536. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20537. msm_routing_get_port_mixer,
  20538. msm_routing_put_port_mixer),
  20539. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20540. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20541. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20542. msm_routing_get_port_mixer,
  20543. msm_routing_put_port_mixer),
  20544. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20545. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20546. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20547. msm_routing_get_port_mixer,
  20548. msm_routing_put_port_mixer),
  20549. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20550. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20551. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20552. msm_routing_get_port_mixer,
  20553. msm_routing_put_port_mixer),
  20554. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20555. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20556. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20557. msm_routing_get_port_mixer,
  20558. msm_routing_put_port_mixer),
  20559. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20560. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20561. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20562. msm_routing_get_port_mixer,
  20563. msm_routing_put_port_mixer),
  20564. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20565. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20566. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20567. msm_routing_get_port_mixer,
  20568. msm_routing_put_port_mixer),
  20569. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20570. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20571. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20572. msm_routing_get_port_mixer,
  20573. msm_routing_put_port_mixer),
  20574. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20575. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20576. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20577. msm_routing_get_port_mixer,
  20578. msm_routing_put_port_mixer),
  20579. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20580. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20581. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20582. msm_routing_get_port_mixer,
  20583. msm_routing_put_port_mixer),
  20584. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20585. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20586. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20587. msm_routing_get_port_mixer,
  20588. msm_routing_put_port_mixer),
  20589. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20590. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20591. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20592. msm_routing_get_port_mixer,
  20593. msm_routing_put_port_mixer),
  20594. };
  20595. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  20596. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20597. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20598. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20599. msm_routing_get_port_mixer,
  20600. msm_routing_put_port_mixer),
  20601. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20602. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20603. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20604. msm_routing_get_port_mixer,
  20605. msm_routing_put_port_mixer),
  20606. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20607. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20608. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20609. msm_routing_get_port_mixer,
  20610. msm_routing_put_port_mixer),
  20611. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20612. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20613. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20614. msm_routing_get_port_mixer,
  20615. msm_routing_put_port_mixer),
  20616. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20617. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20618. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20619. msm_routing_get_port_mixer,
  20620. msm_routing_put_port_mixer),
  20621. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20622. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20623. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20624. msm_routing_get_port_mixer,
  20625. msm_routing_put_port_mixer),
  20626. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20627. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20628. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20629. msm_routing_get_port_mixer,
  20630. msm_routing_put_port_mixer),
  20631. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20632. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20633. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20634. msm_routing_get_port_mixer,
  20635. msm_routing_put_port_mixer),
  20636. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20637. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20638. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20639. msm_routing_get_port_mixer,
  20640. msm_routing_put_port_mixer),
  20641. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20642. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20643. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20644. msm_routing_get_port_mixer,
  20645. msm_routing_put_port_mixer),
  20646. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20647. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20648. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20649. msm_routing_get_port_mixer,
  20650. msm_routing_put_port_mixer),
  20651. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20652. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20653. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20654. msm_routing_get_port_mixer,
  20655. msm_routing_put_port_mixer),
  20656. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20657. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20658. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20659. msm_routing_get_port_mixer,
  20660. msm_routing_put_port_mixer),
  20661. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20662. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20663. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20664. msm_routing_get_port_mixer,
  20665. msm_routing_put_port_mixer),
  20666. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20667. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20668. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20669. msm_routing_get_port_mixer,
  20670. msm_routing_put_port_mixer),
  20671. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20672. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20673. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20674. msm_routing_get_port_mixer,
  20675. msm_routing_put_port_mixer),
  20676. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20677. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20678. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20679. msm_routing_get_port_mixer,
  20680. msm_routing_put_port_mixer),
  20681. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20682. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20683. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20684. msm_routing_get_port_mixer,
  20685. msm_routing_put_port_mixer),
  20686. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20687. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20688. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20689. msm_routing_get_port_mixer,
  20690. msm_routing_put_port_mixer),
  20691. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20692. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20693. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20694. msm_routing_get_port_mixer,
  20695. msm_routing_put_port_mixer),
  20696. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20697. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20698. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20699. msm_routing_get_port_mixer,
  20700. msm_routing_put_port_mixer),
  20701. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20702. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20703. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20704. msm_routing_get_port_mixer,
  20705. msm_routing_put_port_mixer),
  20706. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20707. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20708. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20709. msm_routing_get_port_mixer,
  20710. msm_routing_put_port_mixer),
  20711. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20712. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20713. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20714. msm_routing_get_port_mixer,
  20715. msm_routing_put_port_mixer),
  20716. };
  20717. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  20718. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20719. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20720. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20721. msm_routing_get_port_mixer,
  20722. msm_routing_put_port_mixer),
  20723. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20724. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20725. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20726. msm_routing_get_port_mixer,
  20727. msm_routing_put_port_mixer),
  20728. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20729. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20730. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20731. msm_routing_get_port_mixer,
  20732. msm_routing_put_port_mixer),
  20733. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20734. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20735. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20736. msm_routing_get_port_mixer,
  20737. msm_routing_put_port_mixer),
  20738. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20739. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20740. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20741. msm_routing_get_port_mixer,
  20742. msm_routing_put_port_mixer),
  20743. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20744. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20745. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20746. msm_routing_get_port_mixer,
  20747. msm_routing_put_port_mixer),
  20748. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20749. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20750. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20751. msm_routing_get_port_mixer,
  20752. msm_routing_put_port_mixer),
  20753. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20754. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20755. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20756. msm_routing_get_port_mixer,
  20757. msm_routing_put_port_mixer),
  20758. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20759. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20760. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20761. msm_routing_get_port_mixer,
  20762. msm_routing_put_port_mixer),
  20763. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20764. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20765. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20766. msm_routing_get_port_mixer,
  20767. msm_routing_put_port_mixer),
  20768. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20769. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20770. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20771. msm_routing_get_port_mixer,
  20772. msm_routing_put_port_mixer),
  20773. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20774. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20775. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20776. msm_routing_get_port_mixer,
  20777. msm_routing_put_port_mixer),
  20778. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20779. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20780. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20781. msm_routing_get_port_mixer,
  20782. msm_routing_put_port_mixer),
  20783. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20784. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20785. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20786. msm_routing_get_port_mixer,
  20787. msm_routing_put_port_mixer),
  20788. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20789. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20790. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20791. msm_routing_get_port_mixer,
  20792. msm_routing_put_port_mixer),
  20793. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20794. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20795. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20796. msm_routing_get_port_mixer,
  20797. msm_routing_put_port_mixer),
  20798. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20799. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20800. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20801. msm_routing_get_port_mixer,
  20802. msm_routing_put_port_mixer),
  20803. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20804. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20805. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20806. msm_routing_get_port_mixer,
  20807. msm_routing_put_port_mixer),
  20808. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20809. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20810. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20811. msm_routing_get_port_mixer,
  20812. msm_routing_put_port_mixer),
  20813. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20814. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20815. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20816. msm_routing_get_port_mixer,
  20817. msm_routing_put_port_mixer),
  20818. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20819. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20820. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20821. msm_routing_get_port_mixer,
  20822. msm_routing_put_port_mixer),
  20823. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20824. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20825. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20826. msm_routing_get_port_mixer,
  20827. msm_routing_put_port_mixer),
  20828. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20829. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20830. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20831. msm_routing_get_port_mixer,
  20832. msm_routing_put_port_mixer),
  20833. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20834. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20835. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20836. msm_routing_get_port_mixer,
  20837. msm_routing_put_port_mixer),
  20838. };
  20839. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  20840. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20841. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20842. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20843. msm_routing_get_port_mixer,
  20844. msm_routing_put_port_mixer),
  20845. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20846. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20847. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20848. msm_routing_get_port_mixer,
  20849. msm_routing_put_port_mixer),
  20850. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20851. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20852. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20853. msm_routing_get_port_mixer,
  20854. msm_routing_put_port_mixer),
  20855. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20856. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20857. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20858. msm_routing_get_port_mixer,
  20859. msm_routing_put_port_mixer),
  20860. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20861. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20862. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20863. msm_routing_get_port_mixer,
  20864. msm_routing_put_port_mixer),
  20865. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20866. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20867. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20868. msm_routing_get_port_mixer,
  20869. msm_routing_put_port_mixer),
  20870. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20871. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20872. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20873. msm_routing_get_port_mixer,
  20874. msm_routing_put_port_mixer),
  20875. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20876. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20877. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20878. msm_routing_get_port_mixer,
  20879. msm_routing_put_port_mixer),
  20880. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20881. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20882. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20883. msm_routing_get_port_mixer,
  20884. msm_routing_put_port_mixer),
  20885. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20886. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20887. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20888. msm_routing_get_port_mixer,
  20889. msm_routing_put_port_mixer),
  20890. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20891. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20892. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20893. msm_routing_get_port_mixer,
  20894. msm_routing_put_port_mixer),
  20895. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20896. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20897. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20898. msm_routing_get_port_mixer,
  20899. msm_routing_put_port_mixer),
  20900. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20901. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20902. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20903. msm_routing_get_port_mixer,
  20904. msm_routing_put_port_mixer),
  20905. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20906. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20907. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20908. msm_routing_get_port_mixer,
  20909. msm_routing_put_port_mixer),
  20910. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20911. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20912. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20913. msm_routing_get_port_mixer,
  20914. msm_routing_put_port_mixer),
  20915. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20916. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20917. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20918. msm_routing_get_port_mixer,
  20919. msm_routing_put_port_mixer),
  20920. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20921. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20922. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20923. msm_routing_get_port_mixer,
  20924. msm_routing_put_port_mixer),
  20925. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20926. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20927. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20928. msm_routing_get_port_mixer,
  20929. msm_routing_put_port_mixer),
  20930. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20931. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20932. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20933. msm_routing_get_port_mixer,
  20934. msm_routing_put_port_mixer),
  20935. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20936. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20937. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20938. msm_routing_get_port_mixer,
  20939. msm_routing_put_port_mixer),
  20940. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20941. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20942. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20943. msm_routing_get_port_mixer,
  20944. msm_routing_put_port_mixer),
  20945. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20946. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20947. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20948. msm_routing_get_port_mixer,
  20949. msm_routing_put_port_mixer),
  20950. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20951. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20952. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20953. msm_routing_get_port_mixer,
  20954. msm_routing_put_port_mixer),
  20955. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20956. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20957. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20958. msm_routing_get_port_mixer,
  20959. msm_routing_put_port_mixer),
  20960. };
  20961. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  20962. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20963. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20964. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20965. msm_routing_get_port_mixer,
  20966. msm_routing_put_port_mixer),
  20967. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20968. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20969. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20970. msm_routing_get_port_mixer,
  20971. msm_routing_put_port_mixer),
  20972. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20973. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20974. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20975. msm_routing_get_port_mixer,
  20976. msm_routing_put_port_mixer),
  20977. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20978. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20979. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20980. msm_routing_get_port_mixer,
  20981. msm_routing_put_port_mixer),
  20982. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20983. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20984. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20985. msm_routing_get_port_mixer,
  20986. msm_routing_put_port_mixer),
  20987. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20988. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20989. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20990. msm_routing_get_port_mixer,
  20991. msm_routing_put_port_mixer),
  20992. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20993. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20994. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20995. msm_routing_get_port_mixer,
  20996. msm_routing_put_port_mixer),
  20997. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20998. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20999. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  21000. msm_routing_get_port_mixer,
  21001. msm_routing_put_port_mixer),
  21002. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21003. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21004. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  21005. msm_routing_get_port_mixer,
  21006. msm_routing_put_port_mixer),
  21007. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  21008. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21009. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  21010. msm_routing_get_port_mixer,
  21011. msm_routing_put_port_mixer),
  21012. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  21013. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21014. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  21015. msm_routing_get_port_mixer,
  21016. msm_routing_put_port_mixer),
  21017. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  21018. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21019. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  21020. msm_routing_get_port_mixer,
  21021. msm_routing_put_port_mixer),
  21022. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  21023. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21024. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  21025. msm_routing_get_port_mixer,
  21026. msm_routing_put_port_mixer),
  21027. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  21028. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21029. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  21030. msm_routing_get_port_mixer,
  21031. msm_routing_put_port_mixer),
  21032. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  21033. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21034. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  21035. msm_routing_get_port_mixer,
  21036. msm_routing_put_port_mixer),
  21037. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  21038. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21039. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  21040. msm_routing_get_port_mixer,
  21041. msm_routing_put_port_mixer),
  21042. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21043. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21044. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  21045. msm_routing_get_port_mixer,
  21046. msm_routing_put_port_mixer),
  21047. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  21048. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21049. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  21050. msm_routing_get_port_mixer,
  21051. msm_routing_put_port_mixer),
  21052. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  21053. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21054. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  21055. msm_routing_get_port_mixer,
  21056. msm_routing_put_port_mixer),
  21057. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  21058. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21059. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  21060. msm_routing_get_port_mixer,
  21061. msm_routing_put_port_mixer),
  21062. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  21063. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21064. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  21065. msm_routing_get_port_mixer,
  21066. msm_routing_put_port_mixer),
  21067. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  21068. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21069. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  21070. msm_routing_get_port_mixer,
  21071. msm_routing_put_port_mixer),
  21072. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  21073. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21074. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  21075. msm_routing_get_port_mixer,
  21076. msm_routing_put_port_mixer),
  21077. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  21078. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21079. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  21080. msm_routing_get_port_mixer,
  21081. msm_routing_put_port_mixer),
  21082. };
  21083. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  21084. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  21085. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21086. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  21087. msm_routing_get_port_mixer,
  21088. msm_routing_put_port_mixer),
  21089. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  21090. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21091. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  21092. msm_routing_get_port_mixer,
  21093. msm_routing_put_port_mixer),
  21094. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21095. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21096. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  21097. msm_routing_get_port_mixer,
  21098. msm_routing_put_port_mixer),
  21099. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  21100. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21101. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  21102. msm_routing_get_port_mixer,
  21103. msm_routing_put_port_mixer),
  21104. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  21105. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21106. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  21107. msm_routing_get_port_mixer,
  21108. msm_routing_put_port_mixer),
  21109. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  21110. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21111. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  21112. msm_routing_get_port_mixer,
  21113. msm_routing_put_port_mixer),
  21114. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21115. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21116. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  21117. msm_routing_get_port_mixer,
  21118. msm_routing_put_port_mixer),
  21119. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  21120. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21121. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  21122. msm_routing_get_port_mixer,
  21123. msm_routing_put_port_mixer),
  21124. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21125. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21126. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  21127. msm_routing_get_port_mixer,
  21128. msm_routing_put_port_mixer),
  21129. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  21130. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21131. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  21132. msm_routing_get_port_mixer,
  21133. msm_routing_put_port_mixer),
  21134. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  21135. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21136. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  21137. msm_routing_get_port_mixer,
  21138. msm_routing_put_port_mixer),
  21139. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  21140. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21141. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  21142. msm_routing_get_port_mixer,
  21143. msm_routing_put_port_mixer),
  21144. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  21145. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21146. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  21147. msm_routing_get_port_mixer,
  21148. msm_routing_put_port_mixer),
  21149. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  21150. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21151. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  21152. msm_routing_get_port_mixer,
  21153. msm_routing_put_port_mixer),
  21154. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  21155. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21156. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  21157. msm_routing_get_port_mixer,
  21158. msm_routing_put_port_mixer),
  21159. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  21160. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21161. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  21162. msm_routing_get_port_mixer,
  21163. msm_routing_put_port_mixer),
  21164. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21165. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21166. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  21167. msm_routing_get_port_mixer,
  21168. msm_routing_put_port_mixer),
  21169. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  21170. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21171. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  21172. msm_routing_get_port_mixer,
  21173. msm_routing_put_port_mixer),
  21174. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  21175. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21176. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  21177. msm_routing_get_port_mixer,
  21178. msm_routing_put_port_mixer),
  21179. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  21180. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21181. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  21182. msm_routing_get_port_mixer,
  21183. msm_routing_put_port_mixer),
  21184. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  21185. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21186. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  21187. msm_routing_get_port_mixer,
  21188. msm_routing_put_port_mixer),
  21189. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  21190. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21191. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  21192. msm_routing_get_port_mixer,
  21193. msm_routing_put_port_mixer),
  21194. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  21195. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21196. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  21197. msm_routing_get_port_mixer,
  21198. msm_routing_put_port_mixer),
  21199. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  21200. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21201. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  21202. msm_routing_get_port_mixer,
  21203. msm_routing_put_port_mixer),
  21204. };
  21205. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  21206. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  21207. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  21208. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  21209. msm_routing_get_port_mixer,
  21210. msm_routing_put_port_mixer),
  21211. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  21212. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  21213. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  21214. msm_routing_get_port_mixer,
  21215. msm_routing_put_port_mixer),
  21216. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  21217. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  21218. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  21219. msm_routing_get_port_mixer,
  21220. msm_routing_put_port_mixer),
  21221. };
  21222. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  21223. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  21224. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21225. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21226. msm_routing_put_port_mixer),
  21227. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21228. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21229. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21230. msm_routing_put_port_mixer),
  21231. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  21232. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21233. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  21234. msm_routing_put_port_mixer),
  21235. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21236. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21237. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21238. msm_routing_put_port_mixer),
  21239. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  21240. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21241. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21242. msm_routing_put_port_mixer),
  21243. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  21244. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21245. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21246. msm_routing_put_port_mixer),
  21247. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  21248. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21249. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21250. msm_routing_put_port_mixer),
  21251. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  21252. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21253. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  21254. msm_routing_put_port_mixer),
  21255. };
  21256. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  21257. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  21258. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21259. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21260. msm_routing_put_port_mixer),
  21261. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  21262. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21263. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21264. msm_routing_put_port_mixer),
  21265. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21266. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21267. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21268. msm_routing_put_port_mixer),
  21269. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21270. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21271. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21272. msm_routing_put_port_mixer),
  21273. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  21274. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21275. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21276. msm_routing_put_port_mixer),
  21277. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  21278. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21279. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21280. msm_routing_put_port_mixer),
  21281. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  21282. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21283. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  21284. msm_routing_put_port_mixer),
  21285. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  21286. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21287. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  21288. msm_routing_put_port_mixer),
  21289. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  21290. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21291. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  21292. msm_routing_put_port_mixer),
  21293. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21294. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21295. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21296. msm_routing_put_port_mixer),
  21297. };
  21298. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  21299. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21300. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21301. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21302. msm_routing_put_listen_mixer),
  21303. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21304. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21305. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21306. msm_routing_put_listen_mixer),
  21307. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21308. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21309. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21310. msm_routing_put_listen_mixer),
  21311. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21312. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21313. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21314. msm_routing_put_listen_mixer),
  21315. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21316. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21317. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21318. msm_routing_put_listen_mixer),
  21319. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21320. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21321. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21322. msm_routing_put_listen_mixer),
  21323. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21324. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21325. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21326. msm_routing_put_listen_mixer),
  21327. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21328. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21329. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21330. msm_routing_put_listen_mixer),
  21331. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21332. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21333. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21334. msm_routing_put_listen_mixer),
  21335. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21336. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21337. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21338. msm_routing_put_listen_mixer),
  21339. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21340. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21341. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21342. msm_routing_put_listen_mixer),
  21343. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21344. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21345. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21346. msm_routing_put_listen_mixer),
  21347. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21348. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21349. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21350. msm_routing_put_listen_mixer),
  21351. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21352. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21353. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21354. msm_routing_put_listen_mixer),
  21355. };
  21356. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  21357. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21358. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21359. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21360. msm_routing_put_listen_mixer),
  21361. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  21362. SND_SOC_NOPM,
  21363. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21364. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21365. msm_routing_put_listen_mixer),
  21366. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21367. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21368. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21369. msm_routing_put_listen_mixer),
  21370. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21371. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21372. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21373. msm_routing_put_listen_mixer),
  21374. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21375. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21376. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21377. msm_routing_put_listen_mixer),
  21378. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21379. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21380. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21381. msm_routing_put_listen_mixer),
  21382. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21383. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21384. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21385. msm_routing_put_listen_mixer),
  21386. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21387. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21388. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21389. msm_routing_put_listen_mixer),
  21390. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21391. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21392. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21393. msm_routing_put_listen_mixer),
  21394. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21395. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21396. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21397. msm_routing_put_listen_mixer),
  21398. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21399. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21400. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21401. msm_routing_put_listen_mixer),
  21402. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21403. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21404. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21405. msm_routing_put_listen_mixer),
  21406. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21407. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21408. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21409. msm_routing_put_listen_mixer),
  21410. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21411. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21412. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21413. msm_routing_put_listen_mixer),
  21414. };
  21415. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  21416. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21417. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21418. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21419. msm_routing_put_listen_mixer),
  21420. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21421. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21422. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21423. msm_routing_put_listen_mixer),
  21424. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21425. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21426. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21427. msm_routing_put_listen_mixer),
  21428. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21429. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21430. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21431. msm_routing_put_listen_mixer),
  21432. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21433. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21434. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21435. msm_routing_put_listen_mixer),
  21436. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21437. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21438. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21439. msm_routing_put_listen_mixer),
  21440. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21441. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21442. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21443. msm_routing_put_listen_mixer),
  21444. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21445. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21446. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21447. msm_routing_put_listen_mixer),
  21448. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21449. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21450. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21451. msm_routing_put_listen_mixer),
  21452. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21453. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21454. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21455. msm_routing_put_listen_mixer),
  21456. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21457. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21458. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21459. msm_routing_put_listen_mixer),
  21460. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21461. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21462. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21463. msm_routing_put_listen_mixer),
  21464. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21465. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21466. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21467. msm_routing_put_listen_mixer),
  21468. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21469. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21470. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21471. msm_routing_put_listen_mixer),
  21472. };
  21473. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  21474. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21475. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21476. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21477. msm_routing_put_listen_mixer),
  21478. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21479. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21480. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21481. msm_routing_put_listen_mixer),
  21482. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21483. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21484. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21485. msm_routing_put_listen_mixer),
  21486. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21487. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21488. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21489. msm_routing_put_listen_mixer),
  21490. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21491. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21492. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21493. msm_routing_put_listen_mixer),
  21494. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21495. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21496. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21497. msm_routing_put_listen_mixer),
  21498. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21499. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21500. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21501. msm_routing_put_listen_mixer),
  21502. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21503. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21504. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21505. msm_routing_put_listen_mixer),
  21506. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21507. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21508. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21509. msm_routing_put_listen_mixer),
  21510. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21511. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21512. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21513. msm_routing_put_listen_mixer),
  21514. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21515. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21516. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21517. msm_routing_put_listen_mixer),
  21518. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21519. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21520. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21521. msm_routing_put_listen_mixer),
  21522. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21523. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21524. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21525. msm_routing_put_listen_mixer),
  21526. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21527. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21528. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21529. msm_routing_put_listen_mixer),
  21530. };
  21531. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  21532. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21533. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21534. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21535. msm_routing_put_listen_mixer),
  21536. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21537. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21538. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21539. msm_routing_put_listen_mixer),
  21540. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21541. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21542. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21543. msm_routing_put_listen_mixer),
  21544. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21545. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21546. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21547. msm_routing_put_listen_mixer),
  21548. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21549. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21550. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21551. msm_routing_put_listen_mixer),
  21552. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21553. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21554. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21555. msm_routing_put_listen_mixer),
  21556. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21557. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21558. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21559. msm_routing_put_listen_mixer),
  21560. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21561. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21562. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21563. msm_routing_put_listen_mixer),
  21564. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21565. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21566. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21567. msm_routing_put_listen_mixer),
  21568. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21569. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21570. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21571. msm_routing_put_listen_mixer),
  21572. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21573. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21574. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21575. msm_routing_put_listen_mixer),
  21576. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21577. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21578. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21579. msm_routing_put_listen_mixer),
  21580. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21581. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21582. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21583. msm_routing_put_listen_mixer),
  21584. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21585. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21586. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21587. msm_routing_put_listen_mixer),
  21588. };
  21589. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  21590. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21591. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21592. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21593. msm_routing_put_listen_mixer),
  21594. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21595. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21596. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21597. msm_routing_put_listen_mixer),
  21598. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21599. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21600. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21601. msm_routing_put_listen_mixer),
  21602. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21603. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21604. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21605. msm_routing_put_listen_mixer),
  21606. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21607. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21608. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21609. msm_routing_put_listen_mixer),
  21610. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21611. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21612. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21613. msm_routing_put_listen_mixer),
  21614. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21615. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21616. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21617. msm_routing_put_listen_mixer),
  21618. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21619. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21620. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21621. msm_routing_put_listen_mixer),
  21622. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21623. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21624. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21625. msm_routing_put_listen_mixer),
  21626. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21627. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21628. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21629. msm_routing_put_listen_mixer),
  21630. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21631. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21632. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21633. msm_routing_put_listen_mixer),
  21634. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21635. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21636. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21637. msm_routing_put_listen_mixer),
  21638. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21639. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21640. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21641. msm_routing_put_listen_mixer),
  21642. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21643. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21644. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21645. msm_routing_put_listen_mixer),
  21646. };
  21647. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  21648. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21649. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21650. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21651. msm_routing_put_listen_mixer),
  21652. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21653. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21654. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21655. msm_routing_put_listen_mixer),
  21656. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21657. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21658. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21659. msm_routing_put_listen_mixer),
  21660. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21661. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21662. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21663. msm_routing_put_listen_mixer),
  21664. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21665. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21666. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21667. msm_routing_put_listen_mixer),
  21668. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21669. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21670. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21671. msm_routing_put_listen_mixer),
  21672. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21673. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21674. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21675. msm_routing_put_listen_mixer),
  21676. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21677. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21678. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21679. msm_routing_put_listen_mixer),
  21680. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21681. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21682. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21683. msm_routing_put_listen_mixer),
  21684. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21685. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21686. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21687. msm_routing_put_listen_mixer),
  21688. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21689. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21690. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21691. msm_routing_put_listen_mixer),
  21692. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21693. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21694. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21695. msm_routing_put_listen_mixer),
  21696. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21697. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21698. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21699. msm_routing_put_listen_mixer),
  21700. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21701. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21702. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21703. msm_routing_put_listen_mixer),
  21704. };
  21705. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  21706. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21707. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21708. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21709. msm_routing_put_listen_mixer),
  21710. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21711. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21712. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21713. msm_routing_put_listen_mixer),
  21714. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21715. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21716. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21717. msm_routing_put_listen_mixer),
  21718. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21719. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21720. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21721. msm_routing_put_listen_mixer),
  21722. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21723. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21724. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21725. msm_routing_put_listen_mixer),
  21726. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21727. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21728. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21729. msm_routing_put_listen_mixer),
  21730. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21731. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21732. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21733. msm_routing_put_listen_mixer),
  21734. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21735. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21736. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21737. msm_routing_put_listen_mixer),
  21738. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21739. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21740. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21741. msm_routing_put_listen_mixer),
  21742. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21743. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21744. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21745. msm_routing_put_listen_mixer),
  21746. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21747. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21748. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21749. msm_routing_put_listen_mixer),
  21750. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21751. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21752. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21753. msm_routing_put_listen_mixer),
  21754. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21755. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21756. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21757. msm_routing_put_listen_mixer),
  21758. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21759. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21760. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21761. msm_routing_put_listen_mixer),
  21762. };
  21763. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  21764. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21765. 0, 1, 0, msm_routing_get_switch_mixer,
  21766. msm_routing_put_switch_mixer);
  21767. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  21768. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21769. 0, 1, 0, msm_routing_get_switch_mixer,
  21770. msm_routing_put_switch_mixer);
  21771. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  21772. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21773. 0, 1, 0, msm_routing_get_switch_mixer,
  21774. msm_routing_put_switch_mixer);
  21775. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  21776. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21777. 0, 1, 0, msm_routing_get_switch_mixer,
  21778. msm_routing_put_switch_mixer);
  21779. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  21780. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21781. 0, 1, 0, msm_routing_get_switch_mixer,
  21782. msm_routing_put_switch_mixer);
  21783. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  21784. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21785. 0, 1, 0, msm_routing_get_switch_mixer,
  21786. msm_routing_put_switch_mixer);
  21787. static const struct snd_kcontrol_new cdc_dma_rx_1_switch_mixer_controls =
  21788. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21789. 0, 1, 0, msm_routing_get_switch_mixer,
  21790. msm_routing_put_switch_mixer);
  21791. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  21792. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21793. 0, 1, 0, msm_routing_get_switch_mixer,
  21794. msm_routing_put_switch_mixer);
  21795. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  21796. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21797. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  21798. msm_routing_put_fm_pcmrx_switch_mixer);
  21799. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  21800. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21801. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  21802. msm_routing_put_int0_mi2s_switch_mixer);
  21803. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  21804. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21805. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  21806. msm_routing_put_int4_mi2s_switch_mixer);
  21807. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  21808. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21809. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  21810. msm_routing_put_pri_mi2s_switch_mixer);
  21811. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  21812. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21813. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  21814. msm_routing_put_sec_mi2s_switch_mixer);
  21815. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  21816. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21817. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  21818. msm_routing_put_tert_mi2s_switch_mixer);
  21819. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  21820. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21821. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  21822. msm_routing_put_quat_mi2s_switch_mixer);
  21823. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  21824. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21825. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  21826. msm_routing_put_quin_mi2s_switch_mixer);
  21827. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  21828. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21829. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  21830. msm_routing_put_sen_mi2s_switch_mixer);
  21831. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  21832. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21833. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21834. msm_routing_put_hfp_switch_mixer);
  21835. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  21836. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21837. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21838. msm_routing_put_hfp_switch_mixer);
  21839. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  21840. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21841. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21842. msm_routing_put_hfp_switch_mixer);
  21843. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  21844. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21845. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21846. msm_routing_put_hfp_switch_mixer);
  21847. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  21848. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21849. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  21850. msm_routing_put_usb_switch_mixer);
  21851. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  21852. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21853. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  21854. msm_routing_a2dp_switch_mixer_put);
  21855. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  21856. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21857. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  21858. msm_routing_sco_switch_mixer_put);
  21859. static const struct soc_enum lsm_port_enum =
  21860. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  21861. static const char * const lsm_func_text[] = {
  21862. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  21863. };
  21864. static const struct soc_enum lsm_func_enum =
  21865. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  21866. static const struct snd_kcontrol_new lsm_controls[] = {
  21867. /* kcontrol of lsm_function */
  21868. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21869. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21870. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21871. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21872. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21873. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21874. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21875. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21876. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21877. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21878. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21879. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21880. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21881. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21882. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21883. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21884. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21885. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21886. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21887. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21888. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21889. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21890. SOC_ENUM_EXT(TERT_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21891. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21892. /* kcontrol of lsm_port */
  21893. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  21894. msm_routing_lsm_port_get,
  21895. msm_routing_lsm_port_put),
  21896. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  21897. msm_routing_lsm_port_get,
  21898. msm_routing_lsm_port_put),
  21899. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  21900. msm_routing_lsm_port_get,
  21901. msm_routing_lsm_port_put),
  21902. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  21903. msm_routing_lsm_port_get,
  21904. msm_routing_lsm_port_put),
  21905. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  21906. msm_routing_lsm_port_get,
  21907. msm_routing_lsm_port_put),
  21908. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  21909. msm_routing_lsm_port_get,
  21910. msm_routing_lsm_port_put),
  21911. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  21912. msm_routing_lsm_port_get,
  21913. msm_routing_lsm_port_put),
  21914. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  21915. msm_routing_lsm_port_get,
  21916. msm_routing_lsm_port_put),
  21917. };
  21918. static const char * const aanc_slim_0_rx_text[] = {
  21919. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  21920. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  21921. };
  21922. static const struct soc_enum aanc_slim_0_rx_enum =
  21923. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  21924. aanc_slim_0_rx_text);
  21925. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  21926. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  21927. msm_routing_slim_0_rx_aanc_mux_get,
  21928. msm_routing_slim_0_rx_aanc_mux_put)
  21929. };
  21930. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  21931. struct snd_ctl_elem_value *ucontrol)
  21932. {
  21933. ucontrol->value.integer.value[0] = aanc_level;
  21934. return 0;
  21935. }
  21936. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  21937. struct snd_ctl_elem_value *ucontrol)
  21938. {
  21939. int ret = 0;
  21940. mutex_lock(&routing_lock);
  21941. aanc_level = ucontrol->value.integer.value[0];
  21942. pr_debug("%s: value: %ld\n",
  21943. __func__, ucontrol->value.integer.value[0]);
  21944. ret = afe_set_aanc_noise_level(aanc_level);
  21945. mutex_unlock(&routing_lock);
  21946. return ret;
  21947. }
  21948. static const struct snd_kcontrol_new aanc_noise_level[] = {
  21949. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  21950. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  21951. };
  21952. static int msm_routing_get_stereo_to_custom_stereo_control(
  21953. struct snd_kcontrol *kcontrol,
  21954. struct snd_ctl_elem_value *ucontrol)
  21955. {
  21956. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  21957. return 0;
  21958. }
  21959. static int msm_routing_put_stereo_to_custom_stereo_control(
  21960. struct snd_kcontrol *kcontrol,
  21961. struct snd_ctl_elem_value *ucontrol)
  21962. {
  21963. int flag = 0, i = 0, rc = 0, idx = 0;
  21964. int be_index = 0, port_id, topo_id;
  21965. unsigned int session_id = 0;
  21966. uint16_t op_FL_ip_FL_weight = 0;
  21967. uint16_t op_FL_ip_FR_weight = 0;
  21968. uint16_t op_FR_ip_FL_weight = 0;
  21969. uint16_t op_FR_ip_FR_weight = 0;
  21970. flag = ucontrol->value.integer.value[0];
  21971. pr_debug("%s E flag %d\n", __func__, flag);
  21972. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  21973. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  21974. __func__, is_custom_stereo_on, flag);
  21975. return 0;
  21976. }
  21977. is_custom_stereo_on = flag ? true : false;
  21978. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  21979. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  21980. port_id = msm_bedais[be_index].port_id;
  21981. if (!msm_bedais[be_index].active)
  21982. continue;
  21983. if ((port_id != SLIMBUS_0_RX) &&
  21984. (port_id != RT_PROXY_PORT_001_RX) &&
  21985. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  21986. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  21987. continue;
  21988. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  21989. MSM_FRONTEND_DAI_MM_SIZE) {
  21990. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  21991. LEGACY_PCM_MODE)
  21992. goto skip_send_custom_stereo;
  21993. session_id =
  21994. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  21995. if (is_custom_stereo_on) {
  21996. op_FL_ip_FL_weight =
  21997. Q14_GAIN_ZERO_POINT_FIVE;
  21998. op_FL_ip_FR_weight =
  21999. Q14_GAIN_ZERO_POINT_FIVE;
  22000. op_FR_ip_FL_weight =
  22001. Q14_GAIN_ZERO_POINT_FIVE;
  22002. op_FR_ip_FR_weight =
  22003. Q14_GAIN_ZERO_POINT_FIVE;
  22004. } else {
  22005. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  22006. op_FL_ip_FR_weight = 0;
  22007. op_FR_ip_FL_weight = 0;
  22008. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  22009. }
  22010. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22011. unsigned long copp =
  22012. session_copp_map[i]
  22013. [SESSION_TYPE_RX][be_index];
  22014. if (!test_bit(idx, &copp))
  22015. goto skip_send_custom_stereo;
  22016. topo_id = adm_get_topology_for_port_copp_idx(
  22017. msm_bedais[be_index].port_id, idx);
  22018. if (topo_id < 0)
  22019. pr_debug("%s:Err:custom stereo topo %d",
  22020. __func__, topo_id);
  22021. pr_debug("idx %d\n", idx);
  22022. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  22023. rc = msm_ds2_dap_set_custom_stereo_onoff
  22024. (msm_bedais[be_index].port_id,
  22025. idx, is_custom_stereo_on);
  22026. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  22027. rc = dolby_dap_set_custom_stereo_onoff(
  22028. msm_bedais[be_index].port_id,
  22029. idx, is_custom_stereo_on);
  22030. else
  22031. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  22032. (msm_bedais[be_index].port_id,
  22033. idx, session_id,
  22034. op_FL_ip_FL_weight,
  22035. op_FL_ip_FR_weight,
  22036. op_FR_ip_FL_weight,
  22037. op_FR_ip_FR_weight);
  22038. if (rc < 0)
  22039. skip_send_custom_stereo:
  22040. pr_err("%s: err setting custom stereo\n",
  22041. __func__);
  22042. }
  22043. }
  22044. }
  22045. return 0;
  22046. }
  22047. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  22048. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  22049. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  22050. msm_routing_put_stereo_to_custom_stereo_control),
  22051. };
  22052. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  22053. struct snd_ctl_elem_value *ucontrol)
  22054. {
  22055. return 0;
  22056. }
  22057. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  22058. struct snd_ctl_elem_value *ucontrol)
  22059. {
  22060. int i = 0, j;
  22061. int num_app_types = ucontrol->value.integer.value[i++];
  22062. pr_debug("%s\n", __func__);
  22063. memset(app_type_cfg, 0, MAX_APP_TYPES*
  22064. sizeof(struct msm_pcm_routing_app_type_data));
  22065. if (num_app_types > MAX_APP_TYPES) {
  22066. pr_err("%s: number of app types exceed the max supported\n",
  22067. __func__);
  22068. return -EINVAL;
  22069. }
  22070. for (j = 0; j < num_app_types; j++) {
  22071. app_type_cfg[j].app_type =
  22072. ucontrol->value.integer.value[i++];
  22073. app_type_cfg[j].sample_rate =
  22074. ucontrol->value.integer.value[i++];
  22075. app_type_cfg[j].bit_width =
  22076. ucontrol->value.integer.value[i++];
  22077. }
  22078. return 0;
  22079. }
  22080. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  22081. struct snd_ctl_elem_value *ucontrol)
  22082. {
  22083. int j, fe_id, be_id, port_type;
  22084. int ret = 0;
  22085. unsigned long copp;
  22086. struct msm_pcm_routing_bdai_data *bedai;
  22087. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  22088. SESSION_TYPE_RX;
  22089. int app_type = ucontrol->value.integer.value[1];
  22090. int gain = (ucontrol->value.integer.value[2] +
  22091. ucontrol->value.integer.value[3])/2;
  22092. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  22093. MSM_AFE_PORT_TYPE_TX;
  22094. mutex_lock(&routing_lock);
  22095. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  22096. if (is_be_dai_extproc(be_id))
  22097. continue;
  22098. bedai = &msm_bedais[be_id];
  22099. if (afe_get_port_type(bedai->port_id) != port_type)
  22100. continue;
  22101. if (!bedai->active)
  22102. continue;
  22103. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  22104. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  22105. continue;
  22106. if (app_type !=
  22107. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  22108. continue;
  22109. copp = session_copp_map[fe_id][dir][be_id];
  22110. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  22111. if (!test_bit(j, &copp))
  22112. continue;
  22113. ret |= adm_set_volume(bedai->port_id, j, gain);
  22114. }
  22115. }
  22116. }
  22117. mutex_unlock(&routing_lock);
  22118. return ret ? -EINVAL : 0;
  22119. }
  22120. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  22121. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  22122. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  22123. msm_routing_put_app_type_cfg_control),
  22124. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  22125. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  22126. };
  22127. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  22128. struct snd_ctl_elem_value *ucontrol)
  22129. {
  22130. int copp_idx, fe_id, be_id, port_type;
  22131. int ret = 0;
  22132. unsigned long copp;
  22133. struct msm_pcm_routing_bdai_data *bedai;
  22134. u8 *packed_params = NULL;
  22135. struct param_hdr_v3 param_hdr;
  22136. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  22137. sizeof(uint32_t));
  22138. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  22139. SESSION_TYPE_RX;
  22140. int app_type = ucontrol->value.integer.value[1];
  22141. int module_id = ucontrol->value.integer.value[2];
  22142. int instance_id = ucontrol->value.integer.value[3];
  22143. int param_id = ucontrol->value.integer.value[4];
  22144. int param_value = ucontrol->value.integer.value[5];
  22145. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  22146. MSM_AFE_PORT_TYPE_TX;
  22147. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  22148. __func__, app_type, module_id,
  22149. instance_id, param_id, param_value);
  22150. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  22151. if (!packed_params)
  22152. return -ENOMEM;
  22153. memset(&param_hdr, 0, sizeof(param_hdr));
  22154. param_hdr.module_id = module_id;
  22155. param_hdr.instance_id = instance_id;
  22156. param_hdr.param_id = param_id;
  22157. param_hdr.param_size = sizeof(uint32_t);
  22158. packed_param_size = 0;
  22159. mutex_lock(&routing_lock);
  22160. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  22161. if (is_be_dai_extproc(be_id))
  22162. continue;
  22163. bedai = &msm_bedais[be_id];
  22164. if (afe_get_port_type(bedai->port_id) != port_type)
  22165. continue;
  22166. if (!bedai->active)
  22167. continue;
  22168. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  22169. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  22170. continue;
  22171. if (app_type !=
  22172. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  22173. continue;
  22174. copp = session_copp_map[fe_id][dir][be_id];
  22175. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  22176. copp_idx++) {
  22177. if (!test_bit(copp_idx, &copp))
  22178. continue;
  22179. ret = q6common_pack_pp_params(packed_params,
  22180. &param_hdr,
  22181. (u8 *) &param_value,
  22182. &packed_param_size);
  22183. if (ret) {
  22184. pr_err("%s: Failed to pack params, error %d\n",
  22185. __func__, ret);
  22186. goto done;
  22187. }
  22188. ret = adm_set_pp_params(bedai->port_id,
  22189. copp_idx, NULL,
  22190. packed_params,
  22191. packed_param_size);
  22192. if (ret) {
  22193. pr_err("%s: Setting param failed with err=%d\n",
  22194. __func__, ret);
  22195. ret = -EINVAL;
  22196. goto done;
  22197. }
  22198. }
  22199. }
  22200. }
  22201. done:
  22202. mutex_unlock(&routing_lock);
  22203. kfree(packed_params);
  22204. return ret;
  22205. }
  22206. static const struct snd_kcontrol_new module_cfg_controls[] = {
  22207. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  22208. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  22209. };
  22210. static int msm_routing_get_lsm_app_type_cfg_control(
  22211. struct snd_kcontrol *kcontrol,
  22212. struct snd_ctl_elem_value *ucontrol)
  22213. {
  22214. int shift = ((struct soc_multi_mixer_control *)
  22215. kcontrol->private_value)->shift;
  22216. int i = 0, j = 0;
  22217. mutex_lock(&routing_lock);
  22218. ucontrol->value.integer.value[i] = num_app_cfg_types;
  22219. for (j = 0; j < num_app_cfg_types; ++j) {
  22220. ucontrol->value.integer.value[++i] =
  22221. lsm_app_type_cfg[j].app_type;
  22222. ucontrol->value.integer.value[++i] =
  22223. lsm_app_type_cfg[j].sample_rate;
  22224. ucontrol->value.integer.value[++i] =
  22225. lsm_app_type_cfg[j].bit_width;
  22226. if (shift == 1)
  22227. ucontrol->value.integer.value[++i] =
  22228. lsm_app_type_cfg[j].num_out_channels;
  22229. }
  22230. mutex_unlock(&routing_lock);
  22231. return 0;
  22232. }
  22233. static int msm_routing_put_lsm_app_type_cfg_control(
  22234. struct snd_kcontrol *kcontrol,
  22235. struct snd_ctl_elem_value *ucontrol)
  22236. {
  22237. int shift = ((struct soc_multi_mixer_control *)
  22238. kcontrol->private_value)->shift;
  22239. int i = 0, j;
  22240. mutex_lock(&routing_lock);
  22241. if (ucontrol->value.integer.value[0] > MAX_APP_TYPES) {
  22242. pr_err("%s: number of app types exceed the max supported\n",
  22243. __func__);
  22244. mutex_unlock(&routing_lock);
  22245. return -EINVAL;
  22246. }
  22247. num_app_cfg_types = ucontrol->value.integer.value[i++];
  22248. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  22249. sizeof(struct msm_pcm_routing_app_type_data));
  22250. for (j = 0; j < num_app_cfg_types; j++) {
  22251. lsm_app_type_cfg[j].app_type =
  22252. ucontrol->value.integer.value[i++];
  22253. lsm_app_type_cfg[j].sample_rate =
  22254. ucontrol->value.integer.value[i++];
  22255. lsm_app_type_cfg[j].bit_width =
  22256. ucontrol->value.integer.value[i++];
  22257. /* Shift of 1 indicates this is V2 mixer control */
  22258. if (shift == 1)
  22259. lsm_app_type_cfg[j].num_out_channels =
  22260. ucontrol->value.integer.value[i++];
  22261. }
  22262. mutex_unlock(&routing_lock);
  22263. return 0;
  22264. }
  22265. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  22266. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  22267. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  22268. msm_routing_put_lsm_app_type_cfg_control),
  22269. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  22270. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  22271. msm_routing_put_lsm_app_type_cfg_control),
  22272. };
  22273. static int msm_routing_get_use_ds1_or_ds2_control(
  22274. struct snd_kcontrol *kcontrol,
  22275. struct snd_ctl_elem_value *ucontrol)
  22276. {
  22277. ucontrol->value.integer.value[0] = is_ds2_on;
  22278. return 0;
  22279. }
  22280. static int msm_routing_put_use_ds1_or_ds2_control(
  22281. struct snd_kcontrol *kcontrol,
  22282. struct snd_ctl_elem_value *ucontrol)
  22283. {
  22284. is_ds2_on = ucontrol->value.integer.value[0];
  22285. return 0;
  22286. }
  22287. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  22288. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  22289. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  22290. msm_routing_put_use_ds1_or_ds2_control),
  22291. };
  22292. static int msm_routing_get_hifi_filter_control(
  22293. struct snd_kcontrol *kcontrol,
  22294. struct snd_ctl_elem_value *ucontrol)
  22295. {
  22296. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  22297. return 0;
  22298. }
  22299. static int msm_routing_put_hifi_filter_control(
  22300. struct snd_kcontrol *kcontrol,
  22301. struct snd_ctl_elem_value *ucontrol)
  22302. {
  22303. hifi_filter_enabled = ucontrol->value.integer.value[0];
  22304. return 0;
  22305. }
  22306. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  22307. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  22308. 1, 0, msm_routing_get_hifi_filter_control,
  22309. msm_routing_put_hifi_filter_control),
  22310. };
  22311. static int msm_routing_get_ffecns_freeze_event_control(
  22312. struct snd_kcontrol *kcontrol,
  22313. struct snd_ctl_elem_value *ucontrol)
  22314. {
  22315. ucontrol->value.integer.value[0] = ffecns_freeze_event;
  22316. return 0;
  22317. }
  22318. static int msm_routing_put_ffecns_freeze_event_control(
  22319. struct snd_kcontrol *kcontrol,
  22320. struct snd_ctl_elem_value *ucontrol)
  22321. {
  22322. int ret = -EINVAL;
  22323. ffecns_freeze_event = ucontrol->value.integer.value[0];
  22324. ret = adm_set_ffecns_freeze_event(ffecns_freeze_event);
  22325. if (ret)
  22326. pr_err("%s: failed to set ffecns imc event to%d\n",
  22327. __func__, ffecns_freeze_event);
  22328. return ret;
  22329. }
  22330. static const struct snd_kcontrol_new use_ffecns_freeze_event_controls[] = {
  22331. SOC_SINGLE_EXT("FFECNS Freeze Event", SND_SOC_NOPM, 0,
  22332. 1, 0, msm_routing_get_ffecns_freeze_event_control,
  22333. msm_routing_put_ffecns_freeze_event_control),
  22334. };
  22335. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  22336. struct snd_ctl_elem_value *ucontrol) {
  22337. int rc = 0;
  22338. int be_idx = 0;
  22339. char *param_value;
  22340. int *update_param_value;
  22341. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  22342. struct param_hdr_v3 param_hdr;
  22343. param_value = kzalloc(param_size, GFP_KERNEL);
  22344. if (!param_value)
  22345. return -ENOMEM;
  22346. memset(&param_hdr, 0, sizeof(param_hdr));
  22347. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  22348. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  22349. break;
  22350. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  22351. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  22352. param_hdr.instance_id = INSTANCE_ID_0;
  22353. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  22354. param_hdr.param_size = param_size;
  22355. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  22356. NULL, &param_hdr, (u8 *) param_value);
  22357. if (rc) {
  22358. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  22359. kfree(param_value);
  22360. return -EINVAL;
  22361. }
  22362. update_param_value = (int *)param_value;
  22363. ucontrol->value.integer.value[0] = update_param_value[0];
  22364. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  22365. __func__, update_param_value[0]);
  22366. }
  22367. kfree(param_value);
  22368. return 0;
  22369. }
  22370. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  22371. struct snd_ctl_elem_value *ucontrol)
  22372. {
  22373. voc_session_id = ucontrol->value.integer.value[0];
  22374. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  22375. return 0;
  22376. }
  22377. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  22378. struct snd_ctl_elem_value *ucontrol)
  22379. {
  22380. ucontrol->value.integer.value[0] = voc_session_id;
  22381. return 0;
  22382. }
  22383. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  22384. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  22385. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  22386. msm_voc_session_id_put),
  22387. };
  22388. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  22389. struct snd_ctl_elem_info *uinfo)
  22390. {
  22391. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22392. uinfo->count = sizeof(struct sound_focus_param);
  22393. return 0;
  22394. }
  22395. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  22396. struct snd_ctl_elem_value *ucontrol)
  22397. {
  22398. int ret = 0;
  22399. struct sound_focus_param soundFocusData;
  22400. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22401. sizeof(struct sound_focus_param));
  22402. ret = voc_set_sound_focus(soundFocusData);
  22403. if (ret) {
  22404. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22405. __func__, ret);
  22406. ret = -EINVAL;
  22407. }
  22408. return ret;
  22409. }
  22410. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  22411. struct snd_ctl_elem_value *ucontrol)
  22412. {
  22413. int ret = 0;
  22414. struct sound_focus_param soundFocusData;
  22415. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  22416. ret = voc_get_sound_focus(&soundFocusData);
  22417. if (ret) {
  22418. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  22419. __func__, ret);
  22420. ret = -EINVAL;
  22421. goto done;
  22422. }
  22423. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22424. sizeof(struct sound_focus_param));
  22425. done:
  22426. return ret;
  22427. }
  22428. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  22429. struct snd_ctl_elem_info *uinfo)
  22430. {
  22431. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22432. uinfo->count = sizeof(struct source_tracking_param);
  22433. return 0;
  22434. }
  22435. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  22436. struct snd_ctl_elem_value *ucontrol)
  22437. {
  22438. int ret = 0;
  22439. struct source_tracking_param sourceTrackingData;
  22440. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  22441. ret = voc_get_source_tracking(&sourceTrackingData);
  22442. if (ret) {
  22443. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  22444. __func__, ret);
  22445. ret = -EINVAL;
  22446. goto done;
  22447. }
  22448. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22449. sizeof(struct source_tracking_param));
  22450. done:
  22451. return ret;
  22452. }
  22453. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  22454. int *copp_idx)
  22455. {
  22456. int i, idx, be_idx;
  22457. int ret = 0;
  22458. unsigned long copp;
  22459. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  22460. ret = q6audio_validate_port(port_id);
  22461. if (ret < 0) {
  22462. pr_err("%s: port validation failed id 0x%x ret %d\n",
  22463. __func__, port_id, ret);
  22464. ret = -EINVAL;
  22465. goto done;
  22466. }
  22467. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22468. if (msm_bedais[be_idx].port_id == port_id)
  22469. break;
  22470. }
  22471. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22472. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  22473. ret = -EINVAL;
  22474. goto done;
  22475. }
  22476. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  22477. MSM_FRONTEND_DAI_MAX) {
  22478. if (!(is_mm_lsm_fe_id(i) &&
  22479. route_check_fe_id_adm_support(i)))
  22480. continue;
  22481. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22482. copp = session_copp_map[i]
  22483. [session_type][be_idx];
  22484. if (test_bit(idx, &copp))
  22485. break;
  22486. }
  22487. if (idx >= MAX_COPPS_PER_PORT)
  22488. continue;
  22489. else
  22490. break;
  22491. }
  22492. if (i >= MSM_FRONTEND_DAI_MAX) {
  22493. pr_debug("%s: Invalid FE, exiting\n", __func__);
  22494. ret = -EINVAL;
  22495. goto done;
  22496. }
  22497. *copp_idx = idx;
  22498. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  22499. done:
  22500. return ret;
  22501. }
  22502. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  22503. const char *prefix, int *port_id)
  22504. {
  22505. int ret = 0;
  22506. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  22507. /*
  22508. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  22509. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  22510. * and compare the string with the backend name to derive the port id.
  22511. */
  22512. if (!strcmp(kcontrol->id.name + strlen(prefix),
  22513. "SLIMBUS_0")) {
  22514. *port_id = SLIMBUS_0_TX;
  22515. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22516. "TERT_MI2S")) {
  22517. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  22518. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22519. "INT3_MI2S")) {
  22520. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  22521. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22522. "VA_CDC_DMA_TX_0")) {
  22523. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  22524. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22525. "TX_CDC_DMA_TX_3")) {
  22526. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  22527. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22528. "QUIN_TDM_TX_0")) {
  22529. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  22530. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22531. "PRIMARY_TDM")) {
  22532. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  22533. } else {
  22534. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  22535. __func__, kcontrol->id.name);
  22536. ret = -EINVAL;
  22537. goto done;
  22538. }
  22539. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  22540. __func__, kcontrol->id.name, *port_id);
  22541. done:
  22542. return ret;
  22543. }
  22544. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  22545. struct snd_ctl_elem_value *ucontrol)
  22546. {
  22547. int ret = 0;
  22548. struct sound_focus_param soundFocusData;
  22549. int port_id, copp_idx;
  22550. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22551. "Sound Focus Audio Tx ", &port_id);
  22552. if (ret != 0) {
  22553. pr_err("%s: Error in deriving port id, err=%d\n",
  22554. __func__, ret);
  22555. ret = -EINVAL;
  22556. goto done;
  22557. }
  22558. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22559. &copp_idx);
  22560. if (ret) {
  22561. pr_err("%s: Could not get copp idx for port_id=%d\n",
  22562. __func__, port_id);
  22563. ret = -EINVAL;
  22564. goto done;
  22565. }
  22566. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22567. sizeof(struct sound_focus_param));
  22568. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  22569. if (ret) {
  22570. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22571. __func__, ret);
  22572. ret = -EINVAL;
  22573. goto done;
  22574. }
  22575. done:
  22576. return ret;
  22577. }
  22578. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  22579. struct snd_ctl_elem_value *ucontrol)
  22580. {
  22581. int ret = 0;
  22582. struct sound_focus_param soundFocusData;
  22583. int port_id, copp_idx;
  22584. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22585. "Sound Focus Audio Tx ", &port_id);
  22586. if (ret) {
  22587. pr_err("%s: Error in deriving port id, err=%d\n",
  22588. __func__, ret);
  22589. ret = -EINVAL;
  22590. goto done;
  22591. }
  22592. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22593. &copp_idx);
  22594. if (ret) {
  22595. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22596. __func__, port_id);
  22597. ret = -EINVAL;
  22598. goto done;
  22599. }
  22600. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  22601. if (ret) {
  22602. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  22603. __func__, ret);
  22604. ret = -EINVAL;
  22605. goto done;
  22606. }
  22607. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22608. sizeof(struct sound_focus_param));
  22609. done:
  22610. return ret;
  22611. }
  22612. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  22613. struct snd_ctl_elem_value *ucontrol)
  22614. {
  22615. int ret = 0;
  22616. struct source_tracking_param sourceTrackingData;
  22617. int port_id, copp_idx;
  22618. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22619. "Source Tracking Audio Tx ", &port_id);
  22620. if (ret) {
  22621. pr_err("%s: Error in deriving port id, err=%d\n",
  22622. __func__, ret);
  22623. ret = -EINVAL;
  22624. goto done;
  22625. }
  22626. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22627. &copp_idx);
  22628. if (ret) {
  22629. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22630. __func__, port_id);
  22631. ret = -EINVAL;
  22632. goto done;
  22633. }
  22634. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  22635. if (ret) {
  22636. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  22637. __func__, ret);
  22638. ret = -EINVAL;
  22639. goto done;
  22640. }
  22641. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22642. sizeof(struct source_tracking_param));
  22643. done:
  22644. return ret;
  22645. }
  22646. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  22647. struct snd_ctl_elem_info *uinfo)
  22648. {
  22649. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22650. uinfo->count = sizeof(struct doa_tracking_mon_param);
  22651. return 0;
  22652. }
  22653. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  22654. struct snd_ctl_elem_value *ucontrol)
  22655. {
  22656. int ret = 0;
  22657. struct doa_tracking_mon_param doa_tracking_data;
  22658. int port_id, copp_idx;
  22659. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  22660. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22661. "Doa Tracking Monitor Listen ", &port_id);
  22662. if (ret) {
  22663. pr_err("%s: Error in deriving port id, err=%d\n",
  22664. __func__, ret);
  22665. ret = -EINVAL;
  22666. goto done;
  22667. }
  22668. /*
  22669. * If copp id exists for given port id, query adm to get doa data.
  22670. * Else query afe for doa tracking params.
  22671. * This is to support in cases where LSM directly connects to
  22672. * AFE for FFNS.
  22673. */
  22674. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22675. &copp_idx);
  22676. if (!ret)
  22677. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  22678. &doa_tracking_data);
  22679. else
  22680. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  22681. if (ret) {
  22682. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  22683. __func__, ret);
  22684. ret = -EINVAL;
  22685. goto done;
  22686. }
  22687. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  22688. sizeof(struct doa_tracking_mon_param));
  22689. done:
  22690. return ret;
  22691. }
  22692. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  22693. {
  22694. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22695. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22696. .name = "Sound Focus Voice Tx SLIMBUS_0",
  22697. .info = msm_sound_focus_info,
  22698. .get = msm_voice_sound_focus_get,
  22699. .put = msm_voice_sound_focus_put,
  22700. },
  22701. {
  22702. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22703. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22704. .name = "Source Tracking Voice Tx SLIMBUS_0",
  22705. .info = msm_source_tracking_info,
  22706. .get = msm_voice_source_tracking_get,
  22707. },
  22708. {
  22709. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22710. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22711. .name = "Sound Focus Audio Tx SLIMBUS_0",
  22712. .info = msm_sound_focus_info,
  22713. .get = msm_audio_sound_focus_get,
  22714. .put = msm_audio_sound_focus_put,
  22715. },
  22716. {
  22717. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22718. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22719. .name = "Source Tracking Audio Tx SLIMBUS_0",
  22720. .info = msm_source_tracking_info,
  22721. .get = msm_audio_source_tracking_get,
  22722. },
  22723. {
  22724. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22725. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22726. .name = "Sound Focus Voice Tx TERT_MI2S",
  22727. .info = msm_sound_focus_info,
  22728. .get = msm_voice_sound_focus_get,
  22729. .put = msm_voice_sound_focus_put,
  22730. },
  22731. {
  22732. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22733. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22734. .name = "Source Tracking Voice Tx TERT_MI2S",
  22735. .info = msm_source_tracking_info,
  22736. .get = msm_voice_source_tracking_get,
  22737. },
  22738. {
  22739. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22740. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22741. .name = "Sound Focus Audio Tx TERT_MI2S",
  22742. .info = msm_sound_focus_info,
  22743. .get = msm_audio_sound_focus_get,
  22744. .put = msm_audio_sound_focus_put,
  22745. },
  22746. {
  22747. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22748. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22749. .name = "Source Tracking Audio Tx TERT_MI2S",
  22750. .info = msm_source_tracking_info,
  22751. .get = msm_audio_source_tracking_get,
  22752. },
  22753. {
  22754. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22755. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22756. .name = "Sound Focus Voice Tx INT3_MI2S",
  22757. .info = msm_sound_focus_info,
  22758. .get = msm_voice_sound_focus_get,
  22759. .put = msm_voice_sound_focus_put,
  22760. },
  22761. {
  22762. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22763. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22764. .name = "Source Tracking Voice Tx INT3_MI2S",
  22765. .info = msm_source_tracking_info,
  22766. .get = msm_voice_source_tracking_get,
  22767. },
  22768. {
  22769. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22770. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22771. .name = "Sound Focus Audio Tx INT3_MI2S",
  22772. .info = msm_sound_focus_info,
  22773. .get = msm_audio_sound_focus_get,
  22774. .put = msm_audio_sound_focus_put,
  22775. },
  22776. {
  22777. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22778. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22779. .name = "Source Tracking Audio Tx INT3_MI2S",
  22780. .info = msm_source_tracking_info,
  22781. .get = msm_audio_source_tracking_get,
  22782. },
  22783. {
  22784. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22785. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22786. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  22787. .info = msm_sound_focus_info,
  22788. .get = msm_voice_sound_focus_get,
  22789. .put = msm_voice_sound_focus_put,
  22790. },
  22791. {
  22792. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22793. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22794. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  22795. .info = msm_source_tracking_info,
  22796. .get = msm_voice_source_tracking_get,
  22797. },
  22798. {
  22799. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22800. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22801. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  22802. .info = msm_sound_focus_info,
  22803. .get = msm_audio_sound_focus_get,
  22804. .put = msm_audio_sound_focus_put,
  22805. },
  22806. {
  22807. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22808. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22809. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  22810. .info = msm_source_tracking_info,
  22811. .get = msm_audio_source_tracking_get,
  22812. },
  22813. {
  22814. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22815. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22816. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  22817. .info = msm_sound_focus_info,
  22818. .get = msm_voice_sound_focus_get,
  22819. .put = msm_voice_sound_focus_put,
  22820. },
  22821. {
  22822. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22823. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22824. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  22825. .info = msm_source_tracking_info,
  22826. .get = msm_voice_source_tracking_get,
  22827. },
  22828. {
  22829. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22830. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22831. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  22832. .info = msm_sound_focus_info,
  22833. .get = msm_audio_sound_focus_get,
  22834. .put = msm_audio_sound_focus_put,
  22835. },
  22836. {
  22837. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22838. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22839. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  22840. .info = msm_source_tracking_info,
  22841. .get = msm_audio_source_tracking_get,
  22842. },
  22843. {
  22844. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22845. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22846. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  22847. .info = msm_sound_focus_info,
  22848. .get = msm_voice_sound_focus_get,
  22849. .put = msm_voice_sound_focus_put,
  22850. },
  22851. {
  22852. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22853. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22854. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  22855. .info = msm_source_tracking_info,
  22856. .get = msm_voice_source_tracking_get,
  22857. },
  22858. {
  22859. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22860. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22861. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  22862. .info = msm_sound_focus_info,
  22863. .get = msm_audio_sound_focus_get,
  22864. .put = msm_audio_sound_focus_put,
  22865. },
  22866. {
  22867. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22868. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22869. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  22870. .info = msm_source_tracking_info,
  22871. .get = msm_audio_source_tracking_get,
  22872. },
  22873. {
  22874. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22875. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22876. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  22877. .info = msm_sound_focus_info,
  22878. .get = msm_audio_sound_focus_get,
  22879. .put = msm_audio_sound_focus_put,
  22880. },
  22881. {
  22882. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22883. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22884. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  22885. .info = msm_source_tracking_info,
  22886. .get = msm_audio_source_tracking_get,
  22887. },
  22888. };
  22889. static const struct snd_kcontrol_new msm_source_doa_tracking_controls[] = {
  22890. {
  22891. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22892. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22893. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  22894. .info = msm_doa_tracking_mon_info,
  22895. .get = msm_doa_tracking_mon_get,
  22896. },
  22897. };
  22898. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  22899. struct snd_ctl_elem_value *ucontrol)
  22900. {
  22901. int ret = 0;
  22902. int item;
  22903. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22904. pr_debug("%s item is %d\n", __func__,
  22905. ucontrol->value.enumerated.item[0]);
  22906. mutex_lock(&routing_lock);
  22907. item = ucontrol->value.enumerated.item[0];
  22908. if (item < e->items) {
  22909. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22910. __func__, e->shift_l, e->values[item]);
  22911. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22912. e->values[item] < MSM_BACKEND_DAI_MAX)
  22913. /* Enable feedback TX path */
  22914. ret = afe_spk_prot_feed_back_cfg(
  22915. msm_bedais[e->values[item]].port_id,
  22916. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  22917. else {
  22918. pr_debug("%s values are out of range item %d\n",
  22919. __func__, e->values[item]);
  22920. /* Disable feedback TX path */
  22921. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22922. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  22923. else
  22924. ret = -EINVAL;
  22925. }
  22926. } else {
  22927. pr_err("%s item value is out of range item\n", __func__);
  22928. ret = -EINVAL;
  22929. }
  22930. mutex_unlock(&routing_lock);
  22931. return ret;
  22932. }
  22933. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  22934. struct snd_ctl_elem_value *ucontrol)
  22935. {
  22936. int ret = 0;
  22937. int item;
  22938. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22939. pr_debug("%s item is %d\n", __func__,
  22940. ucontrol->value.enumerated.item[0]);
  22941. mutex_lock(&routing_lock);
  22942. item = ucontrol->value.enumerated.item[0];
  22943. if (item < e->items) {
  22944. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22945. __func__, e->shift_l, e->values[item]);
  22946. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22947. e->values[item] < MSM_BACKEND_DAI_MAX)
  22948. /* Enable feedback TX path */
  22949. ret = afe_spk_prot_feed_back_cfg(
  22950. msm_bedais[e->values[item]].port_id,
  22951. msm_bedais[e->shift_l].port_id,
  22952. 1, 1, 1);
  22953. else {
  22954. pr_debug("%s values are out of range item %d\n",
  22955. __func__, e->values[item]);
  22956. /* Disable feedback TX path */
  22957. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22958. ret = afe_spk_prot_feed_back_cfg(0,
  22959. 0, 0, 0, 0);
  22960. else
  22961. ret = -EINVAL;
  22962. }
  22963. } else {
  22964. pr_err("%s item value is out of range item\n", __func__);
  22965. ret = -EINVAL;
  22966. }
  22967. mutex_unlock(&routing_lock);
  22968. return ret;
  22969. }
  22970. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  22971. struct snd_ctl_elem_value *ucontrol)
  22972. {
  22973. pr_debug("%s\n", __func__);
  22974. return 0;
  22975. }
  22976. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  22977. struct snd_ctl_elem_value *ucontrol)
  22978. {
  22979. pr_debug("%s\n", __func__);
  22980. ucontrol->value.enumerated.item[0] = 0;
  22981. return 0;
  22982. }
  22983. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  22984. "ZERO", "SLIM4_TX"
  22985. };
  22986. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  22987. "ZERO", "SLIM4_TX"
  22988. };
  22989. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  22990. "ZERO", "WSA_CDC_DMA_TX_0"
  22991. };
  22992. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  22993. "ZERO", "WSA_CDC_DMA_TX_0"
  22994. };
  22995. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  22996. "ZERO", "SENARY_TX"
  22997. };
  22998. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  22999. "ZERO", "INT5_MI2S_TX"
  23000. };
  23001. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  23002. "ZERO", "INT5_MI2S_TX"
  23003. };
  23004. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  23005. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  23006. };
  23007. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  23008. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  23009. };
  23010. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  23011. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  23012. };
  23013. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  23014. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  23015. };
  23016. static const int mi2s_rx_vi_fb_tx_value[] = {
  23017. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  23018. };
  23019. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  23020. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  23021. };
  23022. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  23023. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  23024. };
  23025. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  23026. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  23027. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  23028. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  23029. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  23030. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  23031. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  23032. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  23033. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  23034. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  23035. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  23036. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  23037. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  23038. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  23039. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  23040. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  23041. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  23042. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  23043. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  23044. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  23045. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  23046. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  23047. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  23048. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  23049. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  23050. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  23051. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  23052. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  23053. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  23054. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  23055. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  23056. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  23057. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  23058. spkr_prot_put_vi_lch_port);
  23059. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  23060. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  23061. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  23062. spkr_prot_put_vi_rch_port);
  23063. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  23064. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  23065. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  23066. spkr_prot_put_vi_lch_port);
  23067. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  23068. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  23069. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  23070. spkr_prot_put_vi_rch_port);
  23071. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  23072. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  23073. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  23074. spkr_prot_put_vi_lch_port);
  23075. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  23076. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  23077. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  23078. spkr_prot_put_vi_lch_port);
  23079. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  23080. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  23081. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  23082. spkr_prot_put_vi_rch_port);
  23083. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  23084. /* Frontend AIF */
  23085. /* Widget name equals to Front-End DAI name<Need confirmation>,
  23086. * Stream name must contains substring of front-end dai name
  23087. */
  23088. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  23089. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  23090. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  23091. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  23092. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  23093. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  23094. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  23095. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  23096. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  23097. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  23098. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  23099. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  23100. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  23101. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  23102. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  23103. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  23104. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  23105. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  23106. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  23107. SND_SOC_DAPM_AIF_IN("MM_DL23", "MultiMedia23 Playback", 0, 0, 0, 0),
  23108. SND_SOC_DAPM_AIF_IN("MM_DL24", "MultiMedia24 Playback", 0, 0, 0, 0),
  23109. SND_SOC_DAPM_AIF_IN("MM_DL25", "MultiMedia25 Playback", 0, 0, 0, 0),
  23110. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  23111. SND_SOC_DAPM_AIF_IN("MM_DL31", "MultiMedia31 Playback", 0, 0, 0, 0),
  23112. SND_SOC_DAPM_AIF_IN("MM_DL32", "MultiMedia32 Playback", 0, 0, 0, 0),
  23113. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  23114. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  23115. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  23116. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  23117. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  23118. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  23119. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  23120. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  23121. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  23122. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  23123. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  23124. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  23125. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  23126. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  23127. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  23128. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  23129. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  23130. SND_SOC_DAPM_AIF_OUT("MM_UL23", "MultiMedia23 Capture", 0, 0, 0, 0),
  23131. SND_SOC_DAPM_AIF_OUT("MM_UL24", "MultiMedia24 Capture", 0, 0, 0, 0),
  23132. SND_SOC_DAPM_AIF_OUT("MM_UL25", "MultiMedia25 Capture", 0, 0, 0, 0),
  23133. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  23134. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  23135. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  23136. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  23137. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  23138. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  23139. "VoiceMMode1 Playback", 0, 0, 0, 0),
  23140. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  23141. "VoiceMMode1 Capture", 0, 0, 0, 0),
  23142. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  23143. "VoiceMMode2 Playback", 0, 0, 0, 0),
  23144. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  23145. "VoiceMMode2 Capture", 0, 0, 0, 0),
  23146. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  23147. 0, 0, 0, 0),
  23148. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  23149. 0, 0, 0, 0),
  23150. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  23151. 0, 0, 0, 0),
  23152. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  23153. 0, 0, 0, 0),
  23154. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  23155. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  23156. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  23157. 0, 0, 0, 0),
  23158. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  23159. 0, 0, 0, 0),
  23160. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  23161. 0, 0, 0, 0),
  23162. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  23163. 0, 0, 0, 0),
  23164. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  23165. 0, 0, 0, 0),
  23166. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  23167. 0, 0, 0, 0),
  23168. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  23169. 0, 0, 0, 0),
  23170. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  23171. 0, 0, 0, 0),
  23172. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  23173. 0, 0, 0, 0),
  23174. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  23175. 0, 0, 0, 0),
  23176. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  23177. 0, 0, 0, 0),
  23178. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  23179. 0, 0, 0, 0),
  23180. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  23181. 0, 0, 0, 0),
  23182. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  23183. 0, 0, 0, 0),
  23184. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  23185. 0, 0, 0, 0),
  23186. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  23187. 0, 0, 0, 0),
  23188. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  23189. 0, 0, 0, 0),
  23190. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  23191. 0, 0, 0, 0),
  23192. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  23193. 0, 0, 0, 0),
  23194. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  23195. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  23196. 0, 0, 0, 0),
  23197. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  23198. "INT0 MI2S_RX Hostless Playback",
  23199. 0, 0, 0, 0),
  23200. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  23201. "INT4 MI2S_RX Hostless Playback",
  23202. 0, 0, 0, 0),
  23203. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  23204. "Primary MI2S_RX Hostless Playback",
  23205. 0, 0, 0, 0),
  23206. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  23207. "Secondary MI2S_RX Hostless Playback",
  23208. 0, 0, 0, 0),
  23209. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  23210. "Tertiary MI2S_RX Hostless Playback",
  23211. 0, 0, 0, 0),
  23212. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  23213. "Quaternary MI2S_RX Hostless Playback",
  23214. 0, 0, 0, 0),
  23215. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  23216. "Quinary MI2S_RX Hostless Playback",
  23217. 0, 0, 0, 0),
  23218. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  23219. "Senary MI2S_RX Hostless Playback",
  23220. 0, 0, 0, 0),
  23221. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  23222. 0, 0, 0, 0),
  23223. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  23224. 0, 0, 0, 0),
  23225. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  23226. 0, 0, 0, 0),
  23227. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  23228. 0, 0, 0, 0),
  23229. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  23230. 0, 0, 0, 0),
  23231. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  23232. "INT3 MI2S_TX Hostless Capture",
  23233. 0, 0, 0, 0),
  23234. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  23235. "Tertiary MI2S_TX Hostless Capture",
  23236. 0, 0, 0, 0),
  23237. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  23238. "Secondary MI2S_TX Hostless Capture",
  23239. 0, 0, 0, 0),
  23240. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  23241. "Primary MI2S_TX Hostless Capture",
  23242. 0, 0, 0, 0),
  23243. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  23244. 0, 0, 0, 0),
  23245. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  23246. 0, 0, 0, 0),
  23247. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  23248. "Quaternary MI2S_TX Hostless Capture",
  23249. 0, 0, 0, 0),
  23250. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  23251. "Quinary MI2S_TX Hostless Capture",
  23252. 0, 0, 0, 0),
  23253. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  23254. "Senary MI2S_TX Hostless Capture",
  23255. 0, 0, 0, 0),
  23256. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  23257. "Primary TDM0 Hostless Playback",
  23258. 0, 0, 0, 0),
  23259. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  23260. "Primary TDM0 Hostless Capture",
  23261. 0, 0, 0, 0),
  23262. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  23263. "Primary TDM1 Hostless Playback",
  23264. 0, 0, 0, 0),
  23265. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  23266. "Primary TDM1 Hostless Capture",
  23267. 0, 0, 0, 0),
  23268. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  23269. "Primary TDM2 Hostless Playback",
  23270. 0, 0, 0, 0),
  23271. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  23272. "Primary TDM2 Hostless Capture",
  23273. 0, 0, 0, 0),
  23274. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  23275. "Primary TDM3 Hostless Playback",
  23276. 0, 0, 0, 0),
  23277. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  23278. "Primary TDM3 Hostless Capture",
  23279. 0, 0, 0, 0),
  23280. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  23281. "Primary TDM4 Hostless Playback",
  23282. 0, 0, 0, 0),
  23283. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  23284. "Primary TDM4 Hostless Capture",
  23285. 0, 0, 0, 0),
  23286. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  23287. "Primary TDM5 Hostless Playback",
  23288. 0, 0, 0, 0),
  23289. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  23290. "Primary TDM5 Hostless Capture",
  23291. 0, 0, 0, 0),
  23292. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  23293. "Primary TDM6 Hostless Playback",
  23294. 0, 0, 0, 0),
  23295. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  23296. "Primary TDM6 Hostless Capture",
  23297. 0, 0, 0, 0),
  23298. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  23299. "Primary TDM7 Hostless Playback",
  23300. 0, 0, 0, 0),
  23301. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  23302. "Primary TDM7 Hostless Capture",
  23303. 0, 0, 0, 0),
  23304. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  23305. "Secondary TDM0 Hostless Playback",
  23306. 0, 0, 0, 0),
  23307. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  23308. "Secondary TDM0 Hostless Capture",
  23309. 0, 0, 0, 0),
  23310. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  23311. "Secondary TDM1 Hostless Playback",
  23312. 0, 0, 0, 0),
  23313. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  23314. "Secondary TDM1 Hostless Capture",
  23315. 0, 0, 0, 0),
  23316. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  23317. "Secondary TDM2 Hostless Playback",
  23318. 0, 0, 0, 0),
  23319. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  23320. "Secondary TDM2 Hostless Capture",
  23321. 0, 0, 0, 0),
  23322. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  23323. "Secondary TDM3 Hostless Playback",
  23324. 0, 0, 0, 0),
  23325. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  23326. "Secondary TDM3 Hostless Capture",
  23327. 0, 0, 0, 0),
  23328. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  23329. "Secondary TDM4 Hostless Playback",
  23330. 0, 0, 0, 0),
  23331. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  23332. "Secondary TDM4 Hostless Capture",
  23333. 0, 0, 0, 0),
  23334. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  23335. "Secondary TDM5 Hostless Playback",
  23336. 0, 0, 0, 0),
  23337. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  23338. "Secondary TDM5 Hostless Capture",
  23339. 0, 0, 0, 0),
  23340. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  23341. "Secondary TDM6 Hostless Playback",
  23342. 0, 0, 0, 0),
  23343. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  23344. "Secondary TDM6 Hostless Capture",
  23345. 0, 0, 0, 0),
  23346. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  23347. "Secondary TDM7 Hostless Playback",
  23348. 0, 0, 0, 0),
  23349. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  23350. "Secondary TDM7 Hostless Capture",
  23351. 0, 0, 0, 0),
  23352. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  23353. "Tertiary TDM0 Hostless Playback",
  23354. 0, 0, 0, 0),
  23355. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  23356. "Tertiary TDM0 Hostless Capture",
  23357. 0, 0, 0, 0),
  23358. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  23359. "Tertiary TDM1 Hostless Playback",
  23360. 0, 0, 0, 0),
  23361. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  23362. "Tertiary TDM1 Hostless Capture",
  23363. 0, 0, 0, 0),
  23364. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  23365. "Tertiary TDM2 Hostless Playback",
  23366. 0, 0, 0, 0),
  23367. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  23368. "Tertiary TDM2 Hostless Capture",
  23369. 0, 0, 0, 0),
  23370. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  23371. "Tertiary TDM3 Hostless Playback",
  23372. 0, 0, 0, 0),
  23373. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  23374. "Tertiary TDM3 Hostless Capture",
  23375. 0, 0, 0, 0),
  23376. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  23377. "Tertiary TDM4 Hostless Playback",
  23378. 0, 0, 0, 0),
  23379. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  23380. "Tertiary TDM4 Hostless Capture",
  23381. 0, 0, 0, 0),
  23382. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  23383. "Tertiary TDM5 Hostless Playback",
  23384. 0, 0, 0, 0),
  23385. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  23386. "Tertiary TDM5 Hostless Capture",
  23387. 0, 0, 0, 0),
  23388. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  23389. "Tertiary TDM6 Hostless Playback",
  23390. 0, 0, 0, 0),
  23391. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  23392. "Tertiary TDM6 Hostless Capture",
  23393. 0, 0, 0, 0),
  23394. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  23395. "Tertiary TDM7 Hostless Playback",
  23396. 0, 0, 0, 0),
  23397. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  23398. "Tertiary TDM7 Hostless Capture",
  23399. 0, 0, 0, 0),
  23400. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  23401. "Quaternary TDM0 Hostless Playback",
  23402. 0, 0, 0, 0),
  23403. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  23404. "Quaternary TDM0 Hostless Capture",
  23405. 0, 0, 0, 0),
  23406. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  23407. "Quaternary TDM1 Hostless Playback",
  23408. 0, 0, 0, 0),
  23409. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  23410. "Quaternary TDM1 Hostless Capture",
  23411. 0, 0, 0, 0),
  23412. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  23413. "Quaternary TDM2 Hostless Playback",
  23414. 0, 0, 0, 0),
  23415. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  23416. "Quaternary TDM2 Hostless Capture",
  23417. 0, 0, 0, 0),
  23418. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  23419. "Quaternary TDM3 Hostless Playback",
  23420. 0, 0, 0, 0),
  23421. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  23422. "Quaternary TDM3 Hostless Capture",
  23423. 0, 0, 0, 0),
  23424. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  23425. "Quaternary TDM4 Hostless Playback",
  23426. 0, 0, 0, 0),
  23427. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  23428. "Quaternary TDM4 Hostless Capture",
  23429. 0, 0, 0, 0),
  23430. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  23431. "Quaternary TDM5 Hostless Playback",
  23432. 0, 0, 0, 0),
  23433. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  23434. "Quaternary TDM5 Hostless Capture",
  23435. 0, 0, 0, 0),
  23436. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  23437. "Quaternary TDM6 Hostless Playback",
  23438. 0, 0, 0, 0),
  23439. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  23440. "Quaternary TDM6 Hostless Capture",
  23441. 0, 0, 0, 0),
  23442. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  23443. "Quaternary TDM7 Hostless Playback",
  23444. 0, 0, 0, 0),
  23445. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  23446. "Quaternary TDM7 Hostless Capture",
  23447. 0, 0, 0, 0),
  23448. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  23449. "Quinary TDM0 Hostless Playback",
  23450. 0, 0, 0, 0),
  23451. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  23452. "Quinary TDM0 Hostless Capture",
  23453. 0, 0, 0, 0),
  23454. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  23455. "Quinary TDM1 Hostless Playback",
  23456. 0, 0, 0, 0),
  23457. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  23458. "Quinary TDM1 Hostless Capture",
  23459. 0, 0, 0, 0),
  23460. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  23461. "Quinary TDM2 Hostless Playback",
  23462. 0, 0, 0, 0),
  23463. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  23464. "Quinary TDM2 Hostless Capture",
  23465. 0, 0, 0, 0),
  23466. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  23467. "Quinary TDM3 Hostless Playback",
  23468. 0, 0, 0, 0),
  23469. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  23470. "Quinary TDM3 Hostless Capture",
  23471. 0, 0, 0, 0),
  23472. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  23473. "Quinary TDM4 Hostless Playback",
  23474. 0, 0, 0, 0),
  23475. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  23476. "Quinary TDM4 Hostless Capture",
  23477. 0, 0, 0, 0),
  23478. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  23479. "Quinary TDM5 Hostless Playback",
  23480. 0, 0, 0, 0),
  23481. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  23482. "Quinary TDM5 Hostless Capture",
  23483. 0, 0, 0, 0),
  23484. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  23485. "Quinary TDM6 Hostless Playback",
  23486. 0, 0, 0, 0),
  23487. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  23488. "Quinary TDM6 Hostless Capture",
  23489. 0, 0, 0, 0),
  23490. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  23491. "Quinary TDM7 Hostless Playback",
  23492. 0, 0, 0, 0),
  23493. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  23494. "Quinary TDM7 Hostless Capture",
  23495. 0, 0, 0, 0),
  23496. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  23497. "Senary TDM0 Hostless Playback",
  23498. 0, 0, 0, 0),
  23499. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  23500. "Senary TDM0 Hostless Capture",
  23501. 0, 0, 0, 0),
  23502. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  23503. "Senary TDM1 Hostless Playback",
  23504. 0, 0, 0, 0),
  23505. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  23506. "Senary TDM1 Hostless Capture",
  23507. 0, 0, 0, 0),
  23508. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  23509. "Senary TDM2 Hostless Playback",
  23510. 0, 0, 0, 0),
  23511. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  23512. "Senary TDM2 Hostless Capture",
  23513. 0, 0, 0, 0),
  23514. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  23515. "Senary TDM3 Hostless Playback",
  23516. 0, 0, 0, 0),
  23517. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  23518. "Senary TDM3 Hostless Capture",
  23519. 0, 0, 0, 0),
  23520. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  23521. "Senary TDM4 Hostless Playback",
  23522. 0, 0, 0, 0),
  23523. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  23524. "Senary TDM4 Hostless Capture",
  23525. 0, 0, 0, 0),
  23526. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  23527. "Senary TDM5 Hostless Playback",
  23528. 0, 0, 0, 0),
  23529. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  23530. "Senary TDM5 Hostless Capture",
  23531. 0, 0, 0, 0),
  23532. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  23533. "Senary TDM6 Hostless Playback",
  23534. 0, 0, 0, 0),
  23535. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  23536. "Senary TDM6 Hostless Capture",
  23537. 0, 0, 0, 0),
  23538. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  23539. "Senary TDM7 Hostless Playback",
  23540. 0, 0, 0, 0),
  23541. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  23542. "Senary TDM7 Hostless Capture",
  23543. 0, 0, 0, 0),
  23544. /* LSM */
  23545. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  23546. 0, 0, 0, 0),
  23547. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  23548. 0, 0, 0, 0),
  23549. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  23550. 0, 0, 0, 0),
  23551. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  23552. 0, 0, 0, 0),
  23553. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  23554. 0, 0, 0, 0),
  23555. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  23556. 0, 0, 0, 0),
  23557. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  23558. 0, 0, 0, 0),
  23559. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  23560. 0, 0, 0, 0),
  23561. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  23562. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  23563. /* Backend AIF */
  23564. /* Stream name equals to backend dai link stream name */
  23565. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  23566. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  23567. 0, 0, 0, 0),
  23568. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  23569. 0, 0, 0, 0),
  23570. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  23571. 0, 0, 0, 0),
  23572. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  23573. 0, 0, 0, 0),
  23574. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  23575. 0, 0, 0, 0),
  23576. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  23577. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  23578. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  23579. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  23580. SND_SOC_DAPM_AIF_OUT("HDMI_MS", "HDMI MS Playback", 0, 0, 0, 0),
  23581. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  23582. 0, 0, 0, 0),
  23583. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  23584. 0, 0, 0, 0),
  23585. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  23586. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  23587. 0, 0, 0, 0),
  23588. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  23589. 0, 0, 0, 0),
  23590. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  23591. 0, 0, 0, 0),
  23592. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  23593. "Secondary MI2S Playback SD1",
  23594. 0, 0, 0, 0),
  23595. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  23596. 0, 0, 0, 0),
  23597. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  23598. 0, 0, 0, 0),
  23599. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  23600. 0, 0, 0, 0),
  23601. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  23602. 0, 0, 0, 0),
  23603. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  23604. 0, 0, 0, 0),
  23605. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  23606. 0, 0, 0, 0),
  23607. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  23608. 0, 0, 0, 0),
  23609. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  23610. 0, 0, 0, 0),
  23611. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  23612. 0, 0, 0, 0),
  23613. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  23614. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  23615. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  23616. 0, 0, 0, 0),
  23617. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  23618. 0, 0, 0, 0),
  23619. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  23620. 0, 0, 0, 0),
  23621. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  23622. 0, 0, 0, 0),
  23623. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  23624. 0, 0, 0, 0),
  23625. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  23626. 0, 0, 0, 0),
  23627. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  23628. 0, 0, 0, 0),
  23629. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  23630. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  23631. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  23632. 0, 0, 0, 0),
  23633. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  23634. 0, 0, 0, 0),
  23635. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  23636. 0, 0, 0, 0),
  23637. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  23638. 0, 0, 0, 0),
  23639. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  23640. 0, 0, 0, 0),
  23641. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  23642. 0, 0, 0, 0),
  23643. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  23644. 0, 0, 0, 0),
  23645. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  23646. 0, 0, 0, 0),
  23647. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  23648. 0, 0, 0, 0),
  23649. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  23650. 0, 0, 0, 0),
  23651. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  23652. 0, 0, 0, 0),
  23653. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  23654. 0, 0, 0, 0),
  23655. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  23656. 0, 0, 0, 0),
  23657. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  23658. 0, 0, 0, 0),
  23659. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  23660. 0, 0, 0, 0),
  23661. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  23662. 0, 0, 0, 0),
  23663. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  23664. 0, 0, 0, 0),
  23665. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  23666. 0, 0, 0, 0),
  23667. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  23668. 0, 0, 0, 0),
  23669. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  23670. 0, 0, 0, 0),
  23671. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  23672. 0, 0, 0, 0),
  23673. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  23674. 0, 0, 0, 0),
  23675. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  23676. 0, 0, 0, 0),
  23677. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  23678. 0, 0, 0, 0),
  23679. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  23680. 0, 0, 0, 0),
  23681. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  23682. 0, 0, 0, 0),
  23683. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  23684. 0, 0, 0, 0),
  23685. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  23686. 0, 0, 0, 0),
  23687. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  23688. 0, 0, 0, 0),
  23689. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  23690. 0, 0, 0, 0),
  23691. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  23692. 0, 0, 0, 0),
  23693. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  23694. 0, 0, 0, 0),
  23695. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  23696. 0, 0, 0, 0),
  23697. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  23698. 0, 0, 0, 0),
  23699. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  23700. 0, 0, 0, 0),
  23701. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  23702. 0, 0, 0, 0),
  23703. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  23704. 0, 0, 0, 0),
  23705. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  23706. 0, 0, 0, 0),
  23707. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  23708. 0, 0, 0, 0),
  23709. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  23710. 0, 0, 0, 0),
  23711. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  23712. 0, 0, 0, 0),
  23713. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  23714. 0, 0, 0, 0),
  23715. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  23716. 0, 0, 0, 0),
  23717. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  23718. 0, 0, 0, 0),
  23719. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  23720. 0, 0, 0, 0),
  23721. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  23722. 0, 0, 0, 0),
  23723. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  23724. 0, 0, 0, 0),
  23725. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  23726. 0, 0, 0, 0),
  23727. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  23728. 0, 0, 0, 0),
  23729. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  23730. 0, 0, 0, 0),
  23731. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  23732. 0, 0, 0, 0),
  23733. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  23734. 0, 0, 0, 0),
  23735. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  23736. 0, 0, 0, 0),
  23737. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  23738. 0, 0, 0, 0),
  23739. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  23740. 0, 0, 0, 0),
  23741. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  23742. 0, 0, 0, 0),
  23743. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  23744. 0, 0, 0, 0),
  23745. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  23746. 0, 0, 0, 0),
  23747. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  23748. 0, 0, 0, 0),
  23749. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  23750. 0, 0, 0, 0),
  23751. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  23752. 0, 0, 0, 0),
  23753. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  23754. 0, 0, 0, 0),
  23755. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  23756. 0, 0, 0, 0),
  23757. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  23758. 0, 0, 0, 0),
  23759. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  23760. 0, 0, 0, 0),
  23761. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  23762. 0, 0, 0, 0),
  23763. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  23764. 0, 0, 0, 0),
  23765. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  23766. 0, 0, 0, 0),
  23767. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  23768. 0, 0, 0, 0),
  23769. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  23770. 0, 0, 0, 0),
  23771. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  23772. 0, 0, 0, 0),
  23773. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  23774. 0, 0, 0, 0),
  23775. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  23776. 0, 0, 0, 0),
  23777. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  23778. 0, 0, 0, 0),
  23779. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  23780. 0, 0, 0, 0),
  23781. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  23782. 0, 0, 0, 0),
  23783. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  23784. 0, 0, 0, 0),
  23785. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  23786. 0, 0, 0, 0),
  23787. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  23788. 0, 0, 0, 0),
  23789. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  23790. 0, 0, 0, 0),
  23791. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  23792. 0, 0, 0, 0),
  23793. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  23794. 0, 0, 0, 0),
  23795. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  23796. 0, 0, 0, 0),
  23797. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  23798. 0, 0, 0, 0),
  23799. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  23800. 0, 0, 0, 0),
  23801. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  23802. 0, 0, 0, 0),
  23803. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  23804. 0, 0, 0, 0),
  23805. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  23806. 0, 0, 0, 0),
  23807. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  23808. 0, 0, 0, 0),
  23809. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  23810. 0, 0, 0, 0),
  23811. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  23812. 0, 0, 0, 0),
  23813. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  23814. 0, 0, 0, 0),
  23815. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  23816. 0, 0, 0, 0),
  23817. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  23818. 0, 0, 0, 0),
  23819. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  23820. 0, 0, 0, 0),
  23821. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  23822. 0, 0, 0, 0),
  23823. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  23824. 0, 0, 0, 0),
  23825. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  23826. 0, 0, 0, 0),
  23827. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  23828. 0, 0, 0, 0),
  23829. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  23830. 0, 0, 0, 0),
  23831. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  23832. 0, 0, 0, 0),
  23833. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  23834. 0, 0, 0, 0),
  23835. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  23836. 0, 0, 0, 0),
  23837. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  23838. 0, 0, 0, 0),
  23839. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  23840. 0, 0, 0, 0),
  23841. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  23842. 0, 0, 0, 0),
  23843. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  23844. 0, 0, 0, 0),
  23845. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  23846. 0, 0, 0, 0),
  23847. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  23848. 0, 0, 0, 0),
  23849. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  23850. 0, 0, 0, 0),
  23851. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  23852. 0, 0, 0, 0),
  23853. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  23854. 0, 0, 0, 0),
  23855. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  23856. 0, 0, 0, 0),
  23857. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  23858. 0, 0, 0, 0),
  23859. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  23860. 0, 0, 0, 0),
  23861. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  23862. 0, 0, 0, 0),
  23863. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  23864. 0, 0, 0, 0),
  23865. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  23866. 0, 0, 0, 0),
  23867. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  23868. 0, 0, 0, 0),
  23869. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  23870. 0, 0, 0, 0),
  23871. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  23872. 0, 0, 0, 0),
  23873. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  23874. 0, 0, 0, 0),
  23875. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  23876. 0, 0, 0, 0),
  23877. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  23878. 0, 0, 0, 0),
  23879. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  23880. 0, 0, 0, 0),
  23881. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  23882. 0, 0, 0, 0),
  23883. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  23884. 0, 0, 0, 0),
  23885. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  23886. 0, 0, 0, 0),
  23887. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  23888. 0, 0, 0, 0),
  23889. /* incall */
  23890. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  23891. 0, 0, 0, 0),
  23892. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  23893. 0, 0, 0, 0),
  23894. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  23895. 0, 0, 0, 0),
  23896. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  23897. 0, 0, 0, 0),
  23898. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  23899. 0, 0, 0, 0),
  23900. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  23901. 0, 0, 0, 0),
  23902. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  23903. 0, 0, 0, 0),
  23904. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  23905. 0, 0, 0, 0),
  23906. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  23907. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  23908. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  23909. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  23910. 0, 0, 0, 0),
  23911. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  23912. 0, 0, 0, 0),
  23913. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  23914. 0, 0, 0, 0),
  23915. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  23916. 0, 0, 0, 0),
  23917. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  23918. 0, 0, 0, 0),
  23919. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  23920. 0, 0, 0, 0),
  23921. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  23922. 0, 0, 0, 0),
  23923. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  23924. 0, 0, 0, 0),
  23925. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  23926. 0, 0, 0, 0),
  23927. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  23928. 0, 0, 0, 0),
  23929. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  23930. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  23931. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  23932. 0, 0, 0, 0),
  23933. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  23934. 0, 0, 0, 0),
  23935. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  23936. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  23937. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  23938. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  23939. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  23940. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  23941. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  23942. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  23943. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  23944. /* In- call recording */
  23945. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  23946. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  23947. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  23948. 0, 0, 0, 0),
  23949. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  23950. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  23951. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  23952. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  23953. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  23954. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  23955. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  23956. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  23957. SND_SOC_DAPM_AIF_OUT("PROXY_RX", "Proxy Playback", 0, 0, 0, 0),
  23958. SND_SOC_DAPM_AIF_IN("PROXY_TX", "Proxy Capture", 0, 0, 0, 0),
  23959. /* Switch Definitions */
  23960. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  23961. &slim_fm_switch_mixer_controls),
  23962. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  23963. &slim1_fm_switch_mixer_controls),
  23964. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  23965. &slim3_fm_switch_mixer_controls),
  23966. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  23967. &slim4_fm_switch_mixer_controls),
  23968. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  23969. &slim6_fm_switch_mixer_controls),
  23970. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23971. &pcm_rx_switch_mixer_controls),
  23972. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23973. &int0_mi2s_rx_switch_mixer_controls),
  23974. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23975. &int4_mi2s_rx_switch_mixer_controls),
  23976. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23977. &pri_mi2s_rx_switch_mixer_controls),
  23978. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23979. &sec_mi2s_rx_switch_mixer_controls),
  23980. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23981. &tert_mi2s_rx_switch_mixer_controls),
  23982. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23983. &quat_mi2s_rx_switch_mixer_controls),
  23984. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23985. &quin_mi2s_rx_switch_mixer_controls),
  23986. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  23987. &sco_slim7_switch_mixer_controls),
  23988. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23989. &sen_mi2s_rx_switch_mixer_controls),
  23990. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23991. &hfp_pri_aux_switch_mixer_controls),
  23992. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23993. &hfp_aux_switch_mixer_controls),
  23994. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  23995. &hfp_int_switch_mixer_controls),
  23996. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23997. &hfp_slim7_switch_mixer_controls),
  23998. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  23999. &usb_switch_mixer_controls),
  24000. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  24001. &a2dp_slim7_switch_mixer_controls),
  24002. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  24003. &cdc_dma_wsa_switch_mixer_controls),
  24004. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  24005. &cdc_dma_rx_switch_mixer_controls),
  24006. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_1_DL_HL", SND_SOC_NOPM, 0, 0,
  24007. &cdc_dma_rx_1_switch_mixer_controls),
  24008. /* Mixer definitions */
  24009. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24010. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  24011. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24012. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  24013. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24014. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  24015. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24016. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  24017. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24018. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  24019. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24020. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  24021. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24022. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  24023. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  24024. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  24025. SND_SOC_DAPM_MIXER("HDMI_MS Mixer", SND_SOC_NOPM, 0, 0,
  24026. hdmi_ms_mixer_controls, ARRAY_SIZE(hdmi_ms_mixer_controls)),
  24027. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  24028. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  24029. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  24030. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  24031. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24032. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  24033. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24034. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  24035. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24036. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  24037. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24038. quaternary_mi2s_rx_mixer_controls,
  24039. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  24040. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24041. tertiary_mi2s_rx_mixer_controls,
  24042. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  24043. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24044. secondary_mi2s_rx_mixer_controls,
  24045. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  24046. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24047. secondary_mi2s_rx2_mixer_controls,
  24048. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  24049. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24050. primary_mi2s_rx_mixer_controls,
  24051. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  24052. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24053. int0_mi2s_rx_mixer_controls,
  24054. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  24055. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24056. int4_mi2s_rx_mixer_controls,
  24057. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  24058. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24059. quinary_mi2s_rx_mixer_controls,
  24060. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  24061. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24062. senary_mi2s_rx_mixer_controls,
  24063. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  24064. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24065. pri_tdm_rx_0_mixer_controls,
  24066. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  24067. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24068. pri_tdm_rx_1_mixer_controls,
  24069. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  24070. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24071. pri_tdm_rx_2_mixer_controls,
  24072. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  24073. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24074. pri_tdm_rx_3_mixer_controls,
  24075. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  24076. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24077. pri_tdm_tx_0_mixer_controls,
  24078. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  24079. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24080. sec_tdm_rx_0_mixer_controls,
  24081. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  24082. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24083. sec_tdm_rx_1_mixer_controls,
  24084. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  24085. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24086. sec_tdm_rx_2_mixer_controls,
  24087. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  24088. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24089. sec_tdm_rx_3_mixer_controls,
  24090. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  24091. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24092. sec_tdm_tx_0_mixer_controls,
  24093. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  24094. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24095. tert_tdm_rx_0_mixer_controls,
  24096. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  24097. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24098. tert_tdm_tx_0_mixer_controls,
  24099. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  24100. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24101. tert_tdm_rx_1_mixer_controls,
  24102. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  24103. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24104. tert_tdm_rx_2_mixer_controls,
  24105. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  24106. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24107. tert_tdm_rx_3_mixer_controls,
  24108. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  24109. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24110. tert_tdm_rx_4_mixer_controls,
  24111. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  24112. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24113. quat_tdm_rx_0_mixer_controls,
  24114. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  24115. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24116. quat_tdm_tx_0_mixer_controls,
  24117. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  24118. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24119. quat_tdm_rx_1_mixer_controls,
  24120. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  24121. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24122. quat_tdm_rx_2_mixer_controls,
  24123. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  24124. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24125. quat_tdm_rx_3_mixer_controls,
  24126. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  24127. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24128. quin_tdm_rx_0_mixer_controls,
  24129. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  24130. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24131. quin_tdm_tx_0_mixer_controls,
  24132. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  24133. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24134. quin_tdm_rx_1_mixer_controls,
  24135. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  24136. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24137. quin_tdm_tx_1_mixer_controls,
  24138. ARRAY_SIZE(quin_tdm_tx_1_mixer_controls)),
  24139. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24140. quin_tdm_rx_2_mixer_controls,
  24141. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  24142. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24143. quin_tdm_tx_2_mixer_controls,
  24144. ARRAY_SIZE(quin_tdm_tx_2_mixer_controls)),
  24145. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24146. quin_tdm_rx_3_mixer_controls,
  24147. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  24148. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24149. quin_tdm_tx_3_mixer_controls,
  24150. ARRAY_SIZE(quin_tdm_tx_3_mixer_controls)),
  24151. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24152. sen_tdm_tx_0_mixer_controls,
  24153. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  24154. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24155. sen_tdm_rx_0_mixer_controls,
  24156. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  24157. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24158. sen_tdm_rx_1_mixer_controls,
  24159. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  24160. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24161. sen_tdm_rx_2_mixer_controls,
  24162. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  24163. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24164. sen_tdm_rx_3_mixer_controls,
  24165. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  24166. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24167. pri_meta_mi2s_rx_mixer_controls,
  24168. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  24169. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24170. sec_meta_mi2s_rx_mixer_controls,
  24171. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  24172. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24173. wsa_cdc_dma_rx_0_mixer_controls,
  24174. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  24175. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24176. wsa_cdc_dma_rx_1_mixer_controls,
  24177. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  24178. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24179. rx_cdc_dma_rx_0_mixer_controls,
  24180. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  24181. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24182. rx_cdc_dma_rx_1_mixer_controls,
  24183. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  24184. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24185. rx_cdc_dma_rx_2_mixer_controls,
  24186. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  24187. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24188. rx_cdc_dma_rx_3_mixer_controls,
  24189. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  24190. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24191. rx_cdc_dma_rx_4_mixer_controls,
  24192. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  24193. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24194. rx_cdc_dma_rx_5_mixer_controls,
  24195. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  24196. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24197. rx_cdc_dma_rx_6_mixer_controls,
  24198. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  24199. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24200. rx_cdc_dma_rx_7_mixer_controls,
  24201. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  24202. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  24203. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  24204. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  24205. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  24206. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  24207. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  24208. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  24209. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  24210. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  24211. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  24212. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  24213. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  24214. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  24215. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  24216. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  24217. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  24218. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  24219. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  24220. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  24221. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  24222. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  24223. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  24224. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  24225. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  24226. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  24227. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  24228. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  24229. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  24230. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  24231. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  24232. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  24233. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  24234. SND_SOC_DAPM_MIXER("MultiMedia23 Mixer", SND_SOC_NOPM, 0, 0,
  24235. mmul23_mixer_controls, ARRAY_SIZE(mmul23_mixer_controls)),
  24236. SND_SOC_DAPM_MIXER("MultiMedia24 Mixer", SND_SOC_NOPM, 0, 0,
  24237. mmul24_mixer_controls, ARRAY_SIZE(mmul24_mixer_controls)),
  24238. SND_SOC_DAPM_MIXER("MultiMedia25 Mixer", SND_SOC_NOPM, 0, 0,
  24239. mmul25_mixer_controls, ARRAY_SIZE(mmul25_mixer_controls)),
  24240. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  24241. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  24242. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  24243. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  24244. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  24245. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  24246. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  24247. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  24248. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24249. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  24250. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24251. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  24252. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24253. tert_auxpcm_rx_mixer_controls,
  24254. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  24255. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24256. quat_auxpcm_rx_mixer_controls,
  24257. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  24258. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24259. quin_auxpcm_rx_mixer_controls,
  24260. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  24261. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24262. sen_auxpcm_rx_mixer_controls,
  24263. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  24264. /* incall */
  24265. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  24266. incall_music_delivery_mixer_controls,
  24267. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  24268. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24269. incall_music2_delivery_mixer_controls,
  24270. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  24271. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24272. slimbus_4_rx_mixer_controls,
  24273. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  24274. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24275. slimbus_6_rx_mixer_controls,
  24276. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  24277. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24278. usb_audio_rx_mixer_controls,
  24279. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  24280. /* Voice Mixer */
  24281. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  24282. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  24283. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  24284. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  24285. SND_SOC_NOPM, 0, 0,
  24286. sec_i2s_rx_voice_mixer_controls,
  24287. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  24288. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  24289. SND_SOC_NOPM, 0, 0,
  24290. sec_mi2s_rx_voice_mixer_controls,
  24291. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  24292. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  24293. SND_SOC_NOPM, 0, 0,
  24294. slimbus_rx_voice_mixer_controls,
  24295. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  24296. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  24297. SND_SOC_NOPM, 0, 0,
  24298. bt_sco_rx_voice_mixer_controls,
  24299. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  24300. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  24301. SND_SOC_NOPM, 0, 0,
  24302. afe_pcm_rx_voice_mixer_controls,
  24303. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  24304. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  24305. SND_SOC_NOPM, 0, 0,
  24306. aux_pcm_rx_voice_mixer_controls,
  24307. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  24308. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  24309. SND_SOC_NOPM, 0, 0,
  24310. sec_aux_pcm_rx_voice_mixer_controls,
  24311. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  24312. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  24313. SND_SOC_NOPM, 0, 0,
  24314. tert_aux_pcm_rx_voice_mixer_controls,
  24315. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  24316. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  24317. SND_SOC_NOPM, 0, 0,
  24318. quat_aux_pcm_rx_voice_mixer_controls,
  24319. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  24320. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  24321. SND_SOC_NOPM, 0, 0,
  24322. quin_aux_pcm_rx_voice_mixer_controls,
  24323. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  24324. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  24325. SND_SOC_NOPM, 0, 0,
  24326. sen_aux_pcm_rx_voice_mixer_controls,
  24327. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  24328. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  24329. SND_SOC_NOPM, 0, 0,
  24330. hdmi_rx_voice_mixer_controls,
  24331. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  24332. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  24333. SND_SOC_NOPM, 0, 0,
  24334. mi2s_rx_voice_mixer_controls,
  24335. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  24336. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  24337. SND_SOC_NOPM, 0, 0,
  24338. pri_mi2s_rx_voice_mixer_controls,
  24339. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  24340. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  24341. SND_SOC_NOPM, 0, 0,
  24342. int0_mi2s_rx_voice_mixer_controls,
  24343. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  24344. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  24345. SND_SOC_NOPM, 0, 0,
  24346. int4_mi2s_rx_voice_mixer_controls,
  24347. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  24348. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  24349. SND_SOC_NOPM, 0, 0,
  24350. tert_mi2s_rx_voice_mixer_controls,
  24351. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  24352. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  24353. SND_SOC_NOPM, 0, 0,
  24354. quat_mi2s_rx_voice_mixer_controls,
  24355. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  24356. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  24357. SND_SOC_NOPM, 0, 0,
  24358. quin_mi2s_rx_voice_mixer_controls,
  24359. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  24360. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  24361. SND_SOC_NOPM, 0, 0,
  24362. pri_tdm_rx_0_voice_mixer_controls,
  24363. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  24364. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  24365. SND_SOC_NOPM, 0, 0,
  24366. pri_tdm_rx_1_voice_mixer_controls,
  24367. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  24368. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  24369. SND_SOC_NOPM, 0, 0,
  24370. pri_tdm_rx_2_voice_mixer_controls,
  24371. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  24372. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  24373. SND_SOC_NOPM, 0, 0,
  24374. pri_tdm_rx_3_voice_mixer_controls,
  24375. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  24376. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  24377. SND_SOC_NOPM, 0, 0,
  24378. sen_mi2s_rx_voice_mixer_controls,
  24379. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  24380. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  24381. SND_SOC_NOPM, 0, 0,
  24382. quat_tdm_rx_2_voice_mixer_controls,
  24383. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  24384. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2_Voice Mixer",
  24385. SND_SOC_NOPM, 0, 0,
  24386. quin_tdm_rx_2_voice_mixer_controls,
  24387. ARRAY_SIZE(quin_tdm_rx_2_voice_mixer_controls)),
  24388. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  24389. SND_SOC_NOPM, 0, 0,
  24390. wsa_cdc_dma_rx_0_voice_mixer_controls,
  24391. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  24392. SND_SOC_DAPM_MIXER("PROXY_RX_Voice Mixer",
  24393. SND_SOC_NOPM, 0, 0,
  24394. proxy_rx_voice_mixer_controls,
  24395. ARRAY_SIZE(proxy_rx_voice_mixer_controls)),
  24396. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  24397. SND_SOC_NOPM, 0, 0,
  24398. rx_cdc_dma_rx_0_voice_mixer_controls,
  24399. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  24400. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1_Voice Mixer",
  24401. SND_SOC_NOPM, 0, 0,
  24402. rx_cdc_dma_rx_1_voice_mixer_controls,
  24403. ARRAY_SIZE(rx_cdc_dma_rx_1_voice_mixer_controls)),
  24404. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  24405. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  24406. ARRAY_SIZE(tx_voip_mixer_controls)),
  24407. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  24408. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  24409. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  24410. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  24411. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  24412. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  24413. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24414. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  24415. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24416. int_bt_a2dp_rx_mixer_controls,
  24417. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  24418. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24419. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  24420. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24421. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  24422. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24423. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  24424. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24425. tx_voice2_stub_mixer_controls,
  24426. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  24427. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24428. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  24429. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  24430. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  24431. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  24432. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  24433. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24434. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  24435. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  24436. SND_SOC_NOPM, 0, 0,
  24437. slimbus_6_rx_voice_mixer_controls,
  24438. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  24439. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24440. slimbus_7_rx_voice_mixer_controls,
  24441. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  24442. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24443. slimbus_8_rx_voice_mixer_controls,
  24444. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  24445. /* port mixer */
  24446. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  24447. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  24448. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  24449. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  24450. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  24451. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  24452. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  24453. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  24454. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  24455. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  24456. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  24457. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  24458. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  24459. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  24460. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  24461. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  24462. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  24463. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  24464. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  24465. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  24466. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  24467. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24468. sbus_1_rx_port_mixer_controls,
  24469. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  24470. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24471. bt_sco_rx_port_mixer_controls,
  24472. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  24473. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  24474. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  24475. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  24476. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  24477. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  24478. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  24479. SND_SOC_DAPM_MIXER("HDMI_RX_MS Port Mixer",
  24480. SND_SOC_NOPM, 0, 0, hdmi_rx_ms_port_mixer_controls,
  24481. ARRAY_SIZE(hdmi_rx_ms_port_mixer_controls)),
  24482. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  24483. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  24484. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  24485. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  24486. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  24487. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  24488. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  24489. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  24490. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  24491. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  24492. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  24493. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  24494. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  24495. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  24496. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  24497. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24498. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  24499. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24500. primary_mi2s_rx_port_mixer_controls,
  24501. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  24502. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24503. sec_mi2s_rx_port_mixer_controls,
  24504. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  24505. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24506. tert_mi2s_rx_port_mixer_controls,
  24507. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  24508. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24509. quat_mi2s_rx_port_mixer_controls,
  24510. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  24511. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24512. quin_mi2s_rx_port_mixer_controls,
  24513. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  24514. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24515. sen_mi2s_rx_port_mixer_controls,
  24516. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  24517. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24518. pri_tdm_rx_0_port_mixer_controls,
  24519. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  24520. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24521. pri_tdm_rx_1_port_mixer_controls,
  24522. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  24523. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24524. pri_tdm_rx_2_port_mixer_controls,
  24525. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  24526. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24527. pri_tdm_rx_3_port_mixer_controls,
  24528. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  24529. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24530. sec_tdm_rx_0_port_mixer_controls,
  24531. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  24532. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24533. sec_tdm_rx_1_port_mixer_controls,
  24534. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  24535. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24536. sec_tdm_rx_2_port_mixer_controls,
  24537. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  24538. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24539. sec_tdm_rx_3_port_mixer_controls,
  24540. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  24541. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24542. sec_tdm_rx_7_port_mixer_controls,
  24543. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  24544. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24545. tert_tdm_rx_0_port_mixer_controls,
  24546. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  24547. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24548. tert_tdm_rx_1_port_mixer_controls,
  24549. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  24550. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24551. tert_tdm_rx_2_port_mixer_controls,
  24552. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  24553. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24554. tert_tdm_rx_3_port_mixer_controls,
  24555. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  24556. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24557. quat_tdm_rx_0_port_mixer_controls,
  24558. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  24559. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24560. quat_tdm_rx_1_port_mixer_controls,
  24561. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  24562. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24563. quat_tdm_rx_2_port_mixer_controls,
  24564. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  24565. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24566. quat_tdm_rx_3_port_mixer_controls,
  24567. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  24568. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24569. quat_tdm_rx_7_port_mixer_controls,
  24570. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  24571. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24572. quin_tdm_rx_0_port_mixer_controls,
  24573. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  24574. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24575. quin_tdm_rx_1_port_mixer_controls,
  24576. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  24577. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24578. quin_tdm_rx_2_port_mixer_controls,
  24579. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  24580. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24581. quin_tdm_rx_3_port_mixer_controls,
  24582. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  24583. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24584. quin_tdm_rx_7_port_mixer_controls,
  24585. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  24586. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24587. sen_tdm_rx_0_port_mixer_controls,
  24588. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  24589. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24590. sen_tdm_rx_1_port_mixer_controls,
  24591. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  24592. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24593. sen_tdm_rx_2_port_mixer_controls,
  24594. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  24595. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24596. sen_tdm_rx_3_port_mixer_controls,
  24597. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  24598. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24599. int0_mi2s_rx_port_mixer_controls,
  24600. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  24601. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24602. int4_mi2s_rx_port_mixer_controls,
  24603. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  24604. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24605. wsa_cdc_dma_rx_0_port_mixer_controls,
  24606. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  24607. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24608. rx_cdc_dma_rx_0_port_mixer_controls,
  24609. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  24610. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24611. rx_cdc_dma_rx_1_port_mixer_controls,
  24612. ARRAY_SIZE(rx_cdc_dma_rx_1_port_mixer_controls)),
  24613. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  24614. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  24615. ARRAY_SIZE(tx_qchat_mixer_controls)),
  24616. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  24617. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  24618. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  24619. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  24620. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  24621. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  24622. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  24623. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  24624. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  24625. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  24626. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  24627. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  24628. /* lsm mixer definitions */
  24629. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  24630. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  24631. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  24632. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  24633. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  24634. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  24635. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  24636. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  24637. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  24638. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  24639. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  24640. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  24641. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  24642. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  24643. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  24644. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  24645. /* Virtual Pins to force backends ON atm */
  24646. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  24647. SND_SOC_DAPM_INPUT("BE_IN"),
  24648. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24649. &slim0_rx_vi_fb_lch_mux),
  24650. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24651. &slim0_rx_vi_fb_rch_mux),
  24652. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24653. &wsa_rx_0_vi_fb_lch_mux),
  24654. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24655. &wsa_rx_0_vi_fb_rch_mux),
  24656. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  24657. &mi2s_rx_vi_fb_mux),
  24658. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24659. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  24660. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24661. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  24662. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  24663. &voc_ext_ec_mux),
  24664. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  24665. &ext_ec_ref_mux_ul1),
  24666. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  24667. &ext_ec_ref_mux_ul2),
  24668. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  24669. &ext_ec_ref_mux_ul3),
  24670. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  24671. &ext_ec_ref_mux_ul4),
  24672. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  24673. &ext_ec_ref_mux_ul5),
  24674. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  24675. &ext_ec_ref_mux_ul6),
  24676. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  24677. &ext_ec_ref_mux_ul8),
  24678. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  24679. &ext_ec_ref_mux_ul9),
  24680. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  24681. &ext_ec_ref_mux_ul10),
  24682. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  24683. &ext_ec_ref_mux_ul16),
  24684. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  24685. &ext_ec_ref_mux_ul17),
  24686. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  24687. &ext_ec_ref_mux_ul18),
  24688. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  24689. &ext_ec_ref_mux_ul19),
  24690. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  24691. &ext_ec_ref_mux_ul28),
  24692. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  24693. &ext_ec_ref_mux_ul29),
  24694. };
  24695. static const struct snd_soc_dapm_route intercon[] = {
  24696. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24697. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24698. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24699. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24700. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24701. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24702. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24703. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24704. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24705. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24706. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24707. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24708. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24709. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24710. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24711. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24712. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24713. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  24714. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24715. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24716. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24717. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24718. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24719. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24720. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24721. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24722. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24723. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24724. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24725. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24726. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24727. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24728. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24729. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24730. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24731. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  24732. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24733. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24734. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24735. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24736. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24737. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24738. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24739. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24740. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24741. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24742. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24743. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24744. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24745. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24746. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24747. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24748. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24749. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  24750. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24751. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24752. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24753. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24754. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24755. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24756. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24757. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24758. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24759. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24760. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24761. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24762. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24763. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24764. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24765. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24766. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24767. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  24768. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24769. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24770. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24771. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24772. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24773. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24774. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24775. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24776. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24777. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24778. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24779. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24780. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24781. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24782. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24783. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24784. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24785. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  24786. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24787. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24788. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24789. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24790. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24791. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24792. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24793. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24794. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24795. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24796. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24797. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24798. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24799. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24800. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24801. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24802. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24803. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24804. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24805. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  24806. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24807. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24808. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24809. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24810. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24811. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24812. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24813. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24814. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24815. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24816. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24817. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24818. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24819. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24820. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24821. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24822. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24823. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24824. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24825. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  24826. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24827. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24828. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24829. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24830. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24831. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24832. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24833. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24834. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24835. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24836. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24837. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24838. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24839. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24840. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24841. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24842. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24843. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24844. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24845. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  24846. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24847. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24848. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24849. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24850. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24851. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24852. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24853. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24854. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24855. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24856. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24857. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24858. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24859. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24860. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24861. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24862. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24863. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24864. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24865. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  24866. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24867. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24868. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24869. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24870. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24871. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24872. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24873. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24874. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24875. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24876. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24877. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24878. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24879. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24880. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24881. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24882. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24883. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24884. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24885. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  24886. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24887. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24888. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24889. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24890. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24891. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24892. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24893. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24894. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24895. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24896. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24897. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24898. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24899. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24900. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24901. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24902. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24903. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24904. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24905. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  24906. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24907. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24908. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24909. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24910. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24911. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24912. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24913. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24914. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24915. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24916. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24917. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24918. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24919. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24920. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24921. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24922. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24923. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24924. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24925. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  24926. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24927. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24928. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24929. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24930. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24931. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24932. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24933. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24934. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24935. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24936. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24937. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24938. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24939. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24940. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24941. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24942. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24943. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24944. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24945. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  24946. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24947. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24948. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24949. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24950. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24951. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24952. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24953. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24954. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24955. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24956. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24957. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24958. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24959. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24960. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24961. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24962. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24963. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24964. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24965. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  24966. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24967. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24968. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24969. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24970. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24971. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24972. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24973. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24974. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24975. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24976. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24977. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24978. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24979. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24980. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24981. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24982. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24983. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24984. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24985. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  24986. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  24987. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  24988. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  24989. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  24990. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  24991. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  24992. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  24993. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  24994. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  24995. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  24996. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  24997. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  24998. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  24999. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  25000. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  25001. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  25002. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  25003. {"HDMI", NULL, "HDMI Mixer"},
  25004. {"HDMI_MS Mixer", "MultiMedia1", "MM_DL1"},
  25005. {"HDMI_MS Mixer", "MultiMedia2", "MM_DL2"},
  25006. {"HDMI_MS Mixer", "MultiMedia3", "MM_DL3"},
  25007. {"HDMI_MS Mixer", "MultiMedia4", "MM_DL4"},
  25008. {"HDMI_MS Mixer", "MultiMedia5", "MM_DL5"},
  25009. {"HDMI_MS Mixer", "MultiMedia6", "MM_DL6"},
  25010. {"HDMI_MS Mixer", "MultiMedia7", "MM_DL7"},
  25011. {"HDMI_MS Mixer", "MultiMedia8", "MM_DL8"},
  25012. {"HDMI_MS Mixer", "MultiMedia9", "MM_DL9"},
  25013. {"HDMI_MS Mixer", "MultiMedia10", "MM_DL10"},
  25014. {"HDMI_MS Mixer", "MultiMedia11", "MM_DL11"},
  25015. {"HDMI_MS Mixer", "MultiMedia12", "MM_DL12"},
  25016. {"HDMI_MS Mixer", "MultiMedia13", "MM_DL13"},
  25017. {"HDMI_MS Mixer", "MultiMedia14", "MM_DL14"},
  25018. {"HDMI_MS Mixer", "MultiMedia15", "MM_DL15"},
  25019. {"HDMI_MS Mixer", "MultiMedia16", "MM_DL16"},
  25020. {"HDMI_MS Mixer", "MultiMedia26", "MM_DL26"},
  25021. {"HDMI_MS", NULL, "HDMI_MS Mixer"},
  25022. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  25023. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  25024. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  25025. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  25026. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  25027. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  25028. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  25029. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  25030. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  25031. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  25032. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  25033. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  25034. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  25035. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  25036. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  25037. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  25038. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  25039. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  25040. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  25041. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  25042. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  25043. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  25044. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  25045. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  25046. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  25047. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  25048. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  25049. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  25050. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  25051. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  25052. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  25053. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  25054. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  25055. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  25056. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  25057. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  25058. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25059. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25060. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25061. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25062. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25063. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25064. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25065. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25066. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25067. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25068. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25069. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25070. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25071. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25072. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25073. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25074. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25075. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  25076. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25077. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25078. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25079. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25080. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25081. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25082. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25083. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25084. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25085. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25086. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25087. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25088. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25089. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25090. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25091. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25092. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25093. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  25094. /* incall */
  25095. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  25096. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  25097. {"Incall_Music Audio Mixer", "MultiMedia4", "MM_DL4"},
  25098. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  25099. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  25100. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  25101. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25102. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25103. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25104. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25105. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  25106. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25107. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25108. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25109. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25110. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  25111. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25112. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25113. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25114. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25115. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25116. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25117. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25118. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25119. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25120. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25121. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25122. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25123. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25124. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25125. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25126. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25127. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25128. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  25129. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25130. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25131. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25132. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25133. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25134. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25135. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25136. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25137. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25138. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25139. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25140. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25141. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25142. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25143. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25144. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25145. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25146. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  25147. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25148. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25149. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25150. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25151. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25152. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25153. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25154. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25155. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25156. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25157. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25158. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25159. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25160. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25161. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25162. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25163. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25164. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  25165. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25166. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25167. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25168. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25169. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25170. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25171. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25172. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25173. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25174. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25175. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25176. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25177. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25178. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25179. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25180. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25181. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25182. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  25183. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25184. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25185. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25186. {"MultiMedia9 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25187. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25188. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25189. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25190. {"MultiMedia9 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25191. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  25192. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25193. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25194. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25195. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25196. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25197. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25198. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25199. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25200. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25201. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25202. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25203. {"MultiMedia17 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25204. {"MultiMedia17 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25205. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25206. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25207. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25208. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25209. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25210. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25211. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25212. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25213. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25214. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25215. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25216. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25217. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25218. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25219. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25220. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25221. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25222. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25223. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25224. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25225. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25226. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25227. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25228. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25229. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25230. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25231. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25232. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25233. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25234. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25235. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25236. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25237. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25238. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25239. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25240. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25241. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25242. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25243. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25244. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25245. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25246. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25247. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25248. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25249. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25250. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25251. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25252. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25253. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25254. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25255. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25256. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25257. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25258. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25259. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25260. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25261. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25262. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25263. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25264. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25265. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25266. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25267. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25268. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25269. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25270. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25271. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25272. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25273. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25274. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25275. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25276. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25277. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25278. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25279. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25280. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25281. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25282. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25283. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25284. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  25285. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25286. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25287. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25288. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25289. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25290. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25291. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25292. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25293. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25294. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25295. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25296. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25297. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25298. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25299. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25300. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25301. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25302. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  25303. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25304. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25305. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25306. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25307. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25308. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25309. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25310. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25311. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25312. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25313. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25314. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25315. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25316. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25317. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25318. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  25319. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25320. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25321. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25322. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25323. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25324. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25325. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25326. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25327. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25328. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25329. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25330. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25331. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25332. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25333. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25334. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  25335. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25336. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  25337. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25338. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25339. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25340. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25341. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25342. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25343. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25344. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25345. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25346. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25347. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25348. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25349. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25350. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25351. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25352. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25353. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25354. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25355. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25356. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  25357. {"PRI_MI2S_RX Audio Mixer", "DTMF", "DTMF_DL_HL"},
  25358. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25359. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25360. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25361. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25362. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25363. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25364. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25365. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25366. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25367. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25368. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25369. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25370. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25371. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25372. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25373. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  25374. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25375. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25376. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25377. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25378. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25379. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25380. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25381. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25382. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25383. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25384. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25385. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25386. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25387. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25388. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25389. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  25390. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25391. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25392. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25393. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25394. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25395. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25396. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25397. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25398. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25399. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25400. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25401. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25402. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25403. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25404. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25405. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25406. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25407. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  25408. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25409. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25410. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25411. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25412. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25413. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25414. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25415. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25416. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25417. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25418. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25419. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25420. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25421. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25422. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25423. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  25424. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25425. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25426. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25427. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25428. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25429. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25430. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25431. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25432. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25433. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25434. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25435. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25436. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25437. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25438. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25439. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25440. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25441. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  25442. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25443. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25444. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25445. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25446. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25447. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25448. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25449. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25450. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25451. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25452. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25453. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25454. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25455. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25456. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25457. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25458. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25459. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  25460. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25461. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25462. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25463. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25464. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25465. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25466. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25467. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25468. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25469. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25470. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25471. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25472. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25473. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25474. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25475. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25476. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25477. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25478. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25479. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25480. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25481. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  25482. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25483. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25484. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25485. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25486. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25487. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25488. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25489. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25490. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25491. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25492. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25493. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25494. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25495. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25496. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25497. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25498. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25499. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25500. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25501. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25502. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25503. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  25504. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25505. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25506. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25507. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25508. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25509. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25510. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25511. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25512. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25513. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25514. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25515. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25516. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25517. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25518. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25519. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25520. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25521. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25522. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25523. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25524. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25525. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  25526. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25527. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25528. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25529. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25530. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25531. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25532. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25533. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25534. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25535. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25536. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25537. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25538. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25539. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25540. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25541. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25542. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25543. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25544. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25545. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25546. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25547. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  25548. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25549. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25550. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25551. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25552. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25553. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25554. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25555. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25556. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25557. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25558. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25559. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25560. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25561. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25562. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25563. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25564. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25565. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25566. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25567. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  25568. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25569. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25570. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25571. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25572. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25573. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25574. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25575. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25576. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25577. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25578. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25579. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25580. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25581. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25582. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25583. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25584. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25585. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25586. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25587. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25588. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25589. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  25590. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25591. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25592. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25593. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25594. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25595. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25596. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25597. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25598. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25599. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25600. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25601. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25602. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25603. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25604. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25605. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25606. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25607. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25608. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25609. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25610. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25611. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  25612. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25613. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25614. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25615. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25616. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25617. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25618. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25619. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25620. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25621. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25622. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25623. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25624. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25625. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25626. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25627. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25628. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25629. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25630. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25631. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25632. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25633. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  25634. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25635. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25636. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25637. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25638. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25639. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25640. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25641. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25642. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25643. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25644. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25645. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25646. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25647. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25648. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25649. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25650. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25651. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25652. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25653. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25654. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25655. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  25656. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25657. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25658. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25659. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25660. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25661. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25662. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25663. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25664. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25665. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25666. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25667. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25668. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25669. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25670. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25671. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25672. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25673. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25674. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25675. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  25676. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25677. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25678. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25679. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25680. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25681. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25682. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25683. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25684. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25685. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25686. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25687. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25688. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25689. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25690. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25691. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25692. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25693. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25694. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25695. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25696. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25697. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  25698. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25699. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25700. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25701. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25702. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25703. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25704. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25705. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25706. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25707. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25708. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25709. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25710. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25711. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25712. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25713. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25714. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25715. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25716. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25717. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  25718. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25719. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25720. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25721. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25722. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25723. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25724. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25725. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25726. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25727. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25728. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25729. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25730. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25731. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25732. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25733. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25734. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25735. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25736. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25737. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25738. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25739. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  25740. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25741. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25742. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25743. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25744. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25745. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25746. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25747. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25748. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25749. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25750. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25751. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25752. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25753. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25754. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25755. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25756. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25757. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25758. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25759. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25760. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25761. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  25762. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25763. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25764. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25765. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25766. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25767. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25768. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25769. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25770. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25771. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25772. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25773. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25774. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25775. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25776. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25777. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25778. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25779. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25780. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25781. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25782. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25783. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  25784. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25785. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25786. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25787. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25788. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25789. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25790. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25791. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25792. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25793. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25794. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25795. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25796. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25797. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25798. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25799. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25800. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25801. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25802. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25803. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25804. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25805. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  25806. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25807. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25808. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25809. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25810. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25811. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25812. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25813. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25814. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25815. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25816. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25817. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25818. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25819. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25820. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25821. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25822. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25823. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25824. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25825. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25826. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25827. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25828. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  25829. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25830. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25831. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25832. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25833. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25834. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25835. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25836. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25837. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25838. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25839. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25840. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25841. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25842. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25843. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25844. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25845. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25846. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25847. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25848. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  25849. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25850. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25851. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25852. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25853. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25854. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25855. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25856. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25857. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25858. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25859. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25860. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25861. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25862. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25863. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25864. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25865. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25866. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25867. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25868. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25869. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25870. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25871. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  25872. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25873. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25874. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25875. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25876. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25877. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25878. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25879. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25880. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25881. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25882. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25883. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25884. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25885. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25886. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25887. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25888. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25889. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25890. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25891. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25892. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25893. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25894. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  25895. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25896. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25897. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25898. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25899. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25900. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25901. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25902. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25903. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25904. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25905. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25906. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25907. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25908. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25909. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25910. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25911. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25912. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25913. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25914. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25915. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25916. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25917. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  25918. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25919. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25920. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25921. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25922. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25923. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25924. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25925. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25926. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25927. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25928. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25929. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25930. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25931. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25932. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25933. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25934. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25935. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25936. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25937. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25938. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25939. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25940. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  25941. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25942. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25943. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25944. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25945. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25946. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25947. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25948. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25949. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25950. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25951. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25952. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25953. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25954. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25955. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25956. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25957. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25958. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25959. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25960. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  25961. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25962. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25963. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25964. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25965. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25966. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25967. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25968. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25969. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25970. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25971. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25972. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25973. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25974. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25975. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25976. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25977. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25978. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25979. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25980. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25981. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25982. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25983. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  25984. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25985. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25986. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25987. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25988. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25989. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25990. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25991. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25992. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25993. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25994. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25995. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25996. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25997. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25998. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25999. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26000. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26001. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26002. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26003. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26004. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26005. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26006. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  26007. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26008. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26009. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26010. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26011. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26012. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26013. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26014. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26015. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26016. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26017. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26018. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26019. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26020. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26021. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26022. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26023. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26024. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26025. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26026. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26027. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26028. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26029. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  26030. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26031. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26032. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26033. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26034. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26035. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26036. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26037. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26038. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26039. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26040. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26041. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26042. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26043. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26044. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26045. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26046. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26047. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26048. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  26049. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26050. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26051. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26052. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26053. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26054. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26055. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26056. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26057. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26058. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26059. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26060. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26061. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26062. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26063. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26064. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26065. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  26066. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26067. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26068. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26069. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26070. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26071. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26072. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26073. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26074. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26075. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26076. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26077. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26078. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26079. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26080. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26081. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26082. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26083. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26084. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  26085. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26086. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26087. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26088. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26089. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26090. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26091. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26092. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26093. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26094. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26095. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26096. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26097. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26098. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26099. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26100. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26101. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26102. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26103. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  26104. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26105. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26106. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26107. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26108. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26109. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26110. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26111. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26112. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26113. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26114. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26115. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26116. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26117. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26118. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26119. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26120. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26121. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26122. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  26123. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  26124. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  26125. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  26126. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  26127. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  26128. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  26129. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  26130. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26131. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26132. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26133. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26134. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26135. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26136. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26137. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26138. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26139. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26140. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26141. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26142. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26143. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26144. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26145. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26146. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  26147. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26148. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  26149. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26150. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26151. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26152. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26153. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26154. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  26155. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26156. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26157. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  26158. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  26159. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  26160. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26161. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  26162. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  26163. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  26164. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  26165. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26166. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  26167. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  26168. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26169. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  26170. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  26171. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26172. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  26173. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26174. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26175. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26176. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26177. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26178. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26179. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26180. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26181. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26182. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26183. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26184. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26185. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26186. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26187. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26188. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26189. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26190. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26191. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26192. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26193. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26194. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26195. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26196. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26197. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26198. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26199. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26200. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26201. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26202. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26203. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26204. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26205. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26206. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26207. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26208. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26209. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26210. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26211. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26212. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26213. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26214. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26215. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26216. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26217. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26218. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26219. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26220. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26221. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26222. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26223. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26224. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26225. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26226. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26227. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26228. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26229. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26230. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26231. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26232. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26233. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26234. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26235. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26236. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26237. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26238. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26239. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26240. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26241. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26242. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26243. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26244. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26245. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26246. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26247. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26248. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26249. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26250. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26251. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26252. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26253. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26254. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26255. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26256. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26257. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26258. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26259. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26260. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26261. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26262. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26263. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26264. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26265. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26266. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26267. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26268. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26269. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26270. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26271. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26272. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26273. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26274. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26275. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26276. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26277. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26278. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26279. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26280. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26281. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26282. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26283. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26284. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26285. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26286. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26287. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26288. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26289. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26290. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26291. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26292. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26293. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26294. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26295. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26296. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26297. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26298. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26299. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26300. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26301. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26302. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26303. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26304. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26305. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26306. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26307. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26308. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26309. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26310. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26311. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26312. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26313. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26314. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26315. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26316. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26317. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26318. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26319. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26320. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26321. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26322. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26323. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26324. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26325. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26326. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26327. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26328. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26329. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26330. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26331. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26332. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26333. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26334. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26335. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26336. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26337. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26338. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26339. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26340. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26341. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26342. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26343. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26344. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26345. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26346. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26347. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26348. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26349. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26350. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26351. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26352. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26353. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26354. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26355. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26356. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26357. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26358. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26359. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26360. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26361. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26362. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26363. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26364. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26365. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26366. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26367. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26368. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26369. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26370. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26371. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26372. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26373. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26374. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26375. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26376. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26377. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26378. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26379. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26380. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26381. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26382. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26383. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26384. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26385. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26386. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26387. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26388. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26389. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26390. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26391. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26392. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26393. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26394. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26395. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26396. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26397. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26398. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26399. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26400. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26401. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26402. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26403. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26404. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26405. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26406. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26407. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26408. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26409. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26410. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26411. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26412. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26413. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26414. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26415. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26416. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26417. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26418. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26419. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26420. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26421. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26422. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26423. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26424. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26425. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26426. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26427. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26428. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26429. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26430. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26431. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26432. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26433. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26434. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26435. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26436. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26437. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26438. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26439. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26440. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26441. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26442. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26443. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26444. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26445. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26446. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26447. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26448. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26449. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26450. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26451. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26452. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26453. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26454. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26455. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26456. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26457. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26458. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26459. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26460. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26461. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26462. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26463. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26464. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26465. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26466. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26467. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26468. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26469. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26470. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26471. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26472. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26473. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26474. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26475. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26476. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26477. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26478. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26479. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26480. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26481. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26482. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26483. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26484. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26485. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26486. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26487. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26488. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26489. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26490. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26491. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26492. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26493. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26494. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26495. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26496. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26497. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26498. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26499. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26500. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26501. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26502. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26503. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26504. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26505. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26506. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26507. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26508. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26509. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26510. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26511. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26512. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26513. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26514. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26515. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26516. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26517. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26518. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26519. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26520. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26521. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26522. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26523. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26524. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26525. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26526. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26527. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26528. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26529. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26530. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26531. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26532. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26533. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26534. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26535. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26536. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26537. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26538. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26539. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26540. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26541. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26542. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26543. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26544. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26545. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26546. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26547. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26548. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26549. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26550. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26551. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26552. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26553. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26554. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26555. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26556. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26557. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26558. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26559. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26560. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26561. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26562. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26563. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26564. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26565. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26566. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26567. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26568. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26569. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26570. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26571. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26572. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26573. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26574. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26575. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26576. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26577. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26578. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26579. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26580. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26581. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26582. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26583. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26584. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26585. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26586. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26587. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26588. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26589. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26590. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26591. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26592. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26593. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26594. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26595. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26596. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26597. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26598. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26599. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26600. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26601. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26602. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26603. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26604. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26605. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26606. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26607. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26608. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26609. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26610. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26611. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26612. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26613. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26614. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26615. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26616. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26617. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26618. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26619. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26620. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26621. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26622. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26623. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26624. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26625. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26626. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26627. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26628. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26629. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26630. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26631. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26632. {"MultiMedia23 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26633. {"MultiMedia23 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26634. {"MultiMedia23 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26635. {"MultiMedia23 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26636. {"MultiMedia23 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26637. {"MultiMedia23 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26638. {"MultiMedia23 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26639. {"MultiMedia23 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26640. {"MultiMedia23 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26641. {"MultiMedia23 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26642. {"MultiMedia23 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26643. {"MultiMedia23 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26644. {"MultiMedia23 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26645. {"MultiMedia23 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26646. {"MultiMedia23 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26647. {"MultiMedia23 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26648. {"MultiMedia23 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26649. {"MultiMedia23 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26650. {"MultiMedia23 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26651. {"MultiMedia23 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26652. {"MultiMedia24 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26653. {"MultiMedia24 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26654. {"MultiMedia24 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26655. {"MultiMedia24 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26656. {"MultiMedia24 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26657. {"MultiMedia24 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26658. {"MultiMedia24 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26659. {"MultiMedia24 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26660. {"MultiMedia24 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26661. {"MultiMedia24 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26662. {"MultiMedia24 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26663. {"MultiMedia24 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26664. {"MultiMedia24 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26665. {"MultiMedia24 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26666. {"MultiMedia24 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26667. {"MultiMedia24 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26668. {"MultiMedia24 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26669. {"MultiMedia24 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26670. {"MultiMedia24 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26671. {"MultiMedia24 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26672. {"MultiMedia25 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26673. {"MultiMedia25 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26674. {"MultiMedia25 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26675. {"MultiMedia25 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26676. {"MultiMedia25 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26677. {"MultiMedia25 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26678. {"MultiMedia25 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26679. {"MultiMedia25 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26680. {"MultiMedia25 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26681. {"MultiMedia25 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26682. {"MultiMedia25 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26683. {"MultiMedia25 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26684. {"MultiMedia25 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26685. {"MultiMedia25 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26686. {"MultiMedia25 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26687. {"MultiMedia25 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26688. {"MultiMedia25 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26689. {"MultiMedia25 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26690. {"MultiMedia25 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26691. {"MultiMedia25 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26692. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26693. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26694. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  26695. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26696. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26697. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26698. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26699. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26700. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26701. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26702. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26703. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26704. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26705. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26706. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26707. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26708. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26709. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26710. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26711. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26712. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26713. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26714. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26715. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26716. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26717. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26718. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26719. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26720. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26721. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26722. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26723. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26724. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26725. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26726. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26727. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26728. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26729. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26730. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26731. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26732. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26733. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26734. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26735. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26736. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26737. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26738. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26739. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26740. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26741. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26742. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26743. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26744. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26745. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26746. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26747. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26748. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26749. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26750. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26751. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26752. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26753. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26754. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26755. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26756. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26757. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26758. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26759. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26760. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26761. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26762. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26763. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26764. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26765. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26766. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26767. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26768. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26769. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26770. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26771. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26772. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26773. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26774. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26775. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26776. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26777. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26778. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26779. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26780. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26781. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26782. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26783. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26784. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26785. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26786. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26787. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26788. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26789. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26790. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26791. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26792. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26793. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26794. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26795. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26796. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26797. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26798. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26799. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26800. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26801. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26802. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26803. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26804. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26805. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26806. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26807. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26808. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26809. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26810. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26811. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26812. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26813. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26814. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  26815. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26816. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26817. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26818. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26819. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26820. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26821. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26822. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26823. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26824. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26825. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26826. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26827. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26828. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26829. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26830. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26831. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26832. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  26833. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26834. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26835. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26836. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26837. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26838. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26839. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26840. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26841. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26842. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26843. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26844. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26845. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26846. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26847. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26848. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26849. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  26850. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26851. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26852. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26853. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26854. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26855. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26856. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26857. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26858. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26859. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26860. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26861. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26862. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26863. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26864. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26865. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26866. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  26867. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26868. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26869. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26870. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26871. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26872. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26873. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26874. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26875. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26876. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26877. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26878. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26879. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26880. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26881. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26882. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26883. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26884. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26885. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26886. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26887. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26888. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26889. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26890. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26891. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26892. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26893. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26894. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26895. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26896. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26897. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26898. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26899. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26900. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26901. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26902. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26903. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26904. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26905. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  26906. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26907. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  26908. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  26909. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  26910. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  26911. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  26912. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  26913. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  26914. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  26915. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  26916. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  26917. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  26918. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  26919. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  26920. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  26921. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  26922. {"MM_UL24", NULL, "MultiMedia24 Mixer"},
  26923. {"MM_UL25", NULL, "MultiMedia25 Mixer"},
  26924. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  26925. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  26926. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  26927. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  26928. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26929. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26930. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26931. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26932. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26933. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26934. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26935. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26936. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26937. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26938. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26939. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26940. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26941. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26942. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26943. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26944. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26945. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  26946. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26947. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26948. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26949. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26950. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26951. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26952. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26953. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26954. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26955. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26956. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26957. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26958. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26959. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26960. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26961. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26962. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26963. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  26964. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26965. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26966. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26967. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26968. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26969. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26970. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26971. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26972. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26973. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26974. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26975. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26976. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26977. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26978. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26979. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26980. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  26981. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26982. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26983. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26984. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26985. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26986. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26987. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26988. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26989. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26990. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26991. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26992. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26993. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26994. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26995. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26996. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26997. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  26998. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26999. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  27000. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  27001. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  27002. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  27003. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  27004. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  27005. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  27006. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  27007. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  27008. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  27009. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  27010. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  27011. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  27012. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  27013. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  27014. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  27015. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  27016. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  27017. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  27018. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  27019. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  27020. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  27021. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  27022. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  27023. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  27024. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  27025. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  27026. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  27027. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  27028. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  27029. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  27030. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  27031. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  27032. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27033. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27034. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27035. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27036. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27037. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  27038. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27039. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27040. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27041. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  27042. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27043. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27044. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27045. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27046. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27047. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27048. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27049. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  27050. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27051. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27052. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27053. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27054. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27055. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  27056. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27057. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27058. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27059. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27060. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27061. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  27062. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27063. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27064. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27065. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27066. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27067. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  27068. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27069. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27070. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27071. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27072. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27073. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  27074. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  27075. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27076. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27077. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27078. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27079. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  27080. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27081. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27082. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27083. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27084. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27085. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  27086. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27087. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27088. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27089. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27090. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27091. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  27092. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27093. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27094. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27095. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27096. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27097. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  27098. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27099. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27100. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27101. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27102. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27103. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  27104. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27105. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27106. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27107. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27108. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27109. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  27110. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27111. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27112. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27113. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27114. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27115. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  27116. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27117. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27118. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27119. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27120. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27121. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  27122. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27123. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27124. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27125. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27126. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27127. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  27128. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27129. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27130. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27131. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27132. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27133. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  27134. {"HDMI", NULL, "HDMI_DL_HL"},
  27135. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27136. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27137. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27138. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27139. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27140. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27141. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27142. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  27143. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27144. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27145. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27146. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27147. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27148. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27149. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27150. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  27151. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27152. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27153. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27154. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27155. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27156. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  27157. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27158. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27159. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27160. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27161. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27162. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  27163. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27164. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27165. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27166. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27167. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27168. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27169. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27170. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  27171. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27172. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27173. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27174. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27175. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27176. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27177. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  27178. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27179. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27180. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27181. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27182. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27183. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27184. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  27185. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  27186. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27187. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27188. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27189. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27190. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27191. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27192. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27193. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  27194. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  27195. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27196. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27197. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27198. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27199. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27200. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27201. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27202. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  27203. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  27204. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27205. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27206. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27207. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27208. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27209. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27210. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27211. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  27212. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  27213. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27214. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27215. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27216. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27217. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27218. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27219. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27220. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  27221. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27222. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27223. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27224. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27225. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  27226. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27227. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  27228. {"QUIN_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27229. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_Voice Mixer"},
  27230. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  27231. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27232. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27233. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  27234. {"PROXY_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27235. {"PROXY_RX", NULL, "PROXY_RX_Voice Mixer"},
  27236. {"PROXY_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27237. {"PROXY_RX", NULL, "PROXY_RX_Voice Mixer"},
  27238. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  27239. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27240. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27241. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  27242. {"RX_CDC_DMA_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  27243. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27244. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27245. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_Voice Mixer"},
  27246. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27247. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27248. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27249. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27250. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27251. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27252. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  27253. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  27254. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  27255. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  27256. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  27257. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27258. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27259. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27260. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27261. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27262. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27263. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  27264. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  27265. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  27266. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27267. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  27268. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27269. {"AUDIO_REF_EC_UL1 MUX", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27270. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27271. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27272. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27273. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27274. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27275. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27276. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27277. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27278. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27279. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27280. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27281. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27282. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27283. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27284. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27285. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27286. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27287. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27288. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27289. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27290. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27291. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27292. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27293. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27294. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27295. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27296. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27297. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27298. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27299. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27300. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27301. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27302. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27303. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27304. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  27305. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  27306. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  27307. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27308. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  27309. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27310. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27311. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27312. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27313. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27314. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27315. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27316. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27317. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27318. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27319. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27320. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27321. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27322. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27323. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27324. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27325. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27326. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27327. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27328. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27329. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27330. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27331. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27332. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27333. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27334. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27335. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27336. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27337. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27338. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27339. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27340. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27341. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27342. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27343. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  27344. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  27345. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  27346. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  27347. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  27348. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  27349. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  27350. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  27351. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  27352. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  27353. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  27354. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  27355. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  27356. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  27357. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  27358. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  27359. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  27360. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  27361. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  27362. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  27363. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  27364. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  27365. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  27366. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  27367. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  27368. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  27369. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  27370. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  27371. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  27372. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  27373. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  27374. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  27375. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  27376. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  27377. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  27378. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  27379. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  27380. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  27381. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  27382. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  27383. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  27384. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  27385. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  27386. {"VoiceMMode1_Tx Mixer", "PROXY_TX_MMode1", "PROXY_TX"},
  27387. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  27388. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  27389. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  27390. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  27391. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  27392. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  27393. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  27394. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  27395. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  27396. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  27397. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  27398. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  27399. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  27400. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  27401. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  27402. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  27403. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  27404. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  27405. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  27406. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  27407. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  27408. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  27409. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  27410. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  27411. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  27412. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  27413. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  27414. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  27415. {"VoiceMMode2_Tx Mixer", "PROXY_TX_MMode2", "PROXY_TX"},
  27416. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  27417. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  27418. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  27419. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  27420. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  27421. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  27422. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  27423. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  27424. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  27425. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  27426. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  27427. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  27428. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  27429. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  27430. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  27431. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  27432. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  27433. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  27434. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  27435. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  27436. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  27437. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  27438. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  27439. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  27440. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  27441. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  27442. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  27443. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  27444. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  27445. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  27446. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  27447. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  27448. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  27449. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  27450. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  27451. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  27452. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  27453. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  27454. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  27455. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  27456. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  27457. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  27458. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  27459. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  27460. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27461. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  27462. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  27463. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27464. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  27465. {"RX_CDC_DMA_RX_1_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27466. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_DL_HL"},
  27467. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  27468. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27469. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27470. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27471. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27472. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27473. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27474. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27475. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27476. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27477. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27478. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27479. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27480. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27481. {"LSM1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27482. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  27483. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27484. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27485. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27486. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27487. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27488. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27489. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27490. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27491. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27492. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27493. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27494. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27495. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27496. {"LSM2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27497. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  27498. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27499. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27500. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27501. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27502. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27503. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27504. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27505. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27506. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27507. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27508. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27509. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27510. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27511. {"LSM3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27512. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  27513. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27514. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27515. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27516. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27517. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27518. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27519. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27520. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27521. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27522. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27523. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27524. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27525. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27526. {"LSM4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27527. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  27528. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27529. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27530. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27531. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27532. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27533. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27534. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27535. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27536. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27537. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27538. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27539. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27540. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27541. {"LSM5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27542. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  27543. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27544. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27545. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27546. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27547. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27548. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27549. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27550. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27551. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27552. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27553. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27554. {"LSM6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27555. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  27556. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27557. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27558. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27559. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27560. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27561. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27562. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27563. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27564. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27565. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27566. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27567. {"LSM7 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27568. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  27569. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27570. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27571. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27572. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27573. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27574. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27575. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27576. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27577. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27578. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27579. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27580. {"LSM8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27581. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  27582. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  27583. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  27584. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  27585. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  27586. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  27587. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  27588. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  27589. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  27590. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  27591. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  27592. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  27593. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  27594. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  27595. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  27596. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  27597. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  27598. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  27599. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  27600. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  27601. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  27602. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  27603. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  27604. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  27605. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  27606. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  27607. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  27608. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  27609. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  27610. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27611. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  27612. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  27613. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  27614. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27615. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  27616. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  27617. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  27618. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  27619. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  27620. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  27621. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  27622. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  27623. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27624. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  27625. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27626. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  27627. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  27628. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  27629. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  27630. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  27631. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  27632. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  27633. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  27634. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  27635. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  27636. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  27637. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  27638. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  27639. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27640. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  27641. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27642. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  27643. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  27644. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  27645. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  27646. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  27647. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  27648. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  27649. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  27650. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  27651. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  27652. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  27653. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  27654. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  27655. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  27656. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  27657. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  27658. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  27659. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  27660. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  27661. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  27662. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  27663. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  27664. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  27665. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  27666. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  27667. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  27668. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  27669. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  27670. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  27671. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  27672. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  27673. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  27674. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  27675. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  27676. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  27677. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  27678. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  27679. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  27680. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  27681. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  27682. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  27683. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  27684. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  27685. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  27686. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  27687. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  27688. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  27689. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  27690. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  27691. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  27692. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  27693. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  27694. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  27695. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  27696. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  27697. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  27698. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  27699. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  27700. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  27701. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  27702. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  27703. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27704. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27705. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27706. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27707. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27708. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27709. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27710. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27711. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27712. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27713. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27714. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27715. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27716. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27717. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27718. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27719. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27720. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27721. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27722. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27723. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27724. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27725. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27726. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27727. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  27728. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27729. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27730. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27731. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27732. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27733. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27734. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27735. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27736. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27737. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27738. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27739. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27740. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27741. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27742. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27743. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27744. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27745. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27746. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27747. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27748. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27749. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27750. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27751. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27752. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  27753. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27754. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27755. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27756. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27757. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27758. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27759. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27760. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27761. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27762. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27763. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27764. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27765. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27766. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27767. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27768. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27769. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27770. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27771. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27772. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27773. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27774. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27775. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27776. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27777. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  27778. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27779. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27780. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27781. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27782. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27783. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27784. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27785. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27786. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27787. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27788. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27789. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27790. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27791. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27792. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27793. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27794. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27795. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27796. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27797. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27798. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27799. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27800. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27801. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27802. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  27803. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27804. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27805. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27806. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27807. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27808. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27809. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27810. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27811. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27812. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27813. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27814. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27815. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27816. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27817. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27818. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27819. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27820. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27821. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27822. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27823. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27824. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27825. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27826. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27827. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  27828. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27829. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27830. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27831. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27832. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27833. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27834. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27835. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27836. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27837. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27838. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27839. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27840. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27841. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27842. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27843. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27844. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27845. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27846. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27847. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27848. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27849. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27850. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27851. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27852. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  27853. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27854. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27855. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27856. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27857. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27858. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27859. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27860. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27861. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27862. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27863. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27864. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27865. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27866. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27867. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27868. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27869. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27870. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27871. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27872. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27873. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27874. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27875. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27876. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27877. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  27878. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27879. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27880. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27881. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27882. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27883. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27884. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27885. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27886. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27887. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27888. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27889. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27890. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27891. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27892. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27893. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27894. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27895. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27896. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27897. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27898. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27899. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27900. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27901. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27902. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  27903. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  27904. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  27905. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27906. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27907. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27908. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27909. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27910. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27911. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27912. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27913. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27914. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27915. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27916. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27917. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27918. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27919. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27920. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27921. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27922. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27923. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27924. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27925. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27926. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27927. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27928. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27929. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  27930. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27931. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27932. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27933. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27934. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27935. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27936. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27937. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27938. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27939. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27940. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27941. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27942. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27943. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27944. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27945. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27946. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27947. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27948. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27949. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27950. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27951. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27952. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27953. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27954. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  27955. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27956. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27957. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27958. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27959. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27960. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27961. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27962. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27963. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27964. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27965. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27966. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27967. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27968. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27969. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27970. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27971. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27972. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27973. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27974. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27975. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27976. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27977. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27978. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27979. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  27980. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27981. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27982. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27983. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27984. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27985. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27986. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27987. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27988. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27989. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27990. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27991. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27992. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27993. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27994. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27995. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27996. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27997. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27998. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27999. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28000. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28001. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28002. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28003. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28004. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  28005. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28006. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28007. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28008. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28009. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28010. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28011. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28012. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28013. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28014. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28015. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28016. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28017. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28018. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28019. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28020. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28021. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28022. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28023. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28024. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28025. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28026. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28027. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28028. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28029. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  28030. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28031. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28032. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28033. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28034. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28035. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28036. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28037. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28038. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28039. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28040. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28041. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28042. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28043. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28044. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28045. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28046. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28047. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28048. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28049. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28050. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28051. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28052. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28053. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28054. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  28055. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28056. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28057. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28058. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28059. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28060. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28061. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28062. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28063. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28064. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28065. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28066. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28067. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28068. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28069. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28070. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28071. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28072. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28073. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28074. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28075. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28076. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28077. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28078. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28079. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  28080. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28081. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28082. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28083. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28084. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28085. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28086. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28087. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28088. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28089. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28090. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28091. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28092. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28093. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28094. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28095. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28096. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28097. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28098. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28099. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28100. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28101. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28102. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28103. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28104. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  28105. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  28106. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  28107. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  28108. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28109. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28110. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28111. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28112. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28113. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28114. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28115. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28116. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28117. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28118. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28119. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28120. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28121. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28122. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28123. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28124. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28125. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28126. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28127. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28128. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28129. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28130. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28131. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28132. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  28133. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28134. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28135. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28136. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28137. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28138. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28139. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28140. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28141. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28142. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28143. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28144. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28145. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28146. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28147. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28148. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28149. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28150. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28151. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28152. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28153. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28154. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28155. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28156. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28157. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  28158. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28159. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28160. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28161. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28162. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28163. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28164. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28165. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28166. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28167. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28168. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28169. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28170. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28171. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28172. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28173. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28174. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28175. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28176. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28177. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28178. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28179. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28180. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28181. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28182. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  28183. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28184. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28185. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28186. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28187. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28188. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28189. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28190. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28191. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28192. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28193. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28194. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28195. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28196. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28197. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28198. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28199. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28200. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28201. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28202. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28203. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28204. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28205. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28206. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28207. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  28208. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  28209. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  28210. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  28211. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  28212. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28213. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28214. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28215. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28216. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28217. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28218. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28219. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28220. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28221. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28222. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28223. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28224. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28225. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28226. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28227. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28228. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28229. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28230. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28231. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28232. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  28233. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28234. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28235. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28236. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28237. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28238. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28239. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28240. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28241. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28242. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28243. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28244. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28245. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28246. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28247. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28248. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28249. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28250. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28251. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28252. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28253. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  28254. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28255. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28256. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28257. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28258. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28259. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28260. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28261. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28262. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28263. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28264. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28265. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28266. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28267. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28268. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28269. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28270. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28271. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28272. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28273. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28274. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  28275. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28276. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28277. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28278. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28279. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28280. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28281. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28282. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28283. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28284. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28285. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28286. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28287. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28288. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28289. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28290. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28291. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28292. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28293. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28294. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28295. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  28296. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28297. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28298. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28299. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28300. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28301. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28302. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28303. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28304. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28305. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28306. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28307. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28308. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  28309. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28310. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28311. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28312. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28313. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28314. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28315. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28316. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28317. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28318. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28319. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28320. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28321. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  28322. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  28323. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28324. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28325. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28326. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  28327. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28328. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28329. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28330. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  28331. {"RX_CDC_DMA_RX_1 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  28332. {"RX_CDC_DMA_RX_1 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28333. {"RX_CDC_DMA_RX_1 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28334. {"RX_CDC_DMA_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28335. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Port Mixer"},
  28336. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28337. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28338. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28339. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28340. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28341. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28342. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28343. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28344. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28345. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28346. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28347. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  28348. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28349. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28350. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28351. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28352. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28353. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28354. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28355. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28356. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  28357. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28358. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28359. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  28360. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  28361. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  28362. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  28363. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  28364. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  28365. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28366. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28367. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28368. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28369. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28370. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28371. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28372. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  28373. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28374. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28375. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28376. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28377. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  28378. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28379. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28380. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28381. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  28382. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28383. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28384. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28385. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  28386. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28387. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28388. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28389. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  28390. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28391. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28392. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28393. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28394. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28395. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28396. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28397. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28398. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28399. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  28400. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  28401. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28402. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28403. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28404. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28405. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28406. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28407. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28408. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28409. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28410. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  28411. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28412. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28413. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28414. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28415. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28416. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28417. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28418. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28419. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28420. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28421. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28422. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  28423. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28424. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28425. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28426. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28427. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28428. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28429. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28430. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28431. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28432. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28433. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28434. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28435. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  28436. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28437. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28438. {"STUB_RX", NULL, "STUB_RX Mixer"},
  28439. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28440. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28441. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  28442. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28443. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28444. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  28445. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28446. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28447. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28448. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28449. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28450. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  28451. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28452. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28453. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28454. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28455. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28456. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  28457. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28458. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28459. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28460. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  28461. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28462. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28463. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  28464. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  28465. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28466. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  28467. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  28468. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  28469. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  28470. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28471. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28472. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28473. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28474. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28475. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28476. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28477. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28478. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28479. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28480. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28481. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28482. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28483. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  28484. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28485. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  28486. {"HDMI_RX_MS Port Mixer", "MI2S_TX", "MI2S_TX"},
  28487. {"HDMI_MS", NULL, "HDMI_RX_MS Port Mixer"},
  28488. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28489. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  28490. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  28491. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  28492. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28493. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  28494. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28495. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28496. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  28497. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28498. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28499. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28500. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28501. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28502. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28503. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28504. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28505. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28506. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28507. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28508. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  28509. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28510. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28511. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28512. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28513. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28514. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28515. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28516. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28517. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28518. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28519. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  28520. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28521. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28522. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28523. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28524. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28525. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28526. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28527. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28528. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  28529. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28530. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28531. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28532. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28533. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28534. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28535. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28536. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28537. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28538. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28539. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  28540. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28541. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28542. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28543. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28544. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28545. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28546. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28547. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28548. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  28549. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28550. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28551. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28552. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28553. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28554. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28555. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28556. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  28557. /* Backend Enablement */
  28558. {"BE_OUT", NULL, "PRI_I2S_RX"},
  28559. {"BE_OUT", NULL, "SEC_I2S_RX"},
  28560. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  28561. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  28562. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  28563. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28564. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  28565. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  28566. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  28567. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  28568. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  28569. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  28570. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  28571. {"BE_OUT", NULL, "HDMI"},
  28572. {"BE_OUT", NULL, "HDMI_MS"},
  28573. {"BE_OUT", NULL, "DISPLAY_PORT"},
  28574. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  28575. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  28576. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  28577. {"BE_OUT", NULL, "MI2S_RX"},
  28578. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  28579. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  28580. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  28581. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  28582. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  28583. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  28584. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  28585. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  28586. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  28587. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  28588. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  28589. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  28590. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28591. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  28592. {"BE_OUT", NULL, "INT_FM_RX"},
  28593. {"BE_OUT", NULL, "PCM_RX"},
  28594. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28595. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28596. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  28597. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  28598. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  28599. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  28600. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  28601. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28602. {"BE_OUT", NULL, "INT_FM_RX"},
  28603. {"BE_OUT", NULL, "PCM_RX"},
  28604. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28605. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  28606. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  28607. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  28608. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  28609. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  28610. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  28611. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  28612. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  28613. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  28614. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  28615. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  28616. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  28617. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  28618. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  28619. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  28620. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  28621. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  28622. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  28623. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  28624. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  28625. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  28626. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  28627. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  28628. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  28629. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  28630. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  28631. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  28632. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  28633. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  28634. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  28635. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  28636. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  28637. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  28638. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  28639. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  28640. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  28641. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  28642. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  28643. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  28644. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  28645. {"BE_OUT", NULL, "PROXY_RX"},
  28646. {"PRI_I2S_TX", NULL, "BE_IN"},
  28647. {"MI2S_TX", NULL, "BE_IN"},
  28648. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  28649. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  28650. {"PRI_MI2S_TX", NULL, "BE_IN"},
  28651. {"TERT_MI2S_TX", NULL, "BE_IN"},
  28652. {"INT0_MI2S_TX", NULL, "BE_IN"},
  28653. {"INT2_MI2S_TX", NULL, "BE_IN"},
  28654. {"INT3_MI2S_TX", NULL, "BE_IN"},
  28655. {"INT4_MI2S_TX", NULL, "BE_IN"},
  28656. {"INT5_MI2S_TX", NULL, "BE_IN"},
  28657. {"SEC_MI2S_TX", NULL, "BE_IN"},
  28658. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  28659. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  28660. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  28661. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  28662. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  28663. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  28664. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  28665. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  28666. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  28667. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  28668. {"USB_AUDIO_TX", NULL, "BE_IN" },
  28669. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  28670. {"INT_FM_TX", NULL, "BE_IN"},
  28671. {"PCM_TX", NULL, "BE_IN"},
  28672. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28673. {"BE_OUT", NULL, "STUB_RX"},
  28674. {"STUB_TX", NULL, "BE_IN"},
  28675. {"STUB_1_TX", NULL, "BE_IN"},
  28676. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28677. {"AUX_PCM_TX", NULL, "BE_IN"},
  28678. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  28679. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  28680. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  28681. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  28682. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  28683. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  28684. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  28685. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28686. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28687. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28688. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28689. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  28690. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28691. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28692. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  28693. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  28694. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  28695. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  28696. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  28697. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  28698. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  28699. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  28700. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  28701. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  28702. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  28703. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  28704. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  28705. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  28706. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  28707. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  28708. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  28709. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  28710. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  28711. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  28712. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  28713. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  28714. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  28715. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  28716. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  28717. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  28718. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  28719. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  28720. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  28721. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  28722. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  28723. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  28724. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  28725. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  28726. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  28727. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28728. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28729. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28730. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28731. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28732. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28733. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  28734. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  28735. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  28736. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  28737. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  28738. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  28739. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  28740. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  28741. {"PROXY_TX", NULL, "BE_IN"},
  28742. };
  28743. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  28744. struct snd_pcm_hw_params *params)
  28745. {
  28746. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28747. unsigned int be_id = rtd->dai_link->id;
  28748. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28749. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28750. return -EINVAL;
  28751. }
  28752. mutex_lock(&routing_lock);
  28753. msm_bedais[be_id].sample_rate = params_rate(params);
  28754. msm_bedais[be_id].channel = params_channels(params);
  28755. msm_bedais[be_id].format = params_format(params);
  28756. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  28757. __func__, msm_bedais[be_id].sample_rate,
  28758. msm_bedais[be_id].format, be_id);
  28759. mutex_unlock(&routing_lock);
  28760. return 0;
  28761. }
  28762. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  28763. {
  28764. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28765. unsigned int be_id = rtd->dai_link->id;
  28766. int i, session_type, path_type, topology;
  28767. struct msm_pcm_routing_bdai_data *bedai;
  28768. struct msm_pcm_routing_fdai_data *fdai;
  28769. pr_debug("%s: substream->pcm->id:%s\n",
  28770. __func__, substream->pcm->id);
  28771. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28772. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28773. return -EINVAL;
  28774. }
  28775. bedai = &msm_bedais[be_id];
  28776. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  28777. 0 : 1);
  28778. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28779. path_type = ADM_PATH_PLAYBACK;
  28780. else
  28781. path_type = ADM_PATH_LIVE_REC;
  28782. mutex_lock(&routing_lock);
  28783. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28784. if (!is_mm_lsm_fe_id(i))
  28785. continue;
  28786. fdai = &fe_dai_map[i][session_type];
  28787. if (fdai->strm_id != INVALID_SESSION) {
  28788. int idx;
  28789. int port_id;
  28790. unsigned long copp =
  28791. session_copp_map[i][session_type][be_id];
  28792. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  28793. if (test_bit(idx, &copp))
  28794. break;
  28795. if (idx >= MAX_COPPS_PER_PORT) {
  28796. pr_debug("%s: copp idx is invalid, exiting\n",
  28797. __func__);
  28798. continue;
  28799. }
  28800. fdai->be_srate = bedai->sample_rate;
  28801. port_id = get_port_id(bedai->port_id);
  28802. topology = adm_get_topology_for_port_copp_idx(port_id,
  28803. idx);
  28804. msm_routing_unload_topology(topology);
  28805. adm_close(port_id, fdai->perf_mode, idx);
  28806. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  28807. __func__, copp, i, session_type, be_id,
  28808. topology);
  28809. clear_bit(idx,
  28810. &session_copp_map[i][session_type][be_id]);
  28811. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28812. (fdai->passthr_mode == LEGACY_PCM))
  28813. msm_pcm_routing_deinit_pp(port_id,
  28814. topology);
  28815. }
  28816. }
  28817. bedai->active = 0;
  28818. bedai->sample_rate = 0;
  28819. bedai->channel = 0;
  28820. mutex_unlock(&routing_lock);
  28821. return 0;
  28822. }
  28823. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  28824. {
  28825. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28826. unsigned int be_id = rtd->dai_link->id;
  28827. int i, path_type, topology;
  28828. int session_type = INVALID_SESSION;
  28829. struct msm_pcm_routing_bdai_data *bedai;
  28830. u32 channels, sample_rate;
  28831. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  28832. struct msm_pcm_routing_fdai_data *fdai;
  28833. u32 session_id;
  28834. struct media_format_info voc_be_media_format;
  28835. bool is_lsm;
  28836. pr_debug("%s: substream->pcm->id:%s\n",
  28837. __func__, substream->pcm->id);
  28838. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28839. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28840. return -EINVAL;
  28841. }
  28842. bedai = &msm_bedais[be_id];
  28843. mutex_lock(&routing_lock);
  28844. if (bedai->active == 1)
  28845. goto done; /* Ignore prepare if back-end already active */
  28846. /* AFE port is not active at this point. However, still
  28847. * go ahead setting active flag under the notion that
  28848. * QDSP6 is able to handle ADM starting before AFE port
  28849. * is started.
  28850. */
  28851. bedai->active = 1;
  28852. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28853. if (!(is_mm_lsm_fe_id(i) &&
  28854. route_check_fe_id_adm_support(i)))
  28855. continue;
  28856. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  28857. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28858. fdai = &fe_dai_map[i][session_type];
  28859. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  28860. if (fdai->passthr_mode != LEGACY_PCM)
  28861. path_type = ADM_PATH_COMPRESSED_RX;
  28862. else
  28863. path_type = ADM_PATH_PLAYBACK;
  28864. } else {
  28865. if ((fdai->passthr_mode != LEGACY_PCM) &&
  28866. (fdai->passthr_mode != LISTEN))
  28867. path_type = ADM_PATH_COMPRESSED_TX;
  28868. else
  28869. path_type = ADM_PATH_LIVE_REC;
  28870. }
  28871. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  28872. (i <= MSM_FRONTEND_DAI_LSM8);
  28873. if (fdai->strm_id != INVALID_SESSION) {
  28874. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  28875. int port_id = get_port_id(bedai->port_id);
  28876. if (session_type == SESSION_TYPE_TX &&
  28877. fdai->be_srate &&
  28878. (fdai->be_srate != bedai->sample_rate)) {
  28879. pr_debug("%s: flush strm %d diff BE rates\n",
  28880. __func__,
  28881. fdai->strm_id);
  28882. if (fdai->event_info.event_func)
  28883. fdai->event_info.event_func(
  28884. MSM_PCM_RT_EVT_BUF_RECFG,
  28885. fdai->event_info.priv_data);
  28886. fdai->be_srate = 0; /* might not need it */
  28887. }
  28888. bits_per_sample = msm_routing_get_bit_width(
  28889. bedai->format);
  28890. app_type =
  28891. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  28892. if (app_type && is_lsm) {
  28893. app_type_idx =
  28894. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  28895. sample_rate =
  28896. fe_dai_app_type_cfg[i][session_type][be_id]
  28897. .sample_rate;
  28898. bits_per_sample =
  28899. lsm_app_type_cfg[app_type_idx].bit_width;
  28900. } else if (app_type) {
  28901. app_type_idx =
  28902. msm_pcm_routing_get_app_type_idx(app_type);
  28903. sample_rate =
  28904. fe_dai_app_type_cfg[i][session_type]
  28905. [be_id].sample_rate;
  28906. bits_per_sample =
  28907. app_type_cfg[app_type_idx].bit_width;
  28908. } else
  28909. sample_rate = bedai->sample_rate;
  28910. /*
  28911. * check if ADM needs to be configured with different
  28912. * channel mapping than backend
  28913. */
  28914. if (!bedai->adm_override_ch)
  28915. channels = bedai->channel;
  28916. else
  28917. channels = bedai->adm_override_ch;
  28918. acdb_dev_id =
  28919. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  28920. topology = msm_routing_get_adm_topology(i, session_type,
  28921. be_id);
  28922. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  28923. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  28924. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  28925. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  28926. be_bit_width = msm_routing_get_bit_width(
  28927. bedai->format);
  28928. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  28929. || bedai->sample_rate == 352800) &&
  28930. be_bit_width == 32)
  28931. bits_per_sample = msm_routing_get_bit_width(
  28932. SNDRV_PCM_FORMAT_S32_LE);
  28933. copp_idx = adm_open(port_id, path_type,
  28934. sample_rate, channels, topology,
  28935. fdai->perf_mode, bits_per_sample,
  28936. app_type, acdb_dev_id,
  28937. session_type, fdai->passthr_mode);
  28938. if ((copp_idx < 0) ||
  28939. (copp_idx >= MAX_COPPS_PER_PORT)) {
  28940. pr_err("%s: adm open failed\n", __func__);
  28941. mutex_unlock(&routing_lock);
  28942. return -EINVAL;
  28943. }
  28944. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  28945. __func__, i, session_type, be_id);
  28946. set_bit(copp_idx,
  28947. &session_copp_map[i][session_type][be_id]);
  28948. if (msm_is_resample_needed(
  28949. sample_rate,
  28950. bedai->sample_rate))
  28951. adm_copp_mfc_cfg(port_id, copp_idx,
  28952. bedai->sample_rate);
  28953. msm_pcm_routing_build_matrix(i, session_type, path_type,
  28954. fdai->perf_mode, fdai->passthr_mode);
  28955. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28956. (fdai->passthr_mode == LEGACY_PCM))
  28957. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  28958. topology, channels);
  28959. }
  28960. }
  28961. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28962. session_id = msm_pcm_routing_get_voc_sessionid(i);
  28963. if (session_id) {
  28964. pr_debug("%s voice session_id: 0x%x\n", __func__,
  28965. session_id);
  28966. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28967. voc_path_type = RX_PATH;
  28968. else
  28969. voc_path_type = TX_PATH;
  28970. voc_set_route_flag(session_id, voc_path_type, 1);
  28971. memset(&voc_be_media_format, 0,
  28972. sizeof(struct media_format_info));
  28973. voc_be_media_format.port_id = bedai->port_id;
  28974. voc_be_media_format.num_channels = bedai->channel;
  28975. voc_be_media_format.sample_rate = bedai->sample_rate;
  28976. voc_be_media_format.bits_per_sample = bedai->format;
  28977. /* Defaulting this to 1 for voice call usecases */
  28978. voc_be_media_format.channel_mapping[0] = 1;
  28979. voc_set_device_config(session_id, voc_path_type,
  28980. &voc_be_media_format);
  28981. if (voc_get_route_flag(session_id, RX_PATH) &&
  28982. voc_get_route_flag(session_id, TX_PATH))
  28983. voc_enable_device(session_id);
  28984. }
  28985. }
  28986. /* Check if backend is an external ec ref port and set as needed */
  28987. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  28988. memset(&voc_be_media_format, 0,
  28989. sizeof(struct media_format_info));
  28990. /* Get format info for ec ref port from msm_bedais[] */
  28991. voc_be_media_format.port_id = bedai->port_id;
  28992. voc_be_media_format.num_channels = bedai->channel;
  28993. voc_be_media_format.bits_per_sample = bedai->format;
  28994. voc_be_media_format.sample_rate = bedai->sample_rate;
  28995. /* Defaulting this to 1 for voice call usecases */
  28996. voc_be_media_format.channel_mapping[0] = 1;
  28997. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  28998. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  28999. __func__, voc_be_media_format.port_id,
  29000. voc_be_media_format.num_channels,
  29001. voc_be_media_format.bits_per_sample,
  29002. voc_be_media_format.sample_rate);
  29003. }
  29004. done:
  29005. mutex_unlock(&routing_lock);
  29006. return 0;
  29007. }
  29008. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  29009. int fe_id)
  29010. {
  29011. int index, topo_id, be_idx;
  29012. unsigned long pp_config = 0;
  29013. bool mute_on;
  29014. int latency, session_type;
  29015. bool compr_passthr_mode = true;
  29016. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  29017. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX
  29018. && port_id != HDMI_RX_MS) {
  29019. pr_err("%s: Device pp params on invalid port %d, copp_idx %d, fe_id %d\n",
  29020. __func__, port_id, copp_idx, fe_id);
  29021. return -EINVAL;
  29022. }
  29023. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  29024. if (port_id == msm_bedais[be_idx].port_id)
  29025. break;
  29026. }
  29027. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  29028. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  29029. return -EINVAL;
  29030. }
  29031. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  29032. if (msm_bedais_pp_params[index].port_id == port_id)
  29033. break;
  29034. }
  29035. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  29036. pr_err("%s: Invalid backend pp params index %d\n",
  29037. __func__, index);
  29038. return -EINVAL;
  29039. }
  29040. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  29041. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  29042. pr_err("%s: Invalid passthrough topology 0x%x\n",
  29043. __func__, topo_id);
  29044. return -EINVAL;
  29045. }
  29046. session_type =
  29047. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  29048. SESSION_TYPE_RX : SESSION_TYPE_TX;
  29049. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  29050. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  29051. compr_passthr_mode = false;
  29052. pp_config = msm_bedais_pp_params[index].pp_params_config;
  29053. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  29054. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  29055. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  29056. mute_on = msm_bedais_pp_params[index].mute_on;
  29057. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29058. adm_send_compressed_device_mute(port_id,
  29059. copp_idx,
  29060. mute_on);
  29061. }
  29062. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  29063. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  29064. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  29065. &pp_config);
  29066. latency = msm_bedais_pp_params[index].latency;
  29067. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29068. adm_send_compressed_device_latency(port_id,
  29069. copp_idx,
  29070. latency);
  29071. }
  29072. return 0;
  29073. }
  29074. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  29075. {
  29076. uint32_t topology = NULL_COPP_TOPOLOGY;
  29077. void *cal_info = NULL;
  29078. uint32_t size = 0;
  29079. /* Retrieve cal_info size from cal data*/
  29080. if (data_size < sizeof(struct audio_cal_type_basic) +
  29081. sizeof(struct audio_cal_info_adm_top)) {
  29082. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  29083. goto done;
  29084. }
  29085. size = data_size - sizeof(struct audio_cal_type_basic);
  29086. cal_info = kzalloc(size, GFP_KERNEL);
  29087. if (!cal_info)
  29088. goto done;
  29089. memcpy(cal_info,
  29090. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  29091. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  29092. kfree(cal_info);
  29093. cal_info = NULL;
  29094. done:
  29095. pr_debug("%s: Using topology %d\n", __func__, topology);
  29096. return topology;
  29097. }
  29098. static void msm_routing_load_topology(size_t data_size, void *data)
  29099. {
  29100. uint32_t topology_id;
  29101. int ret = -EINVAL;
  29102. topology_id = msm_routing_get_topology(data_size, data);
  29103. if (topology_id != NULL_COPP_TOPOLOGY)
  29104. ret = q6core_load_unload_topo_modules(topology_id,
  29105. CORE_LOAD_TOPOLOGY);
  29106. if (ret < 0)
  29107. pr_debug("%s %d load topology failed\n",
  29108. __func__, topology_id);
  29109. }
  29110. static void msm_routing_unload_topology(uint32_t topology_id)
  29111. {
  29112. int ret = -EINVAL;
  29113. if (topology_id != NULL_COPP_TOPOLOGY)
  29114. ret = q6core_load_unload_topo_modules(topology_id,
  29115. CORE_UNLOAD_TOPOLOGY);
  29116. if (ret < 0)
  29117. pr_debug("%s %d unload topology failed\n",
  29118. __func__, topology_id);
  29119. }
  29120. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  29121. struct snd_ctl_elem_value *ucontrol)
  29122. {
  29123. int pp_id = ucontrol->value.integer.value[0];
  29124. int port_id = 0;
  29125. int index, be_idx, i, topo_id, idx;
  29126. bool mute;
  29127. int latency, session_type;
  29128. bool compr_passthr_mode = true;
  29129. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  29130. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  29131. port_id = msm_bedais[be_idx].port_id;
  29132. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX
  29133. || port_id == HDMI_RX_MS)
  29134. break;
  29135. }
  29136. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  29137. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  29138. return -EINVAL;
  29139. }
  29140. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  29141. if (msm_bedais_pp_params[index].port_id == port_id)
  29142. break;
  29143. }
  29144. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  29145. pr_err("%s: Invalid pp params backend index %d\n",
  29146. __func__, index);
  29147. return -EINVAL;
  29148. }
  29149. session_type =
  29150. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  29151. SESSION_TYPE_RX : SESSION_TYPE_TX;
  29152. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  29153. MSM_FRONTEND_DAI_MM_SIZE) {
  29154. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  29155. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  29156. compr_passthr_mode = false;
  29157. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  29158. unsigned long copp =
  29159. session_copp_map[i]
  29160. [SESSION_TYPE_RX][be_idx];
  29161. if (!test_bit(idx, &copp))
  29162. continue;
  29163. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  29164. idx);
  29165. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  29166. continue;
  29167. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  29168. __func__, port_id, copp, msm_bedais[be_idx].active,
  29169. fe_dai_map[i][session_type].passthr_mode);
  29170. switch (pp_id) {
  29171. case ADM_PP_PARAM_MUTE_ID:
  29172. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  29173. mute = ucontrol->value.integer.value[1] ? true : false;
  29174. msm_bedais_pp_params[index].mute_on = mute;
  29175. set_bit(ADM_PP_PARAM_MUTE_BIT,
  29176. &msm_bedais_pp_params[index].pp_params_config);
  29177. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29178. adm_send_compressed_device_mute(port_id,
  29179. idx, mute);
  29180. break;
  29181. case ADM_PP_PARAM_LATENCY_ID:
  29182. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  29183. msm_bedais_pp_params[index].latency =
  29184. ucontrol->value.integer.value[1];
  29185. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  29186. &msm_bedais_pp_params[index].pp_params_config);
  29187. latency = msm_bedais_pp_params[index].latency =
  29188. ucontrol->value.integer.value[1];
  29189. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29190. adm_send_compressed_device_latency(port_id,
  29191. idx, latency);
  29192. break;
  29193. default:
  29194. pr_info("%s, device pp param %d not supported\n",
  29195. __func__, pp_id);
  29196. break;
  29197. }
  29198. }
  29199. }
  29200. return 0;
  29201. }
  29202. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  29203. struct snd_ctl_elem_value *ucontrol)
  29204. {
  29205. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  29206. return 0;
  29207. }
  29208. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  29209. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  29210. 0, 3, msm_routing_get_device_pp_params_mixer,
  29211. msm_routing_put_device_pp_params_mixer),
  29212. };
  29213. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  29214. struct snd_ctl_elem_value *ucontrol)
  29215. {
  29216. ucontrol->value.integer.value[0] =
  29217. core_get_license_status(ASM_MEDIA_FMT_APTX);
  29218. pr_debug("%s: status %ld\n", __func__,
  29219. ucontrol->value.integer.value[0]);
  29220. return 0;
  29221. }
  29222. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  29223. struct snd_ctl_elem_value *ucontrol)
  29224. {
  29225. int32_t status = 0;
  29226. status = core_set_license(ucontrol->value.integer.value[0],
  29227. APTX_CLASSIC_DEC_LICENSE_ID);
  29228. pr_debug("%s: status %d\n", __func__, status);
  29229. return status;
  29230. }
  29231. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  29232. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  29233. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  29234. msm_aptx_dec_license_control_put),
  29235. };
  29236. static int msm_routing_get_pll_clk_drift(struct snd_kcontrol *kcontrol,
  29237. struct snd_ctl_elem_value *ucontrol)
  29238. {
  29239. return 0;
  29240. }
  29241. static int msm_routing_put_pll_clk_drift(struct snd_kcontrol *kcontrol,
  29242. struct snd_ctl_elem_value *ucontrol)
  29243. {
  29244. u16 port_id = 0;
  29245. int32_t clk_drift = 0;
  29246. uint32_t clk_reset = 0;
  29247. int be_idx, ret = -EINVAL;
  29248. be_idx = ucontrol->value.integer.value[0];
  29249. clk_drift = ucontrol->value.integer.value[1];
  29250. clk_reset = ucontrol->value.integer.value[2];
  29251. if (be_idx < 0 || be_idx >= MSM_BACKEND_DAI_MAX) {
  29252. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  29253. return -EINVAL;
  29254. }
  29255. if (!msm_bedais[be_idx].active && !clk_reset) {
  29256. pr_err("%s:BE is not active %d, cannot set clock drift\n",
  29257. __func__, be_idx);
  29258. return -EINVAL;
  29259. }
  29260. port_id = msm_bedais[be_idx].port_id;
  29261. pr_debug("%s: clk drift %d be idx %d clk reset %d port id 0x%x\n",
  29262. __func__, clk_drift, be_idx, clk_reset, port_id);
  29263. ret = afe_set_pll_clk_drift(port_id, clk_drift, clk_reset);
  29264. if (ret < 0)
  29265. pr_err("%s: failed to set pll clk drift\n", __func__);
  29266. return ret;
  29267. }
  29268. static const struct snd_kcontrol_new pll_clk_drift_controls[] = {
  29269. SOC_SINGLE_MULTI_EXT("PLL config data", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  29270. 0, 128, msm_routing_get_pll_clk_drift, msm_routing_put_pll_clk_drift),
  29271. };
  29272. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  29273. struct snd_ctl_elem_value *ucontrol)
  29274. {
  29275. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  29276. uint32_t be_idx = ucontrol->value.integer.value[0];
  29277. int i;
  29278. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  29279. pr_err("%s: Invalid Backend index %d\n", __func__, be_idx);
  29280. return -EINVAL;
  29281. }
  29282. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  29283. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  29284. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  29285. pr_err("%s: Invalid channel map %d\n",
  29286. __func__, channel_map[i]);
  29287. return -EINVAL;
  29288. }
  29289. }
  29290. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  29291. return 0;
  29292. }
  29293. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  29294. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  29295. MSM_BACKEND_DAI_MAX, 0,
  29296. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  29297. msm_routing_put_port_chmap_mixer),
  29298. };
  29299. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  29300. struct snd_ctl_elem_info *uinfo)
  29301. {
  29302. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  29303. uinfo->count = sizeof(be_dai_name_table);
  29304. return 0;
  29305. }
  29306. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  29307. unsigned int __user *bytes,
  29308. unsigned int size)
  29309. {
  29310. int i;
  29311. int ret = 0;
  29312. if (size < sizeof(be_dai_name_table)) {
  29313. pr_err("%s: invalid size %d requested, returning\n",
  29314. __func__, size);
  29315. ret = -EINVAL;
  29316. goto done;
  29317. }
  29318. /*
  29319. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  29320. * needed when adding new backends
  29321. */
  29322. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  29323. be_dai_name_table[i].be_id = i;
  29324. strlcpy(be_dai_name_table[i].be_name,
  29325. msm_bedais[i].name,
  29326. LPASS_BE_NAME_MAX_LENGTH);
  29327. }
  29328. ret = copy_to_user(bytes, &be_dai_name_table,
  29329. sizeof(be_dai_name_table));
  29330. if (ret) {
  29331. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  29332. ret = -EFAULT;
  29333. }
  29334. done:
  29335. return ret;
  29336. }
  29337. static const struct snd_kcontrol_new
  29338. msm_routing_be_dai_name_table_mixer_controls[] = {
  29339. {
  29340. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  29341. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  29342. .info = msm_routing_be_dai_name_table_info,
  29343. .name = "Backend DAI Name Table",
  29344. .tlv.c = snd_soc_bytes_tlv_callback,
  29345. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  29346. .max = sizeof(be_dai_name_table),
  29347. .get = msm_routing_be_dai_name_table_tlv_get,
  29348. }
  29349. },
  29350. };
  29351. static int msm_routing_stereo_channel_reverse_control_get(
  29352. struct snd_kcontrol *kcontrol,
  29353. struct snd_ctl_elem_value *ucontrol)
  29354. {
  29355. ucontrol->value.integer.value[0] = swap_ch;
  29356. pr_debug("%s: Swap channel value: %ld\n", __func__,
  29357. ucontrol->value.integer.value[0]);
  29358. return 0;
  29359. }
  29360. static int msm_routing_stereo_channel_reverse_control_put(
  29361. struct snd_kcontrol *kcontrol,
  29362. struct snd_ctl_elem_value *ucontrol)
  29363. {
  29364. int i, idx, be_index, port_id;
  29365. int ret = 0;
  29366. unsigned long copp;
  29367. pr_debug("%s Swap channel value:%ld\n", __func__,
  29368. ucontrol->value.integer.value[0]);
  29369. swap_ch = ucontrol->value.integer.value[0];
  29370. mutex_lock(&routing_lock);
  29371. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  29372. port_id = msm_bedais[be_index].port_id;
  29373. if (!msm_bedais[be_index].active)
  29374. continue;
  29375. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  29376. MSM_FRONTEND_DAI_MM_SIZE) {
  29377. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  29378. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  29379. if (!test_bit(idx, &copp))
  29380. continue;
  29381. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  29382. __func__, port_id, idx);
  29383. ret = adm_swap_speaker_channels(
  29384. port_id, idx,
  29385. msm_bedais[be_index].sample_rate,
  29386. swap_ch);
  29387. if (ret) {
  29388. pr_err("%s:Swap_channel failed, err=%d\n",
  29389. __func__, ret);
  29390. goto done;
  29391. }
  29392. }
  29393. }
  29394. }
  29395. done:
  29396. mutex_unlock(&routing_lock);
  29397. return ret;
  29398. }
  29399. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  29400. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  29401. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  29402. msm_routing_stereo_channel_reverse_control_put),
  29403. };
  29404. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  29405. struct snd_ctl_elem_info *uinfo)
  29406. {
  29407. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  29408. uinfo->count = 1;
  29409. return 0;
  29410. }
  29411. static int msm_routing_instance_id_support_put(
  29412. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  29413. {
  29414. bool supported = ucontrol->value.integer.value[0] ? true : false;
  29415. q6common_update_instance_id_support(supported);
  29416. return 0;
  29417. }
  29418. static int msm_routing_instance_id_support_get(
  29419. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  29420. {
  29421. bool supported = false;
  29422. supported = q6common_is_instance_id_supported();
  29423. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  29424. return 0;
  29425. }
  29426. static const struct snd_kcontrol_new
  29427. msm_routing_feature_support_mixer_controls[] = {
  29428. {
  29429. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  29430. SNDRV_CTL_ELEM_ACCESS_WRITE,
  29431. .info = msm_routing_instance_id_support_info,
  29432. .name = "Instance ID Support",
  29433. .put = msm_routing_instance_id_support_put,
  29434. .get = msm_routing_instance_id_support_get,
  29435. },
  29436. };
  29437. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  29438. .hw_params = msm_pcm_routing_hw_params,
  29439. .close = msm_pcm_routing_close,
  29440. .prepare = msm_pcm_routing_prepare,
  29441. };
  29442. #ifdef CONFIG_DOA_PARAMS_ENABLED
  29443. void msm_routing_add_doa_control(struct snd_soc_component *component)
  29444. {
  29445. snd_soc_add_component_controls(component,
  29446. msm_source_doa_tracking_controls,
  29447. ARRAY_SIZE(msm_source_doa_tracking_controls));
  29448. }
  29449. #else
  29450. void msm_routing_add_doa_control(struct snd_soc_component *component)
  29451. {
  29452. return;
  29453. }
  29454. #endif
  29455. /* Not used but frame seems to require it */
  29456. static int msm_routing_probe(struct snd_soc_component *component)
  29457. {
  29458. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  29459. ARRAY_SIZE(msm_qdsp6_widgets));
  29460. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  29461. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  29462. snd_soc_dapm_add_routes(&component->dapm, intercon,
  29463. ARRAY_SIZE(intercon));
  29464. snd_soc_dapm_new_widgets(component->dapm.card);
  29465. snd_soc_add_component_controls(component, lsm_controls,
  29466. ARRAY_SIZE(lsm_controls));
  29467. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  29468. ARRAY_SIZE(aanc_slim_0_rx_mux));
  29469. snd_soc_add_component_controls(component, aanc_noise_level,
  29470. ARRAY_SIZE(aanc_noise_level));
  29471. snd_soc_add_component_controls(component, msm_voc_session_controls,
  29472. ARRAY_SIZE(msm_voc_session_controls));
  29473. snd_soc_add_component_controls(component, app_type_cfg_controls,
  29474. ARRAY_SIZE(app_type_cfg_controls));
  29475. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  29476. ARRAY_SIZE(lsm_app_type_cfg_controls));
  29477. snd_soc_add_component_controls(component, module_cfg_controls,
  29478. ARRAY_SIZE(module_cfg_controls));
  29479. snd_soc_add_component_controls(component,
  29480. stereo_to_custom_stereo_controls,
  29481. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  29482. snd_soc_add_component_controls(component, ec_ref_param_controls,
  29483. ARRAY_SIZE(ec_ref_param_controls));
  29484. snd_soc_add_component_controls(component, channel_mixer_controls,
  29485. ARRAY_SIZE(channel_mixer_controls));
  29486. msm_qti_pp_add_controls(component);
  29487. msm_dts_srs_tm_add_controls(component);
  29488. msm_dolby_dap_add_controls(component);
  29489. snd_soc_add_component_controls(component,
  29490. use_ds1_or_ds2_controls,
  29491. ARRAY_SIZE(use_ds1_or_ds2_controls));
  29492. snd_soc_add_component_controls(component,
  29493. hifi_filter_controls,
  29494. ARRAY_SIZE(hifi_filter_controls));
  29495. snd_soc_add_component_controls(component,
  29496. use_ffecns_freeze_event_controls,
  29497. ARRAY_SIZE(use_ffecns_freeze_event_controls));
  29498. snd_soc_add_component_controls(component,
  29499. device_pp_params_mixer_controls,
  29500. ARRAY_SIZE(device_pp_params_mixer_controls));
  29501. snd_soc_add_component_controls(component,
  29502. msm_routing_be_dai_name_table_mixer_controls,
  29503. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  29504. /* Add doa control based on config */
  29505. msm_routing_add_doa_control(component);
  29506. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  29507. ARRAY_SIZE(msm_source_tracking_controls));
  29508. snd_soc_add_component_controls(component, adm_channel_config_controls,
  29509. ARRAY_SIZE(adm_channel_config_controls));
  29510. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  29511. ARRAY_SIZE(aptx_dec_license_controls));
  29512. snd_soc_add_component_controls(component,
  29513. stereo_channel_reverse_control,
  29514. ARRAY_SIZE(stereo_channel_reverse_control));
  29515. snd_soc_add_component_controls(
  29516. component, msm_routing_feature_support_mixer_controls,
  29517. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  29518. snd_soc_add_component_controls(component,
  29519. port_multi_channel_map_mixer_controls,
  29520. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  29521. snd_soc_add_component_controls(component, pll_clk_drift_controls,
  29522. ARRAY_SIZE(pll_clk_drift_controls));
  29523. return 0;
  29524. }
  29525. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  29526. {
  29527. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  29528. }
  29529. void msm_routing_pcm_free(struct snd_pcm *pcm)
  29530. {
  29531. msm_pcm_routing_hwdep_free(pcm);
  29532. }
  29533. static struct snd_soc_component_driver msm_soc_routing_component = {
  29534. .name = DRV_NAME,
  29535. .ops = &msm_routing_pcm_ops,
  29536. .probe = msm_routing_probe,
  29537. .pcm_new = msm_routing_pcm_new,
  29538. .pcm_free = msm_routing_pcm_free,
  29539. };
  29540. static int msm_routing_pcm_probe(struct platform_device *pdev)
  29541. {
  29542. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  29543. return snd_soc_register_component(&pdev->dev,
  29544. &msm_soc_routing_component,
  29545. NULL, 0);
  29546. }
  29547. static int msm_routing_pcm_remove(struct platform_device *pdev)
  29548. {
  29549. snd_soc_unregister_component(&pdev->dev);
  29550. return 0;
  29551. }
  29552. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  29553. {.compatible = "qcom,msm-pcm-routing"},
  29554. {}
  29555. };
  29556. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  29557. static struct platform_driver msm_routing_pcm_driver = {
  29558. .driver = {
  29559. .name = "msm-pcm-routing",
  29560. .owner = THIS_MODULE,
  29561. .of_match_table = msm_pcm_routing_dt_match,
  29562. .suppress_bind_attrs = true,
  29563. },
  29564. .probe = msm_routing_pcm_probe,
  29565. .remove = msm_routing_pcm_remove,
  29566. };
  29567. int msm_routing_check_backend_enabled(int fedai_id)
  29568. {
  29569. int i;
  29570. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  29571. /* bad ID assigned in machine driver */
  29572. pr_err("%s: bad MM ID\n", __func__);
  29573. return 0;
  29574. }
  29575. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  29576. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  29577. return msm_bedais[i].active;
  29578. }
  29579. return 0;
  29580. }
  29581. static int get_cal_type_index(int32_t cal_type)
  29582. {
  29583. int ret = -EINVAL;
  29584. switch (cal_type) {
  29585. case ADM_TOPOLOGY_CAL_TYPE:
  29586. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  29587. break;
  29588. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  29589. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  29590. break;
  29591. default:
  29592. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  29593. }
  29594. return ret;
  29595. }
  29596. static int msm_routing_set_cal(int32_t cal_type,
  29597. size_t data_size, void *data)
  29598. {
  29599. int ret = 0;
  29600. int cal_index;
  29601. pr_debug("%s\n", __func__);
  29602. cal_index = get_cal_type_index(cal_type);
  29603. if (cal_index < 0) {
  29604. pr_err("%s: Could not get cal index %d\n",
  29605. __func__, cal_index);
  29606. ret = -EINVAL;
  29607. goto done;
  29608. }
  29609. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  29610. if (ret < 0) {
  29611. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  29612. __func__, ret, cal_type);
  29613. ret = -EINVAL;
  29614. goto done;
  29615. }
  29616. /* Pre-load if it is ADM topology */
  29617. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  29618. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  29619. msm_routing_load_topology(data_size, data);
  29620. }
  29621. done:
  29622. return ret;
  29623. }
  29624. static void msm_routing_delete_cal_data(void)
  29625. {
  29626. pr_debug("%s\n", __func__);
  29627. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  29628. }
  29629. static int msm_routing_init_cal_data(void)
  29630. {
  29631. int ret = 0;
  29632. struct cal_type_info cal_type_info[] = {
  29633. {{ADM_TOPOLOGY_CAL_TYPE,
  29634. {NULL, NULL, NULL,
  29635. msm_routing_set_cal, NULL, NULL} },
  29636. {NULL, NULL, cal_utils_match_buf_num} },
  29637. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  29638. {NULL, NULL, NULL,
  29639. msm_routing_set_cal, NULL, NULL} },
  29640. {NULL, NULL, cal_utils_match_buf_num} },
  29641. };
  29642. pr_debug("%s\n", __func__);
  29643. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  29644. &cal_type_info[0]);
  29645. if (ret < 0) {
  29646. pr_err("%s: could not create cal type!\n",
  29647. __func__);
  29648. ret = -EINVAL;
  29649. goto err;
  29650. }
  29651. return ret;
  29652. err:
  29653. msm_routing_delete_cal_data();
  29654. return ret;
  29655. }
  29656. int __init msm_soc_routing_platform_init(void)
  29657. {
  29658. mutex_init(&routing_lock);
  29659. if (msm_routing_init_cal_data())
  29660. pr_err("%s: could not init cal data!\n", __func__);
  29661. afe_set_routing_callback(
  29662. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  29663. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29664. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  29665. return platform_driver_register(&msm_routing_pcm_driver);
  29666. }
  29667. void msm_soc_routing_platform_exit(void)
  29668. {
  29669. msm_routing_delete_cal_data();
  29670. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29671. mutex_destroy(&routing_lock);
  29672. platform_driver_unregister(&msm_routing_pcm_driver);
  29673. }
  29674. MODULE_DESCRIPTION("MSM routing platform driver");
  29675. MODULE_LICENSE("GPL v2");