msm-pcm-routing-v2.c 1.2 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
  3. */
  4. #include <linux/init.h>
  5. #include <linux/err.h>
  6. #include <linux/module.h>
  7. #include <linux/moduleparam.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/bitops.h>
  10. #include <linux/mutex.h>
  11. #include <linux/of_device.h>
  12. #include <linux/slab.h>
  13. #include <sound/core.h>
  14. #include <sound/soc.h>
  15. #include <sound/soc-dapm.h>
  16. #include <sound/pcm.h>
  17. #include <sound/initval.h>
  18. #include <sound/control.h>
  19. #include <sound/tlv.h>
  20. #include <sound/asound.h>
  21. #include <sound/pcm_params.h>
  22. #include <sound/hwdep.h>
  23. #include <sound/audio_effects.h>
  24. #include <dsp/msm-dts-srs-tm-config.h>
  25. #include <dsp/q6voice.h>
  26. #include <dsp/q6adm-v2.h>
  27. #include <dsp/q6asm-v2.h>
  28. #include <dsp/q6afe-v2.h>
  29. #include <dsp/q6lsm.h>
  30. #include <dsp/q6core.h>
  31. #include <dsp/q6common.h>
  32. #include <dsp/audio_cal_utils.h>
  33. #include "msm-pcm-routing-v2.h"
  34. #include "msm-pcm-routing-devdep.h"
  35. #include "msm-qti-pp-config.h"
  36. #include "msm-dolby-dap-config.h"
  37. #include "msm-ds2-dap-config.h"
  38. #define DRV_NAME "msm-pcm-routing-v2"
  39. #ifndef CONFIG_DOLBY_DAP
  40. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  41. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  42. #endif
  43. #ifndef CONFIG_DOLBY_DS2
  44. #undef DS2_ADM_COPP_TOPOLOGY_ID
  45. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  46. #endif
  47. static struct mutex routing_lock;
  48. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  49. static int fm_switch_enable;
  50. static int hfp_switch_enable;
  51. static int a2dp_switch_enable;
  52. static int sco_switch_enable;
  53. static int int0_mi2s_switch_enable;
  54. static int int4_mi2s_switch_enable;
  55. static int pri_mi2s_switch_enable;
  56. static int sec_mi2s_switch_enable;
  57. static int tert_mi2s_switch_enable;
  58. static int quat_mi2s_switch_enable;
  59. static int quin_mi2s_switch_enable;
  60. static int sen_mi2s_switch_enable;
  61. static int fm_pcmrx_switch_enable;
  62. static int usb_switch_enable;
  63. static int lsm_port_index;
  64. static int slim0_rx_aanc_fb_port;
  65. static int msm_route_ec_ref_rx;
  66. static int msm_ec_ref_ch = 4;
  67. static int msm_ec_ref_ch_downmixed = 4;
  68. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  69. static int msm_ec_ref_sampling_rate = 48000;
  70. static uint32_t voc_session_id = ALL_SESSION_VSID;
  71. static int msm_route_ext_ec_ref;
  72. static bool is_custom_stereo_on;
  73. static bool is_ds2_on;
  74. static bool swap_ch;
  75. static bool hifi_filter_enabled;
  76. static int aanc_level;
  77. static int num_app_cfg_types;
  78. static int msm_ec_ref_port_id;
  79. static int afe_loopback_tx_port_index;
  80. static int afe_loopback_tx_port_id = -1;
  81. #define WEIGHT_0_DB 0x4000
  82. /* all the FEs which can support channel mixer */
  83. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  84. /* all the FES which can support channel mixer for bidirection */
  85. static struct msm_pcm_channel_mixer
  86. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  87. /* input BE for each FE */
  88. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  89. enum {
  90. MADNONE,
  91. MADAUDIO,
  92. MADBEACON,
  93. MADULTRASOUND,
  94. MADSWAUDIO,
  95. };
  96. #define ADM_LSM_PORT_INDEX 9
  97. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  98. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  99. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  100. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  101. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  102. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  103. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  104. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  105. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  106. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  107. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  108. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  109. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  110. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  111. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  112. #define TERT_TDM_TX_TEXT "TERT_TDM_TX_0"
  113. #define LSM_FUNCTION_TEXT "LSM Function"
  114. static const char * const lsm_port_text[] = {
  115. "None",
  116. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  117. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  118. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  119. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  120. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT,
  121. TERT_TDM_TX_TEXT
  122. };
  123. struct msm_pcm_route_bdai_pp_params {
  124. u16 port_id; /* AFE port ID */
  125. unsigned long pp_params_config;
  126. bool mute_on;
  127. int latency;
  128. };
  129. static struct msm_pcm_route_bdai_pp_params
  130. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  131. {HDMI_RX, 0, 0, 0},
  132. {DISPLAY_PORT_RX, 0, 0, 0},
  133. };
  134. /*
  135. * The be_dai_name_table is passed to HAL so that it can specify the
  136. * BE ID for the BE it wants to enable based on the name. Thus there
  137. * is a matching table and structure in HAL that need to be updated
  138. * if any changes to these are made.
  139. */
  140. struct msm_pcm_route_bdai_name {
  141. unsigned int be_id;
  142. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  143. };
  144. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  145. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  146. int fe_id);
  147. static void msm_routing_load_topology(size_t data_size, void *data);
  148. static void msm_routing_unload_topology(uint32_t topology_id);
  149. static int msm_routing_get_bit_width(unsigned int format)
  150. {
  151. int bit_width;
  152. switch (format) {
  153. case SNDRV_PCM_FORMAT_S32_LE:
  154. bit_width = 32;
  155. break;
  156. case SNDRV_PCM_FORMAT_S24_LE:
  157. case SNDRV_PCM_FORMAT_S24_3LE:
  158. bit_width = 24;
  159. break;
  160. case SNDRV_PCM_FORMAT_S16_LE:
  161. default:
  162. bit_width = 16;
  163. }
  164. return bit_width;
  165. }
  166. static bool msm_is_resample_needed(int input_sr, int output_sr)
  167. {
  168. bool rc = false;
  169. if (input_sr != output_sr)
  170. rc = true;
  171. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  172. (rc ? "oh yes" : "not really"),
  173. input_sr, output_sr);
  174. return rc;
  175. }
  176. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  177. int channels)
  178. {
  179. int rc = 0;
  180. switch (topology) {
  181. case SRS_TRUMEDIA_TOPOLOGY_ID:
  182. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  183. msm_dts_srs_tm_init(port_id, copp_idx);
  184. break;
  185. case DS2_ADM_COPP_TOPOLOGY_ID:
  186. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  187. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  188. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  189. is_custom_stereo_on);
  190. if (rc < 0)
  191. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  192. __func__, topology, port_id,
  193. is_custom_stereo_on, rc);
  194. break;
  195. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  196. if (is_ds2_on) {
  197. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  198. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  199. is_custom_stereo_on);
  200. if (rc < 0)
  201. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  202. __func__, topology, port_id, rc);
  203. } else {
  204. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  205. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  206. is_custom_stereo_on);
  207. if (rc < 0)
  208. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  209. __func__, topology, port_id, rc);
  210. }
  211. break;
  212. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  213. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  214. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  215. if (rc < 0)
  216. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  217. __func__, topology, port_id, copp_idx, rc);
  218. break;
  219. default:
  220. /* custom topology specific feature param handlers */
  221. break;
  222. }
  223. }
  224. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  225. {
  226. switch (topology) {
  227. case SRS_TRUMEDIA_TOPOLOGY_ID:
  228. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  229. msm_dts_srs_tm_deinit(port_id);
  230. break;
  231. case DS2_ADM_COPP_TOPOLOGY_ID:
  232. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  233. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  234. msm_ds2_dap_deinit(port_id);
  235. break;
  236. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  237. if (is_ds2_on) {
  238. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  239. msm_ds2_dap_deinit(port_id);
  240. } else {
  241. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  242. msm_dolby_dap_deinit(port_id);
  243. }
  244. break;
  245. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  246. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  247. msm_qti_pp_asphere_deinit(port_id);
  248. break;
  249. default:
  250. /* custom topology specific feature deinit handlers */
  251. break;
  252. }
  253. }
  254. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  255. int path_type, int perf_mode)
  256. {
  257. int itr = 0, rc = 0;
  258. if ((path_type == ADM_PATH_PLAYBACK) &&
  259. (perf_mode == LEGACY_PCM_MODE) &&
  260. is_custom_stereo_on) {
  261. for (itr = 0; itr < payload.num_copps; itr++) {
  262. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  263. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  264. continue;
  265. }
  266. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  267. payload.port_id[itr],
  268. payload.copp_idx[itr],
  269. payload.session_id,
  270. Q14_GAIN_ZERO_POINT_FIVE,
  271. Q14_GAIN_ZERO_POINT_FIVE,
  272. Q14_GAIN_ZERO_POINT_FIVE,
  273. Q14_GAIN_ZERO_POINT_FIVE);
  274. if (rc < 0)
  275. pr_err("%s: err setting custom stereo\n",
  276. __func__);
  277. }
  278. }
  279. }
  280. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  281. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  282. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  283. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  284. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  285. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  286. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  287. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  288. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  289. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  290. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  291. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  292. LPASS_BE_AFE_PCM_RX},
  293. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  294. LPASS_BE_AFE_PCM_TX},
  295. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  296. LPASS_BE_AUXPCM_RX},
  297. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  298. LPASS_BE_AUXPCM_TX},
  299. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  300. LPASS_BE_VOICE_PLAYBACK_TX},
  301. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  302. LPASS_BE_VOICE2_PLAYBACK_TX},
  303. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  304. LPASS_BE_INCALL_RECORD_RX},
  305. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  306. LPASS_BE_INCALL_RECORD_TX},
  307. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  308. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  309. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  310. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  311. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  312. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  313. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  314. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  315. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  316. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  317. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  318. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  319. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  320. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  321. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  322. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  323. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  324. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  325. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  326. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  327. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  328. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  329. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  330. LPASS_BE_QUAT_MI2S_RX},
  331. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  332. LPASS_BE_QUAT_MI2S_TX},
  333. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  334. LPASS_BE_SEC_MI2S_RX},
  335. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  336. LPASS_BE_SEC_MI2S_TX},
  337. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  338. LPASS_BE_PRI_MI2S_RX},
  339. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  340. LPASS_BE_PRI_MI2S_TX},
  341. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  342. LPASS_BE_TERT_MI2S_RX},
  343. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  344. LPASS_BE_TERT_MI2S_TX},
  345. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  346. LPASS_BE_AUDIO_I2S_RX},
  347. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  348. LPASS_BE_SEC_AUXPCM_RX},
  349. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  350. LPASS_BE_SEC_AUXPCM_TX},
  351. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  352. LPASS_BE_PRI_SPDIF_RX},
  353. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  354. LPASS_BE_SEC_MI2S_RX_SD1},
  355. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  356. LPASS_BE_QUIN_MI2S_RX},
  357. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  358. LPASS_BE_QUIN_MI2S_TX},
  359. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  360. LPASS_BE_SENARY_MI2S_TX},
  361. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  362. LPASS_BE_PRI_TDM_RX_0},
  363. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  364. LPASS_BE_PRI_TDM_TX_0},
  365. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  366. LPASS_BE_PRI_TDM_RX_1},
  367. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  368. LPASS_BE_PRI_TDM_TX_1},
  369. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  370. LPASS_BE_PRI_TDM_RX_2},
  371. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  372. LPASS_BE_PRI_TDM_TX_2},
  373. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  374. LPASS_BE_PRI_TDM_RX_3},
  375. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  376. LPASS_BE_PRI_TDM_TX_3},
  377. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  378. LPASS_BE_PRI_TDM_RX_4},
  379. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  380. LPASS_BE_PRI_TDM_TX_4},
  381. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  382. LPASS_BE_PRI_TDM_RX_5},
  383. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  384. LPASS_BE_PRI_TDM_TX_5},
  385. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  386. LPASS_BE_PRI_TDM_RX_6},
  387. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  388. LPASS_BE_PRI_TDM_TX_6},
  389. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  390. LPASS_BE_PRI_TDM_RX_7},
  391. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  392. LPASS_BE_PRI_TDM_TX_7},
  393. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  394. LPASS_BE_SEC_TDM_RX_0},
  395. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  396. LPASS_BE_SEC_TDM_TX_0},
  397. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  398. LPASS_BE_SEC_TDM_RX_1},
  399. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  400. LPASS_BE_SEC_TDM_TX_1},
  401. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  402. LPASS_BE_SEC_TDM_RX_2},
  403. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  404. LPASS_BE_SEC_TDM_TX_2},
  405. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  406. LPASS_BE_SEC_TDM_RX_3},
  407. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  408. LPASS_BE_SEC_TDM_TX_3},
  409. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  410. LPASS_BE_SEC_TDM_RX_4},
  411. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  412. LPASS_BE_SEC_TDM_TX_4},
  413. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  414. LPASS_BE_SEC_TDM_RX_5},
  415. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  416. LPASS_BE_SEC_TDM_TX_5},
  417. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  418. LPASS_BE_SEC_TDM_RX_6},
  419. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  420. LPASS_BE_SEC_TDM_TX_6},
  421. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  422. LPASS_BE_SEC_TDM_RX_7},
  423. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  424. LPASS_BE_SEC_TDM_TX_7},
  425. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  426. LPASS_BE_TERT_TDM_RX_0},
  427. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  428. LPASS_BE_TERT_TDM_TX_0},
  429. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  430. LPASS_BE_TERT_TDM_RX_1},
  431. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  432. LPASS_BE_TERT_TDM_TX_1},
  433. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  434. LPASS_BE_TERT_TDM_RX_2},
  435. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  436. LPASS_BE_TERT_TDM_TX_2},
  437. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  438. LPASS_BE_TERT_TDM_RX_3},
  439. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  440. LPASS_BE_TERT_TDM_TX_3},
  441. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  442. LPASS_BE_TERT_TDM_RX_4},
  443. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  444. LPASS_BE_TERT_TDM_TX_4},
  445. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  446. LPASS_BE_TERT_TDM_RX_5},
  447. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  448. LPASS_BE_TERT_TDM_TX_5},
  449. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  450. LPASS_BE_TERT_TDM_RX_6},
  451. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  452. LPASS_BE_TERT_TDM_TX_6},
  453. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  454. LPASS_BE_TERT_TDM_RX_7},
  455. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  456. LPASS_BE_TERT_TDM_TX_7},
  457. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  458. LPASS_BE_QUAT_TDM_RX_0},
  459. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  460. LPASS_BE_QUAT_TDM_TX_0},
  461. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  462. LPASS_BE_QUAT_TDM_RX_1},
  463. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  464. LPASS_BE_QUAT_TDM_TX_1},
  465. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  466. LPASS_BE_QUAT_TDM_RX_2},
  467. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  468. LPASS_BE_QUAT_TDM_TX_2},
  469. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  470. LPASS_BE_QUAT_TDM_RX_3},
  471. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  472. LPASS_BE_QUAT_TDM_TX_3},
  473. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  474. LPASS_BE_QUAT_TDM_RX_4},
  475. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  476. LPASS_BE_QUAT_TDM_TX_4},
  477. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  478. LPASS_BE_QUAT_TDM_RX_5},
  479. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  480. LPASS_BE_QUAT_TDM_TX_5},
  481. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  482. LPASS_BE_QUAT_TDM_RX_6},
  483. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  484. LPASS_BE_QUAT_TDM_TX_6},
  485. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  486. LPASS_BE_QUAT_TDM_RX_7},
  487. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  488. LPASS_BE_QUAT_TDM_TX_7},
  489. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  490. LPASS_BE_QUIN_TDM_RX_0},
  491. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  492. LPASS_BE_QUIN_TDM_TX_0},
  493. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  494. LPASS_BE_QUIN_TDM_RX_1},
  495. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  496. LPASS_BE_QUIN_TDM_TX_1},
  497. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  498. LPASS_BE_QUIN_TDM_RX_2},
  499. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  500. LPASS_BE_QUIN_TDM_TX_2},
  501. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  502. LPASS_BE_QUIN_TDM_RX_3},
  503. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  504. LPASS_BE_QUIN_TDM_TX_3},
  505. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  506. LPASS_BE_QUIN_TDM_RX_4},
  507. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  508. LPASS_BE_QUIN_TDM_TX_4},
  509. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  510. LPASS_BE_QUIN_TDM_RX_5},
  511. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  512. LPASS_BE_QUIN_TDM_TX_5},
  513. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  514. LPASS_BE_QUIN_TDM_RX_6},
  515. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  516. LPASS_BE_QUIN_TDM_TX_6},
  517. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  518. LPASS_BE_QUIN_TDM_RX_7},
  519. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  520. LPASS_BE_QUIN_TDM_TX_7},
  521. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  522. LPASS_BE_SEN_TDM_RX_0},
  523. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  524. LPASS_BE_SEN_TDM_TX_0},
  525. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  526. LPASS_BE_SEN_TDM_RX_1},
  527. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  528. LPASS_BE_SEN_TDM_TX_1},
  529. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  530. LPASS_BE_SEN_TDM_RX_2},
  531. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  532. LPASS_BE_SEN_TDM_TX_2},
  533. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  534. LPASS_BE_SEN_TDM_RX_3},
  535. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  536. LPASS_BE_SEN_TDM_TX_3},
  537. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  538. LPASS_BE_SEN_TDM_RX_4},
  539. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  540. LPASS_BE_SEN_TDM_TX_4},
  541. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  542. LPASS_BE_SEN_TDM_RX_5},
  543. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  544. LPASS_BE_SEN_TDM_TX_5},
  545. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  546. LPASS_BE_SEN_TDM_RX_6},
  547. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  548. LPASS_BE_SEN_TDM_TX_6},
  549. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  550. LPASS_BE_SEN_TDM_RX_7},
  551. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  552. LPASS_BE_SEN_TDM_TX_7},
  553. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  554. LPASS_BE_INT_BT_A2DP_RX},
  555. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  556. LPASS_BE_USB_AUDIO_RX},
  557. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  558. LPASS_BE_USB_AUDIO_TX},
  559. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  560. LPASS_BE_DISPLAY_PORT},
  561. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  562. LPASS_BE_DISPLAY_PORT1},
  563. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  564. LPASS_BE_TERT_AUXPCM_RX},
  565. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  566. LPASS_BE_TERT_AUXPCM_TX},
  567. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  568. LPASS_BE_QUAT_AUXPCM_RX},
  569. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  570. LPASS_BE_QUAT_AUXPCM_TX},
  571. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  572. LPASS_BE_QUIN_AUXPCM_RX},
  573. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  574. LPASS_BE_QUIN_AUXPCM_TX},
  575. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  576. LPASS_BE_INT0_MI2S_RX},
  577. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  578. LPASS_BE_INT0_MI2S_TX},
  579. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  580. LPASS_BE_INT1_MI2S_RX},
  581. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  582. LPASS_BE_INT1_MI2S_TX},
  583. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  584. LPASS_BE_INT2_MI2S_RX},
  585. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  586. LPASS_BE_INT2_MI2S_TX},
  587. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  588. LPASS_BE_INT3_MI2S_RX},
  589. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  590. LPASS_BE_INT3_MI2S_TX},
  591. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  592. LPASS_BE_INT4_MI2S_RX},
  593. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  594. LPASS_BE_INT4_MI2S_TX},
  595. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  596. LPASS_BE_INT5_MI2S_RX},
  597. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  598. LPASS_BE_INT5_MI2S_TX},
  599. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  600. LPASS_BE_INT6_MI2S_RX},
  601. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  602. LPASS_BE_INT6_MI2S_TX},
  603. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  604. LPASS_BE_SEN_AUXPCM_RX},
  605. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  606. LPASS_BE_SEN_AUXPCM_TX},
  607. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  608. LPASS_BE_SENARY_MI2S_RX},
  609. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  610. LPASS_BE_WSA_CDC_DMA_RX_0},
  611. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  612. LPASS_BE_WSA_CDC_DMA_TX_0},
  613. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  614. LPASS_BE_WSA_CDC_DMA_RX_1},
  615. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  616. LPASS_BE_WSA_CDC_DMA_TX_1},
  617. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  618. LPASS_BE_WSA_CDC_DMA_TX_2},
  619. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  620. LPASS_BE_VA_CDC_DMA_TX_0},
  621. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  622. LPASS_BE_VA_CDC_DMA_TX_1},
  623. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  624. LPASS_BE_VA_CDC_DMA_TX_2},
  625. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  626. LPASS_BE_RX_CDC_DMA_RX_0},
  627. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  628. LPASS_BE_TX_CDC_DMA_TX_0},
  629. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  630. LPASS_BE_RX_CDC_DMA_RX_1},
  631. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  632. LPASS_BE_TX_CDC_DMA_TX_1},
  633. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  634. LPASS_BE_RX_CDC_DMA_RX_2},
  635. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  636. LPASS_BE_TX_CDC_DMA_TX_2},
  637. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  638. LPASS_BE_RX_CDC_DMA_RX_3},
  639. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  640. LPASS_BE_TX_CDC_DMA_TX_3},
  641. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  642. LPASS_BE_RX_CDC_DMA_RX_4},
  643. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  644. LPASS_BE_TX_CDC_DMA_TX_4},
  645. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  646. LPASS_BE_RX_CDC_DMA_RX_5},
  647. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  648. LPASS_BE_TX_CDC_DMA_TX_5},
  649. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  650. LPASS_BE_RX_CDC_DMA_RX_6},
  651. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  652. LPASS_BE_RX_CDC_DMA_RX_7},
  653. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  654. LPASS_BE_PRI_SPDIF_TX},
  655. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  656. LPASS_BE_SEC_SPDIF_RX},
  657. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  658. LPASS_BE_SEC_SPDIF_TX},
  659. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  660. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  661. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  662. { AFE_PORT_ID_PRIMARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  663. LPASS_BE_PRI_META_MI2S_RX},
  664. { AFE_PORT_ID_SECONDARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  665. LPASS_BE_SEC_META_MI2S_RX},
  666. };
  667. /* Track ASM playback & capture sessions of DAI
  668. * Track LSM listen sessions
  669. */
  670. static struct msm_pcm_routing_fdai_data
  671. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  672. /* MULTIMEDIA1 */
  673. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  674. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  675. /* MULTIMEDIA2 */
  676. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  677. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  678. /* MULTIMEDIA3 */
  679. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  680. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  681. /* MULTIMEDIA4 */
  682. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  683. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  684. /* MULTIMEDIA5 */
  685. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  686. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  687. /* MULTIMEDIA6 */
  688. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  689. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  690. /* MULTIMEDIA7*/
  691. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  692. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  693. /* MULTIMEDIA8 */
  694. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  695. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  696. /* MULTIMEDIA9 */
  697. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  698. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  699. /* MULTIMEDIA10 */
  700. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  701. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  702. /* MULTIMEDIA11 */
  703. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  704. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  705. /* MULTIMEDIA12 */
  706. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  707. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  708. /* MULTIMEDIA13 */
  709. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  710. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  711. /* MULTIMEDIA14 */
  712. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  713. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  714. /* MULTIMEDIA15 */
  715. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  716. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  717. /* MULTIMEDIA16 */
  718. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  719. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  720. /* MULTIMEDIA17 */
  721. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  722. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  723. /* MULTIMEDIA18 */
  724. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  725. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  726. /* MULTIMEDIA19 */
  727. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  728. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  729. /* MULTIMEDIA20 */
  730. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  731. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  732. /* MULTIMEDIA21 */
  733. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  734. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  735. /* MULTIMEDIA22 */
  736. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  737. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  738. /* MULTIMEDIA23 */
  739. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  740. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  741. /* MULTIMEDIA24 */
  742. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  743. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  744. /* MULTIMEDIA25 */
  745. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  746. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  747. /* MULTIMEDIA26 */
  748. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  749. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  750. /* MULTIMEDIA27 */
  751. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  752. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  753. /* MULTIMEDIA28 */
  754. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  755. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  756. /* MULTIMEDIA29 */
  757. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  758. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  759. /* MULTIMEDIA30 */
  760. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  761. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  762. /* VOIP */
  763. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  764. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  765. /* AFE_RX */
  766. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  767. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  768. /* AFE_TX */
  769. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  770. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  771. /* VOICE_STUB */
  772. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  773. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  774. /* DTMF_RX */
  775. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  776. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  777. /* QCHAT */
  778. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  779. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  780. /* VOLTE_STUB */
  781. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  782. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  783. /* LSM1 */
  784. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  785. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  786. /* LSM2 */
  787. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  788. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  789. /* LSM3 */
  790. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  791. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  792. /* LSM4 */
  793. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  794. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  795. /* LSM5 */
  796. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  797. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  798. /* LSM6 */
  799. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  800. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  801. /* LSM7 */
  802. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  803. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  804. /* LSM8 */
  805. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  806. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  807. /* VOICE2_STUB */
  808. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  809. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  810. /* VOICEMMODE1 */
  811. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  812. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  813. /* VOICEMMODE2 */
  814. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  815. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  816. };
  817. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  818. [MSM_BACKEND_DAI_MAX];
  819. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  820. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  821. static struct msm_pcm_stream_app_type_cfg
  822. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  823. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  824. /* The caller of this should acquire routing lock */
  825. void msm_pcm_routing_get_bedai_info(int be_idx,
  826. struct msm_pcm_routing_bdai_data *be_dai)
  827. {
  828. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  829. memcpy(be_dai, &msm_bedais[be_idx],
  830. sizeof(struct msm_pcm_routing_bdai_data));
  831. }
  832. /* The caller of this should acquire routing lock */
  833. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  834. struct msm_pcm_routing_fdai_data *fe_dai)
  835. {
  836. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  837. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  838. sizeof(struct msm_pcm_routing_fdai_data));
  839. }
  840. void msm_pcm_routing_acquire_lock(void)
  841. {
  842. mutex_lock(&routing_lock);
  843. }
  844. void msm_pcm_routing_release_lock(void)
  845. {
  846. mutex_unlock(&routing_lock);
  847. }
  848. static int msm_pcm_routing_get_app_type_idx(int app_type)
  849. {
  850. int idx;
  851. pr_debug("%s: app_type: %d\n", __func__, app_type);
  852. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  853. if (app_type_cfg[idx].app_type == app_type)
  854. return idx;
  855. }
  856. pr_info("%s: App type not available, fallback to default\n", __func__);
  857. return 0;
  858. }
  859. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  860. {
  861. int idx;
  862. pr_debug("%s: app_type: %d\n", __func__, app_type);
  863. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  864. if (lsm_app_type_cfg[idx].app_type == app_type)
  865. return idx;
  866. }
  867. pr_debug("%s: App type not available, fallback to default\n", __func__);
  868. return 0;
  869. }
  870. static int get_port_id(int port_id)
  871. {
  872. int ret = port_id;
  873. if (port_id == AFE_LOOPBACK_TX) {
  874. /*
  875. * Return afe_loopback_tx_port_id if set. Else return
  876. * msm_ec_ref_port_id to maintain backward compatibility.
  877. */
  878. if (afe_loopback_tx_port_id != -1)
  879. ret = afe_loopback_tx_port_id;
  880. else
  881. ret = msm_ec_ref_port_id;
  882. }
  883. return ret;
  884. }
  885. static bool is_mm_lsm_fe_id(int fe_id)
  886. {
  887. bool rc = true;
  888. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  889. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  890. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  891. rc = false;
  892. }
  893. return rc;
  894. }
  895. /*
  896. * msm_pcm_routing_send_chmix_cfg:
  897. * send the channel mixer command to mix the input channels
  898. * into output channels.
  899. *
  900. * @fe_id: front end id
  901. * @ip_channel_cnt: input channel count
  902. * @op_channel_cnt: output channel count
  903. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  904. * @session_type: indicates session is of type TX or RX
  905. * @stream_type: indicates either Audio or Listen stream type
  906. */
  907. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  908. int op_channel_cnt, int *ch_wght_coeff,
  909. int session_type, int stream_type)
  910. {
  911. int rc = 0, idx = 0;
  912. int be_index = 0, port_id;
  913. unsigned int session_id = 0;
  914. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  915. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  916. stream_type);
  917. if (!is_mm_lsm_fe_id(fe_id)) {
  918. /* bad ID assigned in machine driver */
  919. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  920. return -EINVAL;
  921. }
  922. if (ch_wght_coeff == NULL) {
  923. pr_err("%s: Null channel weightage coefficients passed\n",
  924. __func__);
  925. return -EINVAL;
  926. }
  927. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  928. port_id = msm_bedais[be_index].port_id;
  929. if (!msm_bedais[be_index].active ||
  930. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  931. continue;
  932. session_id = fe_dai_map[fe_id][session_type].strm_id;
  933. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  934. unsigned long copp =
  935. session_copp_map[fe_id][session_type][be_index];
  936. if (!test_bit(idx, &copp))
  937. continue;
  938. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  939. session_id, ip_channel_cnt,
  940. op_channel_cnt, ch_wght_coeff,
  941. session_type, stream_type);
  942. if (rc < 0)
  943. pr_err("%s: err setting channel mix config\n",
  944. __func__);
  945. }
  946. }
  947. return 0;
  948. }
  949. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  950. /**
  951. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  952. * setting before use case start.
  953. *
  954. * @fe_id: frontend idx
  955. * @type: stream direction type
  956. * @params: parameters of channel mixer setting
  957. *
  958. * Return 0 for success
  959. */
  960. int msm_pcm_routing_set_channel_mixer_cfg(
  961. int fe_id, int type,
  962. struct msm_pcm_channel_mixer *params)
  963. {
  964. int i, j = 0;
  965. channel_mixer_v2[fe_id][type].enable = params->enable;
  966. channel_mixer_v2[fe_id][type].rule = params->rule;
  967. channel_mixer_v2[fe_id][type].input_channel =
  968. params->input_channel;
  969. channel_mixer_v2[fe_id][type].output_channel =
  970. params->output_channel;
  971. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  972. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  973. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  974. params->in_ch_map[i];
  975. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  976. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  977. params->out_ch_map[i];
  978. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  979. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  980. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  981. params->channel_weight[i][j];
  982. channel_mixer_v2[fe_id][type].override_in_ch_map =
  983. params->override_in_ch_map;
  984. channel_mixer_v2[fe_id][type].override_out_ch_map =
  985. params->override_out_ch_map;
  986. return 0;
  987. }
  988. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  989. int msm_pcm_routing_reg_stream_app_type_cfg(
  990. int fedai_id, int session_type, int be_id,
  991. struct msm_pcm_stream_app_type_cfg *cfg_data)
  992. {
  993. int ret = 0;
  994. if (cfg_data == NULL) {
  995. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  996. ret = -EINVAL;
  997. goto done;
  998. }
  999. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1000. __func__, fedai_id, session_type, be_id,
  1001. cfg_data->app_type, cfg_data->acdb_dev_id,
  1002. cfg_data->sample_rate);
  1003. if (!is_mm_lsm_fe_id(fedai_id)) {
  1004. pr_err("%s: Invalid machine driver ID %d\n",
  1005. __func__, fedai_id);
  1006. ret = -EINVAL;
  1007. goto done;
  1008. }
  1009. if (session_type != SESSION_TYPE_RX &&
  1010. session_type != SESSION_TYPE_TX) {
  1011. pr_err("%s: Invalid session type %d\n",
  1012. __func__, session_type);
  1013. ret = -EINVAL;
  1014. goto done;
  1015. }
  1016. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1017. pr_err("%s: Received out of bounds be_id %d\n",
  1018. __func__, be_id);
  1019. ret = -EINVAL;
  1020. goto done;
  1021. }
  1022. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1023. /*
  1024. * Store the BE ID of the configuration information set as the latest so
  1025. * the get mixer control knows what to return.
  1026. */
  1027. last_be_id_configured[fedai_id][session_type] = be_id;
  1028. done:
  1029. return ret;
  1030. }
  1031. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1032. /**
  1033. * msm_pcm_routing_get_stream_app_type_cfg
  1034. *
  1035. * Receives fedai_id, session_type, be_id, and populates app_type,
  1036. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1037. * -EINVAL and does not alter passed values.
  1038. *
  1039. * fedai_id - Passed value, front end ID for which app type config is wanted
  1040. * session_type - Passed value, session type for which app type config
  1041. * is wanted
  1042. * be_id - Returned value, back end device id the app type config data is for
  1043. * cfg_data - Returned value, configuration data used by app type config
  1044. */
  1045. int msm_pcm_routing_get_stream_app_type_cfg(
  1046. int fedai_id, int session_type, int *bedai_id,
  1047. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1048. {
  1049. int be_id;
  1050. int ret = 0;
  1051. if (bedai_id == NULL) {
  1052. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1053. ret = -EINVAL;
  1054. goto done;
  1055. } else if (cfg_data == NULL) {
  1056. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1057. ret = -EINVAL;
  1058. goto done;
  1059. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1060. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1061. ret = -EINVAL;
  1062. goto done;
  1063. } else if (session_type != SESSION_TYPE_RX &&
  1064. session_type != SESSION_TYPE_TX) {
  1065. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1066. ret = -EINVAL;
  1067. goto done;
  1068. }
  1069. be_id = last_be_id_configured[fedai_id][session_type];
  1070. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1071. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1072. ret = -EINVAL;
  1073. goto done;
  1074. }
  1075. *bedai_id = be_id;
  1076. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1077. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1078. __func__, fedai_id, session_type, *bedai_id,
  1079. cfg_data->app_type, cfg_data->acdb_dev_id,
  1080. cfg_data->sample_rate);
  1081. done:
  1082. return ret;
  1083. }
  1084. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1085. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1086. int cal_index)
  1087. {
  1088. struct list_head *ptr, *next;
  1089. struct cal_block_data *cal_block = NULL;
  1090. pr_debug("%s\n", __func__);
  1091. list_for_each_safe(ptr, next,
  1092. &cal_data[cal_index]->cal_blocks) {
  1093. cal_block = list_entry(ptr,
  1094. struct cal_block_data, list);
  1095. if (cal_utils_is_cal_stale(cal_block))
  1096. continue;
  1097. if (((struct audio_cal_info_adm_top *)cal_block
  1098. ->cal_info)->path == path) {
  1099. return cal_block;
  1100. }
  1101. }
  1102. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1103. return NULL;
  1104. }
  1105. static struct cal_block_data *msm_routing_find_topology(int path,
  1106. int app_type,
  1107. int acdb_id,
  1108. int cal_index,
  1109. bool exact)
  1110. {
  1111. struct list_head *ptr, *next;
  1112. struct cal_block_data *cal_block = NULL;
  1113. struct audio_cal_info_adm_top *cal_info;
  1114. pr_debug("%s\n", __func__);
  1115. list_for_each_safe(ptr, next,
  1116. &cal_data[cal_index]->cal_blocks) {
  1117. cal_block = list_entry(ptr,
  1118. struct cal_block_data, list);
  1119. if (cal_utils_is_cal_stale(cal_block))
  1120. continue;
  1121. cal_info = (struct audio_cal_info_adm_top *)
  1122. cal_block->cal_info;
  1123. if ((cal_info->path == path) &&
  1124. (cal_info->app_type == app_type) &&
  1125. (cal_info->acdb_id == acdb_id)) {
  1126. return cal_block;
  1127. }
  1128. }
  1129. pr_debug("%s: Can't find topology for path %d, app %d, "
  1130. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1131. exact ? "fail" : "defaulting to search by path");
  1132. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1133. cal_index);
  1134. }
  1135. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1136. int acdb_dev_id, int idx,
  1137. bool exact)
  1138. {
  1139. int topology = -EINVAL;
  1140. struct cal_block_data *cal_block = NULL;
  1141. mutex_lock(&cal_data[idx]->lock);
  1142. cal_block = msm_routing_find_topology(session_type, app_type,
  1143. acdb_dev_id, idx, exact);
  1144. if (cal_block != NULL) {
  1145. topology = ((struct audio_cal_info_adm_top *)
  1146. cal_block->cal_info)->topology;
  1147. }
  1148. mutex_unlock(&cal_data[idx]->lock);
  1149. return topology;
  1150. }
  1151. /*
  1152. * Retrieving cal_block will mark cal_block as stale.
  1153. * Hence it cannot be reused or resent unless the flag
  1154. * is reset.
  1155. */
  1156. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1157. int be_id)
  1158. {
  1159. int topology = NULL_COPP_TOPOLOGY;
  1160. int app_type = 0, acdb_dev_id = 0;
  1161. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1162. __func__, fedai_id, session_type, be_id);
  1163. if (cal_data == NULL)
  1164. goto done;
  1165. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1166. acdb_dev_id =
  1167. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1168. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1169. topology = msm_routing_find_topology_on_index(session_type,
  1170. app_type,
  1171. acdb_dev_id,
  1172. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1173. true /*exact*/);
  1174. if (topology < 0) {
  1175. pr_debug("%s: Check for compatible topology\n", __func__);
  1176. topology = msm_routing_find_topology_on_index(session_type,
  1177. app_type,
  1178. acdb_dev_id,
  1179. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1180. false /*exact*/);
  1181. if (topology < 0)
  1182. topology = NULL_COPP_TOPOLOGY;
  1183. }
  1184. done:
  1185. pr_debug("%s: Using topology %d\n", __func__, topology);
  1186. return topology;
  1187. }
  1188. static uint8_t is_be_dai_extproc(int be_dai)
  1189. {
  1190. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1191. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1192. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1193. return 1;
  1194. else
  1195. return 0;
  1196. }
  1197. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1198. int path_type, int perf_mode,
  1199. uint32_t passthr_mode)
  1200. {
  1201. int i, port_type, j, num_copps = 0;
  1202. struct route_payload payload;
  1203. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1204. path_type == ADM_PATH_COMPRESSED_RX) ?
  1205. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1206. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1207. if (!is_be_dai_extproc(i) &&
  1208. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1209. (msm_bedais[i].active) &&
  1210. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1211. int port_id = get_port_id(msm_bedais[i].port_id);
  1212. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1213. unsigned long copp =
  1214. session_copp_map[fedai_id][sess_type][i];
  1215. if (test_bit(j, &copp)) {
  1216. payload.port_id[num_copps] = port_id;
  1217. payload.copp_idx[num_copps] = j;
  1218. payload.app_type[num_copps] =
  1219. fe_dai_app_type_cfg
  1220. [fedai_id][sess_type][i]
  1221. .app_type;
  1222. payload.acdb_dev_id[num_copps] =
  1223. fe_dai_app_type_cfg
  1224. [fedai_id][sess_type][i]
  1225. .acdb_dev_id;
  1226. payload.sample_rate[num_copps] =
  1227. fe_dai_app_type_cfg
  1228. [fedai_id][sess_type][i]
  1229. .sample_rate;
  1230. num_copps++;
  1231. }
  1232. }
  1233. }
  1234. }
  1235. if (num_copps) {
  1236. payload.num_copps = num_copps;
  1237. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1238. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1239. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1240. }
  1241. }
  1242. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1243. int stream_type)
  1244. {
  1245. int i, session_type, path_type, port_type;
  1246. u32 mode = 0;
  1247. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1248. /* bad ID assigned in machine driver */
  1249. pr_err("%s: bad MM ID\n", __func__);
  1250. return;
  1251. }
  1252. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1253. session_type = SESSION_TYPE_RX;
  1254. path_type = ADM_PATH_PLAYBACK;
  1255. port_type = MSM_AFE_PORT_TYPE_RX;
  1256. } else {
  1257. session_type = SESSION_TYPE_TX;
  1258. path_type = ADM_PATH_LIVE_REC;
  1259. port_type = MSM_AFE_PORT_TYPE_TX;
  1260. }
  1261. mutex_lock(&routing_lock);
  1262. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1263. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1264. if (!is_be_dai_extproc(i) &&
  1265. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1266. (msm_bedais[i].active) &&
  1267. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1268. mode = afe_get_port_type(msm_bedais[i].port_id);
  1269. adm_connect_afe_port(mode, dspst_id,
  1270. msm_bedais[i].port_id);
  1271. break;
  1272. }
  1273. }
  1274. mutex_unlock(&routing_lock);
  1275. }
  1276. static bool route_check_fe_id_adm_support(int fe_id)
  1277. {
  1278. bool rc = true;
  1279. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1280. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1281. /* fe id is listen while port is set to afe */
  1282. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1283. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1284. __func__, fe_id, lsm_port_index);
  1285. rc = false;
  1286. }
  1287. }
  1288. return rc;
  1289. }
  1290. /*
  1291. * msm_pcm_routing_get_pp_ch_cnt:
  1292. * Read the processed channel count
  1293. *
  1294. * @fe_id: Front end ID
  1295. * @session_type: Inidicates RX or TX session type
  1296. */
  1297. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1298. {
  1299. struct msm_pcm_stream_app_type_cfg cfg_data;
  1300. int be_id = 0, app_type_idx = 0, app_type = 0;
  1301. int ret = -EINVAL;
  1302. memset(&cfg_data, 0, sizeof(cfg_data));
  1303. if (!is_mm_lsm_fe_id(fe_id)) {
  1304. pr_err("%s: bad MM ID\n", __func__);
  1305. return -EINVAL;
  1306. }
  1307. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1308. &be_id, &cfg_data);
  1309. if (ret) {
  1310. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1311. return ret;
  1312. }
  1313. app_type = cfg_data.app_type;
  1314. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1315. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1316. }
  1317. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1318. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1319. int dspst_id, int stream_type,
  1320. uint32_t passthr_mode)
  1321. {
  1322. int i, j, session_type, path_type, port_type, topology;
  1323. int num_copps = 0;
  1324. struct route_payload payload;
  1325. u32 channels, sample_rate;
  1326. u16 bit_width = 16, be_bit_width;
  1327. bool is_lsm;
  1328. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1329. __func__, fe_id, perf_mode, dspst_id,
  1330. stream_type, passthr_mode);
  1331. if (!is_mm_lsm_fe_id(fe_id)) {
  1332. /* bad ID assigned in machine driver */
  1333. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1334. return -EINVAL;
  1335. }
  1336. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1337. session_type = SESSION_TYPE_RX;
  1338. if (passthr_mode != LEGACY_PCM)
  1339. path_type = ADM_PATH_COMPRESSED_RX;
  1340. else
  1341. path_type = ADM_PATH_PLAYBACK;
  1342. port_type = MSM_AFE_PORT_TYPE_RX;
  1343. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1344. session_type = SESSION_TYPE_TX;
  1345. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1346. path_type = ADM_PATH_COMPRESSED_TX;
  1347. else
  1348. path_type = ADM_PATH_LIVE_REC;
  1349. port_type = MSM_AFE_PORT_TYPE_TX;
  1350. } else {
  1351. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1352. return -EINVAL;
  1353. }
  1354. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1355. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1356. mutex_lock(&routing_lock);
  1357. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1358. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1359. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1360. if (!route_check_fe_id_adm_support(fe_id)) {
  1361. /* ignore adm open if not supported for fe_id */
  1362. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1363. mutex_unlock(&routing_lock);
  1364. return 0;
  1365. }
  1366. payload.num_copps = 0; /* only RX needs to use payload */
  1367. /* re-enable EQ if active */
  1368. msm_qti_pp_send_eq_values(fe_id);
  1369. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1370. if (!is_be_dai_extproc(i) &&
  1371. (afe_get_port_type(msm_bedais[i].port_id) ==
  1372. port_type) &&
  1373. (msm_bedais[i].active) &&
  1374. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1375. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1376. int port_id = get_port_id(msm_bedais[i].port_id);
  1377. /*
  1378. * check if ADM needs to be configured with different
  1379. * channel mapping than backend
  1380. */
  1381. if (!msm_bedais[i].adm_override_ch)
  1382. channels = msm_bedais[i].channel;
  1383. else
  1384. channels = msm_bedais[i].adm_override_ch;
  1385. bit_width = msm_routing_get_bit_width(
  1386. msm_bedais[i].format);
  1387. app_type =
  1388. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1389. if (app_type && is_lsm) {
  1390. app_type_idx =
  1391. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1392. sample_rate =
  1393. fe_dai_app_type_cfg[fe_id][session_type][i]
  1394. .sample_rate;
  1395. bit_width =
  1396. lsm_app_type_cfg[app_type_idx].bit_width;
  1397. } else if (app_type) {
  1398. app_type_idx =
  1399. msm_pcm_routing_get_app_type_idx(
  1400. app_type);
  1401. sample_rate =
  1402. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1403. bit_width =
  1404. app_type_cfg[app_type_idx].bit_width;
  1405. } else {
  1406. sample_rate = msm_bedais[i].sample_rate;
  1407. }
  1408. acdb_dev_id =
  1409. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1410. topology = msm_routing_get_adm_topology(fe_id,
  1411. session_type,
  1412. i);
  1413. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1414. || (passthr_mode ==
  1415. COMPRESSED_PASSTHROUGH_GEN)
  1416. || (passthr_mode ==
  1417. COMPRESSED_PASSTHROUGH_IEC61937))
  1418. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1419. pr_debug("%s: Before adm open topology %d\n", __func__,
  1420. topology);
  1421. be_bit_width = msm_routing_get_bit_width(
  1422. msm_bedais[i].format);
  1423. if (hifi_filter_enabled && (msm_bedais[i].sample_rate
  1424. == 384000 || msm_bedais[i].sample_rate ==
  1425. 352800) && be_bit_width == 32)
  1426. bit_width = msm_routing_get_bit_width(
  1427. SNDRV_PCM_FORMAT_S32_LE);
  1428. copp_idx =
  1429. adm_open(port_id, path_type, sample_rate,
  1430. channels, topology, perf_mode,
  1431. bit_width, app_type, acdb_dev_id,
  1432. session_type);
  1433. if ((copp_idx < 0) ||
  1434. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1435. pr_err("%s:adm open failed coppid:%d\n",
  1436. __func__, copp_idx);
  1437. mutex_unlock(&routing_lock);
  1438. return -EINVAL;
  1439. }
  1440. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1441. __func__, fe_id, session_type, i);
  1442. set_bit(copp_idx,
  1443. &session_copp_map[fe_id][session_type][i]);
  1444. if (msm_is_resample_needed(
  1445. sample_rate,
  1446. msm_bedais[i].sample_rate))
  1447. adm_copp_mfc_cfg(port_id, copp_idx,
  1448. msm_bedais[i].sample_rate);
  1449. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1450. unsigned long copp =
  1451. session_copp_map[fe_id][session_type][i];
  1452. if (test_bit(j, &copp)) {
  1453. payload.port_id[num_copps] = port_id;
  1454. payload.copp_idx[num_copps] = j;
  1455. payload.app_type[num_copps] =
  1456. fe_dai_app_type_cfg
  1457. [fe_id][session_type][i]
  1458. .app_type;
  1459. payload.acdb_dev_id[num_copps] =
  1460. fe_dai_app_type_cfg
  1461. [fe_id][session_type][i]
  1462. .acdb_dev_id;
  1463. payload.sample_rate[num_copps] =
  1464. fe_dai_app_type_cfg
  1465. [fe_id][session_type][i]
  1466. .sample_rate;
  1467. num_copps++;
  1468. }
  1469. }
  1470. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1471. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1472. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1473. msm_routing_send_device_pp_params(port_id,
  1474. copp_idx, fe_id);
  1475. }
  1476. }
  1477. if (num_copps) {
  1478. payload.num_copps = num_copps;
  1479. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1480. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1481. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1482. }
  1483. mutex_unlock(&routing_lock);
  1484. return 0;
  1485. }
  1486. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1487. {
  1488. u32 session_id;
  1489. switch (val) {
  1490. case MSM_FRONTEND_DAI_QCHAT:
  1491. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1492. break;
  1493. case MSM_FRONTEND_DAI_VOIP:
  1494. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1495. break;
  1496. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1497. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1498. break;
  1499. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1500. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1501. break;
  1502. default:
  1503. session_id = 0;
  1504. }
  1505. pr_debug("%s session_id 0x%x", __func__, session_id);
  1506. return session_id;
  1507. }
  1508. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1509. int dspst_id, int stream_type)
  1510. {
  1511. int copp_idx = 0;
  1512. int sess_type = 0;
  1513. int j = 0, be_id = 0;
  1514. int ret = 0;
  1515. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1516. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1517. return 0;
  1518. }
  1519. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1520. sess_type = SESSION_TYPE_RX;
  1521. else
  1522. sess_type = SESSION_TYPE_TX;
  1523. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1524. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1525. __func__, fe_id, sess_type);
  1526. return 0;
  1527. }
  1528. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1529. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1530. channel_mixer_v2[fe_id][sess_type].input_channel;
  1531. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1532. __func__, sess_type, fe_id,
  1533. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1534. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1535. msm_bedais[be_id].active);
  1536. if ((msm_bedais[be_id].active) &&
  1537. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1538. unsigned long copp =
  1539. session_copp_map[fe_id][sess_type][be_id];
  1540. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1541. if (test_bit(j, &copp)) {
  1542. copp_idx = j;
  1543. break;
  1544. }
  1545. }
  1546. ret = adm_programable_channel_mixer(
  1547. msm_bedais[be_id].port_id,
  1548. copp_idx, dspst_id, sess_type,
  1549. &channel_mixer_v2[fe_id][sess_type], 0);
  1550. }
  1551. return ret;
  1552. }
  1553. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1554. int dspst_id, int stream_type)
  1555. {
  1556. int copp_idx = 0;
  1557. int sess_type = 0;
  1558. int i = 0, j = 0, be_id;
  1559. int ret = 0;
  1560. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1561. dspst_id, stream_type);
  1562. if (ret) {
  1563. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1564. fe_id);
  1565. return ret;
  1566. }
  1567. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1568. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1569. return 0;
  1570. }
  1571. if (!(channel_mixer[fe_id].enable)) {
  1572. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1573. __func__, fe_id);
  1574. return 0;
  1575. }
  1576. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1577. sess_type = SESSION_TYPE_RX;
  1578. else
  1579. sess_type = SESSION_TYPE_TX;
  1580. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1581. ++i) {
  1582. be_id = channel_input[fe_id][i] - 1;
  1583. channel_mixer[fe_id].input_channels[i] =
  1584. msm_bedais[be_id].channel;
  1585. if ((msm_bedais[be_id].active) &&
  1586. test_bit(fe_id,
  1587. &msm_bedais[be_id].fe_sessions[0])) {
  1588. unsigned long copp =
  1589. session_copp_map[fe_id][sess_type][be_id];
  1590. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1591. if (test_bit(j, &copp)) {
  1592. copp_idx = j;
  1593. break;
  1594. }
  1595. }
  1596. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1597. __func__,
  1598. fe_id, be_id, msm_bedais[be_id].channel,
  1599. copp_idx);
  1600. ret = adm_programable_channel_mixer(
  1601. get_port_id(msm_bedais[be_id].port_id),
  1602. copp_idx, dspst_id, sess_type,
  1603. channel_mixer + fe_id, i);
  1604. }
  1605. }
  1606. return ret;
  1607. }
  1608. /**
  1609. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1610. * setting during runtime.
  1611. *
  1612. * @be_id: backend index
  1613. * @session_id: session index
  1614. * @session_type: session type
  1615. * @params: parameters for channel mixer
  1616. *
  1617. * Retuen: 0 for success, else error
  1618. */
  1619. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1620. int session_type,
  1621. struct msm_pcm_channel_mixer *params)
  1622. {
  1623. int rc = 0;
  1624. int port_id, copp_idx = 0;
  1625. be_id--;
  1626. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1627. pr_err("%s: invalid backend id %d\n", __func__,
  1628. be_id);
  1629. return -EINVAL;
  1630. }
  1631. port_id = msm_bedais[be_id].port_id;
  1632. copp_idx = adm_get_default_copp_idx(port_id);
  1633. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1634. __func__, port_id, copp_idx, session_id);
  1635. if ((params->input_channel < 0) ||
  1636. (params->input_channel > ADM_MAX_CHANNELS)) {
  1637. pr_err("%s: invalid input channel %d\n", __func__,
  1638. params->input_channel);
  1639. return -EINVAL;
  1640. }
  1641. if ((params->output_channel < 0) ||
  1642. (params->output_channel > ADM_MAX_CHANNELS)) {
  1643. pr_err("%s: invalid output channel %d\n", __func__,
  1644. params->output_channel);
  1645. return -EINVAL;
  1646. }
  1647. params->input_channels[0] = params->input_channel;
  1648. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1649. __func__, session_type,
  1650. params->override_in_ch_map,
  1651. params->override_out_ch_map,
  1652. msm_bedais[be_id].active);
  1653. rc = adm_programable_channel_mixer(port_id,
  1654. copp_idx,
  1655. session_id,
  1656. session_type,
  1657. params,
  1658. 0);
  1659. if (rc) {
  1660. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1661. rc = -EINVAL;
  1662. }
  1663. return rc;
  1664. }
  1665. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1666. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1667. int dspst_id, int stream_type)
  1668. {
  1669. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1670. struct route_payload payload;
  1671. u32 channels, sample_rate;
  1672. uint16_t bits_per_sample = 16, be_bit_width;
  1673. uint32_t passthr_mode = LEGACY_PCM;
  1674. int ret = 0;
  1675. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1676. /* bad ID assigned in machine driver */
  1677. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1678. return -EINVAL;
  1679. }
  1680. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1681. session_type = SESSION_TYPE_RX;
  1682. path_type = ADM_PATH_PLAYBACK;
  1683. port_type = MSM_AFE_PORT_TYPE_RX;
  1684. } else {
  1685. session_type = SESSION_TYPE_TX;
  1686. path_type = ADM_PATH_LIVE_REC;
  1687. port_type = MSM_AFE_PORT_TYPE_TX;
  1688. }
  1689. mutex_lock(&routing_lock);
  1690. payload.num_copps = 0; /* only RX needs to use payload */
  1691. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1692. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1693. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1694. /* re-enable EQ if active */
  1695. msm_qti_pp_send_eq_values(fedai_id);
  1696. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1697. if (!is_be_dai_extproc(i) &&
  1698. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1699. (msm_bedais[i].active) &&
  1700. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1701. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1702. int port_id = get_port_id(msm_bedais[i].port_id);
  1703. /*
  1704. * check if ADM needs to be configured with different
  1705. * channel mapping than backend
  1706. */
  1707. if (!msm_bedais[i].adm_override_ch)
  1708. channels = msm_bedais[i].channel;
  1709. else
  1710. channels = msm_bedais[i].adm_override_ch;
  1711. bits_per_sample = msm_routing_get_bit_width(
  1712. msm_bedais[i].format);
  1713. app_type =
  1714. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1715. if (app_type) {
  1716. app_type_idx =
  1717. msm_pcm_routing_get_app_type_idx(app_type);
  1718. sample_rate =
  1719. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1720. .sample_rate;
  1721. bits_per_sample =
  1722. app_type_cfg[app_type_idx].bit_width;
  1723. } else
  1724. sample_rate = msm_bedais[i].sample_rate;
  1725. acdb_dev_id =
  1726. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1727. .acdb_dev_id;
  1728. topology = msm_routing_get_adm_topology(fedai_id,
  1729. session_type,
  1730. i);
  1731. be_bit_width = msm_routing_get_bit_width(
  1732. msm_bedais[i].format);
  1733. if (hifi_filter_enabled && (msm_bedais[i].sample_rate ==
  1734. 384000 ||msm_bedais[i].sample_rate == 352800)
  1735. && be_bit_width == 32)
  1736. bits_per_sample = msm_routing_get_bit_width(
  1737. SNDRV_PCM_FORMAT_S32_LE);
  1738. copp_idx = adm_open(port_id, path_type,
  1739. sample_rate, channels, topology,
  1740. perf_mode, bits_per_sample,
  1741. app_type, acdb_dev_id,
  1742. session_type);
  1743. if ((copp_idx < 0) ||
  1744. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1745. pr_err("%s: adm open failed copp_idx:%d\n",
  1746. __func__, copp_idx);
  1747. mutex_unlock(&routing_lock);
  1748. return -EINVAL;
  1749. }
  1750. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1751. __func__, fedai_id, session_type, i);
  1752. set_bit(copp_idx,
  1753. &session_copp_map[fedai_id][session_type][i]);
  1754. if (msm_is_resample_needed(
  1755. sample_rate,
  1756. msm_bedais[i].sample_rate))
  1757. adm_copp_mfc_cfg(port_id, copp_idx,
  1758. msm_bedais[i].sample_rate);
  1759. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1760. unsigned long copp =
  1761. session_copp_map[fedai_id][session_type][i];
  1762. if (test_bit(j, &copp)) {
  1763. payload.port_id[num_copps] = port_id;
  1764. payload.copp_idx[num_copps] = j;
  1765. payload.app_type[num_copps] =
  1766. fe_dai_app_type_cfg
  1767. [fedai_id][session_type]
  1768. [i].app_type;
  1769. payload.acdb_dev_id[num_copps] =
  1770. fe_dai_app_type_cfg
  1771. [fedai_id][session_type]
  1772. [i].acdb_dev_id;
  1773. payload.sample_rate[num_copps] =
  1774. fe_dai_app_type_cfg
  1775. [fedai_id][session_type]
  1776. [i].sample_rate;
  1777. num_copps++;
  1778. }
  1779. }
  1780. if (perf_mode == LEGACY_PCM_MODE)
  1781. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1782. topology, channels);
  1783. }
  1784. }
  1785. if (num_copps) {
  1786. payload.num_copps = num_copps;
  1787. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1788. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1789. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1790. }
  1791. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1792. dspst_id, stream_type);
  1793. mutex_unlock(&routing_lock);
  1794. return ret;
  1795. }
  1796. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1797. int dspst_id, int stream_type,
  1798. struct msm_pcm_routing_evt event_info)
  1799. {
  1800. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1801. stream_type)) {
  1802. pr_err("%s: failed to reg phy stream\n", __func__);
  1803. return -EINVAL;
  1804. }
  1805. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1806. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1807. else
  1808. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1809. return 0;
  1810. }
  1811. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1812. {
  1813. int i, port_type, session_type, path_type, topology, port_id;
  1814. struct msm_pcm_routing_fdai_data *fdai;
  1815. if (!is_mm_lsm_fe_id(fedai_id)) {
  1816. /* bad ID assigned in machine driver */
  1817. pr_err("%s: bad MM ID\n", __func__);
  1818. return;
  1819. }
  1820. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1821. port_type = MSM_AFE_PORT_TYPE_RX;
  1822. session_type = SESSION_TYPE_RX;
  1823. path_type = ADM_PATH_PLAYBACK;
  1824. } else {
  1825. port_type = MSM_AFE_PORT_TYPE_TX;
  1826. session_type = SESSION_TYPE_TX;
  1827. path_type = ADM_PATH_LIVE_REC;
  1828. }
  1829. mutex_lock(&routing_lock);
  1830. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1831. if (!is_be_dai_extproc(i) &&
  1832. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1833. (msm_bedais[i].active) &&
  1834. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1835. int idx;
  1836. unsigned long copp =
  1837. session_copp_map[fedai_id][session_type][i];
  1838. fdai = &fe_dai_map[fedai_id][session_type];
  1839. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1840. if (test_bit(idx, &copp))
  1841. break;
  1842. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1843. pr_debug("%s: copp idx is invalid, exiting\n",
  1844. __func__);
  1845. continue;
  1846. }
  1847. port_id = get_port_id(msm_bedais[i].port_id);
  1848. topology = adm_get_topology_for_port_copp_idx(
  1849. port_id, idx);
  1850. msm_routing_unload_topology(topology);
  1851. adm_close(port_id, fdai->perf_mode, idx);
  1852. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1853. __func__, copp, fedai_id, session_type, i);
  1854. clear_bit(idx,
  1855. &session_copp_map[fedai_id][session_type][i]);
  1856. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1857. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1858. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1859. (fdai->passthr_mode == LEGACY_PCM))
  1860. msm_pcm_routing_deinit_pp(port_id, topology);
  1861. }
  1862. }
  1863. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1864. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1865. mutex_unlock(&routing_lock);
  1866. }
  1867. /* Check if FE/BE route is set */
  1868. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1869. {
  1870. bool rc = false;
  1871. if (!is_mm_lsm_fe_id(fe_id)) {
  1872. /* recheck FE ID in the mixer control defined in this file */
  1873. pr_err("%s: bad MM ID\n", __func__);
  1874. return rc;
  1875. }
  1876. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1877. rc = true;
  1878. return rc;
  1879. }
  1880. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1881. {
  1882. int session_type, path_type, topology;
  1883. u32 channels, sample_rate;
  1884. uint16_t bits_per_sample = 16, be_bit_width;
  1885. struct msm_pcm_routing_fdai_data *fdai;
  1886. uint32_t passthr_mode;
  1887. bool is_lsm;
  1888. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1889. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1890. afe_get_port_type(msm_bedais[reg].port_id) ==
  1891. MSM_AFE_PORT_TYPE_RX) {
  1892. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1893. __func__, set, msm_bedais[reg].port_id);
  1894. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1895. } else if (!is_mm_lsm_fe_id(val)) {
  1896. /* recheck FE ID in the mixer control defined in this file */
  1897. pr_err("%s: bad MM ID\n", __func__);
  1898. return;
  1899. }
  1900. if (!route_check_fe_id_adm_support(val)) {
  1901. /* ignore adm open if not supported for fe_id */
  1902. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1903. if (set)
  1904. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1905. else
  1906. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1907. return;
  1908. }
  1909. session_type =
  1910. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1911. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1912. fdai = &fe_dai_map[val][session_type];
  1913. passthr_mode = fdai->passthr_mode;
  1914. if (session_type == SESSION_TYPE_RX) {
  1915. if (passthr_mode != LEGACY_PCM)
  1916. path_type = ADM_PATH_COMPRESSED_RX;
  1917. else
  1918. path_type = ADM_PATH_PLAYBACK;
  1919. } else {
  1920. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1921. path_type = ADM_PATH_COMPRESSED_TX;
  1922. else
  1923. path_type = ADM_PATH_LIVE_REC;
  1924. }
  1925. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1926. (val <= MSM_FRONTEND_DAI_LSM8);
  1927. mutex_lock(&routing_lock);
  1928. if (set) {
  1929. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1930. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1931. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1932. voc_start_playback(set, msm_bedais[reg].port_id);
  1933. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1934. if (msm_bedais[reg].active && fdai->strm_id !=
  1935. INVALID_SESSION) {
  1936. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1937. int port_id = get_port_id(msm_bedais[reg].port_id);
  1938. /*
  1939. * check if ADM needs to be configured with different
  1940. * channel mapping than backend
  1941. */
  1942. if (!msm_bedais[reg].adm_override_ch)
  1943. channels = msm_bedais[reg].channel;
  1944. else
  1945. channels = msm_bedais[reg].adm_override_ch;
  1946. if (session_type == SESSION_TYPE_TX &&
  1947. fdai->be_srate &&
  1948. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1949. pr_debug("%s: flush strm %d diff BE rates\n",
  1950. __func__, fdai->strm_id);
  1951. if (fdai->event_info.event_func)
  1952. fdai->event_info.event_func(
  1953. MSM_PCM_RT_EVT_BUF_RECFG,
  1954. fdai->event_info.priv_data);
  1955. fdai->be_srate = 0; /* might not need it */
  1956. }
  1957. bits_per_sample = msm_routing_get_bit_width(
  1958. msm_bedais[reg].format);
  1959. app_type =
  1960. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1961. if (app_type && is_lsm) {
  1962. app_type_idx =
  1963. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1964. sample_rate =
  1965. fe_dai_app_type_cfg[val][session_type][reg]
  1966. .sample_rate;
  1967. bits_per_sample =
  1968. lsm_app_type_cfg[app_type_idx].bit_width;
  1969. } else if (app_type) {
  1970. app_type_idx =
  1971. msm_pcm_routing_get_app_type_idx(app_type);
  1972. sample_rate =
  1973. fe_dai_app_type_cfg[val][session_type][reg]
  1974. .sample_rate;
  1975. bits_per_sample =
  1976. app_type_cfg[app_type_idx].bit_width;
  1977. } else
  1978. sample_rate = msm_bedais[reg].sample_rate;
  1979. topology = msm_routing_get_adm_topology(val,
  1980. session_type,
  1981. reg);
  1982. acdb_dev_id =
  1983. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1984. be_bit_width = msm_routing_get_bit_width(
  1985. msm_bedais[reg].format);
  1986. if (hifi_filter_enabled && (msm_bedais[reg].sample_rate
  1987. == 384000 ||msm_bedais[reg].sample_rate ==
  1988. 352800) && be_bit_width == 32)
  1989. bits_per_sample = msm_routing_get_bit_width(
  1990. SNDRV_PCM_FORMAT_S32_LE);
  1991. copp_idx = adm_open(port_id, path_type,
  1992. sample_rate, channels, topology,
  1993. fdai->perf_mode, bits_per_sample,
  1994. app_type, acdb_dev_id,
  1995. session_type);
  1996. if ((copp_idx < 0) ||
  1997. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1998. pr_err("%s: adm open failed\n", __func__);
  1999. mutex_unlock(&routing_lock);
  2000. return;
  2001. }
  2002. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  2003. __func__, val, session_type, reg);
  2004. set_bit(copp_idx,
  2005. &session_copp_map[val][session_type][reg]);
  2006. if (msm_is_resample_needed(
  2007. sample_rate,
  2008. msm_bedais[reg].sample_rate))
  2009. adm_copp_mfc_cfg(port_id, copp_idx,
  2010. msm_bedais[reg].sample_rate);
  2011. if (session_type == SESSION_TYPE_RX &&
  2012. fdai->event_info.event_func)
  2013. fdai->event_info.event_func(
  2014. MSM_PCM_RT_EVT_DEVSWITCH,
  2015. fdai->event_info.priv_data);
  2016. msm_pcm_routing_build_matrix(val, session_type,
  2017. path_type,
  2018. fdai->perf_mode,
  2019. passthr_mode);
  2020. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  2021. (passthr_mode == LEGACY_PCM))
  2022. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  2023. topology, channels);
  2024. }
  2025. } else {
  2026. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2027. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2028. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2029. voc_start_playback(set, msm_bedais[reg].port_id);
  2030. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2031. if (msm_bedais[reg].active && fdai->strm_id !=
  2032. INVALID_SESSION) {
  2033. int idx;
  2034. int port_id;
  2035. unsigned long copp =
  2036. session_copp_map[val][session_type][reg];
  2037. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2038. if (test_bit(idx, &copp))
  2039. break;
  2040. if (idx >= MAX_COPPS_PER_PORT) {
  2041. pr_debug("%s: copp idx is invalid, exiting\n",
  2042. __func__);
  2043. mutex_unlock(&routing_lock);
  2044. return;
  2045. }
  2046. port_id = get_port_id(msm_bedais[reg].port_id);
  2047. topology = adm_get_topology_for_port_copp_idx(port_id,
  2048. idx);
  2049. msm_routing_unload_topology(topology);
  2050. adm_close(port_id, fdai->perf_mode, idx);
  2051. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2052. __func__, copp, val, session_type, reg,
  2053. topology);
  2054. clear_bit(idx,
  2055. &session_copp_map[val][session_type][reg]);
  2056. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2057. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2058. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2059. (passthr_mode == LEGACY_PCM))
  2060. msm_pcm_routing_deinit_pp(port_id, topology);
  2061. msm_pcm_routing_build_matrix(val, session_type,
  2062. path_type,
  2063. fdai->perf_mode,
  2064. passthr_mode);
  2065. }
  2066. }
  2067. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2068. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2069. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2070. mutex_unlock(&routing_lock);
  2071. }
  2072. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2073. struct snd_ctl_elem_value *ucontrol)
  2074. {
  2075. struct soc_mixer_control *mc =
  2076. (struct soc_mixer_control *)kcontrol->private_value;
  2077. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2078. ucontrol->value.integer.value[0] = 1;
  2079. else
  2080. ucontrol->value.integer.value[0] = 0;
  2081. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2082. ucontrol->value.integer.value[0]);
  2083. return 0;
  2084. }
  2085. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2086. struct snd_ctl_elem_value *ucontrol)
  2087. {
  2088. struct snd_soc_dapm_widget *widget =
  2089. snd_soc_dapm_kcontrol_widget(kcontrol);
  2090. struct soc_mixer_control *mc =
  2091. (struct soc_mixer_control *)kcontrol->private_value;
  2092. struct snd_soc_dapm_update *update = NULL;
  2093. if (ucontrol->value.integer.value[0] &&
  2094. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2095. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2096. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2097. update);
  2098. } else if (!ucontrol->value.integer.value[0] &&
  2099. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2100. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2101. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2102. update);
  2103. }
  2104. return 1;
  2105. }
  2106. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2107. struct snd_ctl_elem_value *ucontrol)
  2108. {
  2109. struct soc_mixer_control *mc =
  2110. (struct soc_mixer_control *)kcontrol->private_value;
  2111. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2112. ucontrol->value.integer.value[0] = 1;
  2113. else
  2114. ucontrol->value.integer.value[0] = 0;
  2115. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2116. ucontrol->value.integer.value[0]);
  2117. return 0;
  2118. }
  2119. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2120. struct snd_ctl_elem_value *ucontrol)
  2121. {
  2122. struct snd_soc_dapm_widget *widget =
  2123. snd_soc_dapm_kcontrol_widget(kcontrol);
  2124. struct soc_mixer_control *mc =
  2125. (struct soc_mixer_control *)kcontrol->private_value;
  2126. struct snd_soc_dapm_update *update = NULL;
  2127. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2128. ucontrol->value.integer.value[0]);
  2129. if (ucontrol->value.integer.value[0]) {
  2130. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2131. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2132. snd_soc_dapm_mixer_update_power(widget->dapm,
  2133. kcontrol, 1, update);
  2134. } else if (!ucontrol->value.integer.value[0]) {
  2135. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2136. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2137. snd_soc_dapm_mixer_update_power(widget->dapm,
  2138. kcontrol, 0, update);
  2139. }
  2140. return 1;
  2141. }
  2142. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2143. {
  2144. u32 session_id = 0;
  2145. u16 path_type;
  2146. struct media_format_info voc_be_media_format;
  2147. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2148. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2149. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2150. __func__, val, session_id);
  2151. mutex_lock(&routing_lock);
  2152. if (set)
  2153. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2154. else
  2155. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2156. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2157. afe_get_port_type(msm_bedais[reg].port_id) ==
  2158. MSM_AFE_PORT_TYPE_RX) {
  2159. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2160. __func__, set, msm_bedais[reg].port_id);
  2161. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2162. }
  2163. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2164. MSM_AFE_PORT_TYPE_RX)
  2165. path_type = RX_PATH;
  2166. else
  2167. path_type = TX_PATH;
  2168. if (set) {
  2169. if (msm_bedais[reg].active) {
  2170. voc_set_route_flag(session_id, path_type, 1);
  2171. memset(&voc_be_media_format, 0,
  2172. sizeof(struct media_format_info));
  2173. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2174. voc_be_media_format.num_channels =
  2175. msm_bedais[reg].channel;
  2176. voc_be_media_format.sample_rate =
  2177. msm_bedais[reg].sample_rate;
  2178. voc_be_media_format.bits_per_sample =
  2179. msm_bedais[reg].format;
  2180. /* Defaulting this to 1 for voice call usecases */
  2181. voc_be_media_format.channel_mapping[0] = 1;
  2182. voc_set_device_config(session_id, path_type,
  2183. &voc_be_media_format);
  2184. if (voc_get_route_flag(session_id, TX_PATH) &&
  2185. voc_get_route_flag(session_id, RX_PATH))
  2186. voc_enable_device(session_id);
  2187. } else {
  2188. pr_debug("%s BE is not active\n", __func__);
  2189. }
  2190. } else {
  2191. voc_set_route_flag(session_id, path_type, 0);
  2192. voc_disable_device(session_id);
  2193. }
  2194. mutex_unlock(&routing_lock);
  2195. }
  2196. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2197. struct snd_ctl_elem_value *ucontrol)
  2198. {
  2199. struct soc_mixer_control *mc =
  2200. (struct soc_mixer_control *)kcontrol->private_value;
  2201. mutex_lock(&routing_lock);
  2202. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2203. ucontrol->value.integer.value[0] = 1;
  2204. else
  2205. ucontrol->value.integer.value[0] = 0;
  2206. mutex_unlock(&routing_lock);
  2207. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2208. ucontrol->value.integer.value[0]);
  2209. return 0;
  2210. }
  2211. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2212. struct snd_ctl_elem_value *ucontrol)
  2213. {
  2214. struct snd_soc_dapm_widget *widget =
  2215. snd_soc_dapm_kcontrol_widget(kcontrol);
  2216. struct soc_mixer_control *mc =
  2217. (struct soc_mixer_control *)kcontrol->private_value;
  2218. struct snd_soc_dapm_update *update = NULL;
  2219. if (ucontrol->value.integer.value[0]) {
  2220. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2221. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2222. update);
  2223. } else {
  2224. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2225. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2226. update);
  2227. }
  2228. return 1;
  2229. }
  2230. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2231. struct snd_ctl_elem_value *ucontrol)
  2232. {
  2233. struct soc_mixer_control *mc =
  2234. (struct soc_mixer_control *)kcontrol->private_value;
  2235. mutex_lock(&routing_lock);
  2236. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2237. ucontrol->value.integer.value[0] = 1;
  2238. else
  2239. ucontrol->value.integer.value[0] = 0;
  2240. mutex_unlock(&routing_lock);
  2241. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2242. ucontrol->value.integer.value[0]);
  2243. return 0;
  2244. }
  2245. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2246. struct snd_ctl_elem_value *ucontrol)
  2247. {
  2248. struct snd_soc_dapm_widget *widget =
  2249. snd_soc_dapm_kcontrol_widget(kcontrol);
  2250. struct soc_mixer_control *mc =
  2251. (struct soc_mixer_control *)kcontrol->private_value;
  2252. struct snd_soc_dapm_update *update = NULL;
  2253. if (ucontrol->value.integer.value[0]) {
  2254. mutex_lock(&routing_lock);
  2255. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2256. mutex_unlock(&routing_lock);
  2257. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2258. update);
  2259. } else {
  2260. mutex_lock(&routing_lock);
  2261. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2262. mutex_unlock(&routing_lock);
  2263. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2264. update);
  2265. }
  2266. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2267. ucontrol->value.integer.value[0]);
  2268. return 1;
  2269. }
  2270. /*
  2271. * Return the mapping between port ID and backend ID to enable the AFE callback
  2272. * to determine the acdb_dev_id from the port id
  2273. */
  2274. int msm_pcm_get_be_id_from_port_id(int port_id)
  2275. {
  2276. int i;
  2277. int be_id = -EINVAL;
  2278. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2279. if (msm_bedais[i].port_id == port_id) {
  2280. be_id = i;
  2281. break;
  2282. }
  2283. }
  2284. return be_id;
  2285. }
  2286. /*
  2287. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2288. * correct AFE calibration information by comparing the header information.
  2289. */
  2290. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2291. {
  2292. int acdb_id = -EINVAL;
  2293. int i = 0;
  2294. int session;
  2295. int port_type = afe_get_port_type(port_id);
  2296. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2297. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2298. __func__, port_id, be_id, port_type);
  2299. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2300. session = SESSION_TYPE_TX;
  2301. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2302. session = SESSION_TYPE_RX;
  2303. } else {
  2304. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2305. acdb_id = -EINVAL;
  2306. goto exit;
  2307. }
  2308. if (be_id < 0) {
  2309. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2310. goto exit;
  2311. }
  2312. mutex_lock(&routing_lock);
  2313. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2314. MSM_FRONTEND_DAI_MAX);
  2315. if (i < MSM_FRONTEND_DAI_MAX)
  2316. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2317. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2318. __func__, i, session, be_id, acdb_id);
  2319. mutex_unlock(&routing_lock);
  2320. exit:
  2321. return acdb_id;
  2322. }
  2323. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2324. struct snd_ctl_elem_value *ucontrol)
  2325. {
  2326. ucontrol->value.integer.value[0] = fm_switch_enable;
  2327. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2328. ucontrol->value.integer.value[0]);
  2329. return 0;
  2330. }
  2331. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2332. struct snd_ctl_elem_value *ucontrol)
  2333. {
  2334. struct snd_soc_dapm_widget *widget =
  2335. snd_soc_dapm_kcontrol_widget(kcontrol);
  2336. struct snd_soc_dapm_update *update = NULL;
  2337. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2338. ucontrol->value.integer.value[0]);
  2339. if (ucontrol->value.integer.value[0])
  2340. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2341. update);
  2342. else
  2343. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2344. update);
  2345. fm_switch_enable = ucontrol->value.integer.value[0];
  2346. return 1;
  2347. }
  2348. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2349. struct snd_ctl_elem_value *ucontrol)
  2350. {
  2351. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2352. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2353. ucontrol->value.integer.value[0]);
  2354. return 0;
  2355. }
  2356. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2357. struct snd_ctl_elem_value *ucontrol)
  2358. {
  2359. struct snd_soc_dapm_widget *widget =
  2360. snd_soc_dapm_kcontrol_widget(kcontrol);
  2361. struct snd_soc_dapm_update *update = NULL;
  2362. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2363. ucontrol->value.integer.value[0]);
  2364. if (ucontrol->value.integer.value[0])
  2365. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2366. 1, update);
  2367. else
  2368. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2369. 0, update);
  2370. hfp_switch_enable = ucontrol->value.integer.value[0];
  2371. return 1;
  2372. }
  2373. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2374. struct snd_ctl_elem_value *ucontrol)
  2375. {
  2376. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2377. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2378. ucontrol->value.integer.value[0]);
  2379. return 0;
  2380. }
  2381. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2382. struct snd_ctl_elem_value *ucontrol)
  2383. {
  2384. struct snd_soc_dapm_widget *widget =
  2385. snd_soc_dapm_kcontrol_widget(kcontrol);
  2386. struct snd_soc_dapm_update *update = NULL;
  2387. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2388. ucontrol->value.integer.value[0]);
  2389. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2390. if (a2dp_switch_enable)
  2391. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2392. 1, update);
  2393. else
  2394. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2395. 0, update);
  2396. return 1;
  2397. }
  2398. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2399. struct snd_ctl_elem_value *ucontrol)
  2400. {
  2401. ucontrol->value.integer.value[0] = sco_switch_enable;
  2402. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2403. ucontrol->value.integer.value[0]);
  2404. return 0;
  2405. }
  2406. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2407. struct snd_ctl_elem_value *ucontrol)
  2408. {
  2409. struct snd_soc_dapm_widget *widget =
  2410. snd_soc_dapm_kcontrol_widget(kcontrol);
  2411. struct snd_soc_dapm_update *update = NULL;
  2412. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2413. ucontrol->value.integer.value[0]);
  2414. sco_switch_enable = ucontrol->value.integer.value[0];
  2415. if (sco_switch_enable)
  2416. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2417. 1, update);
  2418. else
  2419. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2420. 0, update);
  2421. return 1;
  2422. }
  2423. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2424. struct snd_ctl_elem_value *ucontrol)
  2425. {
  2426. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2427. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2428. ucontrol->value.integer.value[0]);
  2429. return 0;
  2430. }
  2431. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2432. struct snd_ctl_elem_value *ucontrol)
  2433. {
  2434. struct snd_soc_dapm_widget *widget =
  2435. snd_soc_dapm_kcontrol_widget(kcontrol);
  2436. struct snd_soc_dapm_update *update = NULL;
  2437. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2438. ucontrol->value.integer.value[0]);
  2439. if (ucontrol->value.integer.value[0])
  2440. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2441. update);
  2442. else
  2443. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2444. update);
  2445. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2446. return 1;
  2447. }
  2448. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2449. struct snd_ctl_elem_value *ucontrol)
  2450. {
  2451. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2452. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2453. ucontrol->value.integer.value[0]);
  2454. return 0;
  2455. }
  2456. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2457. struct snd_ctl_elem_value *ucontrol)
  2458. {
  2459. struct snd_soc_dapm_widget *widget =
  2460. snd_soc_dapm_kcontrol_widget(kcontrol);
  2461. struct snd_soc_dapm_update *update = NULL;
  2462. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2463. ucontrol->value.integer.value[0]);
  2464. if (ucontrol->value.integer.value[0])
  2465. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2466. update);
  2467. else
  2468. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2469. update);
  2470. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2471. return 1;
  2472. }
  2473. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2474. struct snd_ctl_elem_value *ucontrol)
  2475. {
  2476. ucontrol->value.integer.value[0] = usb_switch_enable;
  2477. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2478. ucontrol->value.integer.value[0]);
  2479. return 0;
  2480. }
  2481. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2482. struct snd_ctl_elem_value *ucontrol)
  2483. {
  2484. struct snd_soc_dapm_widget *widget =
  2485. snd_soc_dapm_kcontrol_widget(kcontrol);
  2486. struct snd_soc_dapm_update *update = NULL;
  2487. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2488. ucontrol->value.integer.value[0]);
  2489. if (ucontrol->value.integer.value[0])
  2490. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2491. 1, update);
  2492. else
  2493. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2494. 0, update);
  2495. usb_switch_enable = ucontrol->value.integer.value[0];
  2496. return 1;
  2497. }
  2498. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2499. struct snd_ctl_elem_value *ucontrol)
  2500. {
  2501. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2502. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2503. ucontrol->value.integer.value[0]);
  2504. return 0;
  2505. }
  2506. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2507. struct snd_ctl_elem_value *ucontrol)
  2508. {
  2509. struct snd_soc_dapm_widget *widget =
  2510. snd_soc_dapm_kcontrol_widget(kcontrol);
  2511. struct snd_soc_dapm_update *update = NULL;
  2512. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2513. ucontrol->value.integer.value[0]);
  2514. if (ucontrol->value.integer.value[0])
  2515. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2516. update);
  2517. else
  2518. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2519. update);
  2520. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2521. return 1;
  2522. }
  2523. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2524. struct snd_ctl_elem_value *ucontrol)
  2525. {
  2526. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2527. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2528. ucontrol->value.integer.value[0]);
  2529. return 0;
  2530. }
  2531. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2532. struct snd_ctl_elem_value *ucontrol)
  2533. {
  2534. struct snd_soc_dapm_widget *widget =
  2535. snd_soc_dapm_kcontrol_widget(kcontrol);
  2536. struct snd_soc_dapm_update *update = NULL;
  2537. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2538. ucontrol->value.integer.value[0]);
  2539. if (ucontrol->value.integer.value[0])
  2540. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2541. update);
  2542. else
  2543. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2544. update);
  2545. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2546. return 1;
  2547. }
  2548. static int msm_routing_get_tert_mi2s_switch_mixer(
  2549. struct snd_kcontrol *kcontrol,
  2550. struct snd_ctl_elem_value *ucontrol)
  2551. {
  2552. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2553. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2554. ucontrol->value.integer.value[0]);
  2555. return 0;
  2556. }
  2557. static int msm_routing_put_tert_mi2s_switch_mixer(
  2558. struct snd_kcontrol *kcontrol,
  2559. struct snd_ctl_elem_value *ucontrol)
  2560. {
  2561. struct snd_soc_dapm_widget *widget =
  2562. snd_soc_dapm_kcontrol_widget(kcontrol);
  2563. struct snd_soc_dapm_update *update = NULL;
  2564. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2565. ucontrol->value.integer.value[0]);
  2566. if (ucontrol->value.integer.value[0])
  2567. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2568. update);
  2569. else
  2570. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2571. update);
  2572. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2573. return 1;
  2574. }
  2575. static int msm_routing_get_quat_mi2s_switch_mixer(
  2576. struct snd_kcontrol *kcontrol,
  2577. struct snd_ctl_elem_value *ucontrol)
  2578. {
  2579. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2580. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2581. ucontrol->value.integer.value[0]);
  2582. return 0;
  2583. }
  2584. static int msm_routing_put_quat_mi2s_switch_mixer(
  2585. struct snd_kcontrol *kcontrol,
  2586. struct snd_ctl_elem_value *ucontrol)
  2587. {
  2588. struct snd_soc_dapm_widget *widget =
  2589. snd_soc_dapm_kcontrol_widget(kcontrol);
  2590. struct snd_soc_dapm_update *update = NULL;
  2591. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2592. ucontrol->value.integer.value[0]);
  2593. if (ucontrol->value.integer.value[0])
  2594. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2595. update);
  2596. else
  2597. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2598. update);
  2599. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2600. return 1;
  2601. }
  2602. static int msm_routing_get_quin_mi2s_switch_mixer(
  2603. struct snd_kcontrol *kcontrol,
  2604. struct snd_ctl_elem_value *ucontrol)
  2605. {
  2606. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2607. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2608. ucontrol->value.integer.value[0]);
  2609. return 0;
  2610. }
  2611. static int msm_routing_put_quin_mi2s_switch_mixer(
  2612. struct snd_kcontrol *kcontrol,
  2613. struct snd_ctl_elem_value *ucontrol)
  2614. {
  2615. struct snd_soc_dapm_widget *widget =
  2616. snd_soc_dapm_kcontrol_widget(kcontrol);
  2617. struct snd_soc_dapm_update *update = NULL;
  2618. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2619. ucontrol->value.integer.value[0]);
  2620. if (ucontrol->value.integer.value[0])
  2621. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2622. update);
  2623. else
  2624. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2625. update);
  2626. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2627. return 1;
  2628. }
  2629. static int msm_routing_get_sen_mi2s_switch_mixer(
  2630. struct snd_kcontrol *kcontrol,
  2631. struct snd_ctl_elem_value *ucontrol)
  2632. {
  2633. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2634. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2635. ucontrol->value.integer.value[0]);
  2636. return 0;
  2637. }
  2638. static int msm_routing_put_sen_mi2s_switch_mixer(
  2639. struct snd_kcontrol *kcontrol,
  2640. struct snd_ctl_elem_value *ucontrol)
  2641. {
  2642. struct snd_soc_dapm_widget *widget =
  2643. snd_soc_dapm_kcontrol_widget(kcontrol);
  2644. struct snd_soc_dapm_update *update = NULL;
  2645. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2646. ucontrol->value.integer.value[0]);
  2647. if (ucontrol->value.integer.value[0])
  2648. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2649. update);
  2650. else
  2651. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2652. update);
  2653. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2654. return 1;
  2655. }
  2656. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2657. struct snd_ctl_elem_value *ucontrol)
  2658. {
  2659. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2660. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2661. ucontrol->value.integer.value[0]);
  2662. return 0;
  2663. }
  2664. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2665. struct snd_ctl_elem_value *ucontrol)
  2666. {
  2667. struct snd_soc_dapm_widget *widget =
  2668. snd_soc_dapm_kcontrol_widget(kcontrol);
  2669. struct snd_soc_dapm_update *update = NULL;
  2670. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2671. ucontrol->value.integer.value[0]);
  2672. if (ucontrol->value.integer.value[0])
  2673. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2674. update);
  2675. else
  2676. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2677. update);
  2678. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2679. return 1;
  2680. }
  2681. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2682. struct snd_ctl_elem_value *ucontrol)
  2683. {
  2684. ucontrol->value.integer.value[0] = lsm_port_index;
  2685. return 0;
  2686. }
  2687. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2688. struct snd_ctl_elem_value *ucontrol)
  2689. {
  2690. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2691. int mux = ucontrol->value.enumerated.item[0];
  2692. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2693. if (mux >= e->items) {
  2694. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2695. return -EINVAL;
  2696. }
  2697. pr_debug("%s: LSM enable %ld\n", __func__,
  2698. ucontrol->value.integer.value[0]);
  2699. switch (ucontrol->value.integer.value[0]) {
  2700. case 1:
  2701. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2702. break;
  2703. case 2:
  2704. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2705. break;
  2706. case 3:
  2707. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2708. break;
  2709. case 4:
  2710. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2711. break;
  2712. case 5:
  2713. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2714. break;
  2715. case 6:
  2716. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2717. break;
  2718. case 7:
  2719. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2720. break;
  2721. case 8:
  2722. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2723. break;
  2724. case 9:
  2725. lsm_port = ADM_LSM_PORT_ID;
  2726. break;
  2727. case 10:
  2728. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2729. break;
  2730. case 11:
  2731. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2732. break;
  2733. case 12:
  2734. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2735. break;
  2736. case 13:
  2737. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2738. break;
  2739. case 14:
  2740. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2741. break;
  2742. case 15:
  2743. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2744. break;
  2745. case 16:
  2746. lsm_port = AFE_PORT_ID_TERTIARY_TDM_TX;
  2747. break;
  2748. default:
  2749. pr_err("Default lsm port");
  2750. break;
  2751. }
  2752. set_lsm_port(lsm_port);
  2753. lsm_port_index = ucontrol->value.integer.value[0];
  2754. return 0;
  2755. }
  2756. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2757. struct snd_ctl_elem_value *ucontrol)
  2758. {
  2759. int i;
  2760. u16 port_id;
  2761. enum afe_mad_type mad_type;
  2762. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2763. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2764. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2765. strlen(lsm_port_text[i])))
  2766. break;
  2767. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2768. pr_warn("%s: Invalid id name %s\n", __func__,
  2769. kcontrol->id.name);
  2770. return -EINVAL;
  2771. }
  2772. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2773. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2774. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2775. strlen(lsm_port_text[7])))
  2776. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2777. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2778. strlen(lsm_port_text[8])))
  2779. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2780. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2781. strlen(lsm_port_text[10])))
  2782. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2783. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2784. strlen(lsm_port_text[14])))
  2785. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2786. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2787. strlen(lsm_port_text[15])))
  2788. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2789. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2790. strlen(lsm_port_text[16])))
  2791. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2792. mad_type = afe_port_get_mad_type(port_id);
  2793. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2794. mad_type);
  2795. switch (mad_type) {
  2796. case MAD_HW_NONE:
  2797. ucontrol->value.integer.value[0] = MADNONE;
  2798. break;
  2799. case MAD_HW_AUDIO:
  2800. ucontrol->value.integer.value[0] = MADAUDIO;
  2801. break;
  2802. case MAD_HW_BEACON:
  2803. ucontrol->value.integer.value[0] = MADBEACON;
  2804. break;
  2805. case MAD_HW_ULTRASOUND:
  2806. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2807. break;
  2808. case MAD_SW_AUDIO:
  2809. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2810. break;
  2811. default:
  2812. pr_warn("%s: Unknown\n", __func__);
  2813. return -EINVAL;
  2814. }
  2815. return 0;
  2816. }
  2817. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2818. struct snd_ctl_elem_value *ucontrol)
  2819. {
  2820. int i;
  2821. u16 port_id;
  2822. enum afe_mad_type mad_type;
  2823. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2824. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2825. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2826. strlen(lsm_port_text[i])))
  2827. break;
  2828. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2829. pr_warn("%s: Invalid id name %s\n", __func__,
  2830. kcontrol->id.name);
  2831. return -EINVAL;
  2832. }
  2833. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2834. switch (ucontrol->value.integer.value[0]) {
  2835. case MADNONE:
  2836. mad_type = MAD_HW_NONE;
  2837. break;
  2838. case MADAUDIO:
  2839. mad_type = MAD_HW_AUDIO;
  2840. break;
  2841. case MADBEACON:
  2842. mad_type = MAD_HW_BEACON;
  2843. break;
  2844. case MADULTRASOUND:
  2845. mad_type = MAD_HW_ULTRASOUND;
  2846. break;
  2847. case MADSWAUDIO:
  2848. mad_type = MAD_SW_AUDIO;
  2849. break;
  2850. default:
  2851. pr_warn("%s: Unknown\n", __func__);
  2852. return -EINVAL;
  2853. }
  2854. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2855. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2856. strlen(lsm_port_text[7])))
  2857. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2858. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2859. strlen(lsm_port_text[8])))
  2860. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2861. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2862. strlen(lsm_port_text[10])))
  2863. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2864. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2865. strlen(lsm_port_text[14])))
  2866. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2867. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2868. strlen(lsm_port_text[15])))
  2869. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2870. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2871. strlen(lsm_port_text[16])))
  2872. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2873. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2874. mad_type);
  2875. return afe_port_set_mad_type(port_id, mad_type);
  2876. }
  2877. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2878. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  2879. adm_override_chs_text);
  2880. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2881. {
  2882. int backend_id;
  2883. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2884. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2885. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  2886. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  2887. } else {
  2888. pr_err("%s: unsupported backend id: %s",
  2889. __func__, kcontrol->id.name);
  2890. return -EINVAL;
  2891. }
  2892. return backend_id;
  2893. }
  2894. static int msm_routing_adm_channel_config_get(
  2895. struct snd_kcontrol *kcontrol,
  2896. struct snd_ctl_elem_value *ucontrol)
  2897. {
  2898. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2899. if (backend_id >= 0) {
  2900. mutex_lock(&routing_lock);
  2901. ucontrol->value.integer.value[0] =
  2902. msm_bedais[backend_id].adm_override_ch;
  2903. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2904. ucontrol->value.integer.value[0], backend_id);
  2905. mutex_unlock(&routing_lock);
  2906. }
  2907. return 0;
  2908. }
  2909. static int msm_routing_adm_channel_config_put(
  2910. struct snd_kcontrol *kcontrol,
  2911. struct snd_ctl_elem_value *ucontrol)
  2912. {
  2913. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2914. if (backend_id >= 0) {
  2915. mutex_lock(&routing_lock);
  2916. msm_bedais[backend_id].adm_override_ch =
  2917. ucontrol->value.integer.value[0];
  2918. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2919. __func__, backend_id,
  2920. msm_bedais[backend_id].adm_override_ch);
  2921. mutex_unlock(&routing_lock);
  2922. }
  2923. return 0;
  2924. }
  2925. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2926. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  2927. msm_routing_adm_channel_config_get,
  2928. msm_routing_adm_channel_config_put),
  2929. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  2930. msm_routing_adm_channel_config_get,
  2931. msm_routing_adm_channel_config_put),
  2932. };
  2933. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2934. struct snd_ctl_elem_value *ucontrol)
  2935. {
  2936. mutex_lock(&routing_lock);
  2937. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2938. mutex_unlock(&routing_lock);
  2939. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2940. ucontrol->value.integer.value[0]);
  2941. return 0;
  2942. };
  2943. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2944. struct snd_ctl_elem_value *ucontrol)
  2945. {
  2946. struct aanc_data aanc_info;
  2947. mutex_lock(&routing_lock);
  2948. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2949. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2950. ucontrol->value.integer.value[0]);
  2951. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2952. if (ucontrol->value.integer.value[0] == 0) {
  2953. aanc_info.aanc_active = false;
  2954. aanc_info.aanc_tx_port = 0;
  2955. aanc_info.aanc_rx_port = 0;
  2956. } else {
  2957. aanc_info.aanc_active = true;
  2958. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2959. aanc_info.aanc_tx_port =
  2960. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2961. }
  2962. afe_set_aanc_info(&aanc_info);
  2963. mutex_unlock(&routing_lock);
  2964. return 0;
  2965. };
  2966. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2967. struct snd_ctl_elem_value *ucontrol)
  2968. {
  2969. int idx = 0, shift = 0;
  2970. struct soc_mixer_control *mc =
  2971. (struct soc_mixer_control *)kcontrol->private_value;
  2972. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2973. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2974. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2975. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2976. return -EINVAL;
  2977. }
  2978. if (test_bit(shift,
  2979. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2980. ucontrol->value.integer.value[0] = 1;
  2981. else
  2982. ucontrol->value.integer.value[0] = 0;
  2983. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2984. ucontrol->value.integer.value[0]);
  2985. return 0;
  2986. }
  2987. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2988. struct snd_ctl_elem_value *ucontrol)
  2989. {
  2990. int idx = 0, shift = 0;
  2991. struct soc_mixer_control *mc =
  2992. (struct soc_mixer_control *)kcontrol->private_value;
  2993. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2994. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2995. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2996. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2997. return -EINVAL;
  2998. }
  2999. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  3000. __func__, mc->shift, mc->rshift,
  3001. ucontrol->value.integer.value[0], idx, shift);
  3002. if (ucontrol->value.integer.value[0]) {
  3003. afe_loopback(1, msm_bedais[mc->shift].port_id,
  3004. msm_bedais[mc->rshift].port_id);
  3005. set_bit(shift,
  3006. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3007. } else {
  3008. afe_loopback(0, msm_bedais[mc->shift].port_id,
  3009. msm_bedais[mc->rshift].port_id);
  3010. clear_bit(shift,
  3011. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3012. }
  3013. return 1;
  3014. }
  3015. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  3016. struct snd_ctl_elem_value *ucontrol)
  3017. {
  3018. u16 fe_id = 0;
  3019. fe_id = ((struct soc_mixer_control *)
  3020. kcontrol->private_value)->shift;
  3021. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3022. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3023. return -EINVAL;
  3024. }
  3025. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  3026. return 0;
  3027. }
  3028. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  3029. struct snd_ctl_elem_value *ucontrol)
  3030. {
  3031. u16 fe_id = 0;
  3032. fe_id = ((struct soc_mixer_control *)
  3033. kcontrol->private_value)->shift;
  3034. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3035. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3036. return -EINVAL;
  3037. }
  3038. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  3039. return 1;
  3040. }
  3041. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  3042. struct snd_ctl_elem_value *ucontrol)
  3043. {
  3044. u16 fe_id = 0;
  3045. fe_id = ((struct soc_multi_mixer_control *)
  3046. kcontrol->private_value)->shift;
  3047. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3048. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3049. return -EINVAL;
  3050. }
  3051. ucontrol->value.integer.value[0] =
  3052. channel_mixer[fe_id].output_channel;
  3053. return 0;
  3054. }
  3055. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3056. struct snd_ctl_elem_value *ucontrol)
  3057. {
  3058. u16 fe_id = 0;
  3059. fe_id = ((struct soc_multi_mixer_control *)
  3060. kcontrol->private_value)->shift;
  3061. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3062. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3063. return -EINVAL;
  3064. }
  3065. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3066. fe_id,
  3067. (unsigned int)(ucontrol->value.integer.value[0]));
  3068. channel_mixer[fe_id].output_channel =
  3069. (unsigned int)(ucontrol->value.integer.value[0]);
  3070. return 1;
  3071. }
  3072. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3073. /* If new backend is added, need update this array */
  3074. static const char *const be_name[] = {
  3075. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3076. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3077. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3078. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3079. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3080. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3081. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3082. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3083. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3084. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3085. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3086. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3087. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3088. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3089. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3090. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3091. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3092. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3093. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3094. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3095. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3096. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3097. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3098. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3099. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3100. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3101. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3102. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3103. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3104. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3105. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3106. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3107. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3108. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3109. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3110. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3111. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3112. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3113. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3114. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3115. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3116. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3117. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3118. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3119. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3120. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3121. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3122. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3123. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3124. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3125. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3126. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3127. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX", "PRI_META_MI2S_RX",
  3128. "SEC_META_MI2S_RX"
  3129. };
  3130. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3131. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3132. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3133. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3134. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3135. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3136. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3137. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3138. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3139. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3140. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3141. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3142. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3143. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3144. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3145. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3146. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3147. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3148. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3149. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3150. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3151. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3152. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3153. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3154. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3155. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3156. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3157. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3158. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3159. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3160. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3161. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3162. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3163. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3164. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3165. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3166. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3167. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3168. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3169. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3170. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3171. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3172. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3173. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3174. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3175. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3176. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3177. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3178. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3179. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3180. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3181. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3182. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3183. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3184. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3185. unsigned int channels,
  3186. unsigned int items, const char *const names[])
  3187. {
  3188. if (uinfo->value.enumerated.item >= items)
  3189. uinfo->value.enumerated.item = items - 1;
  3190. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3191. sizeof(uinfo->value.enumerated.name),
  3192. "ALSA: too long item name '%s'\n",
  3193. names[uinfo->value.enumerated.item]);
  3194. strlcpy(uinfo->value.enumerated.name,
  3195. names[uinfo->value.enumerated.item],
  3196. sizeof(uinfo->value.enumerated.name));
  3197. return 0;
  3198. }
  3199. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3200. struct snd_ctl_elem_info *uinfo)
  3201. {
  3202. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3203. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3204. uinfo->count = 1;
  3205. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3206. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3207. return 0;
  3208. }
  3209. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3210. struct snd_ctl_elem_value *ucontrol)
  3211. {
  3212. u16 fe_id = 0;
  3213. fe_id = ((struct soc_enum *)
  3214. kcontrol->private_value)->shift_l;
  3215. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3216. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3217. return -EINVAL;
  3218. }
  3219. pr_debug("%s: FE %d %s\n", __func__,
  3220. fe_id,
  3221. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3222. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3223. return 0;
  3224. }
  3225. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3226. struct snd_ctl_elem_value *ucontrol)
  3227. {
  3228. u16 fe_id = 0;
  3229. fe_id = ((struct soc_enum *)
  3230. kcontrol->private_value)->shift_l;
  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. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3236. pr_debug("%s: %s FE %d\n", __func__,
  3237. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3238. fe_id);
  3239. return 0;
  3240. }
  3241. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3242. struct snd_ctl_elem_info *uinfo)
  3243. {
  3244. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3245. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3246. uinfo->count = 1;
  3247. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3248. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3249. return 0;
  3250. }
  3251. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3252. struct snd_ctl_elem_value *ucontrol)
  3253. {
  3254. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3255. u16 fe_id = 0, in_ch = 0;
  3256. fe_id = e->shift_l;
  3257. in_ch = e->shift_r;
  3258. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3259. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3260. return -EINVAL;
  3261. }
  3262. if (in_ch >= ADM_MAX_CHANNELS) {
  3263. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3264. return -EINVAL;
  3265. }
  3266. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3267. return 1;
  3268. }
  3269. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3270. struct snd_ctl_elem_value *ucontrol)
  3271. {
  3272. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3273. u16 fe_id = 0, in_ch = 0;
  3274. fe_id = e->shift_l;
  3275. in_ch = e->shift_r;
  3276. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3277. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3278. return -EINVAL;
  3279. }
  3280. if (in_ch >= ADM_MAX_CHANNELS) {
  3281. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3282. return -EINVAL;
  3283. }
  3284. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3285. return 1;
  3286. }
  3287. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3288. struct snd_ctl_elem_info *uinfo)
  3289. {
  3290. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3291. uinfo->count = ADM_MAX_CHANNELS;
  3292. uinfo->value.integer.min = 0;
  3293. uinfo->value.integer.max = WEIGHT_0_DB;
  3294. return 0;
  3295. }
  3296. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3297. struct snd_ctl_elem_value *ucontrol)
  3298. {
  3299. u16 fe_id = 0, out_ch = 0;
  3300. int i, weight;
  3301. fe_id = ((struct soc_multi_mixer_control *)
  3302. kcontrol->private_value)->shift;
  3303. out_ch = ((struct soc_multi_mixer_control *)
  3304. kcontrol->private_value)->rshift;
  3305. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3306. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3307. return -EINVAL;
  3308. }
  3309. if (out_ch >= ADM_MAX_CHANNELS) {
  3310. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3311. return -EINVAL;
  3312. }
  3313. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3314. __func__, fe_id,
  3315. ucontrol->value.integer.value[0],
  3316. ucontrol->value.integer.value[1],
  3317. ucontrol->value.integer.value[2],
  3318. ucontrol->value.integer.value[3],
  3319. ucontrol->value.integer.value[4],
  3320. ucontrol->value.integer.value[5],
  3321. ucontrol->value.integer.value[6],
  3322. ucontrol->value.integer.value[7]);
  3323. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3324. weight = ucontrol->value.integer.value[i];
  3325. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3326. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3327. __func__, fe_id, out_ch, i,
  3328. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3329. }
  3330. return 0;
  3331. }
  3332. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3333. struct snd_ctl_elem_value *ucontrol)
  3334. {
  3335. u16 fe_id = 0, out_ch = 0;
  3336. int i;
  3337. fe_id = ((struct soc_multi_mixer_control *)
  3338. kcontrol->private_value)->shift;
  3339. out_ch = ((struct soc_multi_mixer_control *)
  3340. kcontrol->private_value)->rshift;
  3341. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3342. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3343. return -EINVAL;
  3344. }
  3345. if (out_ch >= ADM_MAX_CHANNELS) {
  3346. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3347. return -EINVAL;
  3348. }
  3349. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3350. ucontrol->value.integer.value[i] =
  3351. channel_mixer[fe_id].channel_weight[out_ch][i];
  3352. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3353. __func__, fe_id,
  3354. ucontrol->value.integer.value[0],
  3355. ucontrol->value.integer.value[1],
  3356. ucontrol->value.integer.value[2],
  3357. ucontrol->value.integer.value[3],
  3358. ucontrol->value.integer.value[4],
  3359. ucontrol->value.integer.value[5],
  3360. ucontrol->value.integer.value[6],
  3361. ucontrol->value.integer.value[7]);
  3362. return 0;
  3363. }
  3364. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3365. struct snd_ctl_elem_info *uinfo)
  3366. {
  3367. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3368. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3369. /* Valid channel map value ranges from 1 to 64 */
  3370. uinfo->value.integer.min = 0;
  3371. uinfo->value.integer.max = 64;
  3372. return 0;
  3373. }
  3374. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3375. struct snd_ctl_elem_value *ucontrol)
  3376. {
  3377. u16 fe_id = 0;
  3378. int i, ch_map;
  3379. fe_id = ((struct soc_multi_mixer_control *)
  3380. kcontrol->private_value)->shift;
  3381. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3382. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3383. return -EINVAL;
  3384. }
  3385. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3386. ch_map = ucontrol->value.integer.value[i];
  3387. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3388. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3389. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3390. }
  3391. /* Make override_out_ch_map false if ch map is reset */
  3392. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3393. channel_mixer[fe_id].override_out_ch_map = false;
  3394. else
  3395. channel_mixer[fe_id].override_out_ch_map = true;
  3396. return 0;
  3397. }
  3398. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3399. struct snd_ctl_elem_value *ucontrol)
  3400. {
  3401. u16 fe_id = 0;
  3402. int i;
  3403. fe_id = ((struct soc_multi_mixer_control *)
  3404. kcontrol->private_value)->shift;
  3405. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3406. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3407. return -EINVAL;
  3408. }
  3409. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3410. ucontrol->value.integer.value[i] =
  3411. channel_mixer[fe_id].out_ch_map[i];
  3412. return 0;
  3413. }
  3414. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3415. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3416. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3417. msm_pcm_get_channel_rule_index,
  3418. msm_pcm_put_channel_rule_index),
  3419. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3420. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3421. msm_pcm_get_channel_rule_index,
  3422. msm_pcm_put_channel_rule_index),
  3423. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3424. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3425. msm_pcm_get_channel_rule_index,
  3426. msm_pcm_put_channel_rule_index),
  3427. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3428. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3429. msm_pcm_get_channel_rule_index,
  3430. msm_pcm_put_channel_rule_index),
  3431. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3432. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3433. msm_pcm_get_channel_rule_index,
  3434. msm_pcm_put_channel_rule_index),
  3435. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3436. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3437. msm_pcm_get_channel_rule_index,
  3438. msm_pcm_put_channel_rule_index),
  3439. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3440. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3441. msm_pcm_get_channel_rule_index,
  3442. msm_pcm_put_channel_rule_index),
  3443. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3444. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3445. msm_pcm_get_channel_rule_index,
  3446. msm_pcm_put_channel_rule_index),
  3447. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3448. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3449. msm_pcm_get_channel_rule_index,
  3450. msm_pcm_put_channel_rule_index),
  3451. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3452. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3453. msm_pcm_get_channel_rule_index,
  3454. msm_pcm_put_channel_rule_index),
  3455. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3456. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3457. msm_pcm_get_channel_rule_index,
  3458. msm_pcm_put_channel_rule_index),
  3459. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3460. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3461. msm_pcm_get_out_chs,
  3462. msm_pcm_put_out_chs),
  3463. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3464. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3465. msm_pcm_get_out_chs,
  3466. msm_pcm_put_out_chs),
  3467. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3468. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3469. msm_pcm_get_out_chs,
  3470. msm_pcm_put_out_chs),
  3471. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3472. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3473. msm_pcm_get_out_chs,
  3474. msm_pcm_put_out_chs),
  3475. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3476. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3477. msm_pcm_get_out_chs,
  3478. msm_pcm_put_out_chs),
  3479. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3480. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3481. msm_pcm_get_out_chs,
  3482. msm_pcm_put_out_chs),
  3483. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3484. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3485. msm_pcm_get_out_chs,
  3486. msm_pcm_put_out_chs),
  3487. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3488. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3489. msm_pcm_get_out_chs,
  3490. msm_pcm_put_out_chs),
  3491. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3492. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3493. msm_pcm_get_out_chs,
  3494. msm_pcm_put_out_chs),
  3495. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3496. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3497. msm_pcm_get_out_chs,
  3498. msm_pcm_put_out_chs),
  3499. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3500. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3501. msm_pcm_get_out_chs,
  3502. msm_pcm_put_out_chs),
  3503. {
  3504. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3505. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3506. .name = "MultiMedia1 Channel Mixer",
  3507. .info = msm_pcm_channel_mixer_info,
  3508. .get = msm_pcm_channel_mixer_get,
  3509. .put = msm_pcm_channel_mixer_put,
  3510. .private_value = (unsigned long)&(mm1_channel_mux)
  3511. },
  3512. {
  3513. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3514. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3515. .name = "MultiMedia2 Channel Mixer",
  3516. .info = msm_pcm_channel_mixer_info,
  3517. .get = msm_pcm_channel_mixer_get,
  3518. .put = msm_pcm_channel_mixer_put,
  3519. .private_value = (unsigned long)&(mm2_channel_mux)
  3520. },
  3521. {
  3522. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3523. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3524. .name = "MultiMedia3 Channel Mixer",
  3525. .info = msm_pcm_channel_mixer_info,
  3526. .get = msm_pcm_channel_mixer_get,
  3527. .put = msm_pcm_channel_mixer_put,
  3528. .private_value = (unsigned long)&(mm3_channel_mux)
  3529. },
  3530. {
  3531. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3532. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3533. .name = "MultiMedia4 Channel Mixer",
  3534. .info = msm_pcm_channel_mixer_info,
  3535. .get = msm_pcm_channel_mixer_get,
  3536. .put = msm_pcm_channel_mixer_put,
  3537. .private_value = (unsigned long)&(mm4_channel_mux)
  3538. },
  3539. {
  3540. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3541. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3542. .name = "MultiMedia18 Channel Mixer",
  3543. .info = msm_pcm_channel_mixer_info,
  3544. .get = msm_pcm_channel_mixer_get,
  3545. .put = msm_pcm_channel_mixer_put,
  3546. .private_value = (unsigned long)&(mm18_channel_mux)
  3547. },
  3548. {
  3549. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3550. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3551. .name = "MultiMedia19 Channel Mixer",
  3552. .info = msm_pcm_channel_mixer_info,
  3553. .get = msm_pcm_channel_mixer_get,
  3554. .put = msm_pcm_channel_mixer_put,
  3555. .private_value = (unsigned long)&(mm19_channel_mux)
  3556. },
  3557. {
  3558. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3559. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3560. .name = "MultiMedia28 Channel Mixer",
  3561. .info = msm_pcm_channel_mixer_info,
  3562. .get = msm_pcm_channel_mixer_get,
  3563. .put = msm_pcm_channel_mixer_put,
  3564. .private_value = (unsigned long)&(mm28_channel_mux)
  3565. },
  3566. {
  3567. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3568. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3569. .name = "MultiMedia29 Channel Mixer",
  3570. .info = msm_pcm_channel_mixer_info,
  3571. .get = msm_pcm_channel_mixer_get,
  3572. .put = msm_pcm_channel_mixer_put,
  3573. .private_value = (unsigned long)&(mm29_channel_mux)
  3574. },
  3575. {
  3576. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3577. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3578. .name = "MultiMedia30 Channel Mixer",
  3579. .info = msm_pcm_channel_mixer_info,
  3580. .get = msm_pcm_channel_mixer_get,
  3581. .put = msm_pcm_channel_mixer_put,
  3582. .private_value = (unsigned long)&(mm30_channel_mux)
  3583. },
  3584. {
  3585. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3586. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3587. .name = "MultiMedia1 Output Channel1",
  3588. .info = msm_pcm_channel_weight_info,
  3589. .get = msm_pcm_channel_weight_get,
  3590. .put = msm_pcm_channel_weight_put,
  3591. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3592. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3593. },
  3594. {
  3595. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3596. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3597. .name = "MultiMedia1 Output Channel2",
  3598. .info = msm_pcm_channel_weight_info,
  3599. .get = msm_pcm_channel_weight_get,
  3600. .put = msm_pcm_channel_weight_put,
  3601. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3602. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3603. },
  3604. {
  3605. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3606. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3607. .name = "MultiMedia1 Output Channel3",
  3608. .info = msm_pcm_channel_weight_info,
  3609. .get = msm_pcm_channel_weight_get,
  3610. .put = msm_pcm_channel_weight_put,
  3611. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3612. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3613. },
  3614. {
  3615. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3616. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3617. .name = "MultiMedia1 Output Channel4",
  3618. .info = msm_pcm_channel_weight_info,
  3619. .get = msm_pcm_channel_weight_get,
  3620. .put = msm_pcm_channel_weight_put,
  3621. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3622. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3623. },
  3624. {
  3625. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3626. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3627. .name = "MultiMedia1 Output Channel5",
  3628. .info = msm_pcm_channel_weight_info,
  3629. .get = msm_pcm_channel_weight_get,
  3630. .put = msm_pcm_channel_weight_put,
  3631. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3632. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3633. },
  3634. {
  3635. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3636. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3637. .name = "MultiMedia1 Output Channel6",
  3638. .info = msm_pcm_channel_weight_info,
  3639. .get = msm_pcm_channel_weight_get,
  3640. .put = msm_pcm_channel_weight_put,
  3641. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3642. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3643. },
  3644. {
  3645. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3646. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3647. .name = "MultiMedia1 Output Channel7",
  3648. .info = msm_pcm_channel_weight_info,
  3649. .get = msm_pcm_channel_weight_get,
  3650. .put = msm_pcm_channel_weight_put,
  3651. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3652. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3653. },
  3654. {
  3655. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3656. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3657. .name = "MultiMedia1 Output Channel8",
  3658. .info = msm_pcm_channel_weight_info,
  3659. .get = msm_pcm_channel_weight_get,
  3660. .put = msm_pcm_channel_weight_put,
  3661. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3662. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3663. },
  3664. {
  3665. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3666. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3667. .name = "MultiMedia1 Output Channel9",
  3668. .info = msm_pcm_channel_weight_info,
  3669. .get = msm_pcm_channel_weight_get,
  3670. .put = msm_pcm_channel_weight_put,
  3671. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3672. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3673. },
  3674. {
  3675. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3676. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3677. .name = "MultiMedia1 Output Channel10",
  3678. .info = msm_pcm_channel_weight_info,
  3679. .get = msm_pcm_channel_weight_get,
  3680. .put = msm_pcm_channel_weight_put,
  3681. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3682. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3683. },
  3684. {
  3685. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3686. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3687. .name = "MultiMedia1 Output Channel11",
  3688. .info = msm_pcm_channel_weight_info,
  3689. .get = msm_pcm_channel_weight_get,
  3690. .put = msm_pcm_channel_weight_put,
  3691. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3692. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3693. },
  3694. {
  3695. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3696. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3697. .name = "MultiMedia1 Output Channel12",
  3698. .info = msm_pcm_channel_weight_info,
  3699. .get = msm_pcm_channel_weight_get,
  3700. .put = msm_pcm_channel_weight_put,
  3701. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3702. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3703. },
  3704. {
  3705. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3706. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3707. .name = "MultiMedia1 Output Channel13",
  3708. .info = msm_pcm_channel_weight_info,
  3709. .get = msm_pcm_channel_weight_get,
  3710. .put = msm_pcm_channel_weight_put,
  3711. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3712. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3713. },
  3714. {
  3715. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3716. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3717. .name = "MultiMedia1 Output Channel14",
  3718. .info = msm_pcm_channel_weight_info,
  3719. .get = msm_pcm_channel_weight_get,
  3720. .put = msm_pcm_channel_weight_put,
  3721. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3722. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3723. },
  3724. {
  3725. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3726. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3727. .name = "MultiMedia2 Output Channel1",
  3728. .info = msm_pcm_channel_weight_info,
  3729. .get = msm_pcm_channel_weight_get,
  3730. .put = msm_pcm_channel_weight_put,
  3731. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3732. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3733. },
  3734. {
  3735. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3736. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3737. .name = "MultiMedia2 Output Channel2",
  3738. .info = msm_pcm_channel_weight_info,
  3739. .get = msm_pcm_channel_weight_get,
  3740. .put = msm_pcm_channel_weight_put,
  3741. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3742. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3743. },
  3744. {
  3745. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3746. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3747. .name = "MultiMedia2 Output Channel3",
  3748. .info = msm_pcm_channel_weight_info,
  3749. .get = msm_pcm_channel_weight_get,
  3750. .put = msm_pcm_channel_weight_put,
  3751. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3752. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3753. },
  3754. {
  3755. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3756. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3757. .name = "MultiMedia3 Output Channel1",
  3758. .info = msm_pcm_channel_weight_info,
  3759. .get = msm_pcm_channel_weight_get,
  3760. .put = msm_pcm_channel_weight_put,
  3761. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3762. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3763. },
  3764. {
  3765. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3766. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3767. .name = "MultiMedia3 Output Channel2",
  3768. .info = msm_pcm_channel_weight_info,
  3769. .get = msm_pcm_channel_weight_get,
  3770. .put = msm_pcm_channel_weight_put,
  3771. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3772. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3773. },
  3774. {
  3775. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3776. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3777. .name = "MultiMedia18 Output Channel1",
  3778. .info = msm_pcm_channel_weight_info,
  3779. .get = msm_pcm_channel_weight_get,
  3780. .put = msm_pcm_channel_weight_put,
  3781. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3782. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  3783. },
  3784. {
  3785. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3786. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3787. .name = "MultiMedia18 Output Channel2",
  3788. .info = msm_pcm_channel_weight_info,
  3789. .get = msm_pcm_channel_weight_get,
  3790. .put = msm_pcm_channel_weight_put,
  3791. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3792. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  3793. },
  3794. {
  3795. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3796. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3797. .name = "MultiMedia18 Output Channel3",
  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_MULTIMEDIA18, .rshift = 2,}
  3803. },
  3804. {
  3805. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3806. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3807. .name = "MultiMedia18 Output Channel4",
  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_MULTIMEDIA18, .rshift = 3,}
  3813. },
  3814. {
  3815. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3816. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3817. .name = "MultiMedia18 Output Channel5",
  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_MULTIMEDIA18, .rshift = 4,}
  3823. },
  3824. {
  3825. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3826. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3827. .name = "MultiMedia18 Output Channel6",
  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_MULTIMEDIA18, .rshift = 5,}
  3833. },
  3834. {
  3835. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3836. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3837. .name = "MultiMedia18 Output Channel7",
  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_MULTIMEDIA18, .rshift = 6,}
  3843. },
  3844. {
  3845. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3846. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3847. .name = "MultiMedia18 Output Channel8",
  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_MULTIMEDIA18, .rshift = 7,}
  3853. },
  3854. {
  3855. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3856. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3857. .name = "MultiMedia18 Output Channel9",
  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_MULTIMEDIA18, .rshift = 8,}
  3863. },
  3864. {
  3865. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3866. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3867. .name = "MultiMedia18 Output Channel10",
  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_MULTIMEDIA18, .rshift = 9,}
  3873. },
  3874. {
  3875. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3876. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3877. .name = "MultiMedia18 Output Channel11",
  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_MULTIMEDIA18, .rshift = 10,}
  3883. },
  3884. {
  3885. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3886. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3887. .name = "MultiMedia18 Output Channel12",
  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_MULTIMEDIA18, .rshift = 11,}
  3893. },
  3894. {
  3895. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3896. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3897. .name = "MultiMedia18 Output Channel13",
  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_MULTIMEDIA18, .rshift = 12,}
  3903. },
  3904. {
  3905. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3906. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3907. .name = "MultiMedia18 Output Channel14",
  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_MULTIMEDIA18, .rshift = 13,}
  3913. },
  3914. {
  3915. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3916. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3917. .name = "MultiMedia19 Output Channel1",
  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_MULTIMEDIA19, .rshift = 0,}
  3923. },
  3924. {
  3925. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3926. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3927. .name = "MultiMedia19 Output Channel2",
  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_MULTIMEDIA19, .rshift = 1, }
  3933. },
  3934. {
  3935. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3936. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3937. .name = "MultiMedia19 Output Channel3",
  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_MULTIMEDIA19, .rshift = 2,}
  3943. },
  3944. {
  3945. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3946. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3947. .name = "MultiMedia19 Output Channel4",
  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_MULTIMEDIA19, .rshift = 3,}
  3953. },
  3954. {
  3955. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3956. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3957. .name = "MultiMedia19 Output Channel5",
  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_MULTIMEDIA19, .rshift = 4,}
  3963. },
  3964. {
  3965. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3966. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3967. .name = "MultiMedia19 Output Channel6",
  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_MULTIMEDIA19, .rshift = 5,}
  3973. },
  3974. {
  3975. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3976. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3977. .name = "MultiMedia19 Output Channel7",
  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_MULTIMEDIA19, .rshift = 6,}
  3983. },
  3984. {
  3985. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3986. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3987. .name = "MultiMedia19 Output Channel8",
  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_MULTIMEDIA19, .rshift = 7,}
  3993. },
  3994. {
  3995. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3996. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3997. .name = "MultiMedia19 Output Channel9",
  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_MULTIMEDIA19, .rshift = 8,}
  4003. },
  4004. {
  4005. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4006. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4007. .name = "MultiMedia19 Output Channel10",
  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_MULTIMEDIA19, .rshift = 9,}
  4013. },
  4014. {
  4015. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4016. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4017. .name = "MultiMedia19 Output Channel11",
  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_MULTIMEDIA19, .rshift = 10,}
  4023. },
  4024. {
  4025. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4026. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4027. .name = "MultiMedia19 Output Channel12",
  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_MULTIMEDIA19, .rshift = 11,}
  4033. },
  4034. {
  4035. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4036. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4037. .name = "MultiMedia19 Output Channel13",
  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_MULTIMEDIA19, .rshift = 12,}
  4043. },
  4044. {
  4045. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4046. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4047. .name = "MultiMedia19 Output Channel14",
  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_MULTIMEDIA19, .rshift = 13,}
  4053. },
  4054. {
  4055. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4056. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4057. .name = "MultiMedia28 Output Channel1",
  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_MULTIMEDIA28, .rshift = 0,}
  4063. },
  4064. {
  4065. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4066. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4067. .name = "MultiMedia28 Output Channel2",
  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_MULTIMEDIA28, .rshift = 1, }
  4073. },
  4074. {
  4075. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4076. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4077. .name = "MultiMedia28 Output Channel3",
  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_MULTIMEDIA28, .rshift = 2,}
  4083. },
  4084. {
  4085. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4086. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4087. .name = "MultiMedia28 Output Channel4",
  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_MULTIMEDIA28, .rshift = 3,}
  4093. },
  4094. {
  4095. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4096. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4097. .name = "MultiMedia28 Output Channel5",
  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_MULTIMEDIA28, .rshift = 4,}
  4103. },
  4104. {
  4105. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4106. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4107. .name = "MultiMedia28 Output Channel6",
  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_MULTIMEDIA28, .rshift = 5,}
  4113. },
  4114. {
  4115. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4116. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4117. .name = "MultiMedia28 Output Channel7",
  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_MULTIMEDIA28, .rshift = 6,}
  4123. },
  4124. {
  4125. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4126. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4127. .name = "MultiMedia28 Output Channel8",
  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_MULTIMEDIA28, .rshift = 7,}
  4133. },
  4134. {
  4135. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4136. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4137. .name = "MultiMedia28 Output Channel9",
  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_MULTIMEDIA28, .rshift = 8,}
  4143. },
  4144. {
  4145. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4146. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4147. .name = "MultiMedia28 Output Channel10",
  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_MULTIMEDIA28, .rshift = 9,}
  4153. },
  4154. {
  4155. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4156. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4157. .name = "MultiMedia28 Output Channel11",
  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_MULTIMEDIA28, .rshift = 10,}
  4163. },
  4164. {
  4165. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4166. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4167. .name = "MultiMedia28 Output Channel12",
  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_MULTIMEDIA28, .rshift = 11,}
  4173. },
  4174. {
  4175. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4176. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4177. .name = "MultiMedia28 Output Channel13",
  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_MULTIMEDIA28, .rshift = 12,}
  4183. },
  4184. {
  4185. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4186. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4187. .name = "MultiMedia28 Output Channel14",
  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_MULTIMEDIA28, .rshift = 13,}
  4193. },
  4194. {
  4195. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4196. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4197. .name = "MultiMedia29 Output Channel1",
  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_MULTIMEDIA29, .rshift = 0,}
  4203. },
  4204. {
  4205. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4206. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4207. .name = "MultiMedia29 Output Channel2",
  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_MULTIMEDIA29, .rshift = 1, }
  4213. },
  4214. {
  4215. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4216. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4217. .name = "MultiMedia29 Output Channel3",
  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_MULTIMEDIA29, .rshift = 2,}
  4223. },
  4224. {
  4225. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4226. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4227. .name = "MultiMedia29 Output Channel4",
  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_MULTIMEDIA29, .rshift = 3,}
  4233. },
  4234. {
  4235. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4236. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4237. .name = "MultiMedia29 Output Channel5",
  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_MULTIMEDIA29, .rshift = 4,}
  4243. },
  4244. {
  4245. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4246. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4247. .name = "MultiMedia29 Output Channel6",
  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_MULTIMEDIA29, .rshift = 5,}
  4253. },
  4254. {
  4255. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4256. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4257. .name = "MultiMedia29 Output Channel7",
  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_MULTIMEDIA29, .rshift = 6,}
  4263. },
  4264. {
  4265. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4266. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4267. .name = "MultiMedia29 Output Channel8",
  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_MULTIMEDIA29, .rshift = 7,}
  4273. },
  4274. {
  4275. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4276. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4277. .name = "MultiMedia29 Output Channel9",
  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_MULTIMEDIA29, .rshift = 8,}
  4283. },
  4284. {
  4285. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4286. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4287. .name = "MultiMedia29 Output Channel10",
  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_MULTIMEDIA29, .rshift = 9,}
  4293. },
  4294. {
  4295. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4296. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4297. .name = "MultiMedia29 Output Channel11",
  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_MULTIMEDIA29, .rshift = 10,}
  4303. },
  4304. {
  4305. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4306. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4307. .name = "MultiMedia29 Output Channel12",
  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_MULTIMEDIA29, .rshift = 11,}
  4313. },
  4314. {
  4315. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4316. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4317. .name = "MultiMedia29 Output Channel13",
  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_MULTIMEDIA29, .rshift = 12,}
  4323. },
  4324. {
  4325. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4326. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4327. .name = "MultiMedia29 Output Channel14",
  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_MULTIMEDIA29, .rshift = 13,}
  4333. },
  4334. {
  4335. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4336. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4337. .name = "MultiMedia30 Output Channel1",
  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_MULTIMEDIA30, .rshift = 0,}
  4343. },
  4344. {
  4345. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4346. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4347. .name = "MultiMedia30 Output Channel2",
  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_MULTIMEDIA30, .rshift = 1, }
  4353. },
  4354. {
  4355. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4356. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4357. .name = "MultiMedia30 Output Channel3",
  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_MULTIMEDIA30, .rshift = 2,}
  4363. },
  4364. {
  4365. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4366. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4367. .name = "MultiMedia30 Output Channel4",
  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_MULTIMEDIA30, .rshift = 3,}
  4373. },
  4374. {
  4375. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4376. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4377. .name = "MultiMedia30 Output Channel5",
  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_MULTIMEDIA30, .rshift = 4,}
  4383. },
  4384. {
  4385. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4386. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4387. .name = "MultiMedia30 Output Channel6",
  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_MULTIMEDIA30, .rshift = 5,}
  4393. },
  4394. {
  4395. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4396. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4397. .name = "MultiMedia30 Output Channel7",
  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_MULTIMEDIA30, .rshift = 6,}
  4403. },
  4404. {
  4405. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4406. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4407. .name = "MultiMedia30 Output Channel8",
  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_MULTIMEDIA30, .rshift = 7,}
  4413. },
  4414. {
  4415. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4416. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4417. .name = "MultiMedia30 Output Channel9",
  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_MULTIMEDIA30, .rshift = 8,}
  4423. },
  4424. {
  4425. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4426. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4427. .name = "MultiMedia30 Output Channel10",
  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_MULTIMEDIA30, .rshift = 9,}
  4433. },
  4434. {
  4435. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4436. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4437. .name = "MultiMedia30 Output Channel11",
  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_MULTIMEDIA30, .rshift = 10,}
  4443. },
  4444. {
  4445. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4446. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4447. .name = "MultiMedia30 Output Channel12",
  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_MULTIMEDIA30, .rshift = 11,}
  4453. },
  4454. {
  4455. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4456. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4457. .name = "MultiMedia30 Output Channel13",
  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_MULTIMEDIA30, .rshift = 12,}
  4463. },
  4464. {
  4465. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4466. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4467. .name = "MultiMedia30 Output Channel14",
  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_MULTIMEDIA30, .rshift = 13,}
  4473. },
  4474. {
  4475. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4476. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4477. .name = "MultiMedia1 Channel1",
  4478. .info = msm_pcm_channel_input_be_info,
  4479. .get = msm_pcm_channel_input_be_get,
  4480. .put = msm_pcm_channel_input_be_put,
  4481. .private_value = (unsigned long)&(mm1_ch1_enum)
  4482. },
  4483. {
  4484. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4485. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4486. .name = "MultiMedia1 Channel2",
  4487. .info = msm_pcm_channel_input_be_info,
  4488. .get = msm_pcm_channel_input_be_get,
  4489. .put = msm_pcm_channel_input_be_put,
  4490. .private_value = (unsigned long)&(mm1_ch2_enum)
  4491. },
  4492. {
  4493. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4494. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4495. .name = "MultiMedia1 Channel3",
  4496. .info = msm_pcm_channel_input_be_info,
  4497. .get = msm_pcm_channel_input_be_get,
  4498. .put = msm_pcm_channel_input_be_put,
  4499. .private_value = (unsigned long)&(mm1_ch3_enum)
  4500. },
  4501. {
  4502. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4503. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4504. .name = "MultiMedia1 Channel4",
  4505. .info = msm_pcm_channel_input_be_info,
  4506. .get = msm_pcm_channel_input_be_get,
  4507. .put = msm_pcm_channel_input_be_put,
  4508. .private_value = (unsigned long)&(mm1_ch4_enum)
  4509. },
  4510. {
  4511. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4512. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4513. .name = "MultiMedia1 Channel5",
  4514. .info = msm_pcm_channel_input_be_info,
  4515. .get = msm_pcm_channel_input_be_get,
  4516. .put = msm_pcm_channel_input_be_put,
  4517. .private_value = (unsigned long)&(mm1_ch5_enum)
  4518. },
  4519. {
  4520. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4521. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4522. .name = "MultiMedia1 Channel6",
  4523. .info = msm_pcm_channel_input_be_info,
  4524. .get = msm_pcm_channel_input_be_get,
  4525. .put = msm_pcm_channel_input_be_put,
  4526. .private_value = (unsigned long)&(mm1_ch6_enum)
  4527. },
  4528. {
  4529. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4530. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4531. .name = "MultiMedia1 Channel7",
  4532. .info = msm_pcm_channel_input_be_info,
  4533. .get = msm_pcm_channel_input_be_get,
  4534. .put = msm_pcm_channel_input_be_put,
  4535. .private_value = (unsigned long)&(mm1_ch7_enum)
  4536. },
  4537. {
  4538. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4539. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4540. .name = "MultiMedia1 Channel8",
  4541. .info = msm_pcm_channel_input_be_info,
  4542. .get = msm_pcm_channel_input_be_get,
  4543. .put = msm_pcm_channel_input_be_put,
  4544. .private_value = (unsigned long)&(mm1_ch8_enum)
  4545. },
  4546. {
  4547. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4548. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4549. .name = "MultiMedia18 Channel1",
  4550. .info = msm_pcm_channel_input_be_info,
  4551. .get = msm_pcm_channel_input_be_get,
  4552. .put = msm_pcm_channel_input_be_put,
  4553. .private_value = (unsigned long)&(mm18_ch1_enum)
  4554. },
  4555. {
  4556. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4557. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4558. .name = "MultiMedia18 Channel2",
  4559. .info = msm_pcm_channel_input_be_info,
  4560. .get = msm_pcm_channel_input_be_get,
  4561. .put = msm_pcm_channel_input_be_put,
  4562. .private_value = (unsigned long)&(mm18_ch2_enum)
  4563. },
  4564. {
  4565. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4566. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4567. .name = "MultiMedia19 Channel1",
  4568. .info = msm_pcm_channel_input_be_info,
  4569. .get = msm_pcm_channel_input_be_get,
  4570. .put = msm_pcm_channel_input_be_put,
  4571. .private_value = (unsigned long)&(mm19_ch1_enum)
  4572. },
  4573. {
  4574. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4575. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4576. .name = "MultiMedia19 Channel2",
  4577. .info = msm_pcm_channel_input_be_info,
  4578. .get = msm_pcm_channel_input_be_get,
  4579. .put = msm_pcm_channel_input_be_put,
  4580. .private_value = (unsigned long)&(mm19_ch2_enum)
  4581. },
  4582. {
  4583. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4584. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4585. .name = "MultiMedia28 Channel1",
  4586. .info = msm_pcm_channel_input_be_info,
  4587. .get = msm_pcm_channel_input_be_get,
  4588. .put = msm_pcm_channel_input_be_put,
  4589. .private_value = (unsigned long)&(mm28_ch1_enum)
  4590. },
  4591. {
  4592. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4593. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4594. .name = "MultiMedia28 Channel2",
  4595. .info = msm_pcm_channel_input_be_info,
  4596. .get = msm_pcm_channel_input_be_get,
  4597. .put = msm_pcm_channel_input_be_put,
  4598. .private_value = (unsigned long)&(mm28_ch2_enum)
  4599. },
  4600. {
  4601. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4602. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4603. .name = "MultiMedia29 Channel1",
  4604. .info = msm_pcm_channel_input_be_info,
  4605. .get = msm_pcm_channel_input_be_get,
  4606. .put = msm_pcm_channel_input_be_put,
  4607. .private_value = (unsigned long)&(mm29_ch1_enum)
  4608. },
  4609. {
  4610. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4611. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4612. .name = "MultiMedia29 Channel2",
  4613. .info = msm_pcm_channel_input_be_info,
  4614. .get = msm_pcm_channel_input_be_get,
  4615. .put = msm_pcm_channel_input_be_put,
  4616. .private_value = (unsigned long)&(mm29_ch2_enum)
  4617. },
  4618. {
  4619. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4620. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4621. .name = "MultiMedia30 Channel1",
  4622. .info = msm_pcm_channel_input_be_info,
  4623. .get = msm_pcm_channel_input_be_get,
  4624. .put = msm_pcm_channel_input_be_put,
  4625. .private_value = (unsigned long)&(mm30_ch1_enum)
  4626. },
  4627. {
  4628. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4629. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4630. .name = "MultiMedia30 Channel2",
  4631. .info = msm_pcm_channel_input_be_info,
  4632. .get = msm_pcm_channel_input_be_get,
  4633. .put = msm_pcm_channel_input_be_put,
  4634. .private_value = (unsigned long)&(mm30_ch2_enum)
  4635. },
  4636. {
  4637. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4638. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4639. .name = "MultiMedia1 Output Channel Map",
  4640. .info = msm_pcm_channel_output_map_info,
  4641. .get = msm_pcm_channel_output_map_get,
  4642. .put = msm_pcm_channel_output_map_put,
  4643. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4644. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4645. },
  4646. {
  4647. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4648. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4649. .name = "MultiMedia2 Output Channel Map",
  4650. .info = msm_pcm_channel_output_map_info,
  4651. .get = msm_pcm_channel_output_map_get,
  4652. .put = msm_pcm_channel_output_map_put,
  4653. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4654. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4655. },
  4656. {
  4657. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4658. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4659. .name = "MultiMedia3 Output Channel Map",
  4660. .info = msm_pcm_channel_output_map_info,
  4661. .get = msm_pcm_channel_output_map_get,
  4662. .put = msm_pcm_channel_output_map_put,
  4663. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4664. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4665. },
  4666. {
  4667. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4668. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4669. .name = "MultiMedia4 Output Channel Map",
  4670. .info = msm_pcm_channel_output_map_info,
  4671. .get = msm_pcm_channel_output_map_get,
  4672. .put = msm_pcm_channel_output_map_put,
  4673. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4674. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4675. },
  4676. {
  4677. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4678. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4679. .name = "MultiMedia5 Output Channel Map",
  4680. .info = msm_pcm_channel_output_map_info,
  4681. .get = msm_pcm_channel_output_map_get,
  4682. .put = msm_pcm_channel_output_map_put,
  4683. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4684. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4685. },
  4686. {
  4687. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4688. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4689. .name = "MultiMedia6 Output Channel Map",
  4690. .info = msm_pcm_channel_output_map_info,
  4691. .get = msm_pcm_channel_output_map_get,
  4692. .put = msm_pcm_channel_output_map_put,
  4693. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4694. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4695. },
  4696. {
  4697. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4698. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4699. .name = "MultiMedia18 Output Channel Map",
  4700. .info = msm_pcm_channel_output_map_info,
  4701. .get = msm_pcm_channel_output_map_get,
  4702. .put = msm_pcm_channel_output_map_put,
  4703. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4704. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4705. },
  4706. {
  4707. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4708. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4709. .name = "MultiMedia19 Output Channel Map",
  4710. .info = msm_pcm_channel_output_map_info,
  4711. .get = msm_pcm_channel_output_map_get,
  4712. .put = msm_pcm_channel_output_map_put,
  4713. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4714. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4715. },
  4716. {
  4717. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4718. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4719. .name = "MultiMedia28 Output Channel Map",
  4720. .info = msm_pcm_channel_output_map_info,
  4721. .get = msm_pcm_channel_output_map_get,
  4722. .put = msm_pcm_channel_output_map_put,
  4723. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4724. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4725. },
  4726. {
  4727. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4728. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4729. .name = "MultiMedia29 Output Channel Map",
  4730. .info = msm_pcm_channel_output_map_info,
  4731. .get = msm_pcm_channel_output_map_get,
  4732. .put = msm_pcm_channel_output_map_put,
  4733. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4734. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4735. },
  4736. {
  4737. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4738. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4739. .name = "MultiMedia30 Output Channel Map",
  4740. .info = msm_pcm_channel_output_map_info,
  4741. .get = msm_pcm_channel_output_map_get,
  4742. .put = msm_pcm_channel_output_map_put,
  4743. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4744. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4745. },
  4746. };
  4747. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4748. struct snd_ctl_elem_value *ucontrol)
  4749. {
  4750. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4751. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4752. ucontrol->value.integer.value[0]);
  4753. return 0;
  4754. }
  4755. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4756. struct snd_ctl_elem_value *ucontrol)
  4757. {
  4758. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4759. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4760. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4761. return 0;
  4762. }
  4763. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4764. struct snd_ctl_elem_value *ucontrol)
  4765. {
  4766. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4767. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4768. ucontrol->value.integer.value[0]);
  4769. return 0;
  4770. }
  4771. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4772. struct snd_ctl_elem_value *ucontrol)
  4773. {
  4774. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4775. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4776. __func__, msm_ec_ref_ch_downmixed);
  4777. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4778. return 0;
  4779. }
  4780. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  4781. struct snd_ctl_elem_value *ucontrol)
  4782. {
  4783. int i = 0, ret = 0;
  4784. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  4785. int out_channel_idx = ((struct soc_multi_mixer_control *)
  4786. kcontrol->private_value)->shift;
  4787. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  4788. weights[i] = ucontrol->value.integer.value[i];
  4789. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  4790. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  4791. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  4792. return ret;
  4793. }
  4794. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  4795. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  4796. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  4797. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  4798. struct snd_ctl_elem_value *ucontrol)
  4799. {
  4800. switch (msm_ec_ref_bit_format) {
  4801. case SNDRV_PCM_FORMAT_S24_LE:
  4802. ucontrol->value.integer.value[0] = 2;
  4803. break;
  4804. case SNDRV_PCM_FORMAT_S16_LE:
  4805. ucontrol->value.integer.value[0] = 1;
  4806. break;
  4807. default:
  4808. ucontrol->value.integer.value[0] = 0;
  4809. break;
  4810. }
  4811. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  4812. __func__, ucontrol->value.integer.value[0]);
  4813. return 0;
  4814. }
  4815. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  4816. struct snd_ctl_elem_value *ucontrol)
  4817. {
  4818. u16 bit_width = 0;
  4819. switch (ucontrol->value.integer.value[0]) {
  4820. case 2:
  4821. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  4822. break;
  4823. case 1:
  4824. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  4825. break;
  4826. default:
  4827. msm_ec_ref_bit_format = 0;
  4828. break;
  4829. }
  4830. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  4831. bit_width = 16;
  4832. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  4833. bit_width = 24;
  4834. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  4835. __func__, msm_ec_ref_bit_format);
  4836. adm_ec_ref_rx_bit_width(bit_width);
  4837. return 0;
  4838. }
  4839. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  4840. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  4841. struct snd_ctl_elem_value *ucontrol)
  4842. {
  4843. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  4844. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  4845. __func__, ucontrol->value.integer.value[0]);
  4846. return 0;
  4847. }
  4848. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  4849. struct snd_ctl_elem_value *ucontrol)
  4850. {
  4851. switch (ucontrol->value.integer.value[0]) {
  4852. case 0:
  4853. msm_ec_ref_sampling_rate = 0;
  4854. break;
  4855. case 1:
  4856. msm_ec_ref_sampling_rate = 8000;
  4857. break;
  4858. case 2:
  4859. msm_ec_ref_sampling_rate = 16000;
  4860. break;
  4861. case 3:
  4862. msm_ec_ref_sampling_rate = 32000;
  4863. break;
  4864. case 4:
  4865. msm_ec_ref_sampling_rate = 44100;
  4866. break;
  4867. case 5:
  4868. msm_ec_ref_sampling_rate = 48000;
  4869. break;
  4870. case 6:
  4871. msm_ec_ref_sampling_rate = 96000;
  4872. break;
  4873. case 7:
  4874. msm_ec_ref_sampling_rate = 192000;
  4875. break;
  4876. case 8:
  4877. msm_ec_ref_sampling_rate = 384000;
  4878. break;
  4879. default:
  4880. msm_ec_ref_sampling_rate = 48000;
  4881. break;
  4882. }
  4883. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  4884. __func__, msm_ec_ref_sampling_rate);
  4885. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  4886. return 0;
  4887. }
  4888. static int get_ec_ref_port_id(int value, int *index)
  4889. {
  4890. int port_id;
  4891. switch (value) {
  4892. case 0:
  4893. *index = 0;
  4894. port_id = AFE_PORT_INVALID;
  4895. break;
  4896. case 1:
  4897. *index = 1;
  4898. port_id = SLIMBUS_0_RX;
  4899. break;
  4900. case 2:
  4901. *index = 2;
  4902. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  4903. break;
  4904. case 3:
  4905. *index = 3;
  4906. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4907. break;
  4908. case 4:
  4909. *index = 4;
  4910. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4911. break;
  4912. case 5:
  4913. *index = 5;
  4914. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4915. break;
  4916. case 6:
  4917. *index = 6;
  4918. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4919. break;
  4920. case 7:
  4921. *index = 7;
  4922. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  4923. break;
  4924. case 9:
  4925. *index = 9;
  4926. port_id = SLIMBUS_5_RX;
  4927. break;
  4928. case 10:
  4929. *index = 10;
  4930. port_id = SLIMBUS_1_TX;
  4931. break;
  4932. case 11:
  4933. *index = 11;
  4934. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  4935. break;
  4936. case 12:
  4937. *index = 12;
  4938. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  4939. break;
  4940. case 13:
  4941. *index = 13;
  4942. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  4943. break;
  4944. case 14:
  4945. *index = 14;
  4946. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  4947. break;
  4948. case 15:
  4949. *index = 15;
  4950. port_id = SLIMBUS_6_RX;
  4951. break;
  4952. case 16:
  4953. *index = 16;
  4954. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  4955. break;
  4956. case 17:
  4957. *index = 17;
  4958. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  4959. break;
  4960. case 18:
  4961. *index = 18;
  4962. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  4963. break;
  4964. case 19:
  4965. *index = 19;
  4966. port_id = AFE_PORT_ID_USB_RX;
  4967. break;
  4968. case 20:
  4969. *index = 20;
  4970. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  4971. break;
  4972. case 21:
  4973. *index = 21;
  4974. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  4975. break;
  4976. case 22:
  4977. *index = 22;
  4978. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  4979. break;
  4980. case 23:
  4981. *index = 23;
  4982. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  4983. break;
  4984. case 24:
  4985. *index = 24;
  4986. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  4987. break;
  4988. case 25:
  4989. *index = 25;
  4990. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  4991. break;
  4992. case 26:
  4993. *index = 26;
  4994. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  4995. break;
  4996. case 27:
  4997. *index = 27;
  4998. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  4999. break;
  5000. case 28:
  5001. *index = 28;
  5002. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  5003. break;
  5004. case 29:
  5005. *index = 29;
  5006. port_id = SLIMBUS_7_RX;
  5007. break;
  5008. case 30:
  5009. *index = 30;
  5010. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  5011. break;
  5012. case 31:
  5013. *index = 31;
  5014. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  5015. break;
  5016. case 32:
  5017. *index = 32;
  5018. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  5019. break;
  5020. case 33:
  5021. *index = 33;
  5022. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  5023. break;
  5024. case 34:
  5025. *index = 34;
  5026. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  5027. break;
  5028. case 35:
  5029. *index = 35;
  5030. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  5031. break;
  5032. case 36:
  5033. *index = 36;
  5034. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5035. break;
  5036. case 37:
  5037. *index = 37;
  5038. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5039. break;
  5040. case 38:
  5041. *index = 38;
  5042. port_id = AFE_PORT_ID_SENARY_MI2S_RX;
  5043. break;
  5044. case 39:
  5045. *index = 39;
  5046. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  5047. break;
  5048. default:
  5049. *index = 0; /* NONE */
  5050. pr_err("%s: Invalid value %d\n", __func__, value);
  5051. port_id = AFE_PORT_INVALID;
  5052. break;
  5053. }
  5054. return port_id;
  5055. }
  5056. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  5057. struct snd_ctl_elem_value *ucontrol)
  5058. {
  5059. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  5060. mutex_lock(&routing_lock);
  5061. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  5062. mutex_unlock(&routing_lock);
  5063. return 0;
  5064. }
  5065. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  5066. struct snd_ctl_elem_value *ucontrol)
  5067. {
  5068. int value = ucontrol->value.integer.value[0];
  5069. mutex_lock(&routing_lock);
  5070. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5071. &afe_loopback_tx_port_index);
  5072. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5073. __func__, afe_loopback_tx_port_index);
  5074. mutex_unlock(&routing_lock);
  5075. return 0;
  5076. }
  5077. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5078. "32000", "44100", "48000", "96000", "192000", "384000"};
  5079. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5080. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),
  5081. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_bit_format_text),
  5082. ec_ref_bit_format_text),
  5083. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rate_text), ec_ref_rate_text),
  5084. };
  5085. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5086. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5087. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5088. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5089. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5090. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5091. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5092. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5093. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5094. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5095. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5096. "DISPLAY_PORT1", "SEN_MI2S_RX", "QUIN_TDM_TX_0",
  5097. };
  5098. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5099. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5100. };
  5101. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5102. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5103. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5104. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5105. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5106. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5107. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5108. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5109. msm_route_ec_ref_params_enum[0],
  5110. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5111. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5112. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5113. msm_ec_ref_chmixer_weights_put),
  5114. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5115. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5116. msm_ec_ref_chmixer_weights_put),
  5117. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5118. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5119. msm_ec_ref_chmixer_weights_put),
  5120. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5121. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5122. msm_ec_ref_chmixer_weights_put),
  5123. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5124. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5125. msm_ec_ref_chmixer_weights_put),
  5126. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5127. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5128. msm_ec_ref_chmixer_weights_put),
  5129. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch7", SND_SOC_NOPM,
  5130. 6, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5131. msm_ec_ref_chmixer_weights_put),
  5132. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch8", SND_SOC_NOPM,
  5133. 7, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5134. msm_ec_ref_chmixer_weights_put),
  5135. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5136. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5137. };
  5138. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5139. struct snd_ctl_elem_value *ucontrol)
  5140. {
  5141. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5142. mutex_lock(&routing_lock);
  5143. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5144. mutex_unlock(&routing_lock);
  5145. return 0;
  5146. }
  5147. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5148. struct snd_ctl_elem_value *ucontrol)
  5149. {
  5150. int value = ucontrol->value.integer.value[0];
  5151. struct snd_soc_dapm_widget *widget =
  5152. snd_soc_dapm_kcontrol_widget(kcontrol);
  5153. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5154. struct snd_soc_dapm_update *update = NULL;
  5155. mutex_lock(&routing_lock);
  5156. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5157. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5158. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5159. __func__, msm_route_ec_ref_rx);
  5160. mutex_unlock(&routing_lock);
  5161. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5162. msm_route_ec_ref_rx, e, update);
  5163. return 0;
  5164. }
  5165. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5166. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5167. msm_route_ec_ref_rx_enum[0],
  5168. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5169. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5170. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5171. msm_route_ec_ref_rx_enum[0],
  5172. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5173. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5174. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5175. msm_route_ec_ref_rx_enum[0],
  5176. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5177. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5178. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5179. msm_route_ec_ref_rx_enum[0],
  5180. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5181. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5182. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5183. msm_route_ec_ref_rx_enum[0],
  5184. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5185. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5186. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5187. msm_route_ec_ref_rx_enum[0],
  5188. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5189. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5190. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5191. msm_route_ec_ref_rx_enum[0],
  5192. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5193. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5194. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5195. msm_route_ec_ref_rx_enum[0],
  5196. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5197. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5198. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5199. msm_route_ec_ref_rx_enum[0],
  5200. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5201. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5202. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5203. msm_route_ec_ref_rx_enum[0],
  5204. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5205. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5206. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5207. msm_route_ec_ref_rx_enum[0],
  5208. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5209. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5210. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5211. msm_route_ec_ref_rx_enum[0],
  5212. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5213. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5214. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5215. msm_route_ec_ref_rx_enum[0],
  5216. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5217. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5218. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5219. msm_route_ec_ref_rx_enum[0],
  5220. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5221. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5222. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5223. msm_route_ec_ref_rx_enum[0],
  5224. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5225. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5226. struct snd_ctl_elem_value *ucontrol)
  5227. {
  5228. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5229. mutex_lock(&routing_lock);
  5230. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5231. mutex_unlock(&routing_lock);
  5232. return 0;
  5233. }
  5234. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5235. struct snd_ctl_elem_value *ucontrol)
  5236. {
  5237. struct snd_soc_dapm_widget *widget =
  5238. snd_soc_dapm_kcontrol_widget(kcontrol);
  5239. int mux = ucontrol->value.enumerated.item[0];
  5240. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5241. int ret = 1;
  5242. bool state = true;
  5243. uint16_t ext_ec_ref_port_id;
  5244. struct snd_soc_dapm_update *update = NULL;
  5245. if (mux >= e->items) {
  5246. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5247. return -EINVAL;
  5248. }
  5249. mutex_lock(&routing_lock);
  5250. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5251. switch (msm_route_ext_ec_ref) {
  5252. case EXT_EC_REF_PRI_MI2S_TX:
  5253. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5254. break;
  5255. case EXT_EC_REF_SEC_MI2S_TX:
  5256. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5257. break;
  5258. case EXT_EC_REF_TERT_MI2S_TX:
  5259. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5260. break;
  5261. case EXT_EC_REF_QUAT_MI2S_TX:
  5262. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5263. break;
  5264. case EXT_EC_REF_QUIN_MI2S_TX:
  5265. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5266. break;
  5267. case EXT_EC_REF_SLIM_1_TX:
  5268. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5269. break;
  5270. case EXT_EC_REF_PRI_TDM_TX:
  5271. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  5272. break;
  5273. case EXT_EC_REF_SEC_TDM_TX:
  5274. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5275. break;
  5276. case EXT_EC_REF_NONE:
  5277. default:
  5278. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5279. state = false;
  5280. break;
  5281. }
  5282. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5283. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5284. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5285. mutex_unlock(&routing_lock);
  5286. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5287. update);
  5288. } else {
  5289. ret = -EINVAL;
  5290. mutex_unlock(&routing_lock);
  5291. }
  5292. return ret;
  5293. }
  5294. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5295. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5296. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5297. "SLIM_1_TX", "PRI_TDM_TX",
  5298. "SEC_TDM_TX"};
  5299. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5300. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5301. };
  5302. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5303. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5304. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5305. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5306. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5307. MSM_BACKEND_DAI_PRI_I2S_RX,
  5308. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5309. msm_routing_put_audio_mixer),
  5310. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5311. MSM_BACKEND_DAI_PRI_I2S_RX,
  5312. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5313. msm_routing_put_audio_mixer),
  5314. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5315. MSM_BACKEND_DAI_PRI_I2S_RX,
  5316. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5317. msm_routing_put_audio_mixer),
  5318. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5319. MSM_BACKEND_DAI_PRI_I2S_RX,
  5320. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5321. msm_routing_put_audio_mixer),
  5322. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5323. MSM_BACKEND_DAI_PRI_I2S_RX,
  5324. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5325. msm_routing_put_audio_mixer),
  5326. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5327. MSM_BACKEND_DAI_PRI_I2S_RX,
  5328. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5329. msm_routing_put_audio_mixer),
  5330. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5331. MSM_BACKEND_DAI_PRI_I2S_RX,
  5332. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5333. msm_routing_put_audio_mixer),
  5334. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5335. MSM_BACKEND_DAI_PRI_I2S_RX,
  5336. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5337. msm_routing_put_audio_mixer),
  5338. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5339. MSM_BACKEND_DAI_PRI_I2S_RX,
  5340. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5341. msm_routing_put_audio_mixer),
  5342. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5343. MSM_BACKEND_DAI_PRI_I2S_RX,
  5344. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5345. msm_routing_put_audio_mixer),
  5346. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5347. MSM_BACKEND_DAI_PRI_I2S_RX,
  5348. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5349. msm_routing_put_audio_mixer),
  5350. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5351. MSM_BACKEND_DAI_PRI_I2S_RX,
  5352. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5353. msm_routing_put_audio_mixer),
  5354. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5355. MSM_BACKEND_DAI_PRI_I2S_RX,
  5356. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5357. msm_routing_put_audio_mixer),
  5358. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5359. MSM_BACKEND_DAI_PRI_I2S_RX,
  5360. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5361. msm_routing_put_audio_mixer),
  5362. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5363. MSM_BACKEND_DAI_PRI_I2S_RX,
  5364. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5365. msm_routing_put_audio_mixer),
  5366. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5367. MSM_BACKEND_DAI_PRI_I2S_RX,
  5368. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5369. msm_routing_put_audio_mixer),
  5370. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5371. MSM_BACKEND_DAI_PRI_I2S_RX,
  5372. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5373. msm_routing_put_audio_mixer),
  5374. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5375. MSM_BACKEND_DAI_PRI_I2S_RX,
  5376. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5377. msm_routing_put_audio_mixer),
  5378. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5379. MSM_BACKEND_DAI_PRI_I2S_RX,
  5380. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5381. msm_routing_put_audio_mixer),
  5382. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5383. MSM_BACKEND_DAI_PRI_I2S_RX,
  5384. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5385. msm_routing_put_audio_mixer),
  5386. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5387. MSM_BACKEND_DAI_PRI_I2S_RX,
  5388. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5389. msm_routing_put_audio_mixer),
  5390. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5391. MSM_BACKEND_DAI_PRI_I2S_RX,
  5392. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5393. msm_routing_put_audio_mixer),
  5394. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5395. MSM_BACKEND_DAI_PRI_I2S_RX,
  5396. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5397. msm_routing_put_audio_mixer),
  5398. };
  5399. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5400. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5401. MSM_BACKEND_DAI_SEC_I2S_RX,
  5402. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5403. msm_routing_put_audio_mixer),
  5404. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5405. MSM_BACKEND_DAI_SEC_I2S_RX,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5409. MSM_BACKEND_DAI_SEC_I2S_RX,
  5410. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5411. msm_routing_put_audio_mixer),
  5412. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5413. MSM_BACKEND_DAI_SEC_I2S_RX,
  5414. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5415. msm_routing_put_audio_mixer),
  5416. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5417. MSM_BACKEND_DAI_SEC_I2S_RX,
  5418. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5419. msm_routing_put_audio_mixer),
  5420. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5421. MSM_BACKEND_DAI_SEC_I2S_RX,
  5422. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5423. msm_routing_put_audio_mixer),
  5424. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5425. MSM_BACKEND_DAI_SEC_I2S_RX,
  5426. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5427. msm_routing_put_audio_mixer),
  5428. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5429. MSM_BACKEND_DAI_SEC_I2S_RX,
  5430. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5431. msm_routing_put_audio_mixer),
  5432. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5433. MSM_BACKEND_DAI_SEC_I2S_RX,
  5434. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5435. msm_routing_put_audio_mixer),
  5436. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5437. MSM_BACKEND_DAI_SEC_I2S_RX,
  5438. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5439. msm_routing_put_audio_mixer),
  5440. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5441. MSM_BACKEND_DAI_SEC_I2S_RX,
  5442. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5443. msm_routing_put_audio_mixer),
  5444. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5445. MSM_BACKEND_DAI_SEC_I2S_RX,
  5446. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5447. msm_routing_put_audio_mixer),
  5448. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5449. MSM_BACKEND_DAI_SEC_I2S_RX,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5453. MSM_BACKEND_DAI_SEC_I2S_RX,
  5454. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5455. msm_routing_put_audio_mixer),
  5456. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5457. MSM_BACKEND_DAI_SEC_I2S_RX,
  5458. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5459. msm_routing_put_audio_mixer),
  5460. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5461. MSM_BACKEND_DAI_SEC_I2S_RX,
  5462. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5463. msm_routing_put_audio_mixer),
  5464. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5465. MSM_BACKEND_DAI_SEC_I2S_RX,
  5466. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5467. msm_routing_put_audio_mixer),
  5468. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5469. MSM_BACKEND_DAI_SEC_I2S_RX,
  5470. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5471. msm_routing_put_audio_mixer),
  5472. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5473. MSM_BACKEND_DAI_SEC_I2S_RX,
  5474. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5475. msm_routing_put_audio_mixer),
  5476. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5477. MSM_BACKEND_DAI_SEC_I2S_RX,
  5478. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5479. msm_routing_put_audio_mixer),
  5480. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5481. MSM_BACKEND_DAI_SEC_I2S_RX,
  5482. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5483. msm_routing_put_audio_mixer),
  5484. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5485. MSM_BACKEND_DAI_SEC_I2S_RX,
  5486. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5487. msm_routing_put_audio_mixer),
  5488. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5489. MSM_BACKEND_DAI_SEC_I2S_RX,
  5490. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5491. msm_routing_put_audio_mixer),
  5492. };
  5493. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5494. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5495. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5496. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5497. msm_routing_put_audio_mixer),
  5498. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5499. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5500. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5501. msm_routing_put_audio_mixer),
  5502. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5503. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5504. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5505. msm_routing_put_audio_mixer),
  5506. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5507. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5508. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5509. msm_routing_put_audio_mixer),
  5510. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5511. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5515. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5516. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5517. msm_routing_put_audio_mixer),
  5518. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5519. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5520. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5521. msm_routing_put_audio_mixer),
  5522. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5523. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5524. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5525. msm_routing_put_audio_mixer),
  5526. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5527. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5531. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5535. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5536. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5537. msm_routing_put_audio_mixer),
  5538. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5539. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5540. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5541. msm_routing_put_audio_mixer),
  5542. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5543. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5547. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5548. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5549. msm_routing_put_audio_mixer),
  5550. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5551. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5552. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5553. msm_routing_put_audio_mixer),
  5554. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5555. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5556. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5557. msm_routing_put_audio_mixer),
  5558. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5559. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5560. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5561. msm_routing_put_audio_mixer),
  5562. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5563. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5564. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5565. msm_routing_put_audio_mixer),
  5566. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5567. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5568. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5569. msm_routing_put_audio_mixer),
  5570. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5571. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5572. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5573. msm_routing_put_audio_mixer),
  5574. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5575. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5576. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5577. msm_routing_put_audio_mixer),
  5578. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5579. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5580. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5581. msm_routing_put_audio_mixer),
  5582. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5583. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5584. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5585. msm_routing_put_audio_mixer),
  5586. };
  5587. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5588. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5601. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5602. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5603. msm_routing_put_audio_mixer),
  5604. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5605. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5609. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5613. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5614. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5615. msm_routing_put_audio_mixer),
  5616. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5617. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5621. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5625. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5629. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5630. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5631. msm_routing_put_audio_mixer),
  5632. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5633. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5634. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5635. msm_routing_put_audio_mixer),
  5636. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5637. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5638. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5639. msm_routing_put_audio_mixer),
  5640. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5641. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5642. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5643. msm_routing_put_audio_mixer),
  5644. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5645. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5646. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5647. msm_routing_put_audio_mixer),
  5648. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5649. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5650. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5651. msm_routing_put_audio_mixer),
  5652. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5653. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5654. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5655. msm_routing_put_audio_mixer),
  5656. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5657. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5658. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5659. msm_routing_put_audio_mixer),
  5660. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5661. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5662. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5663. msm_routing_put_audio_mixer),
  5664. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5665. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5666. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5667. msm_routing_put_audio_mixer),
  5668. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5669. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5670. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5671. msm_routing_put_audio_mixer),
  5672. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5673. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5674. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5675. msm_routing_put_audio_mixer),
  5676. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5677. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5678. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5679. msm_routing_put_audio_mixer),
  5680. };
  5681. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5682. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5683. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5687. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5691. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5692. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5693. msm_routing_put_audio_mixer),
  5694. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5695. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5696. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5697. msm_routing_put_audio_mixer),
  5698. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5699. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5703. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5707. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5708. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5709. msm_routing_put_audio_mixer),
  5710. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5711. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5712. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5713. msm_routing_put_audio_mixer),
  5714. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5715. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5716. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5717. msm_routing_put_audio_mixer),
  5718. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5719. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5720. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5721. msm_routing_put_audio_mixer),
  5722. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5723. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5724. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5725. msm_routing_put_audio_mixer),
  5726. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5727. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5728. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5729. msm_routing_put_audio_mixer),
  5730. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5731. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5732. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5733. msm_routing_put_audio_mixer),
  5734. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5735. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5736. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5737. msm_routing_put_audio_mixer),
  5738. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5739. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5740. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5741. msm_routing_put_audio_mixer),
  5742. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5743. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5744. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5745. msm_routing_put_audio_mixer),
  5746. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5747. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5748. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5749. msm_routing_put_audio_mixer),
  5750. };
  5751. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5752. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5765. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5769. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5773. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5774. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5775. msm_routing_put_audio_mixer),
  5776. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5777. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5781. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5785. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5786. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5787. msm_routing_put_audio_mixer),
  5788. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5789. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5790. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5791. msm_routing_put_audio_mixer),
  5792. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5793. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5794. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5795. msm_routing_put_audio_mixer),
  5796. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5797. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5798. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5799. msm_routing_put_audio_mixer),
  5800. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5801. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5802. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5803. msm_routing_put_audio_mixer),
  5804. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5805. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5806. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5807. msm_routing_put_audio_mixer),
  5808. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5809. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5810. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5811. msm_routing_put_audio_mixer),
  5812. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5813. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5814. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5815. msm_routing_put_audio_mixer),
  5816. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5817. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5818. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5819. msm_routing_put_audio_mixer),
  5820. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5821. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5822. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5823. msm_routing_put_audio_mixer),
  5824. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5825. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5826. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5827. msm_routing_put_audio_mixer),
  5828. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5829. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5830. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5831. msm_routing_put_audio_mixer),
  5832. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5833. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5834. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5835. msm_routing_put_audio_mixer),
  5836. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5837. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5838. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5839. msm_routing_put_audio_mixer),
  5840. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5841. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5842. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5843. msm_routing_put_audio_mixer),
  5844. };
  5845. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  5846. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5847. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5851. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5855. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5859. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5860. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5861. msm_routing_put_audio_mixer),
  5862. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5863. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5864. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5865. msm_routing_put_audio_mixer),
  5866. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5867. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5868. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5869. msm_routing_put_audio_mixer),
  5870. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5871. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5872. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5873. msm_routing_put_audio_mixer),
  5874. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5875. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5876. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5877. msm_routing_put_audio_mixer),
  5878. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5879. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5880. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5881. msm_routing_put_audio_mixer),
  5882. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5883. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5884. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5885. msm_routing_put_audio_mixer),
  5886. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5887. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5888. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5889. msm_routing_put_audio_mixer),
  5890. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5891. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5892. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5893. msm_routing_put_audio_mixer),
  5894. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5895. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5896. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5897. msm_routing_put_audio_mixer),
  5898. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5899. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5900. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5901. msm_routing_put_audio_mixer),
  5902. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5903. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5904. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5905. msm_routing_put_audio_mixer),
  5906. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5907. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5908. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5909. msm_routing_put_audio_mixer),
  5910. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5911. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5912. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5913. msm_routing_put_audio_mixer),
  5914. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5915. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5916. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5917. msm_routing_put_audio_mixer),
  5918. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5919. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5920. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5921. msm_routing_put_audio_mixer),
  5922. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5923. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5924. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5925. msm_routing_put_audio_mixer),
  5926. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5927. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5928. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5929. msm_routing_put_audio_mixer),
  5930. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5931. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5932. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5933. msm_routing_put_audio_mixer),
  5934. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5935. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5936. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5937. msm_routing_put_audio_mixer),
  5938. };
  5939. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  5940. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5941. MSM_BACKEND_DAI_MI2S_RX,
  5942. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5943. msm_routing_put_audio_mixer),
  5944. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5945. MSM_BACKEND_DAI_MI2S_RX,
  5946. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5947. msm_routing_put_audio_mixer),
  5948. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5949. MSM_BACKEND_DAI_MI2S_RX,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5953. MSM_BACKEND_DAI_MI2S_RX,
  5954. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5955. msm_routing_put_audio_mixer),
  5956. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5957. MSM_BACKEND_DAI_MI2S_RX,
  5958. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5959. msm_routing_put_audio_mixer),
  5960. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5961. MSM_BACKEND_DAI_MI2S_RX,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5965. MSM_BACKEND_DAI_MI2S_RX,
  5966. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5967. msm_routing_put_audio_mixer),
  5968. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5969. MSM_BACKEND_DAI_MI2S_RX,
  5970. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5971. msm_routing_put_audio_mixer),
  5972. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5973. MSM_BACKEND_DAI_MI2S_RX,
  5974. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5975. msm_routing_put_audio_mixer),
  5976. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5977. MSM_BACKEND_DAI_MI2S_RX,
  5978. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5979. msm_routing_put_audio_mixer),
  5980. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5981. MSM_BACKEND_DAI_MI2S_RX,
  5982. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5983. msm_routing_put_audio_mixer),
  5984. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5985. MSM_BACKEND_DAI_MI2S_RX,
  5986. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5987. msm_routing_put_audio_mixer),
  5988. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5989. MSM_BACKEND_DAI_MI2S_RX,
  5990. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5991. msm_routing_put_audio_mixer),
  5992. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5993. MSM_BACKEND_DAI_MI2S_RX,
  5994. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5995. msm_routing_put_audio_mixer),
  5996. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5997. MSM_BACKEND_DAI_MI2S_RX,
  5998. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5999. msm_routing_put_audio_mixer),
  6000. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6001. MSM_BACKEND_DAI_MI2S_RX,
  6002. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6003. msm_routing_put_audio_mixer),
  6004. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6005. MSM_BACKEND_DAI_MI2S_RX,
  6006. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6007. msm_routing_put_audio_mixer),
  6008. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6009. MSM_BACKEND_DAI_MI2S_RX,
  6010. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6011. msm_routing_put_audio_mixer),
  6012. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6013. MSM_BACKEND_DAI_MI2S_RX,
  6014. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6015. msm_routing_put_audio_mixer),
  6016. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6017. MSM_BACKEND_DAI_MI2S_RX,
  6018. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6019. msm_routing_put_audio_mixer),
  6020. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6021. MSM_BACKEND_DAI_MI2S_RX,
  6022. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6023. msm_routing_put_audio_mixer),
  6024. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6025. MSM_BACKEND_DAI_MI2S_RX,
  6026. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6027. msm_routing_put_audio_mixer),
  6028. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6029. MSM_BACKEND_DAI_MI2S_RX,
  6030. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6031. msm_routing_put_audio_mixer),
  6032. };
  6033. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  6034. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6035. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6039. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6043. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6047. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6048. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6049. msm_routing_put_audio_mixer),
  6050. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6051. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6052. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6053. msm_routing_put_audio_mixer),
  6054. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6055. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6059. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6060. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6061. msm_routing_put_audio_mixer),
  6062. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6063. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6064. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6065. msm_routing_put_audio_mixer),
  6066. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6067. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6068. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6069. msm_routing_put_audio_mixer),
  6070. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6071. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6072. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6073. msm_routing_put_audio_mixer),
  6074. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6075. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6076. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6077. msm_routing_put_audio_mixer),
  6078. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6079. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6080. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6081. msm_routing_put_audio_mixer),
  6082. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6083. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6084. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6085. msm_routing_put_audio_mixer),
  6086. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6087. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6088. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6089. msm_routing_put_audio_mixer),
  6090. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6091. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6092. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6093. msm_routing_put_audio_mixer),
  6094. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6095. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6096. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6097. msm_routing_put_audio_mixer),
  6098. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6099. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6100. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6101. msm_routing_put_audio_mixer),
  6102. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6103. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6104. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6105. msm_routing_put_audio_mixer),
  6106. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6107. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6108. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6109. msm_routing_put_audio_mixer),
  6110. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6111. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6112. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6113. msm_routing_put_audio_mixer),
  6114. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6115. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6116. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6117. msm_routing_put_audio_mixer),
  6118. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6119. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6120. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6121. msm_routing_put_audio_mixer),
  6122. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6123. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6124. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6125. msm_routing_put_audio_mixer),
  6126. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6127. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6128. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6129. msm_routing_put_audio_mixer),
  6130. };
  6131. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6132. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6133. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6134. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6135. msm_routing_put_audio_mixer),
  6136. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6137. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6141. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6142. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6143. msm_routing_put_audio_mixer),
  6144. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6145. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6149. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6153. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6154. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6155. msm_routing_put_audio_mixer),
  6156. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6157. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6158. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6159. msm_routing_put_audio_mixer),
  6160. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6161. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6162. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6163. msm_routing_put_audio_mixer),
  6164. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6165. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6166. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6167. msm_routing_put_audio_mixer),
  6168. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6169. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6170. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6171. msm_routing_put_audio_mixer),
  6172. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6173. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6174. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6175. msm_routing_put_audio_mixer),
  6176. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6177. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6178. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6179. msm_routing_put_audio_mixer),
  6180. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6181. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6182. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6183. msm_routing_put_audio_mixer),
  6184. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6185. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6186. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6187. msm_routing_put_audio_mixer),
  6188. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6189. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6190. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6191. msm_routing_put_audio_mixer),
  6192. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6193. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6194. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6195. msm_routing_put_audio_mixer),
  6196. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6197. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6198. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6199. msm_routing_put_audio_mixer),
  6200. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6201. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6202. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6203. msm_routing_put_audio_mixer),
  6204. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6205. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6206. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6207. msm_routing_put_audio_mixer),
  6208. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6209. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6210. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6211. msm_routing_put_audio_mixer),
  6212. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6213. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6214. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6215. msm_routing_put_audio_mixer),
  6216. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6217. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6218. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6219. msm_routing_put_audio_mixer),
  6220. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6221. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6222. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6223. msm_routing_put_audio_mixer),
  6224. };
  6225. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6226. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6227. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6231. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6235. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6236. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6237. msm_routing_put_audio_mixer),
  6238. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6239. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6240. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6241. msm_routing_put_audio_mixer),
  6242. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6243. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6247. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6248. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6249. msm_routing_put_audio_mixer),
  6250. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6251. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6252. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6253. msm_routing_put_audio_mixer),
  6254. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6255. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6256. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6257. msm_routing_put_audio_mixer),
  6258. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6259. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6260. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6261. msm_routing_put_audio_mixer),
  6262. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6263. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6264. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6265. msm_routing_put_audio_mixer),
  6266. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6267. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6271. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6272. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6273. msm_routing_put_audio_mixer),
  6274. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6275. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6276. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6277. msm_routing_put_audio_mixer),
  6278. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6279. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6280. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6281. msm_routing_put_audio_mixer),
  6282. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6283. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6284. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6285. msm_routing_put_audio_mixer),
  6286. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6287. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6288. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6289. msm_routing_put_audio_mixer),
  6290. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6291. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6292. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6293. msm_routing_put_audio_mixer),
  6294. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6295. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6296. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6297. msm_routing_put_audio_mixer),
  6298. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6299. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6300. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6301. msm_routing_put_audio_mixer),
  6302. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6303. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6304. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6305. msm_routing_put_audio_mixer),
  6306. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6307. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6308. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6309. msm_routing_put_audio_mixer),
  6310. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6311. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6312. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6313. msm_routing_put_audio_mixer),
  6314. };
  6315. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6316. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6317. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6321. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6322. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6323. msm_routing_put_audio_mixer),
  6324. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6325. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6329. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6345. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6349. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6357. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6358. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6359. msm_routing_put_audio_mixer),
  6360. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6361. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6362. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6363. msm_routing_put_audio_mixer),
  6364. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6365. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6369. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6370. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6371. msm_routing_put_audio_mixer),
  6372. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6373. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6374. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6375. msm_routing_put_audio_mixer),
  6376. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6377. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6378. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6379. msm_routing_put_audio_mixer),
  6380. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6381. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6382. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6383. msm_routing_put_audio_mixer),
  6384. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6385. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6386. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6387. msm_routing_put_audio_mixer),
  6388. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6389. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6390. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6391. msm_routing_put_audio_mixer),
  6392. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6393. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6394. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6395. msm_routing_put_audio_mixer),
  6396. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6397. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6398. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6399. msm_routing_put_audio_mixer),
  6400. };
  6401. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6402. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6403. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6404. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6405. msm_routing_put_audio_mixer),
  6406. };
  6407. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6408. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6409. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6410. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6411. msm_routing_put_audio_mixer),
  6412. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6413. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6414. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6415. msm_routing_put_audio_mixer),
  6416. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6417. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6418. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6419. msm_routing_put_audio_mixer),
  6420. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6421. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6422. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6423. msm_routing_put_audio_mixer),
  6424. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6425. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6426. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6427. msm_routing_put_audio_mixer),
  6428. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6429. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6430. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6431. msm_routing_put_audio_mixer),
  6432. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6433. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6434. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6435. msm_routing_put_audio_mixer),
  6436. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6437. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6438. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6439. msm_routing_put_audio_mixer),
  6440. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6441. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6442. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6443. msm_routing_put_audio_mixer),
  6444. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6445. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6446. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6447. msm_routing_put_audio_mixer),
  6448. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6449. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6450. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6451. msm_routing_put_audio_mixer),
  6452. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6453. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6454. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6455. msm_routing_put_audio_mixer),
  6456. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6457. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6458. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6459. msm_routing_put_audio_mixer),
  6460. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6461. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6462. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6463. msm_routing_put_audio_mixer),
  6464. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6465. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6466. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6467. msm_routing_put_audio_mixer),
  6468. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6469. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6470. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6471. msm_routing_put_audio_mixer),
  6472. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6473. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6474. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6475. msm_routing_put_audio_mixer),
  6476. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6477. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6478. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6479. msm_routing_put_audio_mixer),
  6480. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6481. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6482. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6483. msm_routing_put_audio_mixer),
  6484. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6485. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6486. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6487. msm_routing_put_audio_mixer),
  6488. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6489. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6490. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6491. msm_routing_put_audio_mixer),
  6492. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6493. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6494. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6495. msm_routing_put_audio_mixer),
  6496. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6497. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6498. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6499. msm_routing_put_audio_mixer),
  6500. };
  6501. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6502. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6503. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6504. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6505. msm_routing_put_audio_mixer),
  6506. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6507. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6508. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6509. msm_routing_put_audio_mixer),
  6510. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6511. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6512. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6513. msm_routing_put_audio_mixer),
  6514. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6515. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6516. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6517. msm_routing_put_audio_mixer),
  6518. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6519. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6520. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6521. msm_routing_put_audio_mixer),
  6522. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6523. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6524. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6525. msm_routing_put_audio_mixer),
  6526. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6527. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6528. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6529. msm_routing_put_audio_mixer),
  6530. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6531. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6535. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6536. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6537. msm_routing_put_audio_mixer),
  6538. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6539. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6540. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6541. msm_routing_put_audio_mixer),
  6542. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6543. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6544. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6545. msm_routing_put_audio_mixer),
  6546. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6547. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6548. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6549. msm_routing_put_audio_mixer),
  6550. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6551. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6552. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6553. msm_routing_put_audio_mixer),
  6554. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6555. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6556. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6557. msm_routing_put_audio_mixer),
  6558. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6559. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6560. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6561. msm_routing_put_audio_mixer),
  6562. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6563. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6564. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6565. msm_routing_put_audio_mixer),
  6566. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6567. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6568. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6569. msm_routing_put_audio_mixer),
  6570. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6571. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6572. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6573. msm_routing_put_audio_mixer),
  6574. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6575. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6576. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6577. msm_routing_put_audio_mixer),
  6578. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6579. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6580. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6583. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6584. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6585. msm_routing_put_audio_mixer),
  6586. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6587. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6588. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6589. msm_routing_put_audio_mixer),
  6590. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6591. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6592. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6593. msm_routing_put_audio_mixer),
  6594. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  6595. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6596. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_audio_mixer,
  6597. msm_routing_put_audio_mixer),
  6598. };
  6599. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6600. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6601. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6602. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6603. msm_routing_put_audio_mixer),
  6604. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6605. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6606. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6607. msm_routing_put_audio_mixer),
  6608. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6609. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6610. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6611. msm_routing_put_audio_mixer),
  6612. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6613. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6614. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6615. msm_routing_put_audio_mixer),
  6616. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6617. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6618. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6619. msm_routing_put_audio_mixer),
  6620. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6621. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6622. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6623. msm_routing_put_audio_mixer),
  6624. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6625. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6626. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6627. msm_routing_put_audio_mixer),
  6628. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6629. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6630. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6631. msm_routing_put_audio_mixer),
  6632. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6633. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6634. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6635. msm_routing_put_audio_mixer),
  6636. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6637. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6638. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6639. msm_routing_put_audio_mixer),
  6640. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6641. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6642. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6643. msm_routing_put_audio_mixer),
  6644. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6645. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6646. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6647. msm_routing_put_audio_mixer),
  6648. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6649. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6650. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6651. msm_routing_put_audio_mixer),
  6652. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6653. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6654. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6655. msm_routing_put_audio_mixer),
  6656. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6657. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6658. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6659. msm_routing_put_audio_mixer),
  6660. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6661. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6662. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6663. msm_routing_put_audio_mixer),
  6664. };
  6665. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6666. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6667. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6668. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6669. msm_routing_put_audio_mixer),
  6670. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6671. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6672. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6673. msm_routing_put_audio_mixer),
  6674. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6675. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6676. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6677. msm_routing_put_audio_mixer),
  6678. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6679. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6680. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6681. msm_routing_put_audio_mixer),
  6682. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6683. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6684. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6685. msm_routing_put_audio_mixer),
  6686. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6687. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6688. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6689. msm_routing_put_audio_mixer),
  6690. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6691. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6692. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6693. msm_routing_put_audio_mixer),
  6694. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6695. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6696. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6697. msm_routing_put_audio_mixer),
  6698. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6699. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6700. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6701. msm_routing_put_audio_mixer),
  6702. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6703. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6704. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6705. msm_routing_put_audio_mixer),
  6706. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6707. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6708. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6709. msm_routing_put_audio_mixer),
  6710. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6711. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6712. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6713. msm_routing_put_audio_mixer),
  6714. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6715. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6716. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6717. msm_routing_put_audio_mixer),
  6718. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6719. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6720. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6721. msm_routing_put_audio_mixer),
  6722. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6723. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6724. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6725. msm_routing_put_audio_mixer),
  6726. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6727. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6728. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6729. msm_routing_put_audio_mixer),
  6730. };
  6731. static const struct snd_kcontrol_new pri_meta_mi2s_rx_mixer_controls[] = {
  6732. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6733. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6737. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6738. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6739. msm_routing_put_audio_mixer),
  6740. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6741. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6742. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6743. msm_routing_put_audio_mixer),
  6744. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6745. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6746. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6747. msm_routing_put_audio_mixer),
  6748. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6749. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6750. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6751. msm_routing_put_audio_mixer),
  6752. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6753. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6754. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6755. msm_routing_put_audio_mixer),
  6756. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6757. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6761. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6762. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6763. msm_routing_put_audio_mixer),
  6764. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6765. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6766. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6767. msm_routing_put_audio_mixer),
  6768. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6769. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6773. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6774. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6775. msm_routing_put_audio_mixer),
  6776. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6777. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6778. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6779. msm_routing_put_audio_mixer),
  6780. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6781. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6782. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6783. msm_routing_put_audio_mixer),
  6784. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6785. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6786. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6787. msm_routing_put_audio_mixer),
  6788. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6789. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6790. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6791. msm_routing_put_audio_mixer),
  6792. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6793. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6794. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6795. msm_routing_put_audio_mixer),
  6796. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6797. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6798. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6799. msm_routing_put_audio_mixer),
  6800. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6801. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6802. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6803. msm_routing_put_audio_mixer),
  6804. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6805. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6806. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6807. msm_routing_put_audio_mixer),
  6808. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6809. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6810. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6811. msm_routing_put_audio_mixer),
  6812. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6813. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6814. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6815. msm_routing_put_audio_mixer),
  6816. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6817. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6818. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6819. msm_routing_put_audio_mixer),
  6820. };
  6821. static const struct snd_kcontrol_new sec_meta_mi2s_rx_mixer_controls[] = {
  6822. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6823. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6824. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6825. msm_routing_put_audio_mixer),
  6826. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6827. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6828. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6829. msm_routing_put_audio_mixer),
  6830. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6831. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6835. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6836. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6837. msm_routing_put_audio_mixer),
  6838. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6839. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6840. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6841. msm_routing_put_audio_mixer),
  6842. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6843. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6847. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6848. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6849. msm_routing_put_audio_mixer),
  6850. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6851. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6852. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6853. msm_routing_put_audio_mixer),
  6854. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6855. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6856. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6857. msm_routing_put_audio_mixer),
  6858. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6859. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6860. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6861. msm_routing_put_audio_mixer),
  6862. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6863. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6864. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6865. msm_routing_put_audio_mixer),
  6866. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6867. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6868. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6869. msm_routing_put_audio_mixer),
  6870. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6871. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6872. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6873. msm_routing_put_audio_mixer),
  6874. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6875. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6876. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6877. msm_routing_put_audio_mixer),
  6878. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6879. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6880. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6881. msm_routing_put_audio_mixer),
  6882. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6883. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6884. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6885. msm_routing_put_audio_mixer),
  6886. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6887. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6888. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6889. msm_routing_put_audio_mixer),
  6890. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6891. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6892. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6893. msm_routing_put_audio_mixer),
  6894. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6895. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6896. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6897. msm_routing_put_audio_mixer),
  6898. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6899. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6900. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6901. msm_routing_put_audio_mixer),
  6902. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6903. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6904. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6905. msm_routing_put_audio_mixer),
  6906. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6907. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6908. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6909. msm_routing_put_audio_mixer),
  6910. };
  6911. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  6912. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6913. MSM_BACKEND_DAI_HDMI_RX,
  6914. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6915. msm_routing_put_audio_mixer),
  6916. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6917. MSM_BACKEND_DAI_HDMI_RX,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6921. MSM_BACKEND_DAI_HDMI_RX,
  6922. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6923. msm_routing_put_audio_mixer),
  6924. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6925. MSM_BACKEND_DAI_HDMI_RX,
  6926. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6927. msm_routing_put_audio_mixer),
  6928. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6929. MSM_BACKEND_DAI_HDMI_RX,
  6930. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6931. msm_routing_put_audio_mixer),
  6932. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6933. MSM_BACKEND_DAI_HDMI_RX,
  6934. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6935. msm_routing_put_audio_mixer),
  6936. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6937. MSM_BACKEND_DAI_HDMI_RX,
  6938. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6939. msm_routing_put_audio_mixer),
  6940. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6941. MSM_BACKEND_DAI_HDMI_RX,
  6942. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6943. msm_routing_put_audio_mixer),
  6944. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6945. MSM_BACKEND_DAI_HDMI_RX,
  6946. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6947. msm_routing_put_audio_mixer),
  6948. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6949. MSM_BACKEND_DAI_HDMI_RX,
  6950. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6951. msm_routing_put_audio_mixer),
  6952. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6953. MSM_BACKEND_DAI_HDMI_RX,
  6954. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6955. msm_routing_put_audio_mixer),
  6956. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6957. MSM_BACKEND_DAI_HDMI_RX,
  6958. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6959. msm_routing_put_audio_mixer),
  6960. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6961. MSM_BACKEND_DAI_HDMI_RX,
  6962. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6963. msm_routing_put_audio_mixer),
  6964. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6965. MSM_BACKEND_DAI_HDMI_RX,
  6966. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6967. msm_routing_put_audio_mixer),
  6968. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6969. MSM_BACKEND_DAI_HDMI_RX,
  6970. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6971. msm_routing_put_audio_mixer),
  6972. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6973. MSM_BACKEND_DAI_HDMI_RX,
  6974. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6975. msm_routing_put_audio_mixer),
  6976. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6977. MSM_BACKEND_DAI_HDMI_RX,
  6978. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6979. msm_routing_put_audio_mixer),
  6980. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6981. MSM_BACKEND_DAI_HDMI_RX,
  6982. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6983. msm_routing_put_audio_mixer),
  6984. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6985. MSM_BACKEND_DAI_HDMI_RX,
  6986. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6987. msm_routing_put_audio_mixer),
  6988. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6989. MSM_BACKEND_DAI_HDMI_RX,
  6990. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6991. msm_routing_put_audio_mixer),
  6992. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6993. MSM_BACKEND_DAI_HDMI_RX,
  6994. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6995. msm_routing_put_audio_mixer),
  6996. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6997. MSM_BACKEND_DAI_HDMI_RX,
  6998. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6999. msm_routing_put_audio_mixer),
  7000. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  7001. MSM_BACKEND_DAI_HDMI_RX,
  7002. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  7003. msm_routing_put_audio_mixer),
  7004. };
  7005. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  7006. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7007. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7008. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7009. msm_routing_put_audio_mixer),
  7010. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7011. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7012. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7013. msm_routing_put_audio_mixer),
  7014. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7015. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7016. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7017. msm_routing_put_audio_mixer),
  7018. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7019. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7020. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7021. msm_routing_put_audio_mixer),
  7022. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7023. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7024. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7025. msm_routing_put_audio_mixer),
  7026. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7027. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7028. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7029. msm_routing_put_audio_mixer),
  7030. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7031. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7032. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7033. msm_routing_put_audio_mixer),
  7034. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7035. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7036. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7037. msm_routing_put_audio_mixer),
  7038. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7039. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7040. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7041. msm_routing_put_audio_mixer),
  7042. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7043. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7044. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7045. msm_routing_put_audio_mixer),
  7046. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7047. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7048. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7049. msm_routing_put_audio_mixer),
  7050. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7051. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7052. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7053. msm_routing_put_audio_mixer),
  7054. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7055. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7056. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7057. msm_routing_put_audio_mixer),
  7058. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7059. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7060. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7061. msm_routing_put_audio_mixer),
  7062. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7063. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7064. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7065. msm_routing_put_audio_mixer),
  7066. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7067. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7068. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7069. msm_routing_put_audio_mixer),
  7070. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7071. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7072. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7073. msm_routing_put_audio_mixer),
  7074. };
  7075. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  7076. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7077. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7078. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7079. msm_routing_put_audio_mixer),
  7080. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7081. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7082. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7083. msm_routing_put_audio_mixer),
  7084. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7085. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7086. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7087. msm_routing_put_audio_mixer),
  7088. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7089. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7090. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7091. msm_routing_put_audio_mixer),
  7092. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7093. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7094. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7095. msm_routing_put_audio_mixer),
  7096. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7097. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7098. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7099. msm_routing_put_audio_mixer),
  7100. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7101. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7102. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7103. msm_routing_put_audio_mixer),
  7104. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7105. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7106. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7107. msm_routing_put_audio_mixer),
  7108. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7109. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7110. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7111. msm_routing_put_audio_mixer),
  7112. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7113. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7114. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7115. msm_routing_put_audio_mixer),
  7116. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7117. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7118. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7119. msm_routing_put_audio_mixer),
  7120. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7121. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7122. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7123. msm_routing_put_audio_mixer),
  7124. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7125. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7126. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7127. msm_routing_put_audio_mixer),
  7128. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7129. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7130. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7131. msm_routing_put_audio_mixer),
  7132. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7133. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7134. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7135. msm_routing_put_audio_mixer),
  7136. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7137. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7138. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7139. msm_routing_put_audio_mixer),
  7140. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7141. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7142. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7143. msm_routing_put_audio_mixer),
  7144. };
  7145. /* incall music delivery mixer */
  7146. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  7147. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7148. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7149. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7150. msm_routing_put_audio_mixer),
  7151. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7152. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7153. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7154. msm_routing_put_audio_mixer),
  7155. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7156. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7157. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7158. msm_routing_put_audio_mixer),
  7159. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7160. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7161. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7162. msm_routing_put_audio_mixer),
  7163. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7164. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7165. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7166. msm_routing_put_audio_mixer),
  7167. };
  7168. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  7169. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7170. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7171. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7172. msm_routing_put_audio_mixer),
  7173. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7174. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7175. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7176. msm_routing_put_audio_mixer),
  7177. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7178. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7179. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7180. msm_routing_put_audio_mixer),
  7181. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7182. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. };
  7186. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  7187. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7188. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7189. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7190. msm_routing_put_audio_mixer),
  7191. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7192. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7193. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7194. msm_routing_put_audio_mixer),
  7195. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7196. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7197. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7198. msm_routing_put_audio_mixer),
  7199. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7200. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7201. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7202. msm_routing_put_audio_mixer),
  7203. };
  7204. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  7205. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7206. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7210. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7211. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7212. msm_routing_put_audio_mixer),
  7213. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7214. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7215. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7216. msm_routing_put_audio_mixer),
  7217. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7218. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7222. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7223. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7224. msm_routing_put_audio_mixer),
  7225. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7226. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7227. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7228. msm_routing_put_audio_mixer),
  7229. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7230. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7231. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7232. msm_routing_put_audio_mixer),
  7233. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7234. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7235. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7236. msm_routing_put_audio_mixer),
  7237. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7238. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7239. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7240. msm_routing_put_audio_mixer),
  7241. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7242. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7243. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7244. msm_routing_put_audio_mixer),
  7245. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7246. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7247. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7248. msm_routing_put_audio_mixer),
  7249. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7250. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7251. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7252. msm_routing_put_audio_mixer),
  7253. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7254. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7255. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7256. msm_routing_put_audio_mixer),
  7257. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7258. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7259. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7260. msm_routing_put_audio_mixer),
  7261. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7262. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7263. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7264. msm_routing_put_audio_mixer),
  7265. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7266. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7267. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7268. msm_routing_put_audio_mixer),
  7269. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7270. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7271. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7272. msm_routing_put_audio_mixer),
  7273. };
  7274. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7275. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7276. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7280. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7288. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7292. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7293. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7294. msm_routing_put_audio_mixer),
  7295. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7296. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7297. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7298. msm_routing_put_audio_mixer),
  7299. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7300. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7301. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7302. msm_routing_put_audio_mixer),
  7303. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7304. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7305. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7306. msm_routing_put_audio_mixer),
  7307. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7308. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7309. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7310. msm_routing_put_audio_mixer),
  7311. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7312. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7313. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7314. msm_routing_put_audio_mixer),
  7315. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7316. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7317. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7318. msm_routing_put_audio_mixer),
  7319. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7320. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7321. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7322. msm_routing_put_audio_mixer),
  7323. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7324. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7325. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7326. msm_routing_put_audio_mixer),
  7327. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7328. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7329. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7330. msm_routing_put_audio_mixer),
  7331. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7332. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7333. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7334. msm_routing_put_audio_mixer),
  7335. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7336. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7337. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7338. msm_routing_put_audio_mixer),
  7339. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7340. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7341. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7342. msm_routing_put_audio_mixer),
  7343. };
  7344. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7345. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7346. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7350. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7354. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7358. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7362. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7363. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7364. msm_routing_put_audio_mixer),
  7365. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7366. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7367. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7368. msm_routing_put_audio_mixer),
  7369. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7370. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7371. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7372. msm_routing_put_audio_mixer),
  7373. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7374. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7375. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7376. msm_routing_put_audio_mixer),
  7377. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7378. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7379. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7380. msm_routing_put_audio_mixer),
  7381. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7382. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7383. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7384. msm_routing_put_audio_mixer),
  7385. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7386. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7387. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7388. msm_routing_put_audio_mixer),
  7389. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7390. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7391. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7392. msm_routing_put_audio_mixer),
  7393. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7394. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7395. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7396. msm_routing_put_audio_mixer),
  7397. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7398. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7399. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7400. msm_routing_put_audio_mixer),
  7401. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7402. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7403. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7404. msm_routing_put_audio_mixer),
  7405. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7406. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7407. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7408. msm_routing_put_audio_mixer),
  7409. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7410. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7411. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7412. msm_routing_put_audio_mixer),
  7413. };
  7414. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7415. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7416. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7420. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7421. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7422. msm_routing_put_audio_mixer),
  7423. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7424. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7425. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7426. msm_routing_put_audio_mixer),
  7427. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7428. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7429. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7430. msm_routing_put_audio_mixer),
  7431. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7432. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7433. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7434. msm_routing_put_audio_mixer),
  7435. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7436. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7437. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7438. msm_routing_put_audio_mixer),
  7439. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7440. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7441. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7442. msm_routing_put_audio_mixer),
  7443. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7444. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7445. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7446. msm_routing_put_audio_mixer),
  7447. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7448. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7449. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7450. msm_routing_put_audio_mixer),
  7451. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7452. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7456. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7457. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7458. msm_routing_put_audio_mixer),
  7459. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7460. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7461. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7462. msm_routing_put_audio_mixer),
  7463. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7464. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7465. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7466. msm_routing_put_audio_mixer),
  7467. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7468. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7469. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7470. msm_routing_put_audio_mixer),
  7471. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7472. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7473. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7474. msm_routing_put_audio_mixer),
  7475. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7476. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7477. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7478. msm_routing_put_audio_mixer),
  7479. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7480. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7481. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7482. msm_routing_put_audio_mixer),
  7483. };
  7484. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7485. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7486. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7487. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7488. msm_routing_put_audio_mixer),
  7489. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7490. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7491. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7492. msm_routing_put_audio_mixer),
  7493. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7494. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7495. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7496. msm_routing_put_audio_mixer),
  7497. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7498. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7499. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7500. msm_routing_put_audio_mixer),
  7501. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7502. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7503. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7504. msm_routing_put_audio_mixer),
  7505. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7506. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7507. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7508. msm_routing_put_audio_mixer),
  7509. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7510. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7511. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7512. msm_routing_put_audio_mixer),
  7513. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7514. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7515. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7516. msm_routing_put_audio_mixer),
  7517. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7518. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7519. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7520. msm_routing_put_audio_mixer),
  7521. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7522. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7523. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7524. msm_routing_put_audio_mixer),
  7525. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7526. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7527. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7528. msm_routing_put_audio_mixer),
  7529. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7530. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7531. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7532. msm_routing_put_audio_mixer),
  7533. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7534. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7535. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7536. msm_routing_put_audio_mixer),
  7537. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7538. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7539. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7540. msm_routing_put_audio_mixer),
  7541. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7542. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7543. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7544. msm_routing_put_audio_mixer),
  7545. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7546. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7547. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7548. msm_routing_put_audio_mixer),
  7549. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7550. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7551. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7552. msm_routing_put_audio_mixer),
  7553. };
  7554. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7555. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7556. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7557. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7558. msm_routing_put_audio_mixer),
  7559. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7560. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7561. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7562. msm_routing_put_audio_mixer),
  7563. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7564. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7565. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7566. msm_routing_put_audio_mixer),
  7567. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7568. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7569. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7570. msm_routing_put_audio_mixer),
  7571. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7572. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7573. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7574. msm_routing_put_audio_mixer),
  7575. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7576. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7577. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7578. msm_routing_put_audio_mixer),
  7579. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7580. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7581. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7582. msm_routing_put_audio_mixer),
  7583. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7584. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7585. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7586. msm_routing_put_audio_mixer),
  7587. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7588. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7589. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7590. msm_routing_put_audio_mixer),
  7591. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7592. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7593. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7594. msm_routing_put_audio_mixer),
  7595. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7596. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7597. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7598. msm_routing_put_audio_mixer),
  7599. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7600. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7601. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7602. msm_routing_put_audio_mixer),
  7603. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7604. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7605. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7606. msm_routing_put_audio_mixer),
  7607. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7608. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7609. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7610. msm_routing_put_audio_mixer),
  7611. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7612. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7613. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7614. msm_routing_put_audio_mixer),
  7615. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7616. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7617. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7618. msm_routing_put_audio_mixer),
  7619. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7620. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7621. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7622. msm_routing_put_audio_mixer),
  7623. };
  7624. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7625. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7626. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7627. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7628. msm_routing_put_audio_mixer),
  7629. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7630. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7631. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7632. msm_routing_put_audio_mixer),
  7633. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7634. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7635. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7636. msm_routing_put_audio_mixer),
  7637. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7638. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7639. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7640. msm_routing_put_audio_mixer),
  7641. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7642. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7643. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7644. msm_routing_put_audio_mixer),
  7645. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7646. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7647. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7648. msm_routing_put_audio_mixer),
  7649. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7650. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7651. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7652. msm_routing_put_audio_mixer),
  7653. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7654. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7655. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7656. msm_routing_put_audio_mixer),
  7657. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7658. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7659. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7660. msm_routing_put_audio_mixer),
  7661. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7662. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7663. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7664. msm_routing_put_audio_mixer),
  7665. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7666. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7667. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7668. msm_routing_put_audio_mixer),
  7669. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7670. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7671. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7672. msm_routing_put_audio_mixer),
  7673. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7674. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7675. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7676. msm_routing_put_audio_mixer),
  7677. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7678. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7679. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7680. msm_routing_put_audio_mixer),
  7681. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7682. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7683. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7684. msm_routing_put_audio_mixer),
  7685. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7686. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7687. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7688. msm_routing_put_audio_mixer),
  7689. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7690. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7691. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7692. msm_routing_put_audio_mixer),
  7693. };
  7694. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  7695. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7696. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7697. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7698. msm_routing_put_audio_mixer),
  7699. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7700. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7701. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7702. msm_routing_put_audio_mixer),
  7703. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7704. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7705. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7706. msm_routing_put_audio_mixer),
  7707. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7708. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7709. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7710. msm_routing_put_audio_mixer),
  7711. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7712. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7713. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7714. msm_routing_put_audio_mixer),
  7715. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7716. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7717. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7718. msm_routing_put_audio_mixer),
  7719. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7720. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7721. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7722. msm_routing_put_audio_mixer),
  7723. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7724. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7725. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7726. msm_routing_put_audio_mixer),
  7727. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7728. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7729. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7730. msm_routing_put_audio_mixer),
  7731. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7732. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7733. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7734. msm_routing_put_audio_mixer),
  7735. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7736. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7737. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7738. msm_routing_put_audio_mixer),
  7739. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7740. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7741. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7742. msm_routing_put_audio_mixer),
  7743. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7744. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7745. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7746. msm_routing_put_audio_mixer),
  7747. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7748. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7749. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7750. msm_routing_put_audio_mixer),
  7751. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7752. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7753. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7754. msm_routing_put_audio_mixer),
  7755. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7756. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7757. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7758. msm_routing_put_audio_mixer),
  7759. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7760. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7761. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7762. msm_routing_put_audio_mixer),
  7763. };
  7764. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  7765. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7766. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7767. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7768. msm_routing_put_audio_mixer),
  7769. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7770. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7771. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7772. msm_routing_put_audio_mixer),
  7773. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7774. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7775. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7776. msm_routing_put_audio_mixer),
  7777. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7778. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7779. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7780. msm_routing_put_audio_mixer),
  7781. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7782. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7783. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7784. msm_routing_put_audio_mixer),
  7785. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7786. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7787. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7788. msm_routing_put_audio_mixer),
  7789. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7790. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7791. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7792. msm_routing_put_audio_mixer),
  7793. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7794. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7795. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7796. msm_routing_put_audio_mixer),
  7797. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7798. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7799. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7800. msm_routing_put_audio_mixer),
  7801. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7802. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7803. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7804. msm_routing_put_audio_mixer),
  7805. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7806. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7807. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7808. msm_routing_put_audio_mixer),
  7809. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7810. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7811. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7812. msm_routing_put_audio_mixer),
  7813. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7814. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7815. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7816. msm_routing_put_audio_mixer),
  7817. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7818. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7819. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7820. msm_routing_put_audio_mixer),
  7821. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7822. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7823. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7824. msm_routing_put_audio_mixer),
  7825. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7826. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7827. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7828. msm_routing_put_audio_mixer),
  7829. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7830. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7831. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7832. msm_routing_put_audio_mixer),
  7833. };
  7834. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  7835. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7836. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7837. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7838. msm_routing_put_audio_mixer),
  7839. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7840. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7841. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7842. msm_routing_put_audio_mixer),
  7843. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7844. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7845. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7846. msm_routing_put_audio_mixer),
  7847. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7848. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7849. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7850. msm_routing_put_audio_mixer),
  7851. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7852. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7853. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7854. msm_routing_put_audio_mixer),
  7855. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7856. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7857. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7858. msm_routing_put_audio_mixer),
  7859. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7860. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7861. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7862. msm_routing_put_audio_mixer),
  7863. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7864. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7865. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7866. msm_routing_put_audio_mixer),
  7867. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7868. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7869. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7870. msm_routing_put_audio_mixer),
  7871. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7872. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7873. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7874. msm_routing_put_audio_mixer),
  7875. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7876. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7877. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7878. msm_routing_put_audio_mixer),
  7879. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7880. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7881. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7882. msm_routing_put_audio_mixer),
  7883. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7884. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7885. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7886. msm_routing_put_audio_mixer),
  7887. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7888. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7889. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7890. msm_routing_put_audio_mixer),
  7891. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7892. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7893. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7894. msm_routing_put_audio_mixer),
  7895. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7896. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7897. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7898. msm_routing_put_audio_mixer),
  7899. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7900. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7901. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7902. msm_routing_put_audio_mixer),
  7903. };
  7904. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  7905. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7906. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7907. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7908. msm_routing_put_audio_mixer),
  7909. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7910. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7911. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7912. msm_routing_put_audio_mixer),
  7913. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7914. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7915. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7916. msm_routing_put_audio_mixer),
  7917. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7918. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7919. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7920. msm_routing_put_audio_mixer),
  7921. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7922. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7923. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7924. msm_routing_put_audio_mixer),
  7925. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7926. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7927. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7928. msm_routing_put_audio_mixer),
  7929. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7930. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7931. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7932. msm_routing_put_audio_mixer),
  7933. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7934. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7935. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7936. msm_routing_put_audio_mixer),
  7937. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7938. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7939. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7940. msm_routing_put_audio_mixer),
  7941. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7942. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7943. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7944. msm_routing_put_audio_mixer),
  7945. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7946. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7947. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7948. msm_routing_put_audio_mixer),
  7949. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7950. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7951. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7952. msm_routing_put_audio_mixer),
  7953. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7954. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7955. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7956. msm_routing_put_audio_mixer),
  7957. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7958. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7959. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7960. msm_routing_put_audio_mixer),
  7961. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7962. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7963. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7964. msm_routing_put_audio_mixer),
  7965. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7966. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7967. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7968. msm_routing_put_audio_mixer),
  7969. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7970. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7971. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7972. msm_routing_put_audio_mixer),
  7973. };
  7974. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  7975. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7976. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7977. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7978. msm_routing_put_audio_mixer),
  7979. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7980. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7981. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7982. msm_routing_put_audio_mixer),
  7983. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7984. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7985. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7986. msm_routing_put_audio_mixer),
  7987. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7988. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7989. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7990. msm_routing_put_audio_mixer),
  7991. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7992. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7993. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7994. msm_routing_put_audio_mixer),
  7995. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7996. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7997. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7998. msm_routing_put_audio_mixer),
  7999. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8000. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8001. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8002. msm_routing_put_audio_mixer),
  8003. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8004. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8005. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8006. msm_routing_put_audio_mixer),
  8007. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8008. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8009. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8010. msm_routing_put_audio_mixer),
  8011. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8012. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8013. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8014. msm_routing_put_audio_mixer),
  8015. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8016. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8017. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8018. msm_routing_put_audio_mixer),
  8019. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8020. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8021. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8022. msm_routing_put_audio_mixer),
  8023. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8024. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8025. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8026. msm_routing_put_audio_mixer),
  8027. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8028. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8029. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8030. msm_routing_put_audio_mixer),
  8031. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8032. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8033. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8034. msm_routing_put_audio_mixer),
  8035. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8036. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8037. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8038. msm_routing_put_audio_mixer),
  8039. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8040. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8041. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8042. msm_routing_put_audio_mixer),
  8043. };
  8044. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  8045. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8046. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8047. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8048. msm_routing_put_audio_mixer),
  8049. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8050. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8051. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8052. msm_routing_put_audio_mixer),
  8053. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8054. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8055. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8056. msm_routing_put_audio_mixer),
  8057. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8058. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8059. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8060. msm_routing_put_audio_mixer),
  8061. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8062. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8063. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8064. msm_routing_put_audio_mixer),
  8065. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8066. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8067. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8068. msm_routing_put_audio_mixer),
  8069. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8070. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8071. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8072. msm_routing_put_audio_mixer),
  8073. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8074. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8075. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8076. msm_routing_put_audio_mixer),
  8077. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8078. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8079. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8080. msm_routing_put_audio_mixer),
  8081. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8082. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8083. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8084. msm_routing_put_audio_mixer),
  8085. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8086. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8087. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8088. msm_routing_put_audio_mixer),
  8089. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8090. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8091. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8092. msm_routing_put_audio_mixer),
  8093. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8094. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8095. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8096. msm_routing_put_audio_mixer),
  8097. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8098. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8099. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8100. msm_routing_put_audio_mixer),
  8101. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8102. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8103. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8104. msm_routing_put_audio_mixer),
  8105. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8106. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8107. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8108. msm_routing_put_audio_mixer),
  8109. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8110. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8111. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8112. msm_routing_put_audio_mixer),
  8113. };
  8114. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  8115. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8116. MSM_BACKEND_DAI_USB_RX,
  8117. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8118. msm_routing_put_audio_mixer),
  8119. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8120. MSM_BACKEND_DAI_USB_RX,
  8121. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8122. msm_routing_put_audio_mixer),
  8123. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8124. MSM_BACKEND_DAI_USB_RX,
  8125. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8126. msm_routing_put_audio_mixer),
  8127. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8128. MSM_BACKEND_DAI_USB_RX,
  8129. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8130. msm_routing_put_audio_mixer),
  8131. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8132. MSM_BACKEND_DAI_USB_RX,
  8133. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8134. msm_routing_put_audio_mixer),
  8135. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8136. MSM_BACKEND_DAI_USB_RX,
  8137. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8138. msm_routing_put_audio_mixer),
  8139. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8140. MSM_BACKEND_DAI_USB_RX,
  8141. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8142. msm_routing_put_audio_mixer),
  8143. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8144. MSM_BACKEND_DAI_USB_RX,
  8145. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8146. msm_routing_put_audio_mixer),
  8147. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8148. MSM_BACKEND_DAI_USB_RX,
  8149. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8150. msm_routing_put_audio_mixer),
  8151. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8152. MSM_BACKEND_DAI_USB_RX,
  8153. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8154. msm_routing_put_audio_mixer),
  8155. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8156. MSM_BACKEND_DAI_USB_RX,
  8157. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8158. msm_routing_put_audio_mixer),
  8159. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8160. MSM_BACKEND_DAI_USB_RX,
  8161. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8162. msm_routing_put_audio_mixer),
  8163. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8164. MSM_BACKEND_DAI_USB_RX,
  8165. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8166. msm_routing_put_audio_mixer),
  8167. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8168. MSM_BACKEND_DAI_USB_RX,
  8169. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8170. msm_routing_put_audio_mixer),
  8171. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8172. MSM_BACKEND_DAI_USB_RX,
  8173. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8174. msm_routing_put_audio_mixer),
  8175. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8176. MSM_BACKEND_DAI_USB_RX,
  8177. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8178. msm_routing_put_audio_mixer),
  8179. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8180. MSM_BACKEND_DAI_USB_RX,
  8181. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8182. msm_routing_put_audio_mixer),
  8183. };
  8184. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  8185. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8186. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8187. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8188. msm_routing_put_audio_mixer),
  8189. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8190. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8191. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8192. msm_routing_put_audio_mixer),
  8193. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8194. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8195. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8196. msm_routing_put_audio_mixer),
  8197. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8198. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8199. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8200. msm_routing_put_audio_mixer),
  8201. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8202. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8203. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8204. msm_routing_put_audio_mixer),
  8205. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8206. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8207. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8208. msm_routing_put_audio_mixer),
  8209. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8210. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8211. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8212. msm_routing_put_audio_mixer),
  8213. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8214. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8215. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8216. msm_routing_put_audio_mixer),
  8217. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8218. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8219. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8220. msm_routing_put_audio_mixer),
  8221. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8222. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8223. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8224. msm_routing_put_audio_mixer),
  8225. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8226. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8227. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8228. msm_routing_put_audio_mixer),
  8229. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8230. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8231. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8232. msm_routing_put_audio_mixer),
  8233. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8234. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8235. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8236. msm_routing_put_audio_mixer),
  8237. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8238. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8239. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8240. msm_routing_put_audio_mixer),
  8241. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8242. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8243. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8244. msm_routing_put_audio_mixer),
  8245. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8246. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8247. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8248. msm_routing_put_audio_mixer),
  8249. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8250. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8251. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8252. msm_routing_put_audio_mixer),
  8253. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8254. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8255. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8256. msm_routing_put_audio_mixer),
  8257. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8258. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8259. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8260. msm_routing_put_audio_mixer),
  8261. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8262. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8263. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8264. msm_routing_put_audio_mixer),
  8265. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8266. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8267. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8268. msm_routing_put_audio_mixer),
  8269. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8270. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8271. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8272. msm_routing_put_audio_mixer),
  8273. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8274. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8275. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8276. msm_routing_put_audio_mixer),
  8277. };
  8278. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8279. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8280. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8281. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8282. msm_routing_put_audio_mixer),
  8283. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8284. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8285. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8286. msm_routing_put_audio_mixer),
  8287. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8288. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8289. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8290. msm_routing_put_audio_mixer),
  8291. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8292. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8293. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8294. msm_routing_put_audio_mixer),
  8295. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8296. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8297. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8298. msm_routing_put_audio_mixer),
  8299. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8300. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8301. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8302. msm_routing_put_audio_mixer),
  8303. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8304. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8305. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8306. msm_routing_put_audio_mixer),
  8307. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8308. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8309. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8310. msm_routing_put_audio_mixer),
  8311. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8312. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8313. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8314. msm_routing_put_audio_mixer),
  8315. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8316. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8317. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8318. msm_routing_put_audio_mixer),
  8319. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8320. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8321. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8322. msm_routing_put_audio_mixer),
  8323. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8324. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8325. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8326. msm_routing_put_audio_mixer),
  8327. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8328. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8329. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8330. msm_routing_put_audio_mixer),
  8331. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8332. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8333. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8334. msm_routing_put_audio_mixer),
  8335. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8336. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8337. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8338. msm_routing_put_audio_mixer),
  8339. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8340. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8341. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8342. msm_routing_put_audio_mixer),
  8343. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8344. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8345. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8346. msm_routing_put_audio_mixer),
  8347. };
  8348. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8349. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8350. MSM_BACKEND_DAI_INT_FM_RX,
  8351. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8352. msm_routing_put_audio_mixer),
  8353. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8354. MSM_BACKEND_DAI_INT_FM_RX,
  8355. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8356. msm_routing_put_audio_mixer),
  8357. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8358. MSM_BACKEND_DAI_INT_FM_RX,
  8359. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8360. msm_routing_put_audio_mixer),
  8361. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8362. MSM_BACKEND_DAI_INT_FM_RX,
  8363. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8364. msm_routing_put_audio_mixer),
  8365. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8366. MSM_BACKEND_DAI_INT_FM_RX,
  8367. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8368. msm_routing_put_audio_mixer),
  8369. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8370. MSM_BACKEND_DAI_INT_FM_RX,
  8371. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8372. msm_routing_put_audio_mixer),
  8373. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8374. MSM_BACKEND_DAI_INT_FM_RX,
  8375. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8376. msm_routing_put_audio_mixer),
  8377. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8378. MSM_BACKEND_DAI_INT_FM_RX,
  8379. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8380. msm_routing_put_audio_mixer),
  8381. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8382. MSM_BACKEND_DAI_INT_FM_RX,
  8383. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8384. msm_routing_put_audio_mixer),
  8385. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8386. MSM_BACKEND_DAI_INT_FM_RX,
  8387. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8388. msm_routing_put_audio_mixer),
  8389. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8390. MSM_BACKEND_DAI_INT_FM_RX,
  8391. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8392. msm_routing_put_audio_mixer),
  8393. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8394. MSM_BACKEND_DAI_INT_FM_RX,
  8395. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8396. msm_routing_put_audio_mixer),
  8397. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8398. MSM_BACKEND_DAI_INT_FM_RX,
  8399. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8400. msm_routing_put_audio_mixer),
  8401. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8402. MSM_BACKEND_DAI_INT_FM_RX,
  8403. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8404. msm_routing_put_audio_mixer),
  8405. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8406. MSM_BACKEND_DAI_INT_FM_RX,
  8407. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8408. msm_routing_put_audio_mixer),
  8409. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8410. MSM_BACKEND_DAI_INT_FM_RX,
  8411. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8412. msm_routing_put_audio_mixer),
  8413. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8414. MSM_BACKEND_DAI_INT_FM_RX,
  8415. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8416. msm_routing_put_audio_mixer),
  8417. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8418. MSM_BACKEND_DAI_INT_FM_RX,
  8419. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8420. msm_routing_put_audio_mixer),
  8421. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8422. MSM_BACKEND_DAI_INT_FM_RX,
  8423. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8424. msm_routing_put_audio_mixer),
  8425. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8426. MSM_BACKEND_DAI_INT_FM_RX,
  8427. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8428. msm_routing_put_audio_mixer),
  8429. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8430. MSM_BACKEND_DAI_INT_FM_RX,
  8431. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8432. msm_routing_put_audio_mixer),
  8433. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8434. MSM_BACKEND_DAI_INT_FM_RX,
  8435. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8436. msm_routing_put_audio_mixer),
  8437. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8438. MSM_BACKEND_DAI_INT_FM_RX,
  8439. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8440. msm_routing_put_audio_mixer),
  8441. };
  8442. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8443. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8444. MSM_BACKEND_DAI_AFE_PCM_RX,
  8445. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8446. msm_routing_put_audio_mixer),
  8447. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8448. MSM_BACKEND_DAI_AFE_PCM_RX,
  8449. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8450. msm_routing_put_audio_mixer),
  8451. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8452. MSM_BACKEND_DAI_AFE_PCM_RX,
  8453. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8454. msm_routing_put_audio_mixer),
  8455. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8456. MSM_BACKEND_DAI_AFE_PCM_RX,
  8457. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8458. msm_routing_put_audio_mixer),
  8459. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8460. MSM_BACKEND_DAI_AFE_PCM_RX,
  8461. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8462. msm_routing_put_audio_mixer),
  8463. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8464. MSM_BACKEND_DAI_AFE_PCM_RX,
  8465. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8466. msm_routing_put_audio_mixer),
  8467. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8468. MSM_BACKEND_DAI_AFE_PCM_RX,
  8469. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8470. msm_routing_put_audio_mixer),
  8471. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8472. MSM_BACKEND_DAI_AFE_PCM_RX,
  8473. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8474. msm_routing_put_audio_mixer),
  8475. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8476. MSM_BACKEND_DAI_AFE_PCM_RX,
  8477. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8478. msm_routing_put_audio_mixer),
  8479. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8480. MSM_BACKEND_DAI_AFE_PCM_RX,
  8481. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8482. msm_routing_put_audio_mixer),
  8483. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8484. MSM_BACKEND_DAI_AFE_PCM_RX,
  8485. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8486. msm_routing_put_audio_mixer),
  8487. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8488. MSM_BACKEND_DAI_AFE_PCM_RX,
  8489. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8490. msm_routing_put_audio_mixer),
  8491. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8492. MSM_BACKEND_DAI_AFE_PCM_RX,
  8493. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8494. msm_routing_put_audio_mixer),
  8495. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8496. MSM_BACKEND_DAI_AFE_PCM_RX,
  8497. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8498. msm_routing_put_audio_mixer),
  8499. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8500. MSM_BACKEND_DAI_AFE_PCM_RX,
  8501. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8502. msm_routing_put_audio_mixer),
  8503. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8504. MSM_BACKEND_DAI_AFE_PCM_RX,
  8505. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8506. msm_routing_put_audio_mixer),
  8507. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8508. MSM_BACKEND_DAI_AFE_PCM_RX,
  8509. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8510. msm_routing_put_audio_mixer),
  8511. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8512. MSM_BACKEND_DAI_AFE_PCM_RX,
  8513. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8514. msm_routing_put_audio_mixer),
  8515. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8516. MSM_BACKEND_DAI_AFE_PCM_RX,
  8517. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8518. msm_routing_put_audio_mixer),
  8519. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8520. MSM_BACKEND_DAI_AFE_PCM_RX,
  8521. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8522. msm_routing_put_audio_mixer),
  8523. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8524. MSM_BACKEND_DAI_AFE_PCM_RX,
  8525. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8526. msm_routing_put_audio_mixer),
  8527. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8528. MSM_BACKEND_DAI_AFE_PCM_RX,
  8529. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8530. msm_routing_put_audio_mixer),
  8531. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8532. MSM_BACKEND_DAI_AFE_PCM_RX,
  8533. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8534. msm_routing_put_audio_mixer),
  8535. };
  8536. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8537. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8538. MSM_BACKEND_DAI_AUXPCM_RX,
  8539. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8540. msm_routing_put_audio_mixer),
  8541. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8542. MSM_BACKEND_DAI_AUXPCM_RX,
  8543. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8544. msm_routing_put_audio_mixer),
  8545. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8546. MSM_BACKEND_DAI_AUXPCM_RX,
  8547. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8548. msm_routing_put_audio_mixer),
  8549. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8550. MSM_BACKEND_DAI_AUXPCM_RX,
  8551. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8552. msm_routing_put_audio_mixer),
  8553. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8554. MSM_BACKEND_DAI_AUXPCM_RX,
  8555. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8556. msm_routing_put_audio_mixer),
  8557. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8558. MSM_BACKEND_DAI_AUXPCM_RX,
  8559. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8560. msm_routing_put_audio_mixer),
  8561. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8562. MSM_BACKEND_DAI_AUXPCM_RX,
  8563. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8564. msm_routing_put_audio_mixer),
  8565. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8566. MSM_BACKEND_DAI_AUXPCM_RX,
  8567. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8568. msm_routing_put_audio_mixer),
  8569. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8570. MSM_BACKEND_DAI_AUXPCM_RX,
  8571. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8572. msm_routing_put_audio_mixer),
  8573. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8574. MSM_BACKEND_DAI_AUXPCM_RX,
  8575. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8576. msm_routing_put_audio_mixer),
  8577. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8578. MSM_BACKEND_DAI_AUXPCM_RX,
  8579. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8580. msm_routing_put_audio_mixer),
  8581. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8582. MSM_BACKEND_DAI_AUXPCM_RX,
  8583. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8584. msm_routing_put_audio_mixer),
  8585. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8586. MSM_BACKEND_DAI_AUXPCM_RX,
  8587. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8588. msm_routing_put_audio_mixer),
  8589. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8590. MSM_BACKEND_DAI_AUXPCM_RX,
  8591. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8592. msm_routing_put_audio_mixer),
  8593. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8594. MSM_BACKEND_DAI_AUXPCM_RX,
  8595. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8596. msm_routing_put_audio_mixer),
  8597. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8598. MSM_BACKEND_DAI_AUXPCM_RX,
  8599. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8600. msm_routing_put_audio_mixer),
  8601. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8602. MSM_BACKEND_DAI_AUXPCM_RX,
  8603. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8604. msm_routing_put_audio_mixer),
  8605. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8606. MSM_BACKEND_DAI_AUXPCM_RX,
  8607. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8608. msm_routing_put_audio_mixer),
  8609. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8610. MSM_BACKEND_DAI_AUXPCM_RX,
  8611. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8612. msm_routing_put_audio_mixer),
  8613. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8614. MSM_BACKEND_DAI_AUXPCM_RX,
  8615. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8616. msm_routing_put_audio_mixer),
  8617. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8618. MSM_BACKEND_DAI_AUXPCM_RX,
  8619. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8620. msm_routing_put_audio_mixer),
  8621. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8622. MSM_BACKEND_DAI_AUXPCM_RX,
  8623. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8624. msm_routing_put_audio_mixer),
  8625. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8626. MSM_BACKEND_DAI_AUXPCM_RX,
  8627. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8628. msm_routing_put_audio_mixer),
  8629. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8630. MSM_BACKEND_DAI_AUXPCM_RX,
  8631. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8632. msm_routing_put_audio_mixer),
  8633. };
  8634. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  8635. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8636. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8637. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8638. msm_routing_put_audio_mixer),
  8639. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8640. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8641. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8642. msm_routing_put_audio_mixer),
  8643. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8644. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8645. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8646. msm_routing_put_audio_mixer),
  8647. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8648. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8649. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8650. msm_routing_put_audio_mixer),
  8651. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8652. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8653. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8654. msm_routing_put_audio_mixer),
  8655. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8656. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8657. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8658. msm_routing_put_audio_mixer),
  8659. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8660. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8661. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8662. msm_routing_put_audio_mixer),
  8663. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8664. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8665. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8666. msm_routing_put_audio_mixer),
  8667. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8668. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8669. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8670. msm_routing_put_audio_mixer),
  8671. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8672. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8673. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8674. msm_routing_put_audio_mixer),
  8675. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8676. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8677. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8678. msm_routing_put_audio_mixer),
  8679. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8680. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8681. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8682. msm_routing_put_audio_mixer),
  8683. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8684. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8685. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8686. msm_routing_put_audio_mixer),
  8687. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8688. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8689. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8690. msm_routing_put_audio_mixer),
  8691. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8692. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8693. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8694. msm_routing_put_audio_mixer),
  8695. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8696. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8697. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8698. msm_routing_put_audio_mixer),
  8699. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8700. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8701. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8702. msm_routing_put_audio_mixer),
  8703. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8704. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8705. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8706. msm_routing_put_audio_mixer),
  8707. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8708. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8709. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8710. msm_routing_put_audio_mixer),
  8711. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8712. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8713. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8714. msm_routing_put_audio_mixer),
  8715. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8716. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8717. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8718. msm_routing_put_audio_mixer),
  8719. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8720. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8721. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8722. msm_routing_put_audio_mixer),
  8723. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8724. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8725. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8726. msm_routing_put_audio_mixer),
  8727. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8728. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8729. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8730. msm_routing_put_audio_mixer),
  8731. };
  8732. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  8733. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8734. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8735. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8736. msm_routing_put_audio_mixer),
  8737. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8738. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8739. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8740. msm_routing_put_audio_mixer),
  8741. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8742. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8743. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8744. msm_routing_put_audio_mixer),
  8745. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8746. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8747. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8748. msm_routing_put_audio_mixer),
  8749. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8750. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8751. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8752. msm_routing_put_audio_mixer),
  8753. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8754. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8755. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8756. msm_routing_put_audio_mixer),
  8757. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8758. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8759. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8760. msm_routing_put_audio_mixer),
  8761. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8762. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8763. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8764. msm_routing_put_audio_mixer),
  8765. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8766. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8767. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8768. msm_routing_put_audio_mixer),
  8769. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8770. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8771. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8772. msm_routing_put_audio_mixer),
  8773. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8774. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8775. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8776. msm_routing_put_audio_mixer),
  8777. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8778. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8779. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8780. msm_routing_put_audio_mixer),
  8781. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8782. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8783. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8784. msm_routing_put_audio_mixer),
  8785. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8786. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8787. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8788. msm_routing_put_audio_mixer),
  8789. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8790. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8791. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8792. msm_routing_put_audio_mixer),
  8793. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8794. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8795. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8796. msm_routing_put_audio_mixer),
  8797. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8798. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8799. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8800. msm_routing_put_audio_mixer),
  8801. };
  8802. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  8803. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8804. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8805. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8806. msm_routing_put_audio_mixer),
  8807. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8808. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8809. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8810. msm_routing_put_audio_mixer),
  8811. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8812. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8813. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8814. msm_routing_put_audio_mixer),
  8815. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8816. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8817. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8818. msm_routing_put_audio_mixer),
  8819. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8820. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8821. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8822. msm_routing_put_audio_mixer),
  8823. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8824. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8825. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8826. msm_routing_put_audio_mixer),
  8827. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8828. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8829. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8830. msm_routing_put_audio_mixer),
  8831. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8832. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8833. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8834. msm_routing_put_audio_mixer),
  8835. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8836. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8837. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8838. msm_routing_put_audio_mixer),
  8839. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8840. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8841. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8842. msm_routing_put_audio_mixer),
  8843. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8844. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8845. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8846. msm_routing_put_audio_mixer),
  8847. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8848. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8849. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8850. msm_routing_put_audio_mixer),
  8851. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8852. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8853. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8854. msm_routing_put_audio_mixer),
  8855. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8856. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8857. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8858. msm_routing_put_audio_mixer),
  8859. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8860. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8861. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8862. msm_routing_put_audio_mixer),
  8863. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8864. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8865. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8866. msm_routing_put_audio_mixer),
  8867. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8868. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8869. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8870. msm_routing_put_audio_mixer),
  8871. };
  8872. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  8873. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8874. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8875. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8876. msm_routing_put_audio_mixer),
  8877. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8878. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8879. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8880. msm_routing_put_audio_mixer),
  8881. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8882. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8883. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8884. msm_routing_put_audio_mixer),
  8885. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8886. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8887. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8888. msm_routing_put_audio_mixer),
  8889. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8890. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8891. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8892. msm_routing_put_audio_mixer),
  8893. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8894. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8895. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8896. msm_routing_put_audio_mixer),
  8897. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8898. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8899. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8900. msm_routing_put_audio_mixer),
  8901. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8902. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8903. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8904. msm_routing_put_audio_mixer),
  8905. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8906. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8907. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8908. msm_routing_put_audio_mixer),
  8909. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8910. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8911. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8912. msm_routing_put_audio_mixer),
  8913. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8914. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8915. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8916. msm_routing_put_audio_mixer),
  8917. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8918. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8919. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8920. msm_routing_put_audio_mixer),
  8921. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8922. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8923. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8924. msm_routing_put_audio_mixer),
  8925. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8926. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8927. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8928. msm_routing_put_audio_mixer),
  8929. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8930. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8931. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8932. msm_routing_put_audio_mixer),
  8933. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8934. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8935. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8936. msm_routing_put_audio_mixer),
  8937. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8938. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8939. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8940. msm_routing_put_audio_mixer),
  8941. };
  8942. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  8943. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8944. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8945. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8946. msm_routing_put_audio_mixer),
  8947. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8948. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8949. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8950. msm_routing_put_audio_mixer),
  8951. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8952. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8953. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8954. msm_routing_put_audio_mixer),
  8955. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8956. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8957. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8958. msm_routing_put_audio_mixer),
  8959. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8960. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8961. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8962. msm_routing_put_audio_mixer),
  8963. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8964. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8965. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8966. msm_routing_put_audio_mixer),
  8967. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8968. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8969. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8970. msm_routing_put_audio_mixer),
  8971. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8972. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8973. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8974. msm_routing_put_audio_mixer),
  8975. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8976. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8977. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8978. msm_routing_put_audio_mixer),
  8979. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8980. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8981. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8982. msm_routing_put_audio_mixer),
  8983. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8984. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8985. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8986. msm_routing_put_audio_mixer),
  8987. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8988. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8989. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8990. msm_routing_put_audio_mixer),
  8991. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8992. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8993. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8994. msm_routing_put_audio_mixer),
  8995. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8996. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8997. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8998. msm_routing_put_audio_mixer),
  8999. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9000. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9001. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9002. msm_routing_put_audio_mixer),
  9003. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9004. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9005. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9006. msm_routing_put_audio_mixer),
  9007. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9008. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9009. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9010. msm_routing_put_audio_mixer),
  9011. };
  9012. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  9013. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9014. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9015. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9016. msm_routing_put_audio_mixer),
  9017. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9018. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9019. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9020. msm_routing_put_audio_mixer),
  9021. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9022. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9023. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9024. msm_routing_put_audio_mixer),
  9025. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9026. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9027. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9028. msm_routing_put_audio_mixer),
  9029. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9030. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9031. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9032. msm_routing_put_audio_mixer),
  9033. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9034. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9035. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9036. msm_routing_put_audio_mixer),
  9037. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9038. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9039. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9040. msm_routing_put_audio_mixer),
  9041. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9042. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9043. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9044. msm_routing_put_audio_mixer),
  9045. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9046. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9047. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9048. msm_routing_put_audio_mixer),
  9049. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9050. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9051. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9052. msm_routing_put_audio_mixer),
  9053. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9054. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9055. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9056. msm_routing_put_audio_mixer),
  9057. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9058. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9059. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9060. msm_routing_put_audio_mixer),
  9061. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9062. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9063. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9064. msm_routing_put_audio_mixer),
  9065. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9066. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9067. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9068. msm_routing_put_audio_mixer),
  9069. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9070. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9071. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9072. msm_routing_put_audio_mixer),
  9073. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9074. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9075. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9076. msm_routing_put_audio_mixer),
  9077. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9078. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9079. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9080. msm_routing_put_audio_mixer),
  9081. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9082. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9083. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9084. msm_routing_put_audio_mixer),
  9085. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9086. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9087. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9088. msm_routing_put_audio_mixer),
  9089. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9090. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9091. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9092. msm_routing_put_audio_mixer),
  9093. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9094. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9095. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9096. msm_routing_put_audio_mixer),
  9097. };
  9098. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  9099. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9100. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9101. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9102. msm_routing_put_audio_mixer),
  9103. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9104. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9105. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9106. msm_routing_put_audio_mixer),
  9107. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9108. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9109. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9110. msm_routing_put_audio_mixer),
  9111. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9112. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9113. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9114. msm_routing_put_audio_mixer),
  9115. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9116. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9117. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9118. msm_routing_put_audio_mixer),
  9119. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9120. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9121. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9122. msm_routing_put_audio_mixer),
  9123. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9124. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9125. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9126. msm_routing_put_audio_mixer),
  9127. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9128. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9129. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9130. msm_routing_put_audio_mixer),
  9131. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9132. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9133. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9134. msm_routing_put_audio_mixer),
  9135. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9136. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9137. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9138. msm_routing_put_audio_mixer),
  9139. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9140. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9141. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9142. msm_routing_put_audio_mixer),
  9143. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9144. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9145. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9146. msm_routing_put_audio_mixer),
  9147. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9148. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9149. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9150. msm_routing_put_audio_mixer),
  9151. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9152. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9153. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9154. msm_routing_put_audio_mixer),
  9155. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9156. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9157. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9158. msm_routing_put_audio_mixer),
  9159. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9160. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9161. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9162. msm_routing_put_audio_mixer),
  9163. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9164. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9165. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9166. msm_routing_put_audio_mixer),
  9167. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9168. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9169. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9170. msm_routing_put_audio_mixer),
  9171. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9172. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9173. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9174. msm_routing_put_audio_mixer),
  9175. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9176. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9177. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9178. msm_routing_put_audio_mixer),
  9179. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9180. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9181. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9182. msm_routing_put_audio_mixer),
  9183. };
  9184. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  9185. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9186. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9187. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9188. msm_routing_put_audio_mixer),
  9189. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9190. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9191. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9192. msm_routing_put_audio_mixer),
  9193. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9194. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9195. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9196. msm_routing_put_audio_mixer),
  9197. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9198. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9199. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9200. msm_routing_put_audio_mixer),
  9201. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9202. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9203. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9204. msm_routing_put_audio_mixer),
  9205. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9206. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9207. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9208. msm_routing_put_audio_mixer),
  9209. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9210. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9211. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9212. msm_routing_put_audio_mixer),
  9213. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9214. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9215. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9216. msm_routing_put_audio_mixer),
  9217. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9218. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9219. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9220. msm_routing_put_audio_mixer),
  9221. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9222. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9223. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9224. msm_routing_put_audio_mixer),
  9225. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9226. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9227. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9228. msm_routing_put_audio_mixer),
  9229. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9230. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9231. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9232. msm_routing_put_audio_mixer),
  9233. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9234. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9235. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9236. msm_routing_put_audio_mixer),
  9237. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9238. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9239. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9240. msm_routing_put_audio_mixer),
  9241. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9242. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9243. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9244. msm_routing_put_audio_mixer),
  9245. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9246. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9247. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9248. msm_routing_put_audio_mixer),
  9249. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9250. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9251. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9252. msm_routing_put_audio_mixer),
  9253. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9254. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9255. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9256. msm_routing_put_audio_mixer),
  9257. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9258. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9259. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9260. msm_routing_put_audio_mixer),
  9261. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9263. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9264. msm_routing_put_audio_mixer),
  9265. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9267. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9268. msm_routing_put_audio_mixer),
  9269. };
  9270. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  9271. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9272. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9273. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9274. msm_routing_put_audio_mixer),
  9275. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9276. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9277. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9278. msm_routing_put_audio_mixer),
  9279. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9280. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9281. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9282. msm_routing_put_audio_mixer),
  9283. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9284. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9285. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9286. msm_routing_put_audio_mixer),
  9287. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9288. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9289. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9290. msm_routing_put_audio_mixer),
  9291. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9292. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9293. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9294. msm_routing_put_audio_mixer),
  9295. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9296. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9297. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9298. msm_routing_put_audio_mixer),
  9299. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9300. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9301. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9302. msm_routing_put_audio_mixer),
  9303. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9304. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9305. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9306. msm_routing_put_audio_mixer),
  9307. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9308. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9309. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9310. msm_routing_put_audio_mixer),
  9311. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9312. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9313. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9314. msm_routing_put_audio_mixer),
  9315. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9316. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9317. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9318. msm_routing_put_audio_mixer),
  9319. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9320. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9321. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9322. msm_routing_put_audio_mixer),
  9323. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9324. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9325. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9326. msm_routing_put_audio_mixer),
  9327. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9328. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9329. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9330. msm_routing_put_audio_mixer),
  9331. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9332. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9333. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9334. msm_routing_put_audio_mixer),
  9335. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9336. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9337. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9338. msm_routing_put_audio_mixer),
  9339. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9340. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9341. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9342. msm_routing_put_audio_mixer),
  9343. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9344. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9345. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9346. msm_routing_put_audio_mixer),
  9347. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9348. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9349. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9350. msm_routing_put_audio_mixer),
  9351. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9352. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9353. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9354. msm_routing_put_audio_mixer),
  9355. };
  9356. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9357. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9358. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9359. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9360. msm_routing_put_audio_mixer),
  9361. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9362. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9363. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9364. msm_routing_put_audio_mixer),
  9365. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9366. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9367. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9368. msm_routing_put_audio_mixer),
  9369. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9370. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9371. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9372. msm_routing_put_audio_mixer),
  9373. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9374. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9375. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9376. msm_routing_put_audio_mixer),
  9377. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9378. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9379. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9380. msm_routing_put_audio_mixer),
  9381. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9382. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9383. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9384. msm_routing_put_audio_mixer),
  9385. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9386. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9387. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9388. msm_routing_put_audio_mixer),
  9389. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9390. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9391. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9392. msm_routing_put_audio_mixer),
  9393. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9394. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9395. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9396. msm_routing_put_audio_mixer),
  9397. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9398. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9399. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9400. msm_routing_put_audio_mixer),
  9401. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9402. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9403. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9404. msm_routing_put_audio_mixer),
  9405. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9406. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9407. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9408. msm_routing_put_audio_mixer),
  9409. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9410. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9411. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9412. msm_routing_put_audio_mixer),
  9413. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9414. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9415. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9416. msm_routing_put_audio_mixer),
  9417. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9418. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9419. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9420. msm_routing_put_audio_mixer),
  9421. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9422. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9423. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9424. msm_routing_put_audio_mixer),
  9425. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9426. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9427. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9428. msm_routing_put_audio_mixer),
  9429. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9430. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9431. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9432. msm_routing_put_audio_mixer),
  9433. };
  9434. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9435. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9436. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9437. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9438. msm_routing_put_audio_mixer),
  9439. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9440. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9441. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9442. msm_routing_put_audio_mixer),
  9443. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9444. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9445. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9446. msm_routing_put_audio_mixer),
  9447. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9448. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9449. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9450. msm_routing_put_audio_mixer),
  9451. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9452. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9453. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9454. msm_routing_put_audio_mixer),
  9455. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9456. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9457. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9458. msm_routing_put_audio_mixer),
  9459. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9460. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9461. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9462. msm_routing_put_audio_mixer),
  9463. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9464. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9465. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9466. msm_routing_put_audio_mixer),
  9467. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9468. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9469. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9470. msm_routing_put_audio_mixer),
  9471. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9472. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9473. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9474. msm_routing_put_audio_mixer),
  9475. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9476. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9477. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9478. msm_routing_put_audio_mixer),
  9479. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9480. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9481. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9482. msm_routing_put_audio_mixer),
  9483. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9484. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9485. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9486. msm_routing_put_audio_mixer),
  9487. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9488. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9489. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9490. msm_routing_put_audio_mixer),
  9491. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9493. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9494. msm_routing_put_audio_mixer),
  9495. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. };
  9520. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9521. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9522. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9523. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9524. msm_routing_put_audio_mixer),
  9525. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9526. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9527. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9528. msm_routing_put_audio_mixer),
  9529. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9530. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9531. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9532. msm_routing_put_audio_mixer),
  9533. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9534. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9535. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9536. msm_routing_put_audio_mixer),
  9537. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9538. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9539. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9540. msm_routing_put_audio_mixer),
  9541. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9542. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9543. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9544. msm_routing_put_audio_mixer),
  9545. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9546. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9547. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9548. msm_routing_put_audio_mixer),
  9549. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9550. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9551. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9552. msm_routing_put_audio_mixer),
  9553. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9554. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9555. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9556. msm_routing_put_audio_mixer),
  9557. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9558. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9559. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9560. msm_routing_put_audio_mixer),
  9561. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9562. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9563. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9564. msm_routing_put_audio_mixer),
  9565. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9566. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9567. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9568. msm_routing_put_audio_mixer),
  9569. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9570. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9571. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9572. msm_routing_put_audio_mixer),
  9573. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9575. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9576. msm_routing_put_audio_mixer),
  9577. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9582. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9583. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9584. msm_routing_put_audio_mixer),
  9585. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9586. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9587. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9588. msm_routing_put_audio_mixer),
  9589. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9590. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9591. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9592. msm_routing_put_audio_mixer),
  9593. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9594. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9595. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9596. msm_routing_put_audio_mixer),
  9597. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. };
  9606. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  9607. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9608. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9609. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9610. msm_routing_put_audio_mixer),
  9611. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9612. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9613. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9614. msm_routing_put_audio_mixer),
  9615. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9616. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9617. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9618. msm_routing_put_audio_mixer),
  9619. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9620. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9621. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9622. msm_routing_put_audio_mixer),
  9623. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9624. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9625. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9626. msm_routing_put_audio_mixer),
  9627. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9628. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9629. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9630. msm_routing_put_audio_mixer),
  9631. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9632. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9633. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9634. msm_routing_put_audio_mixer),
  9635. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9636. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9637. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9638. msm_routing_put_audio_mixer),
  9639. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9640. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9641. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9642. msm_routing_put_audio_mixer),
  9643. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9644. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9645. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9646. msm_routing_put_audio_mixer),
  9647. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9648. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9649. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9650. msm_routing_put_audio_mixer),
  9651. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9652. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9653. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9654. msm_routing_put_audio_mixer),
  9655. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9656. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9657. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9658. msm_routing_put_audio_mixer),
  9659. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9660. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9661. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9662. msm_routing_put_audio_mixer),
  9663. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9664. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9665. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9666. msm_routing_put_audio_mixer),
  9667. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9668. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9669. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9670. msm_routing_put_audio_mixer),
  9671. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9672. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9673. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9674. msm_routing_put_audio_mixer),
  9675. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9676. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9677. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9678. msm_routing_put_audio_mixer),
  9679. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9680. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9681. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9682. msm_routing_put_audio_mixer),
  9683. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9684. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9685. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9686. msm_routing_put_audio_mixer),
  9687. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9688. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9689. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9690. msm_routing_put_audio_mixer),
  9691. };
  9692. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  9693. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9694. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9695. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9696. msm_routing_put_audio_mixer),
  9697. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9698. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9699. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9700. msm_routing_put_audio_mixer),
  9701. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9702. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9703. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9704. msm_routing_put_audio_mixer),
  9705. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9706. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9707. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9708. msm_routing_put_audio_mixer),
  9709. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9710. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9711. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9712. msm_routing_put_audio_mixer),
  9713. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9714. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9715. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9716. msm_routing_put_audio_mixer),
  9717. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9718. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9719. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9720. msm_routing_put_audio_mixer),
  9721. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9722. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9723. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9724. msm_routing_put_audio_mixer),
  9725. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9726. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9727. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9728. msm_routing_put_audio_mixer),
  9729. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9730. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9731. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9732. msm_routing_put_audio_mixer),
  9733. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9734. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9735. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9736. msm_routing_put_audio_mixer),
  9737. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9738. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9739. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9740. msm_routing_put_audio_mixer),
  9741. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9743. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9744. msm_routing_put_audio_mixer),
  9745. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9748. msm_routing_put_audio_mixer),
  9749. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9750. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9751. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9752. msm_routing_put_audio_mixer),
  9753. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9754. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9755. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9756. msm_routing_put_audio_mixer),
  9757. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9758. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9759. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9760. msm_routing_put_audio_mixer),
  9761. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9762. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9763. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9764. msm_routing_put_audio_mixer),
  9765. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9766. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9767. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9768. msm_routing_put_audio_mixer),
  9769. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9770. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9771. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9772. msm_routing_put_audio_mixer),
  9773. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9774. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9775. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9776. msm_routing_put_audio_mixer),
  9777. };
  9778. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  9779. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9780. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9781. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9782. msm_routing_put_audio_mixer),
  9783. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9784. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9785. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9786. msm_routing_put_audio_mixer),
  9787. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9788. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9789. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9790. msm_routing_put_audio_mixer),
  9791. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9792. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9793. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9794. msm_routing_put_audio_mixer),
  9795. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9796. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9797. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9798. msm_routing_put_audio_mixer),
  9799. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9800. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9801. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9802. msm_routing_put_audio_mixer),
  9803. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9804. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9805. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9806. msm_routing_put_audio_mixer),
  9807. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9808. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9809. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9810. msm_routing_put_audio_mixer),
  9811. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9812. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9813. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9814. msm_routing_put_audio_mixer),
  9815. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9816. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9817. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9818. msm_routing_put_audio_mixer),
  9819. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9820. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9821. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9822. msm_routing_put_audio_mixer),
  9823. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9824. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9825. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9826. msm_routing_put_audio_mixer),
  9827. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9828. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9829. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9830. msm_routing_put_audio_mixer),
  9831. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9832. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9833. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9834. msm_routing_put_audio_mixer),
  9835. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9836. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9837. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9838. msm_routing_put_audio_mixer),
  9839. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9840. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9841. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9842. msm_routing_put_audio_mixer),
  9843. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9844. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9845. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9846. msm_routing_put_audio_mixer),
  9847. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9848. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9849. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9850. msm_routing_put_audio_mixer),
  9851. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9852. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9853. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9854. msm_routing_put_audio_mixer),
  9855. };
  9856. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  9857. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9858. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9859. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9860. msm_routing_put_audio_mixer),
  9861. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9862. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9863. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9864. msm_routing_put_audio_mixer),
  9865. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9866. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9867. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9868. msm_routing_put_audio_mixer),
  9869. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9870. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9871. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9872. msm_routing_put_audio_mixer),
  9873. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9874. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9875. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9876. msm_routing_put_audio_mixer),
  9877. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9878. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9879. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9880. msm_routing_put_audio_mixer),
  9881. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9882. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9883. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9884. msm_routing_put_audio_mixer),
  9885. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9886. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9887. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9888. msm_routing_put_audio_mixer),
  9889. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9890. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9891. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9892. msm_routing_put_audio_mixer),
  9893. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9894. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9895. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9896. msm_routing_put_audio_mixer),
  9897. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9898. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9899. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9900. msm_routing_put_audio_mixer),
  9901. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9902. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9903. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9904. msm_routing_put_audio_mixer),
  9905. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9906. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9907. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9908. msm_routing_put_audio_mixer),
  9909. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9910. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9911. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9912. msm_routing_put_audio_mixer),
  9913. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9914. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9915. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9916. msm_routing_put_audio_mixer),
  9917. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9918. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9919. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9920. msm_routing_put_audio_mixer),
  9921. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9922. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9923. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9924. msm_routing_put_audio_mixer),
  9925. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9926. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9927. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9928. msm_routing_put_audio_mixer),
  9929. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9930. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9931. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9932. msm_routing_put_audio_mixer),
  9933. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9934. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9935. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9936. msm_routing_put_audio_mixer),
  9937. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9938. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9939. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9940. msm_routing_put_audio_mixer),
  9941. };
  9942. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  9943. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9944. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9945. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9946. msm_routing_put_audio_mixer),
  9947. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9948. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9949. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9950. msm_routing_put_audio_mixer),
  9951. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9952. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9953. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9954. msm_routing_put_audio_mixer),
  9955. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9956. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9957. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9958. msm_routing_put_audio_mixer),
  9959. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9960. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9961. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9962. msm_routing_put_audio_mixer),
  9963. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9964. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9965. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9966. msm_routing_put_audio_mixer),
  9967. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9968. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9969. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9970. msm_routing_put_audio_mixer),
  9971. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9972. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9973. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9974. msm_routing_put_audio_mixer),
  9975. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9976. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9977. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9978. msm_routing_put_audio_mixer),
  9979. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9980. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9981. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9982. msm_routing_put_audio_mixer),
  9983. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9984. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9985. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9986. msm_routing_put_audio_mixer),
  9987. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9988. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9989. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9990. msm_routing_put_audio_mixer),
  9991. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9992. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9993. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9994. msm_routing_put_audio_mixer),
  9995. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9996. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9997. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9998. msm_routing_put_audio_mixer),
  9999. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10000. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10001. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10002. msm_routing_put_audio_mixer),
  10003. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10004. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10005. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10006. msm_routing_put_audio_mixer),
  10007. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10008. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10009. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10010. msm_routing_put_audio_mixer),
  10011. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10012. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10013. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10014. msm_routing_put_audio_mixer),
  10015. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10016. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10017. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10018. msm_routing_put_audio_mixer),
  10019. };
  10020. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  10021. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10022. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10023. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10024. msm_routing_put_audio_mixer),
  10025. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10026. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10027. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10028. msm_routing_put_audio_mixer),
  10029. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10030. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10031. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10032. msm_routing_put_audio_mixer),
  10033. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10034. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10035. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10036. msm_routing_put_audio_mixer),
  10037. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10038. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10039. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10040. msm_routing_put_audio_mixer),
  10041. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10042. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10043. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10044. msm_routing_put_audio_mixer),
  10045. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10046. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10047. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10048. msm_routing_put_audio_mixer),
  10049. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10050. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10051. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10052. msm_routing_put_audio_mixer),
  10053. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10054. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10055. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10056. msm_routing_put_audio_mixer),
  10057. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10058. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10059. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10060. msm_routing_put_audio_mixer),
  10061. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10062. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10063. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10064. msm_routing_put_audio_mixer),
  10065. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10066. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10067. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10068. msm_routing_put_audio_mixer),
  10069. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10070. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10071. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10072. msm_routing_put_audio_mixer),
  10073. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10074. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10075. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10076. msm_routing_put_audio_mixer),
  10077. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10078. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10079. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10080. msm_routing_put_audio_mixer),
  10081. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10082. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10083. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10084. msm_routing_put_audio_mixer),
  10085. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10086. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10087. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10088. msm_routing_put_audio_mixer),
  10089. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10090. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10091. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10092. msm_routing_put_audio_mixer),
  10093. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10094. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10095. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10096. msm_routing_put_audio_mixer),
  10097. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10098. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10099. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10100. msm_routing_put_audio_mixer),
  10101. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10102. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10103. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10104. msm_routing_put_audio_mixer),
  10105. };
  10106. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  10107. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10108. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10109. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10110. msm_routing_put_audio_mixer),
  10111. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10112. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10113. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10114. msm_routing_put_audio_mixer),
  10115. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10116. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10117. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10118. msm_routing_put_audio_mixer),
  10119. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10120. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10121. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10122. msm_routing_put_audio_mixer),
  10123. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10124. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10125. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10126. msm_routing_put_audio_mixer),
  10127. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10128. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10129. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10130. msm_routing_put_audio_mixer),
  10131. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10132. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10133. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10134. msm_routing_put_audio_mixer),
  10135. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10136. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10137. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10138. msm_routing_put_audio_mixer),
  10139. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10140. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10141. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10142. msm_routing_put_audio_mixer),
  10143. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10144. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10145. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10146. msm_routing_put_audio_mixer),
  10147. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10148. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10149. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10150. msm_routing_put_audio_mixer),
  10151. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10152. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10153. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10154. msm_routing_put_audio_mixer),
  10155. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10156. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10157. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10158. msm_routing_put_audio_mixer),
  10159. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10160. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10161. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10162. msm_routing_put_audio_mixer),
  10163. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10164. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10165. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10166. msm_routing_put_audio_mixer),
  10167. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10168. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10169. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10170. msm_routing_put_audio_mixer),
  10171. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10172. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10173. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10174. msm_routing_put_audio_mixer),
  10175. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10176. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10177. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10178. msm_routing_put_audio_mixer),
  10179. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10180. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10181. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10182. msm_routing_put_audio_mixer),
  10183. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10184. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10185. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10186. msm_routing_put_audio_mixer),
  10187. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10188. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10189. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10190. msm_routing_put_audio_mixer),
  10191. };
  10192. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  10193. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10194. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10195. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10196. msm_routing_put_audio_mixer),
  10197. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10198. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10199. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10200. msm_routing_put_audio_mixer),
  10201. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10202. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10203. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10204. msm_routing_put_audio_mixer),
  10205. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10206. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10207. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10208. msm_routing_put_audio_mixer),
  10209. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10210. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10211. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10212. msm_routing_put_audio_mixer),
  10213. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10214. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10215. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10216. msm_routing_put_audio_mixer),
  10217. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10218. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10219. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10220. msm_routing_put_audio_mixer),
  10221. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10222. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10223. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10224. msm_routing_put_audio_mixer),
  10225. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10226. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10227. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10228. msm_routing_put_audio_mixer),
  10229. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10230. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10231. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10232. msm_routing_put_audio_mixer),
  10233. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10234. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10235. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10236. msm_routing_put_audio_mixer),
  10237. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10238. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10239. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10240. msm_routing_put_audio_mixer),
  10241. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10242. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10243. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10244. msm_routing_put_audio_mixer),
  10245. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10246. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10247. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10248. msm_routing_put_audio_mixer),
  10249. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10250. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10251. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10252. msm_routing_put_audio_mixer),
  10253. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10254. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10255. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10256. msm_routing_put_audio_mixer),
  10257. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10258. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10259. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10260. msm_routing_put_audio_mixer),
  10261. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10262. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10263. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10264. msm_routing_put_audio_mixer),
  10265. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10267. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10268. msm_routing_put_audio_mixer),
  10269. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10271. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10272. msm_routing_put_audio_mixer),
  10273. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10274. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10275. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10276. msm_routing_put_audio_mixer),
  10277. };
  10278. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  10279. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10280. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10281. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10282. msm_routing_put_audio_mixer),
  10283. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10284. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10285. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10286. msm_routing_put_audio_mixer),
  10287. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10288. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10289. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10290. msm_routing_put_audio_mixer),
  10291. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10292. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10293. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10294. msm_routing_put_audio_mixer),
  10295. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10296. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10297. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10298. msm_routing_put_audio_mixer),
  10299. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10300. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10301. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10302. msm_routing_put_audio_mixer),
  10303. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10304. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10305. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10306. msm_routing_put_audio_mixer),
  10307. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10308. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10309. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10310. msm_routing_put_audio_mixer),
  10311. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10312. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10313. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10314. msm_routing_put_audio_mixer),
  10315. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10316. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10317. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10318. msm_routing_put_audio_mixer),
  10319. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10320. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10321. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10322. msm_routing_put_audio_mixer),
  10323. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10324. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10325. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10326. msm_routing_put_audio_mixer),
  10327. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10328. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10329. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10330. msm_routing_put_audio_mixer),
  10331. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10332. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10333. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10334. msm_routing_put_audio_mixer),
  10335. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10336. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10337. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10338. msm_routing_put_audio_mixer),
  10339. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10340. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10341. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10342. msm_routing_put_audio_mixer),
  10343. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10344. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10345. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10346. msm_routing_put_audio_mixer),
  10347. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10349. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10350. msm_routing_put_audio_mixer),
  10351. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10353. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10354. msm_routing_put_audio_mixer),
  10355. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10357. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10358. msm_routing_put_audio_mixer),
  10359. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10361. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10362. msm_routing_put_audio_mixer),
  10363. };
  10364. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  10365. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10366. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10367. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10368. msm_routing_put_audio_mixer),
  10369. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10370. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10371. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10372. msm_routing_put_audio_mixer),
  10373. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10374. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10375. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10376. msm_routing_put_audio_mixer),
  10377. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10378. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10379. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10380. msm_routing_put_audio_mixer),
  10381. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10382. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10383. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10384. msm_routing_put_audio_mixer),
  10385. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10386. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10387. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10388. msm_routing_put_audio_mixer),
  10389. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10390. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10391. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10392. msm_routing_put_audio_mixer),
  10393. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10394. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10395. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10396. msm_routing_put_audio_mixer),
  10397. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10398. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10399. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10400. msm_routing_put_audio_mixer),
  10401. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10402. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10403. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10404. msm_routing_put_audio_mixer),
  10405. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10406. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10407. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10408. msm_routing_put_audio_mixer),
  10409. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10410. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10411. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10412. msm_routing_put_audio_mixer),
  10413. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10414. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10415. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10416. msm_routing_put_audio_mixer),
  10417. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10418. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10419. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10420. msm_routing_put_audio_mixer),
  10421. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10422. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10423. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10424. msm_routing_put_audio_mixer),
  10425. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10427. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10428. msm_routing_put_audio_mixer),
  10429. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10430. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10431. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10432. msm_routing_put_audio_mixer),
  10433. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10434. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10435. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10436. msm_routing_put_audio_mixer),
  10437. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10438. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10439. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10440. msm_routing_put_audio_mixer),
  10441. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10443. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10444. msm_routing_put_audio_mixer),
  10445. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10446. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10447. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10448. msm_routing_put_audio_mixer),
  10449. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10450. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10451. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10452. msm_routing_put_audio_mixer),
  10453. };
  10454. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  10455. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10456. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10457. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10458. msm_routing_put_audio_mixer),
  10459. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10460. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10461. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10462. msm_routing_put_audio_mixer),
  10463. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10464. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10465. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10466. msm_routing_put_audio_mixer),
  10467. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10468. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10469. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10470. msm_routing_put_audio_mixer),
  10471. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10472. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10473. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10474. msm_routing_put_audio_mixer),
  10475. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10476. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10477. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10478. msm_routing_put_audio_mixer),
  10479. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10480. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10481. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10482. msm_routing_put_audio_mixer),
  10483. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10484. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10485. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10486. msm_routing_put_audio_mixer),
  10487. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10488. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10489. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10490. msm_routing_put_audio_mixer),
  10491. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10492. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10493. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10494. msm_routing_put_audio_mixer),
  10495. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10496. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10497. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10498. msm_routing_put_audio_mixer),
  10499. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10500. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10501. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10502. msm_routing_put_audio_mixer),
  10503. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10505. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10506. msm_routing_put_audio_mixer),
  10507. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10508. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10509. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10510. msm_routing_put_audio_mixer),
  10511. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10512. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10513. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10514. msm_routing_put_audio_mixer),
  10515. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10517. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10518. msm_routing_put_audio_mixer),
  10519. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10520. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10521. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10522. msm_routing_put_audio_mixer),
  10523. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10524. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10525. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10526. msm_routing_put_audio_mixer),
  10527. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10529. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10530. msm_routing_put_audio_mixer),
  10531. };
  10532. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  10533. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10534. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10535. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10536. msm_routing_put_audio_mixer),
  10537. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10538. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10539. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10540. msm_routing_put_audio_mixer),
  10541. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10542. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10543. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10544. msm_routing_put_audio_mixer),
  10545. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10546. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10547. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10548. msm_routing_put_audio_mixer),
  10549. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10550. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10551. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10552. msm_routing_put_audio_mixer),
  10553. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10554. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10555. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10556. msm_routing_put_audio_mixer),
  10557. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10558. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10559. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10560. msm_routing_put_audio_mixer),
  10561. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10562. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10563. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10564. msm_routing_put_audio_mixer),
  10565. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10566. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10567. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10568. msm_routing_put_audio_mixer),
  10569. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10570. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10571. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10572. msm_routing_put_audio_mixer),
  10573. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10574. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10575. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10576. msm_routing_put_audio_mixer),
  10577. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10578. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10579. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10580. msm_routing_put_audio_mixer),
  10581. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10583. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10584. msm_routing_put_audio_mixer),
  10585. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10587. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10588. msm_routing_put_audio_mixer),
  10589. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10591. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10592. msm_routing_put_audio_mixer),
  10593. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10595. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10596. msm_routing_put_audio_mixer),
  10597. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10599. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10600. msm_routing_put_audio_mixer),
  10601. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10603. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10604. msm_routing_put_audio_mixer),
  10605. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10607. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10608. msm_routing_put_audio_mixer),
  10609. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10610. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10611. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10612. msm_routing_put_audio_mixer),
  10613. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10614. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10615. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10616. msm_routing_put_audio_mixer),
  10617. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10619. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10620. msm_routing_put_audio_mixer),
  10621. };
  10622. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  10623. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10624. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10625. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10626. msm_routing_put_audio_mixer),
  10627. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10628. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10629. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10630. msm_routing_put_audio_mixer),
  10631. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10632. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10633. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10634. msm_routing_put_audio_mixer),
  10635. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10636. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10637. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10638. msm_routing_put_audio_mixer),
  10639. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10640. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10641. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10642. msm_routing_put_audio_mixer),
  10643. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10644. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10645. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10646. msm_routing_put_audio_mixer),
  10647. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10648. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10649. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10650. msm_routing_put_audio_mixer),
  10651. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10652. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10653. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10654. msm_routing_put_audio_mixer),
  10655. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10656. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10657. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10658. msm_routing_put_audio_mixer),
  10659. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10660. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10661. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10662. msm_routing_put_audio_mixer),
  10663. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10664. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10665. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10666. msm_routing_put_audio_mixer),
  10667. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10668. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10669. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10670. msm_routing_put_audio_mixer),
  10671. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10672. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10673. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10674. msm_routing_put_audio_mixer),
  10675. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10676. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10677. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10678. msm_routing_put_audio_mixer),
  10679. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10680. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10681. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10682. msm_routing_put_audio_mixer),
  10683. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10684. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10685. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10686. msm_routing_put_audio_mixer),
  10687. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10689. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10690. msm_routing_put_audio_mixer),
  10691. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10693. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10694. msm_routing_put_audio_mixer),
  10695. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10697. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10698. msm_routing_put_audio_mixer),
  10699. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10700. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10701. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10702. msm_routing_put_audio_mixer),
  10703. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10705. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10706. msm_routing_put_audio_mixer),
  10707. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10708. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10709. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10710. msm_routing_put_audio_mixer),
  10711. };
  10712. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  10713. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10714. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10715. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10716. msm_routing_put_audio_mixer),
  10717. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10718. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10719. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10720. msm_routing_put_audio_mixer),
  10721. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10722. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10723. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10724. msm_routing_put_audio_mixer),
  10725. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10726. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10727. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10728. msm_routing_put_audio_mixer),
  10729. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10730. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10731. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10732. msm_routing_put_audio_mixer),
  10733. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10734. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10735. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10736. msm_routing_put_audio_mixer),
  10737. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10738. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10739. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10740. msm_routing_put_audio_mixer),
  10741. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10742. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10743. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10744. msm_routing_put_audio_mixer),
  10745. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10746. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10747. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10748. msm_routing_put_audio_mixer),
  10749. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10750. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10751. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10752. msm_routing_put_audio_mixer),
  10753. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10754. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10755. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10756. msm_routing_put_audio_mixer),
  10757. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10758. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10759. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10760. msm_routing_put_audio_mixer),
  10761. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10762. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10763. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10764. msm_routing_put_audio_mixer),
  10765. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10766. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10767. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10768. msm_routing_put_audio_mixer),
  10769. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10770. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10771. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10772. msm_routing_put_audio_mixer),
  10773. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10775. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10776. msm_routing_put_audio_mixer),
  10777. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10779. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10780. msm_routing_put_audio_mixer),
  10781. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10782. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10783. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10784. msm_routing_put_audio_mixer),
  10785. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10786. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10787. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10788. msm_routing_put_audio_mixer),
  10789. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10790. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10791. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10792. msm_routing_put_audio_mixer),
  10793. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10794. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10795. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10796. msm_routing_put_audio_mixer),
  10797. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10798. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10799. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10800. msm_routing_put_audio_mixer),
  10801. };
  10802. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  10803. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10804. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10805. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10806. msm_routing_put_audio_mixer),
  10807. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10808. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10809. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10810. msm_routing_put_audio_mixer),
  10811. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10812. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10813. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10814. msm_routing_put_audio_mixer),
  10815. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10816. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10817. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10818. msm_routing_put_audio_mixer),
  10819. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10820. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10821. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10822. msm_routing_put_audio_mixer),
  10823. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10824. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10825. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10826. msm_routing_put_audio_mixer),
  10827. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10828. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10829. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10830. msm_routing_put_audio_mixer),
  10831. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10832. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10833. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10834. msm_routing_put_audio_mixer),
  10835. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10836. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10837. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10838. msm_routing_put_audio_mixer),
  10839. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10840. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10841. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10842. msm_routing_put_audio_mixer),
  10843. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10845. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10846. msm_routing_put_audio_mixer),
  10847. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10849. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10850. msm_routing_put_audio_mixer),
  10851. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10853. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10854. msm_routing_put_audio_mixer),
  10855. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10856. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10857. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10858. msm_routing_put_audio_mixer),
  10859. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10860. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10861. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10862. msm_routing_put_audio_mixer),
  10863. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10864. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10865. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10866. msm_routing_put_audio_mixer),
  10867. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10868. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10869. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10870. msm_routing_put_audio_mixer),
  10871. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10873. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10874. msm_routing_put_audio_mixer),
  10875. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10876. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10877. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10878. msm_routing_put_audio_mixer),
  10879. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10880. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10881. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10882. msm_routing_put_audio_mixer),
  10883. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10884. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10885. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10886. msm_routing_put_audio_mixer),
  10887. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10888. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10889. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10890. msm_routing_put_audio_mixer),
  10891. };
  10892. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  10893. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10894. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10895. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10896. msm_routing_put_audio_mixer),
  10897. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10898. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10899. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10900. msm_routing_put_audio_mixer),
  10901. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10902. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10903. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10904. msm_routing_put_audio_mixer),
  10905. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10906. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10907. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10908. msm_routing_put_audio_mixer),
  10909. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10910. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10911. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10912. msm_routing_put_audio_mixer),
  10913. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10914. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10915. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10916. msm_routing_put_audio_mixer),
  10917. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10918. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10919. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10920. msm_routing_put_audio_mixer),
  10921. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10923. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10924. msm_routing_put_audio_mixer),
  10925. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10927. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10928. msm_routing_put_audio_mixer),
  10929. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10931. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10932. msm_routing_put_audio_mixer),
  10933. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10935. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10936. msm_routing_put_audio_mixer),
  10937. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10938. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10939. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10940. msm_routing_put_audio_mixer),
  10941. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10942. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10943. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10944. msm_routing_put_audio_mixer),
  10945. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10946. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10947. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10948. msm_routing_put_audio_mixer),
  10949. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10950. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10951. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10952. msm_routing_put_audio_mixer),
  10953. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10954. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10955. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10956. msm_routing_put_audio_mixer),
  10957. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10958. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10959. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10960. msm_routing_put_audio_mixer),
  10961. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10962. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10963. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10964. msm_routing_put_audio_mixer),
  10965. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10966. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10967. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10968. msm_routing_put_audio_mixer),
  10969. };
  10970. static const struct snd_kcontrol_new quin_tdm_tx_1_mixer_controls[] = {
  10971. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10972. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10973. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10974. msm_routing_put_audio_mixer),
  10975. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10976. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10977. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10978. msm_routing_put_audio_mixer),
  10979. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10980. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10981. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10982. msm_routing_put_audio_mixer),
  10983. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10984. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10985. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10986. msm_routing_put_audio_mixer),
  10987. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10988. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10989. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10990. msm_routing_put_audio_mixer),
  10991. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10992. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10993. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10994. msm_routing_put_audio_mixer),
  10995. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10996. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10997. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10998. msm_routing_put_audio_mixer),
  10999. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11000. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11001. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11002. msm_routing_put_audio_mixer),
  11003. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11004. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11005. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11006. msm_routing_put_audio_mixer),
  11007. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11008. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11009. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11010. msm_routing_put_audio_mixer),
  11011. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11012. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11013. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11014. msm_routing_put_audio_mixer),
  11015. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11016. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11017. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11018. msm_routing_put_audio_mixer),
  11019. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11020. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11021. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11022. msm_routing_put_audio_mixer),
  11023. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11024. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11025. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11026. msm_routing_put_audio_mixer),
  11027. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11028. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11029. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11030. msm_routing_put_audio_mixer),
  11031. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11032. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11033. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11034. msm_routing_put_audio_mixer),
  11035. };
  11036. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  11037. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11038. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11039. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11040. msm_routing_put_audio_mixer),
  11041. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11042. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11043. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11044. msm_routing_put_audio_mixer),
  11045. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11046. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11047. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11048. msm_routing_put_audio_mixer),
  11049. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11050. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11051. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11052. msm_routing_put_audio_mixer),
  11053. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11054. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11055. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11056. msm_routing_put_audio_mixer),
  11057. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11058. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11059. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11060. msm_routing_put_audio_mixer),
  11061. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11062. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11063. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11064. msm_routing_put_audio_mixer),
  11065. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11066. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11067. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11068. msm_routing_put_audio_mixer),
  11069. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11070. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11071. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11072. msm_routing_put_audio_mixer),
  11073. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11074. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11075. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11076. msm_routing_put_audio_mixer),
  11077. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11078. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11079. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11080. msm_routing_put_audio_mixer),
  11081. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11082. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11083. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11084. msm_routing_put_audio_mixer),
  11085. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11086. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11087. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11088. msm_routing_put_audio_mixer),
  11089. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11090. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11091. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11092. msm_routing_put_audio_mixer),
  11093. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11094. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11095. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11096. msm_routing_put_audio_mixer),
  11097. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11098. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11099. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11100. msm_routing_put_audio_mixer),
  11101. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11102. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11103. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11104. msm_routing_put_audio_mixer),
  11105. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11106. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11107. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11108. msm_routing_put_audio_mixer),
  11109. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11110. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11111. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11112. msm_routing_put_audio_mixer),
  11113. };
  11114. static const struct snd_kcontrol_new quin_tdm_tx_2_mixer_controls[] = {
  11115. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11116. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11117. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11118. msm_routing_put_audio_mixer),
  11119. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11120. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11121. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11122. msm_routing_put_audio_mixer),
  11123. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11124. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11125. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11126. msm_routing_put_audio_mixer),
  11127. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11128. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11129. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11130. msm_routing_put_audio_mixer),
  11131. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11132. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11133. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11134. msm_routing_put_audio_mixer),
  11135. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11136. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11137. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11138. msm_routing_put_audio_mixer),
  11139. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11140. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11141. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11142. msm_routing_put_audio_mixer),
  11143. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11144. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11145. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11146. msm_routing_put_audio_mixer),
  11147. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11148. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11149. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11150. msm_routing_put_audio_mixer),
  11151. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11152. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11153. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11154. msm_routing_put_audio_mixer),
  11155. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11156. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11157. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11158. msm_routing_put_audio_mixer),
  11159. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11160. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11161. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11162. msm_routing_put_audio_mixer),
  11163. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11164. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11165. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11166. msm_routing_put_audio_mixer),
  11167. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11168. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11169. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11170. msm_routing_put_audio_mixer),
  11171. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11172. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11173. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11174. msm_routing_put_audio_mixer),
  11175. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11176. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11177. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11178. msm_routing_put_audio_mixer),
  11179. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11180. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11181. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11182. msm_routing_put_audio_mixer),
  11183. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11184. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11185. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11186. msm_routing_put_audio_mixer),
  11187. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11188. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11189. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11190. msm_routing_put_audio_mixer),
  11191. };
  11192. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  11193. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11194. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11195. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11196. msm_routing_put_audio_mixer),
  11197. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11198. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11199. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11200. msm_routing_put_audio_mixer),
  11201. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11202. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11203. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11204. msm_routing_put_audio_mixer),
  11205. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11206. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11207. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11208. msm_routing_put_audio_mixer),
  11209. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11210. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11211. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11212. msm_routing_put_audio_mixer),
  11213. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11214. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11215. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11216. msm_routing_put_audio_mixer),
  11217. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11218. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11219. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11220. msm_routing_put_audio_mixer),
  11221. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11222. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11223. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11224. msm_routing_put_audio_mixer),
  11225. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11226. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11227. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11228. msm_routing_put_audio_mixer),
  11229. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11230. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11231. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11232. msm_routing_put_audio_mixer),
  11233. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11234. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11235. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11236. msm_routing_put_audio_mixer),
  11237. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11238. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11239. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11240. msm_routing_put_audio_mixer),
  11241. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11242. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11243. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11244. msm_routing_put_audio_mixer),
  11245. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11246. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11247. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11248. msm_routing_put_audio_mixer),
  11249. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11250. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11251. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11252. msm_routing_put_audio_mixer),
  11253. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11254. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11255. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11256. msm_routing_put_audio_mixer),
  11257. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11258. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11259. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11260. msm_routing_put_audio_mixer),
  11261. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11262. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11263. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11264. msm_routing_put_audio_mixer),
  11265. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11266. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11267. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11268. msm_routing_put_audio_mixer),
  11269. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11270. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11271. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11272. msm_routing_put_audio_mixer),
  11273. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11274. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11275. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11276. msm_routing_put_audio_mixer),
  11277. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11278. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11279. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11280. msm_routing_put_audio_mixer),
  11281. };
  11282. static const struct snd_kcontrol_new quin_tdm_tx_3_mixer_controls[] = {
  11283. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11284. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11285. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11286. msm_routing_put_audio_mixer),
  11287. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11288. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11289. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11290. msm_routing_put_audio_mixer),
  11291. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11292. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11293. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11294. msm_routing_put_audio_mixer),
  11295. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11296. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11297. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11298. msm_routing_put_audio_mixer),
  11299. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11300. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11301. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11302. msm_routing_put_audio_mixer),
  11303. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11304. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11305. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11306. msm_routing_put_audio_mixer),
  11307. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11308. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11309. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11310. msm_routing_put_audio_mixer),
  11311. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11312. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11313. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11314. msm_routing_put_audio_mixer),
  11315. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11316. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11317. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11318. msm_routing_put_audio_mixer),
  11319. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11320. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11321. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11322. msm_routing_put_audio_mixer),
  11323. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11324. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11325. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11326. msm_routing_put_audio_mixer),
  11327. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11328. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11329. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11330. msm_routing_put_audio_mixer),
  11331. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11332. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11333. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11334. msm_routing_put_audio_mixer),
  11335. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11336. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11337. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11338. msm_routing_put_audio_mixer),
  11339. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11340. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11341. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11342. msm_routing_put_audio_mixer),
  11343. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11344. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11345. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11346. msm_routing_put_audio_mixer),
  11347. };
  11348. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  11349. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11350. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11351. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11352. msm_routing_put_audio_mixer),
  11353. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11354. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11355. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11356. msm_routing_put_audio_mixer),
  11357. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11358. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11359. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11360. msm_routing_put_audio_mixer),
  11361. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11362. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11363. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11364. msm_routing_put_audio_mixer),
  11365. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11366. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11367. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11368. msm_routing_put_audio_mixer),
  11369. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11370. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11371. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11372. msm_routing_put_audio_mixer),
  11373. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11374. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11375. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11376. msm_routing_put_audio_mixer),
  11377. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11378. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11379. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11380. msm_routing_put_audio_mixer),
  11381. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11382. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11383. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11384. msm_routing_put_audio_mixer),
  11385. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11386. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11387. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11388. msm_routing_put_audio_mixer),
  11389. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11390. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11391. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11392. msm_routing_put_audio_mixer),
  11393. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11394. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11395. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11396. msm_routing_put_audio_mixer),
  11397. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11398. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11399. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11400. msm_routing_put_audio_mixer),
  11401. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11402. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11403. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11404. msm_routing_put_audio_mixer),
  11405. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11406. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11407. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11408. msm_routing_put_audio_mixer),
  11409. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11410. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11411. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11412. msm_routing_put_audio_mixer),
  11413. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11414. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11415. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11416. msm_routing_put_audio_mixer),
  11417. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11418. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11419. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11420. msm_routing_put_audio_mixer),
  11421. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11422. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11423. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11424. msm_routing_put_audio_mixer),
  11425. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11426. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11427. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11428. msm_routing_put_audio_mixer),
  11429. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11430. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11431. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11432. msm_routing_put_audio_mixer),
  11433. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11434. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11435. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11436. msm_routing_put_audio_mixer),
  11437. };
  11438. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  11439. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11440. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11441. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11442. msm_routing_put_audio_mixer),
  11443. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11444. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11445. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11446. msm_routing_put_audio_mixer),
  11447. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11448. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11449. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11450. msm_routing_put_audio_mixer),
  11451. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11452. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11453. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11454. msm_routing_put_audio_mixer),
  11455. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11456. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11457. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11458. msm_routing_put_audio_mixer),
  11459. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11460. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11461. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11462. msm_routing_put_audio_mixer),
  11463. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11464. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11465. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11466. msm_routing_put_audio_mixer),
  11467. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11468. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11469. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11470. msm_routing_put_audio_mixer),
  11471. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11472. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11473. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11474. msm_routing_put_audio_mixer),
  11475. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11476. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11477. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11478. msm_routing_put_audio_mixer),
  11479. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11480. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11481. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11482. msm_routing_put_audio_mixer),
  11483. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11485. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11486. msm_routing_put_audio_mixer),
  11487. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11488. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11489. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11490. msm_routing_put_audio_mixer),
  11491. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11492. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11493. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11494. msm_routing_put_audio_mixer),
  11495. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11496. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11497. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11498. msm_routing_put_audio_mixer),
  11499. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11500. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11501. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11502. msm_routing_put_audio_mixer),
  11503. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11504. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11505. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11506. msm_routing_put_audio_mixer),
  11507. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11508. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11509. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11510. msm_routing_put_audio_mixer),
  11511. };
  11512. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  11513. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11514. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11515. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11516. msm_routing_put_audio_mixer),
  11517. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11518. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11519. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11520. msm_routing_put_audio_mixer),
  11521. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11522. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11523. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11524. msm_routing_put_audio_mixer),
  11525. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11526. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11527. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11528. msm_routing_put_audio_mixer),
  11529. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11530. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11531. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11532. msm_routing_put_audio_mixer),
  11533. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11534. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11535. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11536. msm_routing_put_audio_mixer),
  11537. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11538. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11539. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11540. msm_routing_put_audio_mixer),
  11541. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11542. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11543. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11544. msm_routing_put_audio_mixer),
  11545. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11546. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11547. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11548. msm_routing_put_audio_mixer),
  11549. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11550. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11551. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11552. msm_routing_put_audio_mixer),
  11553. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11554. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11555. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11556. msm_routing_put_audio_mixer),
  11557. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11558. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11559. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11560. msm_routing_put_audio_mixer),
  11561. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11562. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11563. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11564. msm_routing_put_audio_mixer),
  11565. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11566. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11567. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11568. msm_routing_put_audio_mixer),
  11569. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11570. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11571. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11572. msm_routing_put_audio_mixer),
  11573. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11574. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11575. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11576. msm_routing_put_audio_mixer),
  11577. };
  11578. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  11579. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11580. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11581. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11582. msm_routing_put_audio_mixer),
  11583. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11584. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11585. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11586. msm_routing_put_audio_mixer),
  11587. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11588. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11589. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11590. msm_routing_put_audio_mixer),
  11591. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11592. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11593. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11594. msm_routing_put_audio_mixer),
  11595. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11596. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11597. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11598. msm_routing_put_audio_mixer),
  11599. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11600. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11601. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11602. msm_routing_put_audio_mixer),
  11603. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11604. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11605. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11606. msm_routing_put_audio_mixer),
  11607. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11608. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11609. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11610. msm_routing_put_audio_mixer),
  11611. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11612. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11613. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11614. msm_routing_put_audio_mixer),
  11615. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11616. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11617. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11618. msm_routing_put_audio_mixer),
  11619. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11620. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11621. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11622. msm_routing_put_audio_mixer),
  11623. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11624. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11625. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11626. msm_routing_put_audio_mixer),
  11627. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11628. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11629. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11630. msm_routing_put_audio_mixer),
  11631. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11632. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11633. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11634. msm_routing_put_audio_mixer),
  11635. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11636. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11637. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11638. msm_routing_put_audio_mixer),
  11639. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11640. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11641. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11642. msm_routing_put_audio_mixer),
  11643. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11644. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11645. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11646. msm_routing_put_audio_mixer),
  11647. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11648. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11649. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11650. msm_routing_put_audio_mixer),
  11651. };
  11652. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  11653. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11654. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11655. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11656. msm_routing_put_audio_mixer),
  11657. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11658. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11659. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11660. msm_routing_put_audio_mixer),
  11661. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11662. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11663. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11664. msm_routing_put_audio_mixer),
  11665. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11666. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11667. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11668. msm_routing_put_audio_mixer),
  11669. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11670. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11671. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11672. msm_routing_put_audio_mixer),
  11673. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11674. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11675. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11676. msm_routing_put_audio_mixer),
  11677. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11678. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11679. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11680. msm_routing_put_audio_mixer),
  11681. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11682. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11683. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11684. msm_routing_put_audio_mixer),
  11685. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11686. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11687. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11688. msm_routing_put_audio_mixer),
  11689. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11690. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11691. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11692. msm_routing_put_audio_mixer),
  11693. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11694. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11695. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11696. msm_routing_put_audio_mixer),
  11697. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11698. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11699. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11700. msm_routing_put_audio_mixer),
  11701. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11702. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11703. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11704. msm_routing_put_audio_mixer),
  11705. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11706. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11707. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11708. msm_routing_put_audio_mixer),
  11709. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11710. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11711. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11712. msm_routing_put_audio_mixer),
  11713. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11714. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11715. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11716. msm_routing_put_audio_mixer),
  11717. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11718. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11719. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11720. msm_routing_put_audio_mixer),
  11721. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11722. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11723. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11724. msm_routing_put_audio_mixer),
  11725. };
  11726. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  11727. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11728. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11729. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11730. msm_routing_put_audio_mixer),
  11731. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11732. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11733. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11734. msm_routing_put_audio_mixer),
  11735. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11736. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11737. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11738. msm_routing_put_audio_mixer),
  11739. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11740. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11741. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11742. msm_routing_put_audio_mixer),
  11743. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11744. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11745. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11746. msm_routing_put_audio_mixer),
  11747. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11748. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11749. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11750. msm_routing_put_audio_mixer),
  11751. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11752. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11753. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11754. msm_routing_put_audio_mixer),
  11755. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11756. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11757. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11758. msm_routing_put_audio_mixer),
  11759. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11760. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11761. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11762. msm_routing_put_audio_mixer),
  11763. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11764. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11765. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11766. msm_routing_put_audio_mixer),
  11767. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11768. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11769. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11770. msm_routing_put_audio_mixer),
  11771. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11772. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11773. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11774. msm_routing_put_audio_mixer),
  11775. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11776. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11777. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11778. msm_routing_put_audio_mixer),
  11779. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11780. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11781. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11782. msm_routing_put_audio_mixer),
  11783. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11784. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11785. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11786. msm_routing_put_audio_mixer),
  11787. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11788. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11789. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11790. msm_routing_put_audio_mixer),
  11791. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11792. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11793. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11794. msm_routing_put_audio_mixer),
  11795. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11796. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11797. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11798. msm_routing_put_audio_mixer),
  11799. };
  11800. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  11801. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  11802. MSM_BACKEND_DAI_PRI_I2S_TX,
  11803. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11804. msm_routing_put_audio_mixer),
  11805. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11806. MSM_BACKEND_DAI_MI2S_TX,
  11807. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11808. msm_routing_put_audio_mixer),
  11809. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11810. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11811. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11812. msm_routing_put_audio_mixer),
  11813. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11814. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11815. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11816. msm_routing_put_audio_mixer),
  11817. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11818. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11819. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11820. msm_routing_put_audio_mixer),
  11821. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11822. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11823. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11824. msm_routing_put_audio_mixer),
  11825. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11826. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11827. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11828. msm_routing_put_audio_mixer),
  11829. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11830. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11831. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11832. msm_routing_put_audio_mixer),
  11833. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11834. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11835. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11836. msm_routing_put_audio_mixer),
  11837. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11838. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11839. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11840. msm_routing_put_audio_mixer),
  11841. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11842. MSM_BACKEND_DAI_AUXPCM_TX,
  11843. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11844. msm_routing_put_audio_mixer),
  11845. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11846. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11847. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11848. msm_routing_put_audio_mixer),
  11849. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11850. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11851. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11852. msm_routing_put_audio_mixer),
  11853. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11854. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11855. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11856. msm_routing_put_audio_mixer),
  11857. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11858. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11859. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11860. msm_routing_put_audio_mixer),
  11861. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11862. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11863. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11864. msm_routing_put_audio_mixer),
  11865. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11866. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11867. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11868. msm_routing_put_audio_mixer),
  11869. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11870. MSM_BACKEND_DAI_INT_FM_TX,
  11871. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11872. msm_routing_put_audio_mixer),
  11873. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11874. MSM_BACKEND_DAI_AFE_PCM_TX,
  11875. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11876. msm_routing_put_audio_mixer),
  11877. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11878. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11879. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11880. msm_routing_put_audio_mixer),
  11881. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11882. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11883. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11884. msm_routing_put_audio_mixer),
  11885. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  11886. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11887. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11888. msm_routing_put_audio_mixer),
  11889. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11890. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11891. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11892. msm_routing_put_audio_mixer),
  11893. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11894. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11895. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11896. msm_routing_put_audio_mixer),
  11897. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11898. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11899. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11900. msm_routing_put_audio_mixer),
  11901. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11902. MSM_BACKEND_DAI_PRI_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("PRI_TDM_TX_1", SND_SOC_NOPM,
  11906. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11907. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11908. msm_routing_put_audio_mixer),
  11909. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11910. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11911. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11912. msm_routing_put_audio_mixer),
  11913. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11914. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11915. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11916. msm_routing_put_audio_mixer),
  11917. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11918. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11919. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11920. msm_routing_put_audio_mixer),
  11921. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11922. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11923. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11924. msm_routing_put_audio_mixer),
  11925. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11926. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11927. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11928. msm_routing_put_audio_mixer),
  11929. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11930. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11931. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11932. msm_routing_put_audio_mixer),
  11933. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11934. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11935. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11936. msm_routing_put_audio_mixer),
  11937. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11938. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11939. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11940. msm_routing_put_audio_mixer),
  11941. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11942. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11943. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11944. msm_routing_put_audio_mixer),
  11945. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11946. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11947. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11948. msm_routing_put_audio_mixer),
  11949. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11950. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11951. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11952. msm_routing_put_audio_mixer),
  11953. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11954. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11955. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11956. msm_routing_put_audio_mixer),
  11957. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11958. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11959. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11960. msm_routing_put_audio_mixer),
  11961. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11962. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11963. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11964. msm_routing_put_audio_mixer),
  11965. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11966. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11967. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11968. msm_routing_put_audio_mixer),
  11969. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11970. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11971. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11972. msm_routing_put_audio_mixer),
  11973. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11974. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11975. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11976. msm_routing_put_audio_mixer),
  11977. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11978. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11979. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11980. msm_routing_put_audio_mixer),
  11981. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11982. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11983. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11984. msm_routing_put_audio_mixer),
  11985. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11986. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11987. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11988. msm_routing_put_audio_mixer),
  11989. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11990. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11991. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11992. msm_routing_put_audio_mixer),
  11993. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11994. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11995. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11996. msm_routing_put_audio_mixer),
  11997. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11998. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11999. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12000. msm_routing_put_audio_mixer),
  12001. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12002. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12003. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12004. msm_routing_put_audio_mixer),
  12005. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12006. MSM_BACKEND_DAI_USB_TX,
  12007. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12008. msm_routing_put_audio_mixer),
  12009. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12010. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12011. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12012. msm_routing_put_audio_mixer),
  12013. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12014. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12015. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12016. msm_routing_put_audio_mixer),
  12017. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12018. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12019. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12020. msm_routing_put_audio_mixer),
  12021. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12022. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12023. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12024. msm_routing_put_audio_mixer),
  12025. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12026. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12027. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12028. msm_routing_put_audio_mixer),
  12029. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12030. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12031. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12032. msm_routing_put_audio_mixer),
  12033. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12034. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12035. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12036. msm_routing_put_audio_mixer),
  12037. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12038. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12039. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12040. msm_routing_put_audio_mixer),
  12041. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12042. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12043. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12044. msm_routing_put_audio_mixer),
  12045. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12046. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12047. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12048. msm_routing_put_audio_mixer),
  12049. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12050. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12051. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12052. msm_routing_put_audio_mixer),
  12053. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12054. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12055. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12056. msm_routing_put_audio_mixer),
  12057. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12058. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12059. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12060. msm_routing_put_audio_mixer),
  12061. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12062. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12063. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12064. msm_routing_put_audio_mixer),
  12065. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12066. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12067. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12068. msm_routing_put_audio_mixer),
  12069. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12070. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12071. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12072. msm_routing_put_audio_mixer),
  12073. };
  12074. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  12075. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12076. MSM_BACKEND_DAI_INT_FM_TX,
  12077. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12078. msm_routing_put_audio_mixer),
  12079. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12080. MSM_BACKEND_DAI_MI2S_TX,
  12081. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12082. msm_routing_put_audio_mixer),
  12083. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12084. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12085. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12086. msm_routing_put_audio_mixer),
  12087. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12088. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12089. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12090. msm_routing_put_audio_mixer),
  12091. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12092. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12093. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12094. msm_routing_put_audio_mixer),
  12095. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12096. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12097. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12098. msm_routing_put_audio_mixer),
  12099. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12100. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12101. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12102. msm_routing_put_audio_mixer),
  12103. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12104. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12105. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12106. msm_routing_put_audio_mixer),
  12107. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12108. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12109. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12110. msm_routing_put_audio_mixer),
  12111. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12112. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12113. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12114. msm_routing_put_audio_mixer),
  12115. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12116. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12117. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12118. msm_routing_put_audio_mixer),
  12119. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12120. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12121. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12122. msm_routing_put_audio_mixer),
  12123. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12124. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12125. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12126. msm_routing_put_audio_mixer),
  12127. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12128. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12129. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12130. msm_routing_put_audio_mixer),
  12131. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12132. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12133. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12134. msm_routing_put_audio_mixer),
  12135. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12136. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12137. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12138. msm_routing_put_audio_mixer),
  12139. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12140. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12141. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12142. msm_routing_put_audio_mixer),
  12143. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12144. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12145. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12146. msm_routing_put_audio_mixer),
  12147. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12148. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12149. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12150. msm_routing_put_audio_mixer),
  12151. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12152. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12153. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12154. msm_routing_put_audio_mixer),
  12155. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12156. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12157. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12158. msm_routing_put_audio_mixer),
  12159. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12160. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12161. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12162. msm_routing_put_audio_mixer),
  12163. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12164. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12165. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12166. msm_routing_put_audio_mixer),
  12167. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12168. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12169. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12170. msm_routing_put_audio_mixer),
  12171. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12172. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12173. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12174. msm_routing_put_audio_mixer),
  12175. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12176. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12177. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12178. msm_routing_put_audio_mixer),
  12179. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12180. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12181. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12182. msm_routing_put_audio_mixer),
  12183. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12184. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12185. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12186. msm_routing_put_audio_mixer),
  12187. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12188. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12189. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12190. msm_routing_put_audio_mixer),
  12191. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12192. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12193. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12194. msm_routing_put_audio_mixer),
  12195. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12196. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12197. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12198. msm_routing_put_audio_mixer),
  12199. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12200. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12201. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12202. msm_routing_put_audio_mixer),
  12203. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12204. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12205. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12206. msm_routing_put_audio_mixer),
  12207. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12208. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12209. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12210. msm_routing_put_audio_mixer),
  12211. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12212. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12213. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12214. msm_routing_put_audio_mixer),
  12215. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12216. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12217. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12218. msm_routing_put_audio_mixer),
  12219. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12220. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12221. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12222. msm_routing_put_audio_mixer),
  12223. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12224. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12225. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12226. msm_routing_put_audio_mixer),
  12227. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12228. MSM_BACKEND_DAI_USB_TX,
  12229. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12230. msm_routing_put_audio_mixer),
  12231. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12232. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12233. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12234. msm_routing_put_audio_mixer),
  12235. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12236. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12237. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12238. msm_routing_put_audio_mixer),
  12239. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12240. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12241. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12242. msm_routing_put_audio_mixer),
  12243. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12244. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12245. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12246. msm_routing_put_audio_mixer),
  12247. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12248. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12249. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12250. msm_routing_put_audio_mixer),
  12251. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12252. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12253. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12254. msm_routing_put_audio_mixer),
  12255. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12256. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12257. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12258. msm_routing_put_audio_mixer),
  12259. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12260. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12261. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12262. msm_routing_put_audio_mixer),
  12263. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12264. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12265. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12266. msm_routing_put_audio_mixer),
  12267. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12268. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12269. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12270. msm_routing_put_audio_mixer),
  12271. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12272. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12273. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12274. msm_routing_put_audio_mixer),
  12275. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12276. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12277. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12278. msm_routing_put_audio_mixer),
  12279. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12280. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12281. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12282. msm_routing_put_audio_mixer),
  12283. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12284. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12285. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12286. msm_routing_put_audio_mixer),
  12287. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12288. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12289. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12290. msm_routing_put_audio_mixer),
  12291. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12292. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12293. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12294. msm_routing_put_audio_mixer),
  12295. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12296. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12297. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12298. msm_routing_put_audio_mixer),
  12299. };
  12300. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  12301. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12302. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12303. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12304. msm_routing_put_audio_mixer),
  12305. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12306. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12307. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12308. msm_routing_put_audio_mixer),
  12309. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12310. MSM_BACKEND_DAI_INT_FM_TX,
  12311. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12312. msm_routing_put_audio_mixer),
  12313. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12314. MSM_BACKEND_DAI_MI2S_TX,
  12315. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12316. msm_routing_put_audio_mixer),
  12317. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12318. MSM_BACKEND_DAI_AFE_PCM_TX,
  12319. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12320. msm_routing_put_audio_mixer),
  12321. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12322. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12323. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12324. msm_routing_put_audio_mixer),
  12325. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  12326. MSM_BACKEND_DAI_AUXPCM_TX,
  12327. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12328. msm_routing_put_audio_mixer),
  12329. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12330. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12331. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12332. msm_routing_put_audio_mixer),
  12333. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12334. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12335. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12336. msm_routing_put_audio_mixer),
  12337. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12338. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12339. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12340. msm_routing_put_audio_mixer),
  12341. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12342. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12343. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12344. msm_routing_put_audio_mixer),
  12345. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12346. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12347. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12348. msm_routing_put_audio_mixer),
  12349. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12350. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12351. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12352. msm_routing_put_audio_mixer),
  12353. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12354. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12355. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12356. msm_routing_put_audio_mixer),
  12357. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12358. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12359. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12360. msm_routing_put_audio_mixer),
  12361. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12362. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12363. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12364. msm_routing_put_audio_mixer),
  12365. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12366. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12367. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12368. msm_routing_put_audio_mixer),
  12369. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12370. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12371. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12372. msm_routing_put_audio_mixer),
  12373. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12374. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12375. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12376. msm_routing_put_audio_mixer),
  12377. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12378. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12379. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12380. msm_routing_put_audio_mixer),
  12381. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12382. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12383. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12384. msm_routing_put_audio_mixer),
  12385. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12386. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12387. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12388. msm_routing_put_audio_mixer),
  12389. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12390. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12391. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12392. msm_routing_put_audio_mixer),
  12393. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12394. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12395. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12396. msm_routing_put_audio_mixer),
  12397. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12398. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12399. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12400. msm_routing_put_audio_mixer),
  12401. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12402. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12403. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12404. msm_routing_put_audio_mixer),
  12405. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12406. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12407. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12408. msm_routing_put_audio_mixer),
  12409. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12410. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12411. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12412. msm_routing_put_audio_mixer),
  12413. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12414. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12415. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12416. msm_routing_put_audio_mixer),
  12417. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12418. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12419. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12420. msm_routing_put_audio_mixer),
  12421. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12422. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12423. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12424. msm_routing_put_audio_mixer),
  12425. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12426. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12427. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12428. msm_routing_put_audio_mixer),
  12429. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12430. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12431. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12432. msm_routing_put_audio_mixer),
  12433. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12434. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12435. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12436. msm_routing_put_audio_mixer),
  12437. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12438. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12439. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12440. msm_routing_put_audio_mixer),
  12441. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12442. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12443. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12444. msm_routing_put_audio_mixer),
  12445. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12446. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12447. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12448. msm_routing_put_audio_mixer),
  12449. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12450. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12451. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12452. msm_routing_put_audio_mixer),
  12453. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12454. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12455. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12456. msm_routing_put_audio_mixer),
  12457. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12458. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12459. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12460. msm_routing_put_audio_mixer),
  12461. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12462. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12463. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12464. msm_routing_put_audio_mixer),
  12465. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12466. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12467. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12468. msm_routing_put_audio_mixer),
  12469. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12470. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12471. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12472. msm_routing_put_audio_mixer),
  12473. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12474. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12475. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12476. msm_routing_put_audio_mixer),
  12477. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12478. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12479. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12480. msm_routing_put_audio_mixer),
  12481. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12482. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12483. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12484. msm_routing_put_audio_mixer),
  12485. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12486. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12487. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12488. msm_routing_put_audio_mixer),
  12489. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12490. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12491. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12492. msm_routing_put_audio_mixer),
  12493. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12494. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12495. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12496. msm_routing_put_audio_mixer),
  12497. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12498. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12499. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12500. msm_routing_put_audio_mixer),
  12501. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12502. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12503. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12504. msm_routing_put_audio_mixer),
  12505. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12506. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12507. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12508. msm_routing_put_audio_mixer),
  12509. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12510. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12511. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12512. msm_routing_put_audio_mixer),
  12513. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12515. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12516. msm_routing_put_audio_mixer),
  12517. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12518. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12519. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12520. msm_routing_put_audio_mixer),
  12521. };
  12522. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  12523. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12524. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12525. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12526. msm_routing_put_audio_mixer),
  12527. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12528. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12529. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12530. msm_routing_put_audio_mixer),
  12531. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12532. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12533. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12534. msm_routing_put_audio_mixer),
  12535. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12536. MSM_BACKEND_DAI_INT_FM_TX,
  12537. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12538. msm_routing_put_audio_mixer),
  12539. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12540. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12541. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12542. msm_routing_put_audio_mixer),
  12543. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12544. MSM_BACKEND_DAI_AFE_PCM_TX,
  12545. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12546. msm_routing_put_audio_mixer),
  12547. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12548. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12549. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12550. msm_routing_put_audio_mixer),
  12551. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12552. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12553. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12554. msm_routing_put_audio_mixer),
  12555. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12556. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12557. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12558. msm_routing_put_audio_mixer),
  12559. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12560. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12561. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12562. msm_routing_put_audio_mixer),
  12563. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12564. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12565. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12566. msm_routing_put_audio_mixer),
  12567. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12568. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12569. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12570. msm_routing_put_audio_mixer),
  12571. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12572. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12573. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12574. msm_routing_put_audio_mixer),
  12575. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12576. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12577. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12578. msm_routing_put_audio_mixer),
  12579. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12580. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12581. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12582. msm_routing_put_audio_mixer),
  12583. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12584. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12585. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12586. msm_routing_put_audio_mixer),
  12587. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12588. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12589. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12590. msm_routing_put_audio_mixer),
  12591. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12592. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12593. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12594. msm_routing_put_audio_mixer),
  12595. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12596. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12597. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12598. msm_routing_put_audio_mixer),
  12599. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12600. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12601. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12602. msm_routing_put_audio_mixer),
  12603. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12604. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12605. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12606. msm_routing_put_audio_mixer),
  12607. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12608. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12609. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12610. msm_routing_put_audio_mixer),
  12611. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12612. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12613. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12614. msm_routing_put_audio_mixer),
  12615. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12616. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12617. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12618. msm_routing_put_audio_mixer),
  12619. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12620. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12621. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12622. msm_routing_put_audio_mixer),
  12623. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12624. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12625. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12626. msm_routing_put_audio_mixer),
  12627. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12628. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12629. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12630. msm_routing_put_audio_mixer),
  12631. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12632. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12633. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12634. msm_routing_put_audio_mixer),
  12635. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12636. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12637. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12638. msm_routing_put_audio_mixer),
  12639. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12640. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12641. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12642. msm_routing_put_audio_mixer),
  12643. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12644. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12645. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12646. msm_routing_put_audio_mixer),
  12647. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12648. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12649. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12650. msm_routing_put_audio_mixer),
  12651. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12652. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12653. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12654. msm_routing_put_audio_mixer),
  12655. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12656. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12657. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12658. msm_routing_put_audio_mixer),
  12659. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12660. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12661. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12662. msm_routing_put_audio_mixer),
  12663. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12664. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12665. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12666. msm_routing_put_audio_mixer),
  12667. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12668. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12669. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12670. msm_routing_put_audio_mixer),
  12671. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12672. MSM_BACKEND_DAI_USB_TX,
  12673. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12674. msm_routing_put_audio_mixer),
  12675. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12676. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12677. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12678. msm_routing_put_audio_mixer),
  12679. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12680. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12681. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12682. msm_routing_put_audio_mixer),
  12683. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12684. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12685. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12686. msm_routing_put_audio_mixer),
  12687. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12688. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12689. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12690. msm_routing_put_audio_mixer),
  12691. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12692. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12693. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12694. msm_routing_put_audio_mixer),
  12695. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12696. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12697. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12698. msm_routing_put_audio_mixer),
  12699. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12700. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12701. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12702. msm_routing_put_audio_mixer),
  12703. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12704. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12705. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12706. msm_routing_put_audio_mixer),
  12707. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12708. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12709. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12710. msm_routing_put_audio_mixer),
  12711. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12712. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12713. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12714. msm_routing_put_audio_mixer),
  12715. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12716. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12717. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12718. msm_routing_put_audio_mixer),
  12719. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12720. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12721. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12722. msm_routing_put_audio_mixer),
  12723. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12724. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12725. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12726. msm_routing_put_audio_mixer),
  12727. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12728. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12729. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12730. msm_routing_put_audio_mixer),
  12731. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12732. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12733. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12734. msm_routing_put_audio_mixer),
  12735. };
  12736. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  12737. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12738. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12739. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12740. msm_routing_put_audio_mixer),
  12741. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12742. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12743. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12744. msm_routing_put_audio_mixer),
  12745. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12746. MSM_BACKEND_DAI_INT_FM_TX,
  12747. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12748. msm_routing_put_audio_mixer),
  12749. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12750. MSM_BACKEND_DAI_MI2S_TX,
  12751. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12752. msm_routing_put_audio_mixer),
  12753. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12754. MSM_BACKEND_DAI_AFE_PCM_TX,
  12755. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12756. msm_routing_put_audio_mixer),
  12757. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12758. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12759. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12760. msm_routing_put_audio_mixer),
  12761. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12762. MSM_BACKEND_DAI_AUXPCM_TX,
  12763. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12764. msm_routing_put_audio_mixer),
  12765. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12766. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12767. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12768. msm_routing_put_audio_mixer),
  12769. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12770. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12771. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12772. msm_routing_put_audio_mixer),
  12773. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12774. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12775. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12776. msm_routing_put_audio_mixer),
  12777. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12778. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12779. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12780. msm_routing_put_audio_mixer),
  12781. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12782. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12783. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12784. msm_routing_put_audio_mixer),
  12785. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12786. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12787. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12788. msm_routing_put_audio_mixer),
  12789. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12790. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12791. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12792. msm_routing_put_audio_mixer),
  12793. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12794. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12795. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12796. msm_routing_put_audio_mixer),
  12797. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12798. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12799. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12800. msm_routing_put_audio_mixer),
  12801. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12802. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12803. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12804. msm_routing_put_audio_mixer),
  12805. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12806. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12807. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12808. msm_routing_put_audio_mixer),
  12809. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12810. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12811. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12812. msm_routing_put_audio_mixer),
  12813. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12814. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12815. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12816. msm_routing_put_audio_mixer),
  12817. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12818. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12819. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12820. msm_routing_put_audio_mixer),
  12821. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12822. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12823. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12824. msm_routing_put_audio_mixer),
  12825. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12826. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12827. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12828. msm_routing_put_audio_mixer),
  12829. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12830. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12831. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12832. msm_routing_put_audio_mixer),
  12833. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12834. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12835. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12836. msm_routing_put_audio_mixer),
  12837. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12838. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12839. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12840. msm_routing_put_audio_mixer),
  12841. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12842. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12843. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12844. msm_routing_put_audio_mixer),
  12845. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12846. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12847. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12848. msm_routing_put_audio_mixer),
  12849. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12850. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12851. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12852. msm_routing_put_audio_mixer),
  12853. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12854. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12855. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12856. msm_routing_put_audio_mixer),
  12857. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12858. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12859. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12860. msm_routing_put_audio_mixer),
  12861. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12862. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12863. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12864. msm_routing_put_audio_mixer),
  12865. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12866. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12867. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12868. msm_routing_put_audio_mixer),
  12869. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12870. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12871. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12872. msm_routing_put_audio_mixer),
  12873. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12874. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12875. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12876. msm_routing_put_audio_mixer),
  12877. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12879. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12880. msm_routing_put_audio_mixer),
  12881. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12882. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12883. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12884. msm_routing_put_audio_mixer),
  12885. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12886. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12887. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12888. msm_routing_put_audio_mixer),
  12889. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12890. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12891. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12892. msm_routing_put_audio_mixer),
  12893. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12894. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12895. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12896. msm_routing_put_audio_mixer),
  12897. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12899. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12900. msm_routing_put_audio_mixer),
  12901. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12902. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12903. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12904. msm_routing_put_audio_mixer),
  12905. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12906. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12907. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12908. msm_routing_put_audio_mixer),
  12909. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12910. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12911. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12912. msm_routing_put_audio_mixer),
  12913. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12914. MSM_BACKEND_DAI_USB_TX,
  12915. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12916. msm_routing_put_audio_mixer),
  12917. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12918. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12919. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12920. msm_routing_put_audio_mixer),
  12921. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12922. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12923. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12924. msm_routing_put_audio_mixer),
  12925. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12926. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12927. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12928. msm_routing_put_audio_mixer),
  12929. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12930. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12931. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12932. msm_routing_put_audio_mixer),
  12933. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12934. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12935. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12936. msm_routing_put_audio_mixer),
  12937. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12938. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12939. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12940. msm_routing_put_audio_mixer),
  12941. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12942. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12943. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12944. msm_routing_put_audio_mixer),
  12945. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12946. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12947. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12948. msm_routing_put_audio_mixer),
  12949. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12950. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12951. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12952. msm_routing_put_audio_mixer),
  12953. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12954. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12955. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12956. msm_routing_put_audio_mixer),
  12957. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12958. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12959. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12960. msm_routing_put_audio_mixer),
  12961. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12962. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12963. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12964. msm_routing_put_audio_mixer),
  12965. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12966. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12967. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12968. msm_routing_put_audio_mixer),
  12969. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12970. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12971. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12972. msm_routing_put_audio_mixer),
  12973. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12974. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12975. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12976. msm_routing_put_audio_mixer),
  12977. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12978. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12979. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12980. msm_routing_put_audio_mixer),
  12981. };
  12982. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  12983. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12984. MSM_BACKEND_DAI_INT_FM_TX,
  12985. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12986. msm_routing_put_audio_mixer),
  12987. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12988. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12989. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12990. msm_routing_put_audio_mixer),
  12991. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12992. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12993. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12994. msm_routing_put_audio_mixer),
  12995. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12996. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12997. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12998. msm_routing_put_audio_mixer),
  12999. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13000. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13001. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13002. msm_routing_put_audio_mixer),
  13003. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13004. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13005. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13006. msm_routing_put_audio_mixer),
  13007. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13008. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13009. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13010. msm_routing_put_audio_mixer),
  13011. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13012. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13013. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13014. msm_routing_put_audio_mixer),
  13015. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13016. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13017. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13018. msm_routing_put_audio_mixer),
  13019. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13020. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13021. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13022. msm_routing_put_audio_mixer),
  13023. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13024. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13025. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13026. msm_routing_put_audio_mixer),
  13027. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13028. MSM_BACKEND_DAI_AUXPCM_TX,
  13029. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13030. msm_routing_put_audio_mixer),
  13031. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13032. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13033. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13034. msm_routing_put_audio_mixer),
  13035. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13036. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13037. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13038. msm_routing_put_audio_mixer),
  13039. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13040. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13041. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13042. msm_routing_put_audio_mixer),
  13043. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13044. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13045. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13046. msm_routing_put_audio_mixer),
  13047. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13048. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13049. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13050. msm_routing_put_audio_mixer),
  13051. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13052. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13053. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13054. msm_routing_put_audio_mixer),
  13055. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13056. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13057. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13058. msm_routing_put_audio_mixer),
  13059. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13060. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13061. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13062. msm_routing_put_audio_mixer),
  13063. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13064. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13065. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13066. msm_routing_put_audio_mixer),
  13067. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13068. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13069. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13070. msm_routing_put_audio_mixer),
  13071. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13072. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13073. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13074. msm_routing_put_audio_mixer),
  13075. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13076. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13077. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13078. msm_routing_put_audio_mixer),
  13079. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13080. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13081. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13082. msm_routing_put_audio_mixer),
  13083. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13084. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13085. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13086. msm_routing_put_audio_mixer),
  13087. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13088. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13089. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13090. msm_routing_put_audio_mixer),
  13091. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13092. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13093. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13094. msm_routing_put_audio_mixer),
  13095. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13096. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13097. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13098. msm_routing_put_audio_mixer),
  13099. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13100. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13101. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13102. msm_routing_put_audio_mixer),
  13103. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13104. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13105. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13106. msm_routing_put_audio_mixer),
  13107. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13108. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13109. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13110. msm_routing_put_audio_mixer),
  13111. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13112. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13113. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13114. msm_routing_put_audio_mixer),
  13115. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13116. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13117. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13118. msm_routing_put_audio_mixer),
  13119. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13120. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13121. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13122. msm_routing_put_audio_mixer),
  13123. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13124. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13125. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13126. msm_routing_put_audio_mixer),
  13127. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13128. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13129. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13130. msm_routing_put_audio_mixer),
  13131. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13132. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13133. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13134. msm_routing_put_audio_mixer),
  13135. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13136. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13137. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13138. msm_routing_put_audio_mixer),
  13139. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13140. MSM_BACKEND_DAI_USB_TX,
  13141. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13142. msm_routing_put_audio_mixer),
  13143. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13144. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13145. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13146. msm_routing_put_audio_mixer),
  13147. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13148. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13149. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13150. msm_routing_put_audio_mixer),
  13151. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13152. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13153. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13154. msm_routing_put_audio_mixer),
  13155. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13156. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13157. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13158. msm_routing_put_audio_mixer),
  13159. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13160. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13161. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13162. msm_routing_put_audio_mixer),
  13163. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13164. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13165. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13166. msm_routing_put_audio_mixer),
  13167. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13168. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13169. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13170. msm_routing_put_audio_mixer),
  13171. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13172. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13173. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13174. msm_routing_put_audio_mixer),
  13175. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13176. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13177. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13178. msm_routing_put_audio_mixer),
  13179. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13180. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13181. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13182. msm_routing_put_audio_mixer),
  13183. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13184. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13185. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13186. msm_routing_put_audio_mixer),
  13187. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13188. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13189. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13190. msm_routing_put_audio_mixer),
  13191. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13192. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13193. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13194. msm_routing_put_audio_mixer),
  13195. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13196. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13197. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13198. msm_routing_put_audio_mixer),
  13199. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13200. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13201. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13202. msm_routing_put_audio_mixer),
  13203. };
  13204. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  13205. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13206. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13207. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13208. msm_routing_put_audio_mixer),
  13209. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13210. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13211. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13212. msm_routing_put_audio_mixer),
  13213. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13214. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13215. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13216. msm_routing_put_audio_mixer),
  13217. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13218. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13219. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13220. msm_routing_put_audio_mixer),
  13221. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13222. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13223. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13224. msm_routing_put_audio_mixer),
  13225. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13226. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13227. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13228. msm_routing_put_audio_mixer),
  13229. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13230. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13231. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13232. msm_routing_put_audio_mixer),
  13233. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13234. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13235. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13236. msm_routing_put_audio_mixer),
  13237. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13238. MSM_BACKEND_DAI_INT_FM_TX,
  13239. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13240. msm_routing_put_audio_mixer),
  13241. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13242. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13243. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13244. msm_routing_put_audio_mixer),
  13245. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13246. MSM_BACKEND_DAI_AFE_PCM_TX,
  13247. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13248. msm_routing_put_audio_mixer),
  13249. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13250. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13251. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13252. msm_routing_put_audio_mixer),
  13253. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13254. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13255. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13256. msm_routing_put_audio_mixer),
  13257. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13258. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13259. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13260. msm_routing_put_audio_mixer),
  13261. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13262. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13263. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13264. msm_routing_put_audio_mixer),
  13265. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13266. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13267. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13268. msm_routing_put_audio_mixer),
  13269. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13270. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13271. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13272. msm_routing_put_audio_mixer),
  13273. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13274. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13275. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13276. msm_routing_put_audio_mixer),
  13277. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13278. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13279. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13280. msm_routing_put_audio_mixer),
  13281. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13282. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13283. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13284. msm_routing_put_audio_mixer),
  13285. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13286. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13287. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13288. msm_routing_put_audio_mixer),
  13289. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13290. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13291. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13292. msm_routing_put_audio_mixer),
  13293. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13294. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13295. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13296. msm_routing_put_audio_mixer),
  13297. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13298. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13299. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13300. msm_routing_put_audio_mixer),
  13301. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13302. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13303. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13304. msm_routing_put_audio_mixer),
  13305. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13306. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13307. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13308. msm_routing_put_audio_mixer),
  13309. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13310. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13311. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13312. msm_routing_put_audio_mixer),
  13313. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13314. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13315. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13316. msm_routing_put_audio_mixer),
  13317. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13318. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13319. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13320. msm_routing_put_audio_mixer),
  13321. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13322. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13323. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13324. msm_routing_put_audio_mixer),
  13325. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13326. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13327. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13328. msm_routing_put_audio_mixer),
  13329. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13330. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13331. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13332. msm_routing_put_audio_mixer),
  13333. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13334. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13335. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13336. msm_routing_put_audio_mixer),
  13337. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13338. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13339. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13340. msm_routing_put_audio_mixer),
  13341. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13342. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13343. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13344. msm_routing_put_audio_mixer),
  13345. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13346. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13347. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13348. msm_routing_put_audio_mixer),
  13349. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13350. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13351. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13352. msm_routing_put_audio_mixer),
  13353. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13354. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13355. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13356. msm_routing_put_audio_mixer),
  13357. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13358. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13359. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13360. msm_routing_put_audio_mixer),
  13361. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13362. MSM_BACKEND_DAI_USB_TX,
  13363. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13364. msm_routing_put_audio_mixer),
  13365. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13366. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13367. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13368. msm_routing_put_audio_mixer),
  13369. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13370. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13371. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13372. msm_routing_put_audio_mixer),
  13373. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13374. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13375. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13376. msm_routing_put_audio_mixer),
  13377. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13378. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13379. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13380. msm_routing_put_audio_mixer),
  13381. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13382. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13383. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13384. msm_routing_put_audio_mixer),
  13385. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13386. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13387. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13388. msm_routing_put_audio_mixer),
  13389. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13390. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13391. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13392. msm_routing_put_audio_mixer),
  13393. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13394. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13395. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13396. msm_routing_put_audio_mixer),
  13397. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13398. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13399. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13400. msm_routing_put_audio_mixer),
  13401. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13402. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13403. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13404. msm_routing_put_audio_mixer),
  13405. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13406. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13407. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13408. msm_routing_put_audio_mixer),
  13409. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13410. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13411. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13412. msm_routing_put_audio_mixer),
  13413. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13414. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13415. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13416. msm_routing_put_audio_mixer),
  13417. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13418. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13419. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13420. msm_routing_put_audio_mixer),
  13421. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13422. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13423. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13424. msm_routing_put_audio_mixer),
  13425. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13426. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13427. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13428. msm_routing_put_audio_mixer),
  13429. };
  13430. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  13431. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13433. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13434. msm_routing_put_audio_mixer),
  13435. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13436. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13437. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13438. msm_routing_put_audio_mixer),
  13439. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13440. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13441. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13442. msm_routing_put_audio_mixer),
  13443. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13444. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13445. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13446. msm_routing_put_audio_mixer),
  13447. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13448. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13449. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13450. msm_routing_put_audio_mixer),
  13451. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13452. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13453. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13454. msm_routing_put_audio_mixer),
  13455. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13456. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13457. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13458. msm_routing_put_audio_mixer),
  13459. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13460. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13461. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13462. msm_routing_put_audio_mixer),
  13463. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13464. MSM_BACKEND_DAI_INT_FM_TX,
  13465. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13466. msm_routing_put_audio_mixer),
  13467. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13468. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13469. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13470. msm_routing_put_audio_mixer),
  13471. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_AFE_PCM_TX,
  13473. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13474. msm_routing_put_audio_mixer),
  13475. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13476. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13477. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13478. msm_routing_put_audio_mixer),
  13479. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13480. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13481. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13482. msm_routing_put_audio_mixer),
  13483. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13484. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13485. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13486. msm_routing_put_audio_mixer),
  13487. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13488. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13489. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13490. msm_routing_put_audio_mixer),
  13491. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13492. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13493. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13494. msm_routing_put_audio_mixer),
  13495. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13496. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13497. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13498. msm_routing_put_audio_mixer),
  13499. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13500. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13501. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13502. msm_routing_put_audio_mixer),
  13503. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13504. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13505. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13506. msm_routing_put_audio_mixer),
  13507. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13508. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13509. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13510. msm_routing_put_audio_mixer),
  13511. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13512. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13513. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13514. msm_routing_put_audio_mixer),
  13515. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13516. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13517. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13518. msm_routing_put_audio_mixer),
  13519. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13520. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13521. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13522. msm_routing_put_audio_mixer),
  13523. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13524. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13525. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13526. msm_routing_put_audio_mixer),
  13527. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13528. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13529. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13530. msm_routing_put_audio_mixer),
  13531. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13532. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13533. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13534. msm_routing_put_audio_mixer),
  13535. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13536. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13537. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13538. msm_routing_put_audio_mixer),
  13539. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13540. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13541. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13542. msm_routing_put_audio_mixer),
  13543. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13544. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13545. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13546. msm_routing_put_audio_mixer),
  13547. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13548. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13549. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13550. msm_routing_put_audio_mixer),
  13551. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13552. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13553. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13554. msm_routing_put_audio_mixer),
  13555. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13556. MSM_BACKEND_DAI_USB_TX,
  13557. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13558. msm_routing_put_audio_mixer),
  13559. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_MI2S_TX,
  13561. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13562. msm_routing_put_audio_mixer),
  13563. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13564. MSM_BACKEND_DAI_AUXPCM_TX,
  13565. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13566. msm_routing_put_audio_mixer),
  13567. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13568. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13569. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13570. msm_routing_put_audio_mixer),
  13571. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13572. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13573. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13574. msm_routing_put_audio_mixer),
  13575. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13576. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13577. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13578. msm_routing_put_audio_mixer),
  13579. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13580. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13581. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13582. msm_routing_put_audio_mixer),
  13583. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13584. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13585. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13586. msm_routing_put_audio_mixer),
  13587. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13588. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13589. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13590. msm_routing_put_audio_mixer),
  13591. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13592. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13593. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13594. msm_routing_put_audio_mixer),
  13595. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13596. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13597. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13598. msm_routing_put_audio_mixer),
  13599. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13600. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13601. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13602. msm_routing_get_audio_mixer,
  13603. msm_routing_put_audio_mixer),
  13604. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13605. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13606. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13607. msm_routing_get_audio_mixer,
  13608. msm_routing_put_audio_mixer),
  13609. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13610. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13611. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13612. msm_routing_get_audio_mixer,
  13613. msm_routing_put_audio_mixer),
  13614. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13615. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13616. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13617. msm_routing_get_audio_mixer,
  13618. msm_routing_put_audio_mixer),
  13619. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13620. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13621. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13622. msm_routing_get_audio_mixer,
  13623. msm_routing_put_audio_mixer),
  13624. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13625. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13626. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13627. msm_routing_get_audio_mixer,
  13628. msm_routing_put_audio_mixer),
  13629. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13630. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13631. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13632. msm_routing_put_audio_mixer),
  13633. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13634. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13635. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13636. msm_routing_put_audio_mixer),
  13637. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13638. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13639. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13640. msm_routing_put_audio_mixer),
  13641. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13642. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13643. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13644. msm_routing_put_audio_mixer),
  13645. };
  13646. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  13647. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13648. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13649. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13650. msm_routing_put_audio_mixer),
  13651. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13652. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13653. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13654. msm_routing_put_audio_mixer),
  13655. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13656. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13657. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13658. msm_routing_put_audio_mixer),
  13659. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13660. MSM_BACKEND_DAI_INT_FM_TX,
  13661. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13662. msm_routing_put_audio_mixer),
  13663. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13664. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13665. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13666. msm_routing_put_audio_mixer),
  13667. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13668. MSM_BACKEND_DAI_AFE_PCM_TX,
  13669. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13670. msm_routing_put_audio_mixer),
  13671. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13672. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13673. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13674. msm_routing_put_audio_mixer),
  13675. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13676. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13677. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13678. msm_routing_put_audio_mixer),
  13679. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13680. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13681. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13682. msm_routing_put_audio_mixer),
  13683. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13684. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13685. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13686. msm_routing_put_audio_mixer),
  13687. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13688. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13689. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13690. msm_routing_put_audio_mixer),
  13691. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13692. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13693. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13694. msm_routing_put_audio_mixer),
  13695. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13696. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13697. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13698. msm_routing_put_audio_mixer),
  13699. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13700. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13701. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13702. msm_routing_put_audio_mixer),
  13703. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13704. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13705. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13706. msm_routing_put_audio_mixer),
  13707. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13708. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13709. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13710. msm_routing_put_audio_mixer),
  13711. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13712. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13713. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13714. msm_routing_put_audio_mixer),
  13715. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13716. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13717. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13718. msm_routing_put_audio_mixer),
  13719. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13720. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13721. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13722. msm_routing_put_audio_mixer),
  13723. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13724. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13725. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13726. msm_routing_put_audio_mixer),
  13727. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13728. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13729. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13730. msm_routing_put_audio_mixer),
  13731. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13732. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13733. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13734. msm_routing_put_audio_mixer),
  13735. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13736. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13737. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13738. msm_routing_put_audio_mixer),
  13739. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13740. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13741. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13742. msm_routing_put_audio_mixer),
  13743. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13744. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13745. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13746. msm_routing_put_audio_mixer),
  13747. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13748. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13749. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13750. msm_routing_put_audio_mixer),
  13751. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13752. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13753. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13754. msm_routing_put_audio_mixer),
  13755. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13756. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13757. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13758. msm_routing_put_audio_mixer),
  13759. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13760. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13761. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13762. msm_routing_put_audio_mixer),
  13763. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13764. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13765. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13766. msm_routing_put_audio_mixer),
  13767. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13768. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13769. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13770. msm_routing_put_audio_mixer),
  13771. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13772. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13773. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13774. msm_routing_put_audio_mixer),
  13775. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13776. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13777. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13778. msm_routing_put_audio_mixer),
  13779. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13780. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13781. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13782. msm_routing_put_audio_mixer),
  13783. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13784. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13785. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13786. msm_routing_put_audio_mixer),
  13787. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13788. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13789. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13790. msm_routing_put_audio_mixer),
  13791. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13792. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13793. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13794. msm_routing_put_audio_mixer),
  13795. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13796. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13797. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13798. msm_routing_put_audio_mixer),
  13799. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13800. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13801. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13802. msm_routing_put_audio_mixer),
  13803. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13804. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13805. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13806. msm_routing_put_audio_mixer),
  13807. };
  13808. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  13809. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13810. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13811. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13812. msm_routing_put_audio_mixer),
  13813. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13814. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13815. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13816. msm_routing_put_audio_mixer),
  13817. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13818. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13819. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13820. msm_routing_put_audio_mixer),
  13821. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13822. MSM_BACKEND_DAI_INT_FM_TX,
  13823. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13824. msm_routing_put_audio_mixer),
  13825. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13826. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13827. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13828. msm_routing_put_audio_mixer),
  13829. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13830. MSM_BACKEND_DAI_AFE_PCM_TX,
  13831. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13832. msm_routing_put_audio_mixer),
  13833. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13834. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13835. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13836. msm_routing_put_audio_mixer),
  13837. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13838. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13839. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13840. msm_routing_put_audio_mixer),
  13841. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13842. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13843. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13844. msm_routing_put_audio_mixer),
  13845. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13846. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13847. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13848. msm_routing_put_audio_mixer),
  13849. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13850. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13851. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13852. msm_routing_put_audio_mixer),
  13853. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13854. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13855. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13856. msm_routing_put_audio_mixer),
  13857. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13858. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13859. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13860. msm_routing_put_audio_mixer),
  13861. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13862. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13863. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13864. msm_routing_put_audio_mixer),
  13865. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13866. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13867. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13868. msm_routing_put_audio_mixer),
  13869. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13870. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13871. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13872. msm_routing_put_audio_mixer),
  13873. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13874. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13875. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13876. msm_routing_put_audio_mixer),
  13877. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13878. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13879. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13880. msm_routing_put_audio_mixer),
  13881. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13882. MSM_BACKEND_DAI_USB_TX,
  13883. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13884. msm_routing_put_audio_mixer),
  13885. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13886. MSM_BACKEND_DAI_MI2S_TX,
  13887. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13888. msm_routing_put_audio_mixer),
  13889. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13890. MSM_BACKEND_DAI_AUXPCM_TX,
  13891. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13892. msm_routing_put_audio_mixer),
  13893. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13894. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13895. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13896. msm_routing_put_audio_mixer),
  13897. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  13898. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13899. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13900. msm_routing_put_audio_mixer),
  13901. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13902. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13903. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13904. msm_routing_put_audio_mixer),
  13905. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13906. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13907. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13908. msm_routing_put_audio_mixer),
  13909. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13910. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13911. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13912. msm_routing_put_audio_mixer),
  13913. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13914. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13915. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13916. msm_routing_put_audio_mixer),
  13917. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13918. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13919. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13920. msm_routing_put_audio_mixer),
  13921. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13922. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13923. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13924. msm_routing_put_audio_mixer),
  13925. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13926. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13927. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13928. msm_routing_put_audio_mixer),
  13929. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13930. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13931. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13932. msm_routing_put_audio_mixer),
  13933. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13934. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13935. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13936. msm_routing_put_audio_mixer),
  13937. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13938. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13939. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13940. msm_routing_put_audio_mixer),
  13941. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13942. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13943. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13944. msm_routing_get_audio_mixer,
  13945. msm_routing_put_audio_mixer),
  13946. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13947. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13948. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13949. msm_routing_get_audio_mixer,
  13950. msm_routing_put_audio_mixer),
  13951. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13952. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13953. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13954. msm_routing_get_audio_mixer,
  13955. msm_routing_put_audio_mixer),
  13956. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13957. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13958. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13959. msm_routing_get_audio_mixer,
  13960. msm_routing_put_audio_mixer),
  13961. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13962. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13963. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13964. msm_routing_get_audio_mixer,
  13965. msm_routing_put_audio_mixer),
  13966. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13967. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13968. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13969. msm_routing_get_audio_mixer,
  13970. msm_routing_put_audio_mixer),
  13971. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13972. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13973. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13974. msm_routing_put_audio_mixer),
  13975. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13976. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13977. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13978. msm_routing_put_audio_mixer),
  13979. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13980. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13981. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13982. msm_routing_put_audio_mixer),
  13983. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13984. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13985. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13986. msm_routing_put_audio_mixer),
  13987. };
  13988. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  13989. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13990. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13991. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13992. msm_routing_put_audio_mixer),
  13993. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13994. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13995. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13996. msm_routing_put_audio_mixer),
  13997. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13998. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13999. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14000. msm_routing_put_audio_mixer),
  14001. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14002. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14003. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14004. msm_routing_put_audio_mixer),
  14005. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14006. MSM_BACKEND_DAI_INT_FM_TX,
  14007. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14008. msm_routing_put_audio_mixer),
  14009. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14010. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14011. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14012. msm_routing_put_audio_mixer),
  14013. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14014. MSM_BACKEND_DAI_AFE_PCM_TX,
  14015. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14016. msm_routing_put_audio_mixer),
  14017. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14018. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14019. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14020. msm_routing_put_audio_mixer),
  14021. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14022. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14023. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14024. msm_routing_put_audio_mixer),
  14025. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14026. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14027. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14028. msm_routing_put_audio_mixer),
  14029. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14030. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14031. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14032. msm_routing_put_audio_mixer),
  14033. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14034. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14035. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14036. msm_routing_put_audio_mixer),
  14037. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14038. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14039. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14040. msm_routing_put_audio_mixer),
  14041. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14042. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14043. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14044. msm_routing_put_audio_mixer),
  14045. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14046. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14047. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14048. msm_routing_put_audio_mixer),
  14049. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14050. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14051. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14052. msm_routing_put_audio_mixer),
  14053. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14054. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14055. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14056. msm_routing_put_audio_mixer),
  14057. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14058. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14059. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14060. msm_routing_get_audio_mixer,
  14061. msm_routing_put_audio_mixer),
  14062. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14063. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14064. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14065. msm_routing_get_audio_mixer,
  14066. msm_routing_put_audio_mixer),
  14067. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14068. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14069. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14070. msm_routing_get_audio_mixer,
  14071. msm_routing_put_audio_mixer),
  14072. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14073. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14074. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14075. msm_routing_get_audio_mixer,
  14076. msm_routing_put_audio_mixer),
  14077. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14078. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14079. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14080. msm_routing_get_audio_mixer,
  14081. msm_routing_put_audio_mixer),
  14082. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14083. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14084. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14085. msm_routing_get_audio_mixer,
  14086. msm_routing_put_audio_mixer),
  14087. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14088. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14089. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14090. msm_routing_put_audio_mixer),
  14091. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14092. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14093. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14094. msm_routing_put_audio_mixer),
  14095. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14096. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14097. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14098. msm_routing_put_audio_mixer),
  14099. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14100. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14101. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14102. msm_routing_put_audio_mixer),
  14103. };
  14104. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  14105. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14106. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14107. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14108. msm_routing_put_audio_mixer),
  14109. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14110. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14111. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14112. msm_routing_put_audio_mixer),
  14113. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14114. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14115. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14116. msm_routing_put_audio_mixer),
  14117. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14118. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14119. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14120. msm_routing_put_audio_mixer),
  14121. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14122. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14123. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14124. msm_routing_put_audio_mixer),
  14125. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14126. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14127. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14128. msm_routing_put_audio_mixer),
  14129. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14130. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14131. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14132. msm_routing_put_audio_mixer),
  14133. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14134. MSM_BACKEND_DAI_INT_FM_TX,
  14135. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14136. msm_routing_put_audio_mixer),
  14137. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14138. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14139. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14140. msm_routing_put_audio_mixer),
  14141. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14142. MSM_BACKEND_DAI_AFE_PCM_TX,
  14143. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14144. msm_routing_put_audio_mixer),
  14145. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14146. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14147. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14148. msm_routing_put_audio_mixer),
  14149. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14150. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14151. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14152. msm_routing_put_audio_mixer),
  14153. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14154. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14155. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14156. msm_routing_put_audio_mixer),
  14157. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14158. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14159. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14160. msm_routing_put_audio_mixer),
  14161. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14162. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14163. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14164. msm_routing_put_audio_mixer),
  14165. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14166. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14167. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14168. msm_routing_put_audio_mixer),
  14169. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14170. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14171. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14172. msm_routing_put_audio_mixer),
  14173. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14174. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14175. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14176. msm_routing_put_audio_mixer),
  14177. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14178. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14179. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14180. msm_routing_get_audio_mixer,
  14181. msm_routing_put_audio_mixer),
  14182. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14183. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14184. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14185. msm_routing_get_audio_mixer,
  14186. msm_routing_put_audio_mixer),
  14187. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14188. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14189. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14190. msm_routing_get_audio_mixer,
  14191. msm_routing_put_audio_mixer),
  14192. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14193. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14194. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14195. msm_routing_get_audio_mixer,
  14196. msm_routing_put_audio_mixer),
  14197. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14198. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14199. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14200. msm_routing_get_audio_mixer,
  14201. msm_routing_put_audio_mixer),
  14202. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14203. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14204. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14205. msm_routing_get_audio_mixer,
  14206. msm_routing_put_audio_mixer),
  14207. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14208. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14209. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14210. msm_routing_put_audio_mixer),
  14211. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14212. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14213. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14214. msm_routing_put_audio_mixer),
  14215. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14216. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14217. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14218. msm_routing_put_audio_mixer),
  14219. };
  14220. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  14221. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14222. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14223. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14224. msm_routing_put_audio_mixer),
  14225. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14226. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14227. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14228. msm_routing_put_audio_mixer),
  14229. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14230. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14231. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14232. msm_routing_put_audio_mixer),
  14233. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14234. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14235. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14236. msm_routing_put_audio_mixer),
  14237. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14238. MSM_BACKEND_DAI_INT_FM_TX,
  14239. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14240. msm_routing_put_audio_mixer),
  14241. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14242. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14243. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14244. msm_routing_put_audio_mixer),
  14245. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14246. MSM_BACKEND_DAI_AFE_PCM_TX,
  14247. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14248. msm_routing_put_audio_mixer),
  14249. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14250. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14251. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14252. msm_routing_put_audio_mixer),
  14253. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14254. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14255. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14256. msm_routing_put_audio_mixer),
  14257. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14258. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14259. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14260. msm_routing_put_audio_mixer),
  14261. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14262. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14263. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14264. msm_routing_put_audio_mixer),
  14265. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14266. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14267. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14268. msm_routing_put_audio_mixer),
  14269. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14270. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14271. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14272. msm_routing_put_audio_mixer),
  14273. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14274. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14275. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14276. msm_routing_put_audio_mixer),
  14277. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14278. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14279. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14280. msm_routing_put_audio_mixer),
  14281. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14282. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14283. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14284. msm_routing_put_audio_mixer),
  14285. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14286. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14287. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14288. msm_routing_put_audio_mixer),
  14289. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14290. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14291. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14292. msm_routing_put_audio_mixer),
  14293. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14294. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14295. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14296. msm_routing_get_audio_mixer,
  14297. msm_routing_put_audio_mixer),
  14298. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14299. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14300. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14301. msm_routing_get_audio_mixer,
  14302. msm_routing_put_audio_mixer),
  14303. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14304. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14305. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14306. msm_routing_get_audio_mixer,
  14307. msm_routing_put_audio_mixer),
  14308. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14309. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14310. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14311. msm_routing_get_audio_mixer,
  14312. msm_routing_put_audio_mixer),
  14313. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14314. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14315. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14316. msm_routing_get_audio_mixer,
  14317. msm_routing_put_audio_mixer),
  14318. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14319. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14320. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14321. msm_routing_get_audio_mixer,
  14322. msm_routing_put_audio_mixer),
  14323. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14324. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14325. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14326. msm_routing_put_audio_mixer),
  14327. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14328. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14329. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14330. msm_routing_put_audio_mixer),
  14331. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14332. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14333. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14334. msm_routing_put_audio_mixer),
  14335. };
  14336. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  14337. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14338. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14339. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14340. msm_routing_put_audio_mixer),
  14341. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14342. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14343. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14344. msm_routing_put_audio_mixer),
  14345. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14346. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14347. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14348. msm_routing_put_audio_mixer),
  14349. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14350. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14351. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14352. msm_routing_put_audio_mixer),
  14353. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14354. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14355. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14356. msm_routing_put_audio_mixer),
  14357. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14358. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14359. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14360. msm_routing_put_audio_mixer),
  14361. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14362. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14363. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14364. msm_routing_put_audio_mixer),
  14365. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14366. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14367. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14368. msm_routing_put_audio_mixer),
  14369. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14370. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14371. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14372. msm_routing_put_audio_mixer),
  14373. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14374. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14375. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14376. msm_routing_put_audio_mixer),
  14377. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14378. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14379. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14380. msm_routing_put_audio_mixer),
  14381. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14382. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14383. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14384. msm_routing_put_audio_mixer),
  14385. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14386. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14387. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14388. msm_routing_put_audio_mixer),
  14389. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14390. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14391. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14392. msm_routing_put_audio_mixer),
  14393. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14394. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14395. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14396. msm_routing_put_audio_mixer),
  14397. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14398. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14399. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14400. msm_routing_put_audio_mixer),
  14401. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14402. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14403. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14404. msm_routing_put_audio_mixer),
  14405. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14406. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14407. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14408. msm_routing_put_audio_mixer),
  14409. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14410. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14411. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14412. msm_routing_put_audio_mixer),
  14413. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14414. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14415. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14416. msm_routing_put_audio_mixer),
  14417. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14418. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14419. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14420. msm_routing_put_audio_mixer),
  14421. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14422. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14423. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14424. msm_routing_put_audio_mixer),
  14425. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14426. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14427. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14428. msm_routing_put_audio_mixer),
  14429. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14430. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14431. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14432. msm_routing_put_audio_mixer),
  14433. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14434. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14435. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14436. msm_routing_put_audio_mixer),
  14437. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14438. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14439. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14440. msm_routing_put_audio_mixer),
  14441. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14442. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14443. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14444. msm_routing_put_audio_mixer),
  14445. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14446. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14447. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14448. msm_routing_put_audio_mixer),
  14449. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14450. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14451. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14452. msm_routing_put_audio_mixer),
  14453. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14454. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14455. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14456. msm_routing_put_audio_mixer),
  14457. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14458. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14459. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14460. msm_routing_put_audio_mixer),
  14461. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14462. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14463. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14464. msm_routing_put_audio_mixer),
  14465. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14466. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14467. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14468. msm_routing_put_audio_mixer),
  14469. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14470. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14471. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14472. msm_routing_put_audio_mixer),
  14473. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14474. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14475. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14476. msm_routing_put_audio_mixer),
  14477. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14478. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14479. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14480. msm_routing_put_audio_mixer),
  14481. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14482. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14483. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14484. msm_routing_put_audio_mixer),
  14485. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14486. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14487. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14488. msm_routing_put_audio_mixer),
  14489. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14490. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14491. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14492. msm_routing_put_audio_mixer),
  14493. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14494. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14495. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14496. msm_routing_put_audio_mixer),
  14497. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14498. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14499. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14500. msm_routing_put_audio_mixer),
  14501. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14502. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14503. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14504. msm_routing_put_audio_mixer),
  14505. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14506. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14507. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14508. msm_routing_put_audio_mixer),
  14509. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14510. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14511. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14512. msm_routing_put_audio_mixer),
  14513. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14514. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14515. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14516. msm_routing_put_audio_mixer),
  14517. };
  14518. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  14519. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14520. MSM_BACKEND_DAI_AUXPCM_TX,
  14521. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14522. msm_routing_put_audio_mixer),
  14523. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14524. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14525. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14526. msm_routing_put_audio_mixer),
  14527. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14528. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14529. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14530. msm_routing_put_audio_mixer),
  14531. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14532. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14533. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14534. msm_routing_put_audio_mixer),
  14535. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14536. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14537. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14538. msm_routing_put_audio_mixer),
  14539. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14540. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14541. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14542. msm_routing_put_audio_mixer),
  14543. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14544. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14545. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14546. msm_routing_put_audio_mixer),
  14547. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14548. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14549. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14550. msm_routing_put_audio_mixer),
  14551. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14552. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14553. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14554. msm_routing_put_audio_mixer),
  14555. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14556. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14557. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14558. msm_routing_put_audio_mixer),
  14559. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14560. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14561. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14562. msm_routing_put_audio_mixer),
  14563. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14564. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14565. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14566. msm_routing_put_audio_mixer),
  14567. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14568. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14569. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14570. msm_routing_put_audio_mixer),
  14571. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14572. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14573. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14574. msm_routing_put_audio_mixer),
  14575. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14576. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14577. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14578. msm_routing_put_audio_mixer),
  14579. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14580. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14581. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14582. msm_routing_put_audio_mixer),
  14583. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14584. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14585. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14586. msm_routing_put_audio_mixer),
  14587. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14588. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14589. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14590. msm_routing_put_audio_mixer),
  14591. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14592. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14593. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14594. msm_routing_put_audio_mixer),
  14595. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14596. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14597. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14598. msm_routing_put_audio_mixer),
  14599. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14600. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14601. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14602. msm_routing_put_audio_mixer),
  14603. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14604. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14605. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14606. msm_routing_put_audio_mixer),
  14607. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14608. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14609. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14610. msm_routing_put_audio_mixer),
  14611. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14612. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14613. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14614. msm_routing_put_audio_mixer),
  14615. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14616. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14617. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14618. msm_routing_put_audio_mixer),
  14619. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14620. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14621. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14622. msm_routing_put_audio_mixer),
  14623. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14624. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14625. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14626. msm_routing_put_audio_mixer),
  14627. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14628. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14629. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14630. msm_routing_put_audio_mixer),
  14631. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14632. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14633. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14634. msm_routing_put_audio_mixer),
  14635. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14636. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14637. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14638. msm_routing_put_audio_mixer),
  14639. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14640. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14641. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14642. msm_routing_put_audio_mixer),
  14643. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14644. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14645. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14646. msm_routing_put_audio_mixer),
  14647. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14648. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14649. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14650. msm_routing_put_audio_mixer),
  14651. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14652. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14653. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14654. msm_routing_put_audio_mixer),
  14655. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14656. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14657. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14658. msm_routing_put_audio_mixer),
  14659. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14660. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14661. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14662. msm_routing_put_audio_mixer),
  14663. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14664. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14665. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14666. msm_routing_put_audio_mixer),
  14667. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14668. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14669. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14670. msm_routing_put_audio_mixer),
  14671. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14672. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14673. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14674. msm_routing_put_audio_mixer),
  14675. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14676. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14677. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14678. msm_routing_put_audio_mixer),
  14679. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14680. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14681. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14682. msm_routing_put_audio_mixer),
  14683. };
  14684. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  14685. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14686. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14687. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14688. msm_routing_put_audio_mixer),
  14689. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14690. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14691. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14692. msm_routing_put_audio_mixer),
  14693. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14694. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14695. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14696. msm_routing_put_audio_mixer),
  14697. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14698. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14699. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14700. msm_routing_put_audio_mixer),
  14701. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14702. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14703. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14704. msm_routing_put_audio_mixer),
  14705. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14706. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14707. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14708. msm_routing_put_audio_mixer),
  14709. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14710. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14711. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14712. msm_routing_put_audio_mixer),
  14713. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14714. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14715. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14716. msm_routing_put_audio_mixer),
  14717. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14718. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14719. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14720. msm_routing_put_audio_mixer),
  14721. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14722. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14723. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14724. msm_routing_put_audio_mixer),
  14725. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14726. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14727. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14728. msm_routing_put_audio_mixer),
  14729. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14730. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14731. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14732. msm_routing_put_audio_mixer),
  14733. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14734. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14735. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14736. msm_routing_put_audio_mixer),
  14737. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14738. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14739. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14740. msm_routing_put_audio_mixer),
  14741. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14742. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14743. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14744. msm_routing_put_audio_mixer),
  14745. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14746. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14747. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14748. msm_routing_put_audio_mixer),
  14749. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14750. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14751. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14752. msm_routing_put_audio_mixer),
  14753. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14754. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14755. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14756. msm_routing_put_audio_mixer),
  14757. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14758. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14759. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14760. msm_routing_put_audio_mixer),
  14761. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14762. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14763. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14764. msm_routing_put_audio_mixer),
  14765. };
  14766. static const struct snd_kcontrol_new mmul23_mixer_controls[] = {
  14767. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14768. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14769. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14770. msm_routing_put_audio_mixer),
  14771. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14772. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14773. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14774. msm_routing_put_audio_mixer),
  14775. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14776. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14777. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14778. msm_routing_put_audio_mixer),
  14779. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14780. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14781. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14782. msm_routing_put_audio_mixer),
  14783. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14784. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14785. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14786. msm_routing_put_audio_mixer),
  14787. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14788. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14789. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14790. msm_routing_put_audio_mixer),
  14791. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14792. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14793. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14794. msm_routing_put_audio_mixer),
  14795. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14796. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14797. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14798. msm_routing_put_audio_mixer),
  14799. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14800. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14801. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14802. msm_routing_put_audio_mixer),
  14803. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14804. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14805. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14806. msm_routing_put_audio_mixer),
  14807. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14808. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14809. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14810. msm_routing_put_audio_mixer),
  14811. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14812. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14813. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14814. msm_routing_put_audio_mixer),
  14815. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14816. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14817. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14818. msm_routing_put_audio_mixer),
  14819. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14820. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14821. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14822. msm_routing_put_audio_mixer),
  14823. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14824. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14825. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14826. msm_routing_put_audio_mixer),
  14827. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14828. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14829. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14830. msm_routing_put_audio_mixer),
  14831. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14832. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14833. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14834. msm_routing_put_audio_mixer),
  14835. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14836. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14837. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14838. msm_routing_put_audio_mixer),
  14839. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14840. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14841. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14842. msm_routing_put_audio_mixer),
  14843. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14844. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14845. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14846. msm_routing_put_audio_mixer),
  14847. };
  14848. static const struct snd_kcontrol_new mmul24_mixer_controls[] = {
  14849. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14850. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14851. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14852. msm_routing_put_audio_mixer),
  14853. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14854. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14855. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14856. msm_routing_put_audio_mixer),
  14857. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14858. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14859. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14860. msm_routing_put_audio_mixer),
  14861. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14862. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14863. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14864. msm_routing_put_audio_mixer),
  14865. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14866. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14867. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14868. msm_routing_put_audio_mixer),
  14869. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14870. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14871. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14872. msm_routing_put_audio_mixer),
  14873. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14874. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14875. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14876. msm_routing_put_audio_mixer),
  14877. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14878. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14879. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14880. msm_routing_put_audio_mixer),
  14881. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14882. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14883. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14884. msm_routing_put_audio_mixer),
  14885. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14886. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14887. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14888. msm_routing_put_audio_mixer),
  14889. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14890. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14891. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14892. msm_routing_put_audio_mixer),
  14893. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14894. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14895. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14896. msm_routing_put_audio_mixer),
  14897. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14898. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14899. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14900. msm_routing_put_audio_mixer),
  14901. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14902. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14903. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14904. msm_routing_put_audio_mixer),
  14905. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14906. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14907. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14908. msm_routing_put_audio_mixer),
  14909. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14910. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14911. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14912. msm_routing_put_audio_mixer),
  14913. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14914. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14915. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14916. msm_routing_put_audio_mixer),
  14917. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14918. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14919. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14920. msm_routing_put_audio_mixer),
  14921. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14922. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14923. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14924. msm_routing_put_audio_mixer),
  14925. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14926. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14927. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14928. msm_routing_put_audio_mixer),
  14929. };
  14930. static const struct snd_kcontrol_new mmul25_mixer_controls[] = {
  14931. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14932. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14933. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14934. msm_routing_put_audio_mixer),
  14935. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14936. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14937. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14938. msm_routing_put_audio_mixer),
  14939. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14940. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14941. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14942. msm_routing_put_audio_mixer),
  14943. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14944. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14945. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14946. msm_routing_put_audio_mixer),
  14947. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14948. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14949. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14950. msm_routing_put_audio_mixer),
  14951. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14952. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14953. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14954. msm_routing_put_audio_mixer),
  14955. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14956. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14957. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14958. msm_routing_put_audio_mixer),
  14959. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14960. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14961. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14962. msm_routing_put_audio_mixer),
  14963. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14964. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14965. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14966. msm_routing_put_audio_mixer),
  14967. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14968. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14969. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14970. msm_routing_put_audio_mixer),
  14971. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14972. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14973. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14974. msm_routing_put_audio_mixer),
  14975. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14976. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14977. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14978. msm_routing_put_audio_mixer),
  14979. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14980. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14981. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14982. msm_routing_put_audio_mixer),
  14983. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14984. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14985. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14986. msm_routing_put_audio_mixer),
  14987. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14988. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14989. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14990. msm_routing_put_audio_mixer),
  14991. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14992. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14993. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14994. msm_routing_put_audio_mixer),
  14995. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14996. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14997. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14998. msm_routing_put_audio_mixer),
  14999. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15001. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15002. msm_routing_put_audio_mixer),
  15003. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15004. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15005. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15006. msm_routing_put_audio_mixer),
  15007. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15008. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15009. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15010. msm_routing_put_audio_mixer),
  15011. };
  15012. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  15013. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15014. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15015. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15016. msm_routing_put_audio_mixer),
  15017. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15018. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15019. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15020. msm_routing_put_audio_mixer),
  15021. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  15022. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  15023. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15024. msm_routing_put_audio_mixer),
  15025. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15026. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15027. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15028. msm_routing_put_audio_mixer),
  15029. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15030. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15031. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15032. msm_routing_put_audio_mixer),
  15033. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15034. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15035. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15036. msm_routing_put_audio_mixer),
  15037. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15038. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15039. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15040. msm_routing_put_audio_mixer),
  15041. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15042. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15043. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15044. msm_routing_put_audio_mixer),
  15045. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15046. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  15047. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15048. msm_routing_put_audio_mixer),
  15049. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15050. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  15051. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15052. msm_routing_put_audio_mixer),
  15053. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15054. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15055. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15056. msm_routing_put_audio_mixer),
  15057. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15058. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15059. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15060. msm_routing_put_audio_mixer),
  15061. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  15062. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  15063. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15064. msm_routing_put_audio_mixer),
  15065. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15066. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15067. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15068. msm_routing_put_audio_mixer),
  15069. };
  15070. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  15071. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15072. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15073. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15074. msm_routing_put_audio_mixer),
  15075. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15076. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15077. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15078. msm_routing_put_audio_mixer),
  15079. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15080. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15081. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15082. msm_routing_put_audio_mixer),
  15083. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15084. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15085. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15086. msm_routing_put_audio_mixer),
  15087. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15088. MSM_BACKEND_DAI_INT_FM_TX,
  15089. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15090. msm_routing_put_audio_mixer),
  15091. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15092. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15093. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15094. msm_routing_put_audio_mixer),
  15095. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15096. MSM_BACKEND_DAI_AFE_PCM_TX,
  15097. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15098. msm_routing_put_audio_mixer),
  15099. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15100. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15101. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15102. msm_routing_put_audio_mixer),
  15103. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15104. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15105. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15106. msm_routing_put_audio_mixer),
  15107. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15108. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15109. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15110. msm_routing_put_audio_mixer),
  15111. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15112. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15113. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15114. msm_routing_put_audio_mixer),
  15115. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15116. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15117. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15118. msm_routing_put_audio_mixer),
  15119. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15120. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15121. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15122. msm_routing_put_audio_mixer),
  15123. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15124. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15125. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15126. msm_routing_put_audio_mixer),
  15127. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15128. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15129. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15130. msm_routing_put_audio_mixer),
  15131. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15132. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15133. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15134. msm_routing_put_audio_mixer),
  15135. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15136. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15137. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15138. msm_routing_put_audio_mixer),
  15139. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15140. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15141. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15142. msm_routing_put_audio_mixer),
  15143. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15144. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15145. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15146. msm_routing_get_audio_mixer,
  15147. msm_routing_put_audio_mixer),
  15148. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15149. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15150. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15151. msm_routing_get_audio_mixer,
  15152. msm_routing_put_audio_mixer),
  15153. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15154. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15155. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15156. msm_routing_get_audio_mixer,
  15157. msm_routing_put_audio_mixer),
  15158. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15159. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15160. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15161. msm_routing_get_audio_mixer,
  15162. msm_routing_put_audio_mixer),
  15163. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15164. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15165. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15166. msm_routing_get_audio_mixer,
  15167. msm_routing_put_audio_mixer),
  15168. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15169. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15170. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15171. msm_routing_get_audio_mixer,
  15172. msm_routing_put_audio_mixer),
  15173. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15174. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15175. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15176. msm_routing_put_audio_mixer),
  15177. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15178. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15179. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15180. msm_routing_put_audio_mixer),
  15181. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15182. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15183. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15184. msm_routing_put_audio_mixer),
  15185. };
  15186. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  15187. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15188. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15189. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15190. msm_routing_put_audio_mixer),
  15191. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15192. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15193. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15194. msm_routing_put_audio_mixer),
  15195. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15196. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15197. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15198. msm_routing_put_audio_mixer),
  15199. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15200. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15201. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15202. msm_routing_put_audio_mixer),
  15203. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15204. MSM_BACKEND_DAI_INT_FM_TX,
  15205. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15206. msm_routing_put_audio_mixer),
  15207. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15208. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15209. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15210. msm_routing_put_audio_mixer),
  15211. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15212. MSM_BACKEND_DAI_AFE_PCM_TX,
  15213. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15214. msm_routing_put_audio_mixer),
  15215. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15216. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15217. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15218. msm_routing_put_audio_mixer),
  15219. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15220. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15221. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15222. msm_routing_put_audio_mixer),
  15223. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15224. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15225. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15226. msm_routing_put_audio_mixer),
  15227. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15228. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15229. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15230. msm_routing_put_audio_mixer),
  15231. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15232. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15233. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15234. msm_routing_put_audio_mixer),
  15235. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15236. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15237. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15238. msm_routing_put_audio_mixer),
  15239. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15240. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15241. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15242. msm_routing_put_audio_mixer),
  15243. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15244. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15245. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15246. msm_routing_put_audio_mixer),
  15247. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15248. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15249. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15250. msm_routing_put_audio_mixer),
  15251. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15252. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15253. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15254. msm_routing_put_audio_mixer),
  15255. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15256. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15257. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15258. msm_routing_put_audio_mixer),
  15259. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15260. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15261. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15262. msm_routing_get_audio_mixer,
  15263. msm_routing_put_audio_mixer),
  15264. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15265. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15266. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15267. msm_routing_get_audio_mixer,
  15268. msm_routing_put_audio_mixer),
  15269. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15270. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15271. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15272. msm_routing_get_audio_mixer,
  15273. msm_routing_put_audio_mixer),
  15274. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15275. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15276. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15277. msm_routing_get_audio_mixer,
  15278. msm_routing_put_audio_mixer),
  15279. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15280. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15281. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15282. msm_routing_get_audio_mixer,
  15283. msm_routing_put_audio_mixer),
  15284. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15285. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15286. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15287. msm_routing_get_audio_mixer,
  15288. msm_routing_put_audio_mixer),
  15289. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15290. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15291. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15292. msm_routing_put_audio_mixer),
  15293. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15294. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15295. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15296. msm_routing_put_audio_mixer),
  15297. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15298. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15299. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15300. msm_routing_put_audio_mixer),
  15301. };
  15302. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  15303. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15304. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15305. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15306. msm_routing_put_audio_mixer),
  15307. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15308. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15309. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15310. msm_routing_put_audio_mixer),
  15311. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15312. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15313. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15314. msm_routing_put_audio_mixer),
  15315. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15316. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15317. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15318. msm_routing_put_audio_mixer),
  15319. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15320. MSM_BACKEND_DAI_INT_FM_TX,
  15321. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15322. msm_routing_put_audio_mixer),
  15323. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15324. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15325. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15326. msm_routing_put_audio_mixer),
  15327. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15328. MSM_BACKEND_DAI_AFE_PCM_TX,
  15329. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15330. msm_routing_put_audio_mixer),
  15331. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15332. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15333. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15334. msm_routing_put_audio_mixer),
  15335. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15336. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15337. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15338. msm_routing_put_audio_mixer),
  15339. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15340. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15341. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15342. msm_routing_put_audio_mixer),
  15343. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15344. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15345. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15346. msm_routing_put_audio_mixer),
  15347. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15348. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15349. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15350. msm_routing_put_audio_mixer),
  15351. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15352. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15353. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15354. msm_routing_put_audio_mixer),
  15355. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15356. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15357. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15358. msm_routing_put_audio_mixer),
  15359. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15360. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15361. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15362. msm_routing_put_audio_mixer),
  15363. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15364. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15365. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15366. msm_routing_put_audio_mixer),
  15367. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15368. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15369. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15370. msm_routing_put_audio_mixer),
  15371. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15372. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15373. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15374. msm_routing_get_audio_mixer,
  15375. msm_routing_put_audio_mixer),
  15376. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15377. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15378. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15379. msm_routing_get_audio_mixer,
  15380. msm_routing_put_audio_mixer),
  15381. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15382. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15383. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15384. msm_routing_get_audio_mixer,
  15385. msm_routing_put_audio_mixer),
  15386. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15387. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15388. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15389. msm_routing_get_audio_mixer,
  15390. msm_routing_put_audio_mixer),
  15391. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15392. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15393. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15394. msm_routing_get_audio_mixer,
  15395. msm_routing_put_audio_mixer),
  15396. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15397. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15398. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15399. msm_routing_get_audio_mixer,
  15400. msm_routing_put_audio_mixer),
  15401. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15402. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15403. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15404. msm_routing_put_audio_mixer),
  15405. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15406. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15407. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15408. msm_routing_put_audio_mixer),
  15409. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15410. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15411. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15412. msm_routing_put_audio_mixer),
  15413. };
  15414. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  15415. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15416. MSM_BACKEND_DAI_PRI_I2S_RX,
  15417. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15418. msm_routing_put_voice_mixer),
  15419. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15420. MSM_BACKEND_DAI_PRI_I2S_RX,
  15421. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15422. msm_routing_put_voice_mixer),
  15423. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15424. MSM_BACKEND_DAI_PRI_I2S_RX,
  15425. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15426. msm_routing_put_voice_mixer),
  15427. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15428. MSM_BACKEND_DAI_PRI_I2S_RX,
  15429. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15430. msm_routing_put_voice_mixer),
  15431. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15432. MSM_BACKEND_DAI_PRI_I2S_RX,
  15433. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15434. msm_routing_put_voice_mixer),
  15435. };
  15436. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  15437. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15438. MSM_BACKEND_DAI_SEC_I2S_RX,
  15439. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15440. msm_routing_put_voice_mixer),
  15441. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15442. MSM_BACKEND_DAI_SEC_I2S_RX,
  15443. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15444. msm_routing_put_voice_mixer),
  15445. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15446. MSM_BACKEND_DAI_SEC_I2S_RX,
  15447. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15448. msm_routing_put_voice_mixer),
  15449. };
  15450. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  15451. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15452. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15453. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15454. msm_routing_put_voice_mixer),
  15455. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15456. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15457. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15458. msm_routing_put_voice_mixer),
  15459. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15460. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15461. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15462. msm_routing_put_voice_mixer),
  15463. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15464. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15465. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15466. msm_routing_put_voice_mixer),
  15467. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15468. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15469. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15470. msm_routing_put_voice_mixer),
  15471. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15472. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15473. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15474. msm_routing_put_voice_mixer),
  15475. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15476. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15477. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15478. msm_routing_put_voice_mixer),
  15479. };
  15480. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  15481. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15482. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15483. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15484. msm_routing_put_voice_mixer),
  15485. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15486. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15487. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15488. msm_routing_put_voice_mixer),
  15489. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15490. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15491. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15492. msm_routing_put_voice_mixer),
  15493. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15494. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15495. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15496. msm_routing_put_voice_mixer),
  15497. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15498. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15499. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15500. msm_routing_put_voice_mixer),
  15501. };
  15502. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  15503. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15504. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15505. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15506. msm_routing_put_voice_mixer),
  15507. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15508. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15509. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15510. msm_routing_put_voice_mixer),
  15511. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15512. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15513. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15514. msm_routing_put_voice_mixer),
  15515. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15516. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15517. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15518. msm_routing_put_voice_mixer),
  15519. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15520. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15521. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15522. msm_routing_put_voice_mixer),
  15523. };
  15524. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  15525. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15526. MSM_BACKEND_DAI_USB_RX,
  15527. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15528. msm_routing_put_voice_mixer),
  15529. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15530. MSM_BACKEND_DAI_USB_RX,
  15531. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15532. msm_routing_put_voice_mixer),
  15533. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15534. MSM_BACKEND_DAI_USB_RX,
  15535. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15536. msm_routing_put_voice_mixer),
  15537. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15538. MSM_BACKEND_DAI_USB_RX,
  15539. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15540. msm_routing_put_voice_mixer),
  15541. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15542. MSM_BACKEND_DAI_USB_RX,
  15543. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15544. msm_routing_put_voice_mixer),
  15545. };
  15546. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  15547. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15548. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15549. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15550. msm_routing_put_voice_mixer),
  15551. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15552. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15553. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15554. msm_routing_put_voice_mixer),
  15555. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15556. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15557. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15558. msm_routing_put_voice_mixer),
  15559. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15560. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15561. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15562. msm_routing_put_voice_mixer),
  15563. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15564. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15565. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15566. msm_routing_put_voice_mixer),
  15567. };
  15568. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  15569. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15570. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15571. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15572. msm_routing_put_voice_mixer),
  15573. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15574. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15575. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15576. msm_routing_put_voice_mixer),
  15577. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15578. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15579. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15580. msm_routing_put_voice_mixer),
  15581. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15582. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15583. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15584. msm_routing_put_voice_mixer),
  15585. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15586. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15587. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15588. msm_routing_put_voice_mixer),
  15589. };
  15590. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  15591. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15592. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15593. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15594. msm_routing_put_voice_mixer),
  15595. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15596. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15597. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15598. msm_routing_put_voice_mixer),
  15599. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15600. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15601. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15602. msm_routing_put_voice_mixer),
  15603. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15604. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15605. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15606. msm_routing_put_voice_mixer),
  15607. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15608. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15609. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15610. msm_routing_put_voice_mixer),
  15611. };
  15612. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  15613. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15614. MSM_BACKEND_DAI_MI2S_RX,
  15615. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15616. msm_routing_put_voice_mixer),
  15617. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15618. MSM_BACKEND_DAI_MI2S_RX,
  15619. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15620. msm_routing_put_voice_mixer),
  15621. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15622. MSM_BACKEND_DAI_MI2S_RX,
  15623. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15624. msm_routing_put_voice_mixer),
  15625. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15626. MSM_BACKEND_DAI_MI2S_RX,
  15627. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15628. msm_routing_put_voice_mixer),
  15629. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15630. MSM_BACKEND_DAI_MI2S_RX,
  15631. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15632. msm_routing_put_voice_mixer),
  15633. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15634. MSM_BACKEND_DAI_MI2S_RX,
  15635. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15636. msm_routing_put_voice_mixer),
  15637. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15638. MSM_BACKEND_DAI_MI2S_RX,
  15639. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15640. msm_routing_put_voice_mixer),
  15641. };
  15642. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  15643. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15644. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15645. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15646. msm_routing_put_voice_mixer),
  15647. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15648. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15649. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15650. msm_routing_put_voice_mixer),
  15651. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15652. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15653. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15654. msm_routing_put_voice_mixer),
  15655. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15656. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15657. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15658. msm_routing_put_voice_mixer),
  15659. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15660. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15661. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15662. msm_routing_put_voice_mixer),
  15663. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15664. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15665. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15666. msm_routing_put_voice_mixer),
  15667. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15668. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15669. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15670. msm_routing_put_voice_mixer),
  15671. };
  15672. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  15673. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15674. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15675. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15676. msm_routing_put_voice_mixer),
  15677. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15678. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15679. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15680. msm_routing_put_voice_mixer),
  15681. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15682. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15683. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15684. msm_routing_put_voice_mixer),
  15685. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15686. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15687. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15688. msm_routing_put_voice_mixer),
  15689. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15690. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15691. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15692. msm_routing_put_voice_mixer),
  15693. };
  15694. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  15695. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15696. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15697. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15698. msm_routing_put_voice_mixer),
  15699. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15700. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15701. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15702. msm_routing_put_voice_mixer),
  15703. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15704. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15705. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15706. msm_routing_put_voice_mixer),
  15707. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15708. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15709. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15710. msm_routing_put_voice_mixer),
  15711. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15712. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15713. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15714. msm_routing_put_voice_mixer),
  15715. };
  15716. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  15717. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15718. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15719. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15720. msm_routing_put_voice_mixer),
  15721. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15722. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15723. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15724. msm_routing_put_voice_mixer),
  15725. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15726. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15727. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15728. msm_routing_put_voice_mixer),
  15729. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15730. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15731. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15732. msm_routing_put_voice_mixer),
  15733. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15734. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15735. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15736. msm_routing_put_voice_mixer),
  15737. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15738. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15739. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15740. msm_routing_put_voice_mixer),
  15741. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15742. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15743. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15744. msm_routing_put_voice_mixer),
  15745. };
  15746. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  15747. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15748. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15749. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15750. msm_routing_put_voice_mixer),
  15751. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15752. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15753. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15754. msm_routing_put_voice_mixer),
  15755. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15756. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15757. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15758. msm_routing_put_voice_mixer),
  15759. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15760. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15761. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15762. msm_routing_put_voice_mixer),
  15763. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15764. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15765. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15766. msm_routing_put_voice_mixer),
  15767. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15768. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15769. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15770. msm_routing_put_voice_mixer),
  15771. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15772. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15773. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15774. msm_routing_put_voice_mixer),
  15775. };
  15776. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  15777. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15778. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15779. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15780. msm_routing_put_voice_mixer),
  15781. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15782. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15783. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15784. msm_routing_put_voice_stub_mixer),
  15785. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15786. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15787. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15788. msm_routing_put_voice_stub_mixer),
  15789. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15790. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15791. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15792. msm_routing_put_voice_mixer),
  15793. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15794. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15795. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15796. msm_routing_put_voice_mixer),
  15797. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15798. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15799. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15800. msm_routing_put_voice_mixer),
  15801. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15802. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15803. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15804. msm_routing_put_voice_mixer),
  15805. };
  15806. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  15807. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15808. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15809. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15810. msm_routing_put_voice_mixer),
  15811. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15812. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15813. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15814. msm_routing_put_voice_mixer),
  15815. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15816. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15817. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15818. msm_routing_put_voice_mixer),
  15819. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15820. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15821. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15822. msm_routing_put_voice_mixer),
  15823. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15824. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15825. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15826. msm_routing_put_voice_mixer),
  15827. };
  15828. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  15829. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15830. MSM_BACKEND_DAI_AFE_PCM_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_AFE_PCM_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_AFE_PCM_RX,
  15839. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15840. msm_routing_put_voice_mixer),
  15841. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15842. MSM_BACKEND_DAI_AFE_PCM_RX,
  15843. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15844. msm_routing_put_voice_mixer),
  15845. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15846. MSM_BACKEND_DAI_AFE_PCM_RX,
  15847. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15848. msm_routing_put_voice_mixer),
  15849. };
  15850. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  15851. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15852. MSM_BACKEND_DAI_AUXPCM_RX,
  15853. MSM_FRONTEND_DAI_VOIP, 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_AUXPCM_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_AUXPCM_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_AUXPCM_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_AUXPCM_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 sec_aux_pcm_rx_voice_mixer_controls[] = {
  15873. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15874. MSM_BACKEND_DAI_SEC_AUXPCM_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_SEC_AUXPCM_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_SEC_AUXPCM_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_SEC_AUXPCM_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_SEC_AUXPCM_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 tert_aux_pcm_rx_voice_mixer_controls[] = {
  15895. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15896. MSM_BACKEND_DAI_TERT_AUXPCM_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_TERT_AUXPCM_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_TERT_AUXPCM_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_TERT_AUXPCM_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_TERT_AUXPCM_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 quat_aux_pcm_rx_voice_mixer_controls[] = {
  15917. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15918. MSM_BACKEND_DAI_QUAT_AUXPCM_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_QUAT_AUXPCM_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_QUAT_AUXPCM_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_QUAT_AUXPCM_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_QUAT_AUXPCM_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 quin_aux_pcm_rx_voice_mixer_controls[] = {
  15939. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15940. MSM_BACKEND_DAI_QUIN_AUXPCM_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_QUIN_AUXPCM_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_QUIN_AUXPCM_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_QUIN_AUXPCM_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_QUIN_AUXPCM_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 sen_aux_pcm_rx_voice_mixer_controls[] = {
  15961. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15962. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15963. msm_routing_put_voice_mixer),
  15964. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15965. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15966. msm_routing_put_voice_mixer),
  15967. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15968. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15969. msm_routing_put_voice_mixer),
  15970. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15971. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15972. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15973. msm_routing_put_voice_mixer),
  15974. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15975. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15976. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15977. msm_routing_put_voice_mixer),
  15978. };
  15979. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  15980. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15981. MSM_BACKEND_DAI_HDMI_RX,
  15982. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15983. msm_routing_put_voice_mixer),
  15984. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15985. MSM_BACKEND_DAI_HDMI_RX,
  15986. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15987. msm_routing_put_voice_mixer),
  15988. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15989. MSM_BACKEND_DAI_HDMI_RX,
  15990. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15991. msm_routing_put_voice_mixer),
  15992. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15993. MSM_BACKEND_DAI_HDMI_RX,
  15994. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15995. msm_routing_put_voice_mixer),
  15996. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15997. MSM_BACKEND_DAI_HDMI_RX,
  15998. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15999. msm_routing_put_voice_mixer),
  16000. };
  16001. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  16002. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16003. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16004. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16005. msm_routing_put_voice_mixer),
  16006. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16007. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16008. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16009. msm_routing_put_voice_mixer),
  16010. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16011. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16012. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16013. msm_routing_put_voice_mixer),
  16014. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16015. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16016. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16017. msm_routing_put_voice_mixer),
  16018. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16019. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16020. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16021. msm_routing_put_voice_mixer),
  16022. };
  16023. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  16024. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16025. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16026. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16027. msm_routing_put_voice_mixer),
  16028. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16029. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16030. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16031. msm_routing_put_voice_mixer),
  16032. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16033. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16034. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16035. msm_routing_put_voice_mixer),
  16036. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16037. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16038. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16039. msm_routing_put_voice_mixer),
  16040. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16041. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16042. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16043. msm_routing_put_voice_mixer),
  16044. };
  16045. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  16046. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16047. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  16048. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16049. msm_routing_put_voice_mixer),
  16050. };
  16051. static const struct snd_kcontrol_new quin_tdm_rx_2_voice_mixer_controls[] = {
  16052. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16053. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16054. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16055. msm_routing_put_voice_mixer),
  16056. };
  16057. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  16058. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16059. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16060. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16061. msm_routing_put_voice_mixer),
  16062. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16063. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16064. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16065. msm_routing_put_voice_mixer),
  16066. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16067. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16068. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16069. msm_routing_put_voice_mixer),
  16070. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16071. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16072. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16073. msm_routing_put_voice_mixer),
  16074. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16075. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16076. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16077. msm_routing_put_voice_mixer),
  16078. };
  16079. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  16080. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16081. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16082. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16083. msm_routing_put_voice_mixer),
  16084. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16085. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16086. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16087. msm_routing_put_voice_mixer),
  16088. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16089. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16090. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16091. msm_routing_put_voice_mixer),
  16092. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16093. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16094. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16095. msm_routing_put_voice_mixer),
  16096. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16097. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16098. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16099. msm_routing_put_voice_mixer),
  16100. };
  16101. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  16102. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16103. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16104. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16105. msm_routing_put_voice_mixer),
  16106. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16107. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16108. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16109. msm_routing_put_voice_mixer),
  16110. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16111. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16112. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16113. msm_routing_put_voice_mixer),
  16114. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16115. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16116. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16117. msm_routing_put_voice_mixer),
  16118. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16119. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16120. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16121. msm_routing_put_voice_mixer),
  16122. };
  16123. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  16124. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16125. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16126. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16127. msm_routing_put_voice_mixer),
  16128. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16129. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16130. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16131. msm_routing_put_voice_mixer),
  16132. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16133. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16134. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16135. msm_routing_put_voice_mixer),
  16136. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16137. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16138. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16139. msm_routing_put_voice_mixer),
  16140. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16141. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16142. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16143. msm_routing_put_voice_mixer),
  16144. };
  16145. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  16146. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16147. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16148. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16149. msm_routing_put_voice_mixer),
  16150. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16151. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16152. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16153. msm_routing_put_voice_mixer),
  16154. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16155. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16156. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16157. msm_routing_put_voice_mixer),
  16158. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16159. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16160. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16161. msm_routing_put_voice_mixer),
  16162. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16163. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16164. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16165. msm_routing_put_voice_mixer),
  16166. };
  16167. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  16168. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16169. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16170. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16171. msm_routing_put_voice_mixer),
  16172. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16173. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16174. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16175. msm_routing_put_voice_mixer),
  16176. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16177. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16178. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16179. msm_routing_put_voice_mixer),
  16180. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16181. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16182. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16183. msm_routing_put_voice_mixer),
  16184. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16185. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16186. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16187. msm_routing_put_voice_mixer),
  16188. };
  16189. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  16190. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16191. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16192. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16193. msm_routing_put_voice_mixer),
  16194. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16195. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16196. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16197. msm_routing_put_voice_mixer),
  16198. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16199. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16200. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16201. msm_routing_put_voice_mixer),
  16202. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16203. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16204. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16205. msm_routing_put_voice_mixer),
  16206. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16207. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16208. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16209. msm_routing_put_voice_mixer),
  16210. };
  16211. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  16212. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16213. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16214. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16215. msm_routing_put_voice_mixer),
  16216. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16217. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16218. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16219. msm_routing_put_voice_mixer),
  16220. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16221. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16222. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16223. msm_routing_put_voice_mixer),
  16224. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16225. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16226. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16227. msm_routing_put_voice_mixer),
  16228. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16229. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16230. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16231. msm_routing_put_voice_mixer),
  16232. };
  16233. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  16234. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16235. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16236. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16237. msm_routing_put_voice_mixer),
  16238. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16239. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16240. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16241. msm_routing_put_voice_mixer),
  16242. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16243. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16244. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16245. msm_routing_put_voice_mixer),
  16246. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16247. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16248. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16249. msm_routing_put_voice_mixer),
  16250. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16251. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16252. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16253. msm_routing_put_voice_mixer),
  16254. };
  16255. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  16256. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16257. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16258. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16259. msm_routing_put_voice_mixer),
  16260. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16261. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16262. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16263. msm_routing_put_voice_mixer),
  16264. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16265. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16266. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16267. msm_routing_put_voice_mixer),
  16268. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16269. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16270. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16271. msm_routing_put_voice_mixer),
  16272. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16273. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16274. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16275. msm_routing_put_voice_mixer),
  16276. };
  16277. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  16278. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16279. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16280. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16281. msm_routing_put_voice_mixer),
  16282. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16283. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16284. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16285. msm_routing_put_voice_stub_mixer),
  16286. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16287. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16288. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16289. msm_routing_put_voice_stub_mixer),
  16290. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16291. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16292. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16293. msm_routing_put_voice_mixer),
  16294. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16295. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16296. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16297. msm_routing_put_voice_mixer),
  16298. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16299. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16300. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16301. msm_routing_put_voice_mixer),
  16302. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16303. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16304. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16305. msm_routing_put_voice_mixer),
  16306. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16307. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16308. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16309. msm_routing_put_voice_mixer),
  16310. };
  16311. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  16312. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16313. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16314. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16315. msm_routing_put_voice_mixer),
  16316. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16317. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16318. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16319. msm_routing_put_voice_stub_mixer),
  16320. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16321. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16322. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16323. msm_routing_put_voice_stub_mixer),
  16324. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16325. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16326. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16327. msm_routing_put_voice_mixer),
  16328. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16329. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16330. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16331. msm_routing_put_voice_mixer),
  16332. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16333. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16334. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16335. msm_routing_put_voice_mixer),
  16336. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16337. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16338. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16339. msm_routing_put_voice_mixer),
  16340. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16341. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16342. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16343. msm_routing_put_voice_mixer),
  16344. };
  16345. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  16346. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16347. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16348. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16349. msm_routing_put_voice_mixer),
  16350. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16351. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16352. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16353. msm_routing_put_voice_stub_mixer),
  16354. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16355. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16356. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16357. msm_routing_put_voice_stub_mixer),
  16358. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16359. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16360. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16361. msm_routing_put_voice_mixer),
  16362. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16363. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16364. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16365. msm_routing_put_voice_mixer),
  16366. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16367. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16368. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16369. msm_routing_put_voice_mixer),
  16370. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16371. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16372. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16373. msm_routing_put_voice_mixer),
  16374. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16375. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16376. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16377. msm_routing_put_voice_mixer),
  16378. };
  16379. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  16380. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16381. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16382. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16383. msm_routing_put_voice_mixer),
  16384. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16385. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16386. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16387. msm_routing_put_voice_stub_mixer),
  16388. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16389. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16390. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16391. msm_routing_put_voice_stub_mixer),
  16392. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16393. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16394. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16395. msm_routing_put_voice_mixer),
  16396. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16397. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16398. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16399. msm_routing_put_voice_mixer),
  16400. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16401. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16402. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16403. msm_routing_put_voice_mixer),
  16404. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16405. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16406. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16407. msm_routing_put_voice_mixer),
  16408. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16409. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16410. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16411. msm_routing_put_voice_mixer),
  16412. };
  16413. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  16414. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16415. MSM_BACKEND_DAI_EXTPROC_RX,
  16416. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16417. msm_routing_put_voice_mixer),
  16418. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16419. MSM_BACKEND_DAI_EXTPROC_RX,
  16420. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16421. msm_routing_put_voice_mixer),
  16422. };
  16423. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  16424. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16425. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16426. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16427. msm_routing_put_voice_mixer),
  16428. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16429. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16430. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16431. msm_routing_put_voice_mixer),
  16432. };
  16433. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  16434. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16435. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16436. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16437. msm_routing_put_voice_mixer),
  16438. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16439. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16440. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16441. msm_routing_put_voice_mixer),
  16442. };
  16443. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  16444. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  16445. MSM_BACKEND_DAI_PRI_I2S_TX,
  16446. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16447. msm_routing_put_voice_mixer),
  16448. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  16449. MSM_BACKEND_DAI_MI2S_TX,
  16450. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16451. msm_routing_put_voice_mixer),
  16452. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  16453. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16454. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16455. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  16456. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16457. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16458. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  16459. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16460. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16461. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16462. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16463. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16464. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16465. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16466. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16467. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16468. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16469. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16470. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16471. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16472. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16473. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16474. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16475. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16476. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16477. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16478. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16479. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  16480. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16481. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16482. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  16483. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16484. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16485. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16486. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16487. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16488. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  16489. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16490. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16491. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  16492. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16493. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16494. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  16495. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16496. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16497. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  16498. MSM_BACKEND_DAI_USB_TX,
  16499. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16500. msm_routing_put_voice_mixer),
  16501. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  16502. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16503. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16504. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16505. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16506. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16507. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16508. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16509. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16510. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16511. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16512. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16513. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16514. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16515. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16516. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16517. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16518. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16519. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16520. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16521. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16522. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  16523. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16524. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16525. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  16526. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  16527. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16528. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  16529. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  16530. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16531. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16532. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16533. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16534. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  16535. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16536. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16537. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  16538. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16539. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16540. };
  16541. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  16542. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  16543. MSM_BACKEND_DAI_PRI_I2S_TX,
  16544. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16545. msm_routing_put_voice_mixer),
  16546. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  16547. MSM_BACKEND_DAI_MI2S_TX,
  16548. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16549. msm_routing_put_voice_mixer),
  16550. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  16551. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16552. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16553. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  16554. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16555. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16556. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  16557. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16558. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16559. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16560. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16561. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16562. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16563. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16564. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16565. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16566. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16567. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16568. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16569. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16570. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16571. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16572. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16573. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16574. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16575. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16576. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16577. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  16578. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16579. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16580. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  16581. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16582. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16583. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16584. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16585. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16586. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  16587. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16588. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16589. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  16590. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16591. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16592. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  16593. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16594. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16595. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  16596. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16597. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16598. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16599. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16600. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16601. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16602. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16603. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16604. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16605. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16606. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16607. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16608. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16609. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16610. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16611. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16612. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16613. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16614. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16615. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16616. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  16617. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16618. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16619. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  16620. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  16621. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16622. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  16623. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  16624. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16625. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16626. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16627. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16628. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  16629. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16630. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16631. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  16632. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16633. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16634. };
  16635. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  16636. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  16637. MSM_BACKEND_DAI_PRI_I2S_TX,
  16638. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16639. msm_routing_put_voice_mixer),
  16640. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  16641. MSM_BACKEND_DAI_MI2S_TX,
  16642. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16643. msm_routing_put_voice_mixer),
  16644. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  16645. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16646. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16647. msm_routing_put_voice_mixer),
  16648. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  16649. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16650. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16651. msm_routing_put_voice_mixer),
  16652. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  16653. MSM_BACKEND_DAI_AFE_PCM_TX,
  16654. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16655. msm_routing_put_voice_mixer),
  16656. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16657. MSM_BACKEND_DAI_AUXPCM_TX,
  16658. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16659. msm_routing_put_voice_mixer),
  16660. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16661. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16662. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16663. msm_routing_put_voice_mixer),
  16664. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16665. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16666. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16667. msm_routing_put_voice_mixer),
  16668. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16669. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16670. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16671. msm_routing_put_voice_mixer),
  16672. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16673. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16674. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16675. msm_routing_put_voice_mixer),
  16676. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16677. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16678. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16679. msm_routing_put_voice_mixer),
  16680. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  16681. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16682. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16683. msm_routing_put_voice_mixer),
  16684. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  16685. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  16686. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16687. msm_routing_put_voice_mixer),
  16688. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  16689. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16690. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16691. msm_routing_put_voice_mixer),
  16692. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  16693. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16694. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16695. msm_routing_put_voice_mixer),
  16696. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  16697. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16698. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16699. msm_routing_put_voice_mixer),
  16700. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  16701. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16702. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16703. msm_routing_put_voice_mixer),
  16704. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  16705. MSM_BACKEND_DAI_USB_TX,
  16706. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16707. msm_routing_put_voice_mixer),
  16708. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16709. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16710. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16711. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16712. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16713. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16714. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16715. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16716. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16717. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16718. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16719. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16720. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16721. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16722. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16723. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16724. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16725. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16726. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  16727. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  16728. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16729. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  16730. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  16731. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16732. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  16733. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  16734. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16735. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  16736. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16737. msm_routing_put_voice_mixer),
  16738. };
  16739. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  16740. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16741. MSM_BACKEND_DAI_EXTPROC_TX,
  16742. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16743. msm_routing_put_voice_stub_mixer),
  16744. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16745. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16746. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16747. msm_routing_put_voice_stub_mixer),
  16748. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16749. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16750. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16751. msm_routing_put_voice_stub_mixer),
  16752. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16753. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16754. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16755. msm_routing_put_voice_stub_mixer),
  16756. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16757. MSM_BACKEND_DAI_MI2S_TX,
  16758. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16759. msm_routing_put_voice_stub_mixer),
  16760. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16761. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16762. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16763. msm_routing_put_voice_stub_mixer),
  16764. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16765. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16766. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16767. msm_routing_put_voice_stub_mixer),
  16768. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16769. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16770. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16771. msm_routing_put_voice_stub_mixer),
  16772. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16773. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16774. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16775. msm_routing_put_voice_stub_mixer),
  16776. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16777. MSM_BACKEND_DAI_AUXPCM_TX,
  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("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16781. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16782. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16783. msm_routing_put_voice_stub_mixer),
  16784. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16785. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16786. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16787. msm_routing_put_voice_stub_mixer),
  16788. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16789. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16790. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16791. msm_routing_put_voice_stub_mixer),
  16792. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16793. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16794. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16795. msm_routing_put_voice_stub_mixer),
  16796. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16797. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16798. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16799. msm_routing_put_voice_stub_mixer),
  16800. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16801. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16802. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16803. msm_routing_put_voice_stub_mixer),
  16804. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16805. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16806. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16807. msm_routing_put_voice_stub_mixer),
  16808. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16809. MSM_BACKEND_DAI_AFE_PCM_TX,
  16810. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16811. msm_routing_put_voice_stub_mixer),
  16812. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16813. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16814. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16815. msm_routing_put_voice_stub_mixer),
  16816. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16817. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16818. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16819. msm_routing_put_voice_stub_mixer),
  16820. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16821. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16822. 1, 0, msm_routing_get_voice_stub_mixer,
  16823. msm_routing_put_voice_stub_mixer),
  16824. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16825. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16826. 1, 0, msm_routing_get_voice_stub_mixer,
  16827. msm_routing_put_voice_stub_mixer),
  16828. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16829. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16830. 1, 0, msm_routing_get_voice_stub_mixer,
  16831. msm_routing_put_voice_stub_mixer),
  16832. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16833. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16834. 1, 0, msm_routing_get_voice_stub_mixer,
  16835. msm_routing_put_voice_stub_mixer),
  16836. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16837. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16838. 1, 0, msm_routing_get_voice_stub_mixer,
  16839. msm_routing_put_voice_stub_mixer),
  16840. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16841. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16842. 1, 0, msm_routing_get_voice_stub_mixer,
  16843. msm_routing_put_voice_stub_mixer),
  16844. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16845. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  16846. 1, 0, msm_routing_get_voice_stub_mixer,
  16847. msm_routing_put_voice_stub_mixer),
  16848. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16849. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  16850. 1, 0, msm_routing_get_voice_stub_mixer,
  16851. msm_routing_put_voice_stub_mixer),
  16852. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16853. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  16854. 1, 0, msm_routing_get_voice_stub_mixer,
  16855. msm_routing_put_voice_stub_mixer),
  16856. };
  16857. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  16858. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16859. MSM_BACKEND_DAI_EXTPROC_TX,
  16860. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16861. msm_routing_put_voice_stub_mixer),
  16862. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16863. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16864. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16865. msm_routing_put_voice_stub_mixer),
  16866. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16867. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16868. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16869. msm_routing_put_voice_stub_mixer),
  16870. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16871. MSM_BACKEND_DAI_AUXPCM_TX,
  16872. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16873. msm_routing_put_voice_stub_mixer),
  16874. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16875. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16876. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16877. msm_routing_put_voice_stub_mixer),
  16878. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16879. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16880. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16881. msm_routing_put_voice_stub_mixer),
  16882. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16883. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16884. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16885. msm_routing_put_voice_stub_mixer),
  16886. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16887. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16888. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16889. msm_routing_put_voice_stub_mixer),
  16890. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16891. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16892. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16893. msm_routing_put_voice_stub_mixer),
  16894. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16895. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16896. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16897. msm_routing_put_voice_stub_mixer),
  16898. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16899. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16900. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16901. msm_routing_put_voice_stub_mixer),
  16902. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16903. MSM_BACKEND_DAI_AFE_PCM_TX,
  16904. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16905. msm_routing_put_voice_stub_mixer),
  16906. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16907. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16908. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16909. msm_routing_put_voice_stub_mixer),
  16910. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16911. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16912. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16913. msm_routing_put_voice_stub_mixer),
  16914. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16915. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16916. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16917. msm_routing_put_voice_stub_mixer),
  16918. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16919. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16920. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16921. msm_routing_put_voice_stub_mixer),
  16922. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16923. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16924. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16925. msm_routing_put_voice_stub_mixer),
  16926. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16927. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16928. 1, 0, msm_routing_get_voice_stub_mixer,
  16929. msm_routing_put_voice_stub_mixer),
  16930. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16931. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16932. 1, 0, msm_routing_get_voice_stub_mixer,
  16933. msm_routing_put_voice_stub_mixer),
  16934. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16935. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16936. 1, 0, msm_routing_get_voice_stub_mixer,
  16937. msm_routing_put_voice_stub_mixer),
  16938. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16939. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16940. 1, 0, msm_routing_get_voice_stub_mixer,
  16941. msm_routing_put_voice_stub_mixer),
  16942. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16943. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16944. 1, 0, msm_routing_get_voice_stub_mixer,
  16945. msm_routing_put_voice_stub_mixer),
  16946. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16947. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16948. 1, 0, msm_routing_get_voice_stub_mixer,
  16949. msm_routing_put_voice_stub_mixer),
  16950. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16951. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  16952. 1, 0, msm_routing_get_voice_stub_mixer,
  16953. msm_routing_put_voice_stub_mixer),
  16954. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16955. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  16956. 1, 0, msm_routing_get_voice_stub_mixer,
  16957. msm_routing_put_voice_stub_mixer),
  16958. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16959. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  16960. 1, 0, msm_routing_get_voice_stub_mixer,
  16961. msm_routing_put_voice_stub_mixer),
  16962. };
  16963. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  16964. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16965. MSM_BACKEND_DAI_EXTPROC_TX,
  16966. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16967. msm_routing_put_voice_stub_mixer),
  16968. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16969. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16970. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16971. msm_routing_put_voice_stub_mixer),
  16972. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16973. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16974. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16975. msm_routing_put_voice_stub_mixer),
  16976. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16977. MSM_BACKEND_DAI_AUXPCM_TX,
  16978. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16979. msm_routing_put_voice_stub_mixer),
  16980. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16981. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16982. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16983. msm_routing_put_voice_stub_mixer),
  16984. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16985. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16986. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16987. msm_routing_put_voice_stub_mixer),
  16988. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16989. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16990. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16991. msm_routing_put_voice_stub_mixer),
  16992. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16993. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16994. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16995. msm_routing_put_voice_stub_mixer),
  16996. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16997. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16998. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16999. msm_routing_put_voice_stub_mixer),
  17000. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17001. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17002. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17003. msm_routing_put_voice_stub_mixer),
  17004. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17005. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17006. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17007. msm_routing_put_voice_stub_mixer),
  17008. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17009. MSM_BACKEND_DAI_AFE_PCM_TX,
  17010. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17011. msm_routing_put_voice_stub_mixer),
  17012. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17013. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17014. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17015. msm_routing_put_voice_stub_mixer),
  17016. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17017. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17018. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17019. msm_routing_put_voice_stub_mixer),
  17020. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17021. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17022. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17023. msm_routing_put_voice_stub_mixer),
  17024. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17025. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17026. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17027. msm_routing_put_voice_stub_mixer),
  17028. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17029. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17030. 1, 0, msm_routing_get_voice_stub_mixer,
  17031. msm_routing_put_voice_stub_mixer),
  17032. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17033. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17034. 1, 0, msm_routing_get_voice_stub_mixer,
  17035. msm_routing_put_voice_stub_mixer),
  17036. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17037. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17038. 1, 0, msm_routing_get_voice_stub_mixer,
  17039. msm_routing_put_voice_stub_mixer),
  17040. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17041. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17042. 1, 0, msm_routing_get_voice_stub_mixer,
  17043. msm_routing_put_voice_stub_mixer),
  17044. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17045. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17046. 1, 0, msm_routing_get_voice_stub_mixer,
  17047. msm_routing_put_voice_stub_mixer),
  17048. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17049. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17050. 1, 0, msm_routing_get_voice_stub_mixer,
  17051. msm_routing_put_voice_stub_mixer),
  17052. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17053. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  17054. 1, 0, msm_routing_get_voice_stub_mixer,
  17055. msm_routing_put_voice_stub_mixer),
  17056. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17057. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  17058. 1, 0, msm_routing_get_voice_stub_mixer,
  17059. msm_routing_put_voice_stub_mixer),
  17060. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17061. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  17062. 1, 0, msm_routing_get_voice_stub_mixer,
  17063. msm_routing_put_voice_stub_mixer),
  17064. };
  17065. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  17066. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  17067. MSM_BACKEND_DAI_PRI_I2S_TX,
  17068. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17069. msm_routing_put_voice_mixer),
  17070. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  17071. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17072. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17073. msm_routing_put_voice_mixer),
  17074. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  17075. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17076. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  17077. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17078. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  17079. MSM_BACKEND_DAI_AFE_PCM_TX,
  17080. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17081. msm_routing_put_voice_mixer),
  17082. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17083. MSM_BACKEND_DAI_AUXPCM_TX,
  17084. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17085. msm_routing_put_voice_mixer),
  17086. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17087. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17088. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17089. msm_routing_put_voice_mixer),
  17090. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17091. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17092. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17093. msm_routing_put_voice_mixer),
  17094. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17095. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17096. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17097. msm_routing_put_voice_mixer),
  17098. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17099. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17100. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17101. msm_routing_put_voice_mixer),
  17102. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17103. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17104. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17105. msm_routing_put_voice_mixer),
  17106. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  17107. MSM_BACKEND_DAI_MI2S_TX,
  17108. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17109. msm_routing_put_voice_mixer),
  17110. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17111. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17112. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17113. msm_routing_put_voice_mixer),
  17114. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17115. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17116. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17117. msm_routing_put_voice_mixer),
  17118. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17119. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17120. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17121. msm_routing_put_voice_mixer),
  17122. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  17123. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17124. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17125. msm_routing_put_voice_mixer),
  17126. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  17127. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17128. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17129. msm_routing_put_voice_mixer),
  17130. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  17131. MSM_BACKEND_DAI_USB_TX,
  17132. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17133. msm_routing_put_voice_mixer),
  17134. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17135. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17136. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17137. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17138. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17139. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17140. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17141. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17142. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17143. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17144. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17145. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17146. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17147. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17148. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17149. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17150. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17151. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17152. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  17153. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  17154. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17155. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  17156. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  17157. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17158. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  17159. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  17160. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17161. };
  17162. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  17163. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17164. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17165. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17166. msm_routing_put_port_mixer),
  17167. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17168. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17169. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17170. msm_routing_put_port_mixer),
  17171. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17172. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17173. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17174. msm_routing_put_port_mixer),
  17175. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17176. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17177. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17178. msm_routing_put_port_mixer),
  17179. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17180. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17181. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17182. msm_routing_put_port_mixer),
  17183. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17184. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17185. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17186. msm_routing_put_port_mixer),
  17187. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17188. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17189. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17190. msm_routing_put_port_mixer),
  17191. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17192. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17193. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17194. msm_routing_put_port_mixer),
  17195. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17196. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17197. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17198. msm_routing_put_port_mixer),
  17199. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17200. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17201. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17202. msm_routing_put_port_mixer),
  17203. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17204. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17205. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17206. msm_routing_put_port_mixer),
  17207. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17208. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17209. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17210. msm_routing_put_port_mixer),
  17211. };
  17212. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  17213. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17214. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17215. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17216. msm_routing_put_port_mixer),
  17217. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17218. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17219. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17220. msm_routing_put_port_mixer),
  17221. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17222. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17223. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17224. msm_routing_put_port_mixer),
  17225. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17226. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17227. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17228. msm_routing_put_port_mixer),
  17229. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17230. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17231. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17232. msm_routing_put_port_mixer),
  17233. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17234. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17235. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17236. msm_routing_put_port_mixer),
  17237. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17238. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17239. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17240. msm_routing_put_port_mixer),
  17241. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17242. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17243. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17244. msm_routing_put_port_mixer),
  17245. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17246. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17247. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17248. msm_routing_put_port_mixer),
  17249. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17250. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17251. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17252. msm_routing_put_port_mixer),
  17253. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17254. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17255. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17256. msm_routing_put_port_mixer),
  17257. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17258. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17259. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17260. msm_routing_put_port_mixer),
  17261. };
  17262. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  17263. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17264. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17265. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17266. msm_routing_put_port_mixer),
  17267. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17268. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17269. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17270. msm_routing_put_port_mixer),
  17271. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17272. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17273. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17274. msm_routing_put_port_mixer),
  17275. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17276. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17277. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17278. msm_routing_put_port_mixer),
  17279. };
  17280. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  17281. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17282. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17283. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17284. msm_routing_put_port_mixer),
  17285. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17286. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17287. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17288. msm_routing_put_port_mixer),
  17289. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17290. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17291. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17292. msm_routing_put_port_mixer),
  17293. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17294. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17295. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17296. msm_routing_put_port_mixer),
  17297. };
  17298. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_port_mixer_controls[] = {
  17299. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17300. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17301. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17302. msm_routing_put_port_mixer),
  17303. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17304. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17305. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17306. msm_routing_put_port_mixer),
  17307. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17308. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17309. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17310. msm_routing_put_port_mixer),
  17311. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17312. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17313. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17314. msm_routing_put_port_mixer),
  17315. };
  17316. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  17317. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17318. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17319. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17320. msm_routing_put_port_mixer),
  17321. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17322. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17323. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17324. msm_routing_put_port_mixer),
  17325. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17326. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17327. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17328. msm_routing_put_port_mixer),
  17329. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17330. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17331. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17332. msm_routing_put_port_mixer),
  17333. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17334. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17335. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17336. msm_routing_put_port_mixer),
  17337. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17338. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17339. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17340. msm_routing_put_port_mixer),
  17341. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17342. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17343. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17344. msm_routing_put_port_mixer),
  17345. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17346. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17347. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17348. msm_routing_put_port_mixer),
  17349. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17350. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17351. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17352. msm_routing_put_port_mixer),
  17353. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17354. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17355. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17356. msm_routing_put_port_mixer),
  17357. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17358. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17359. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17360. msm_routing_put_port_mixer),
  17361. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17362. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17363. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17364. msm_routing_put_port_mixer),
  17365. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17366. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17367. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17368. msm_routing_put_port_mixer),
  17369. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17370. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17371. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17372. msm_routing_put_port_mixer),
  17373. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17374. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17375. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17376. msm_routing_put_port_mixer),
  17377. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17378. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17379. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17380. msm_routing_put_port_mixer),
  17381. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17382. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17383. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17384. msm_routing_put_port_mixer),
  17385. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17386. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17387. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17388. msm_routing_put_port_mixer),
  17389. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17390. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17391. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17392. msm_routing_put_port_mixer),
  17393. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  17394. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17395. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17396. msm_routing_put_port_mixer),
  17397. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  17398. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17399. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17400. msm_routing_put_port_mixer),
  17401. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  17402. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17403. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17404. msm_routing_put_port_mixer),
  17405. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  17406. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17407. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17408. msm_routing_put_port_mixer),
  17409. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  17410. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17411. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17412. msm_routing_put_port_mixer),
  17413. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  17414. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17415. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17416. msm_routing_put_port_mixer),
  17417. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17418. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17419. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17420. msm_routing_put_port_mixer),
  17421. };
  17422. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  17423. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17424. MSM_BACKEND_DAI_AUXPCM_RX,
  17425. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17426. msm_routing_put_port_mixer),
  17427. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17428. MSM_BACKEND_DAI_AUXPCM_RX,
  17429. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17430. msm_routing_put_port_mixer),
  17431. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17432. MSM_BACKEND_DAI_AUXPCM_RX,
  17433. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17434. msm_routing_put_port_mixer),
  17435. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17436. MSM_BACKEND_DAI_AUXPCM_RX,
  17437. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17438. msm_routing_put_port_mixer),
  17439. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17440. MSM_BACKEND_DAI_AUXPCM_RX,
  17441. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17442. msm_routing_put_port_mixer),
  17443. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17444. MSM_BACKEND_DAI_AUXPCM_RX,
  17445. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17446. msm_routing_put_port_mixer),
  17447. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17448. MSM_BACKEND_DAI_AUXPCM_RX,
  17449. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17450. msm_routing_put_port_mixer),
  17451. };
  17452. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  17453. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17454. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17455. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17456. msm_routing_put_port_mixer),
  17457. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17458. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17459. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17460. msm_routing_put_port_mixer),
  17461. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17462. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17463. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17464. msm_routing_put_port_mixer),
  17465. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17466. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17467. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17468. msm_routing_put_port_mixer),
  17469. };
  17470. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  17471. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17472. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17473. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17474. msm_routing_put_port_mixer),
  17475. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17476. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17477. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17478. msm_routing_put_port_mixer),
  17479. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17480. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17481. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17482. msm_routing_put_port_mixer),
  17483. };
  17484. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  17485. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17486. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17487. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17488. msm_routing_put_port_mixer),
  17489. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17490. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17491. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17492. msm_routing_put_port_mixer),
  17493. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17494. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17495. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17496. msm_routing_put_port_mixer),
  17497. };
  17498. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  17499. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17500. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17501. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17502. msm_routing_put_port_mixer),
  17503. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17504. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17505. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17506. msm_routing_put_port_mixer),
  17507. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17508. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17509. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17510. msm_routing_put_port_mixer),
  17511. };
  17512. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  17513. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17514. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17515. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17516. msm_routing_put_port_mixer),
  17517. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17518. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17519. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17520. msm_routing_put_port_mixer),
  17521. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17522. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17523. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17524. msm_routing_put_port_mixer),
  17525. };
  17526. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  17527. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17528. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17529. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17530. msm_routing_put_port_mixer),
  17531. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17532. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17533. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  17534. msm_routing_put_port_mixer),
  17535. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17536. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17537. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17538. msm_routing_put_port_mixer),
  17539. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17540. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17541. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17542. msm_routing_put_port_mixer),
  17543. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17544. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17545. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17546. msm_routing_put_port_mixer),
  17547. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17548. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17549. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17550. msm_routing_put_port_mixer),
  17551. };
  17552. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  17553. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  17554. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17555. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  17556. msm_routing_put_port_mixer),
  17557. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17558. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17559. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17560. msm_routing_put_port_mixer),
  17561. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  17562. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17563. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  17564. msm_routing_put_port_mixer),
  17565. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  17566. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17567. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  17568. msm_routing_put_port_mixer),
  17569. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  17570. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17571. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  17572. msm_routing_put_port_mixer),
  17573. };
  17574. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  17575. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17576. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17577. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17578. msm_routing_put_port_mixer),
  17579. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17580. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17581. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17582. msm_routing_put_port_mixer),
  17583. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17584. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17585. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17586. msm_routing_put_port_mixer),
  17587. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17588. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17589. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17590. msm_routing_put_port_mixer),
  17591. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17592. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17593. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17594. msm_routing_put_port_mixer),
  17595. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17596. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17597. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17598. msm_routing_put_port_mixer),
  17599. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17600. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17601. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17602. msm_routing_put_port_mixer),
  17603. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17604. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17605. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17606. msm_routing_put_port_mixer),
  17607. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17608. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17609. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17610. msm_routing_put_port_mixer),
  17611. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17612. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17613. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17614. msm_routing_put_port_mixer),
  17615. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17616. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17617. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17618. msm_routing_put_port_mixer),
  17619. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17620. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17621. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17622. msm_routing_put_port_mixer),
  17623. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17624. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17625. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17626. msm_routing_put_port_mixer),
  17627. };
  17628. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  17629. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17630. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17631. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17632. msm_routing_put_port_mixer),
  17633. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17634. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17635. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17636. msm_routing_put_port_mixer),
  17637. };
  17638. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  17639. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17640. MSM_BACKEND_DAI_AFE_PCM_RX,
  17641. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17642. msm_routing_put_port_mixer),
  17643. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17644. MSM_BACKEND_DAI_AFE_PCM_RX,
  17645. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17646. msm_routing_put_port_mixer),
  17647. };
  17648. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  17649. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17650. MSM_BACKEND_DAI_HDMI_RX,
  17651. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17652. msm_routing_put_port_mixer),
  17653. };
  17654. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  17655. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17656. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  17657. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17658. msm_routing_put_port_mixer),
  17659. };
  17660. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  17661. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17662. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  17663. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17664. msm_routing_put_port_mixer),
  17665. };
  17666. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  17667. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17668. MSM_BACKEND_DAI_SEC_I2S_RX,
  17669. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17670. msm_routing_put_port_mixer),
  17671. };
  17672. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  17673. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17674. MSM_BACKEND_DAI_MI2S_RX,
  17675. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17676. msm_routing_put_port_mixer),
  17677. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17678. MSM_BACKEND_DAI_MI2S_RX,
  17679. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17680. msm_routing_put_port_mixer),
  17681. };
  17682. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  17683. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17684. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17685. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17686. msm_routing_put_port_mixer),
  17687. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17688. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17689. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17690. msm_routing_put_port_mixer),
  17691. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17692. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17693. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17694. msm_routing_put_port_mixer),
  17695. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17696. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17697. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17698. msm_routing_put_port_mixer),
  17699. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17700. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17701. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17702. msm_routing_put_port_mixer),
  17703. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17704. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17705. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17706. msm_routing_put_port_mixer),
  17707. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17708. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17709. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17710. msm_routing_put_port_mixer),
  17711. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17712. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17713. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17714. msm_routing_put_port_mixer),
  17715. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17716. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17717. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17718. msm_routing_put_port_mixer),
  17719. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17720. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17721. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17722. msm_routing_put_port_mixer),
  17723. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17724. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17725. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17726. msm_routing_put_port_mixer),
  17727. };
  17728. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  17729. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  17730. MSM_BACKEND_DAI_USB_RX,
  17731. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  17732. msm_routing_put_port_mixer),
  17733. };
  17734. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  17735. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17736. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17737. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17738. msm_routing_put_port_mixer),
  17739. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17740. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17741. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17742. msm_routing_put_port_mixer),
  17743. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17744. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17745. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17746. msm_routing_put_port_mixer),
  17747. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17748. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17749. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17750. msm_routing_put_port_mixer),
  17751. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17752. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17753. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17754. msm_routing_put_port_mixer),
  17755. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17756. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17757. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17758. msm_routing_put_port_mixer),
  17759. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17760. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17761. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17762. msm_routing_put_port_mixer),
  17763. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17764. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17765. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17766. msm_routing_put_port_mixer),
  17767. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17768. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17769. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17770. msm_routing_put_port_mixer),
  17771. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17772. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17773. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17774. msm_routing_put_port_mixer),
  17775. };
  17776. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  17777. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17778. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17779. MSM_BACKEND_DAI_PRI_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_QUINARY_MI2S_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("SLIM_0_TX", SND_SOC_NOPM,
  17786. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17787. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17788. msm_routing_put_port_mixer),
  17789. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17790. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17791. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17792. msm_routing_put_port_mixer),
  17793. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17794. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17795. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17796. msm_routing_put_port_mixer),
  17797. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17798. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17799. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17800. msm_routing_put_port_mixer),
  17801. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17802. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17803. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17804. msm_routing_put_port_mixer),
  17805. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17806. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17807. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17808. msm_routing_put_port_mixer),
  17809. };
  17810. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  17811. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17812. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17813. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17814. msm_routing_put_port_mixer),
  17815. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17816. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17817. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17818. msm_routing_put_port_mixer),
  17819. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17820. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17821. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17822. msm_routing_put_port_mixer),
  17823. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17824. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17825. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17826. msm_routing_put_port_mixer),
  17827. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17828. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17829. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17830. msm_routing_put_port_mixer),
  17831. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17832. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17833. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17834. msm_routing_put_port_mixer),
  17835. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17836. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17837. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17838. msm_routing_put_port_mixer),
  17839. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17840. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17841. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17842. msm_routing_put_port_mixer),
  17843. };
  17844. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  17845. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17846. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17847. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17848. msm_routing_get_port_mixer,
  17849. msm_routing_put_port_mixer),
  17850. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17851. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17852. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17853. msm_routing_get_port_mixer,
  17854. msm_routing_put_port_mixer),
  17855. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17856. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17857. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17858. msm_routing_get_port_mixer,
  17859. msm_routing_put_port_mixer),
  17860. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17861. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17862. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17863. msm_routing_get_port_mixer,
  17864. msm_routing_put_port_mixer),
  17865. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17866. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17867. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17868. msm_routing_get_port_mixer,
  17869. msm_routing_put_port_mixer),
  17870. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17871. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17872. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17873. msm_routing_get_port_mixer,
  17874. msm_routing_put_port_mixer),
  17875. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17876. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17877. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17878. msm_routing_get_port_mixer,
  17879. msm_routing_put_port_mixer),
  17880. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17881. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17882. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17883. msm_routing_get_port_mixer,
  17884. msm_routing_put_port_mixer),
  17885. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17886. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17887. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17888. msm_routing_get_port_mixer,
  17889. msm_routing_put_port_mixer),
  17890. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17891. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17892. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17893. msm_routing_get_port_mixer,
  17894. msm_routing_put_port_mixer),
  17895. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17896. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17897. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17898. msm_routing_get_port_mixer,
  17899. msm_routing_put_port_mixer),
  17900. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17901. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17902. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17903. msm_routing_get_port_mixer,
  17904. msm_routing_put_port_mixer),
  17905. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17906. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17907. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17908. msm_routing_get_port_mixer,
  17909. msm_routing_put_port_mixer),
  17910. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17911. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17912. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17913. msm_routing_get_port_mixer,
  17914. msm_routing_put_port_mixer),
  17915. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17916. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17917. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17918. msm_routing_get_port_mixer,
  17919. msm_routing_put_port_mixer),
  17920. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17921. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17922. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17923. msm_routing_get_port_mixer,
  17924. msm_routing_put_port_mixer),
  17925. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17926. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17927. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17928. msm_routing_get_port_mixer,
  17929. msm_routing_put_port_mixer),
  17930. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17931. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17932. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17933. msm_routing_get_port_mixer,
  17934. msm_routing_put_port_mixer),
  17935. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17936. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17937. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17938. msm_routing_get_port_mixer,
  17939. msm_routing_put_port_mixer),
  17940. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17941. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17942. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17943. msm_routing_get_port_mixer,
  17944. msm_routing_put_port_mixer),
  17945. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17946. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17947. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17948. msm_routing_get_port_mixer,
  17949. msm_routing_put_port_mixer),
  17950. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17951. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17952. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17953. msm_routing_get_port_mixer,
  17954. msm_routing_put_port_mixer),
  17955. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17956. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17957. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17958. msm_routing_get_port_mixer,
  17959. msm_routing_put_port_mixer),
  17960. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17961. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17962. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17963. msm_routing_get_port_mixer,
  17964. msm_routing_put_port_mixer),
  17965. };
  17966. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  17967. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17968. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17969. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17970. msm_routing_get_port_mixer,
  17971. msm_routing_put_port_mixer),
  17972. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17973. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17974. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17975. msm_routing_get_port_mixer,
  17976. msm_routing_put_port_mixer),
  17977. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17978. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17979. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17980. msm_routing_get_port_mixer,
  17981. msm_routing_put_port_mixer),
  17982. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17983. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17984. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17985. msm_routing_get_port_mixer,
  17986. msm_routing_put_port_mixer),
  17987. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17988. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17989. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17990. msm_routing_get_port_mixer,
  17991. msm_routing_put_port_mixer),
  17992. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17993. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17994. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17995. msm_routing_get_port_mixer,
  17996. msm_routing_put_port_mixer),
  17997. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17998. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17999. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18000. msm_routing_get_port_mixer,
  18001. msm_routing_put_port_mixer),
  18002. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18003. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18004. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18005. msm_routing_get_port_mixer,
  18006. msm_routing_put_port_mixer),
  18007. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18008. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18009. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18010. msm_routing_get_port_mixer,
  18011. msm_routing_put_port_mixer),
  18012. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18013. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18014. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18015. msm_routing_get_port_mixer,
  18016. msm_routing_put_port_mixer),
  18017. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18018. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18019. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18020. msm_routing_get_port_mixer,
  18021. msm_routing_put_port_mixer),
  18022. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18023. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18024. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18025. msm_routing_get_port_mixer,
  18026. msm_routing_put_port_mixer),
  18027. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18028. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18029. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18030. msm_routing_get_port_mixer,
  18031. msm_routing_put_port_mixer),
  18032. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18033. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18034. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18035. msm_routing_get_port_mixer,
  18036. msm_routing_put_port_mixer),
  18037. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18038. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18039. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18040. msm_routing_get_port_mixer,
  18041. msm_routing_put_port_mixer),
  18042. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18043. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18044. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18045. msm_routing_get_port_mixer,
  18046. msm_routing_put_port_mixer),
  18047. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18048. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18049. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18050. msm_routing_get_port_mixer,
  18051. msm_routing_put_port_mixer),
  18052. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18053. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18054. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18055. msm_routing_get_port_mixer,
  18056. msm_routing_put_port_mixer),
  18057. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18058. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18059. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18060. msm_routing_get_port_mixer,
  18061. msm_routing_put_port_mixer),
  18062. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18063. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18064. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18065. msm_routing_get_port_mixer,
  18066. msm_routing_put_port_mixer),
  18067. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18068. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18069. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18070. msm_routing_get_port_mixer,
  18071. msm_routing_put_port_mixer),
  18072. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18073. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18074. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18075. msm_routing_get_port_mixer,
  18076. msm_routing_put_port_mixer),
  18077. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18078. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18079. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18080. msm_routing_get_port_mixer,
  18081. msm_routing_put_port_mixer),
  18082. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18083. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18084. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18085. msm_routing_get_port_mixer,
  18086. msm_routing_put_port_mixer),
  18087. };
  18088. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  18089. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18090. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18091. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18092. msm_routing_get_port_mixer,
  18093. msm_routing_put_port_mixer),
  18094. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18095. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18096. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18097. msm_routing_get_port_mixer,
  18098. msm_routing_put_port_mixer),
  18099. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18100. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18101. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18102. msm_routing_get_port_mixer,
  18103. msm_routing_put_port_mixer),
  18104. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18105. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18106. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18107. msm_routing_get_port_mixer,
  18108. msm_routing_put_port_mixer),
  18109. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18110. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18111. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18112. msm_routing_get_port_mixer,
  18113. msm_routing_put_port_mixer),
  18114. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18115. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18116. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18117. msm_routing_get_port_mixer,
  18118. msm_routing_put_port_mixer),
  18119. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18120. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18121. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18122. msm_routing_get_port_mixer,
  18123. msm_routing_put_port_mixer),
  18124. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18125. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18126. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18127. msm_routing_get_port_mixer,
  18128. msm_routing_put_port_mixer),
  18129. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18130. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18131. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18132. msm_routing_get_port_mixer,
  18133. msm_routing_put_port_mixer),
  18134. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18135. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18136. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18137. msm_routing_get_port_mixer,
  18138. msm_routing_put_port_mixer),
  18139. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18140. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18141. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18142. msm_routing_get_port_mixer,
  18143. msm_routing_put_port_mixer),
  18144. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18145. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18146. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18147. msm_routing_get_port_mixer,
  18148. msm_routing_put_port_mixer),
  18149. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18150. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18151. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18152. msm_routing_get_port_mixer,
  18153. msm_routing_put_port_mixer),
  18154. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18155. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18156. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18157. msm_routing_get_port_mixer,
  18158. msm_routing_put_port_mixer),
  18159. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18160. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18161. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18162. msm_routing_get_port_mixer,
  18163. msm_routing_put_port_mixer),
  18164. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18165. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18166. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18167. msm_routing_get_port_mixer,
  18168. msm_routing_put_port_mixer),
  18169. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18170. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18171. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18172. msm_routing_get_port_mixer,
  18173. msm_routing_put_port_mixer),
  18174. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18175. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18176. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18177. msm_routing_get_port_mixer,
  18178. msm_routing_put_port_mixer),
  18179. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18180. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18181. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18182. msm_routing_get_port_mixer,
  18183. msm_routing_put_port_mixer),
  18184. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18185. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18186. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18187. msm_routing_get_port_mixer,
  18188. msm_routing_put_port_mixer),
  18189. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18190. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18191. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18192. msm_routing_get_port_mixer,
  18193. msm_routing_put_port_mixer),
  18194. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18195. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18196. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18197. msm_routing_get_port_mixer,
  18198. msm_routing_put_port_mixer),
  18199. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18200. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18201. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18202. msm_routing_get_port_mixer,
  18203. msm_routing_put_port_mixer),
  18204. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18205. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18206. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18207. msm_routing_get_port_mixer,
  18208. msm_routing_put_port_mixer),
  18209. };
  18210. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  18211. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18212. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18213. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18214. msm_routing_get_port_mixer,
  18215. msm_routing_put_port_mixer),
  18216. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18217. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18218. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18219. msm_routing_get_port_mixer,
  18220. msm_routing_put_port_mixer),
  18221. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18222. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18223. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18224. msm_routing_get_port_mixer,
  18225. msm_routing_put_port_mixer),
  18226. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18227. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18228. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18229. msm_routing_get_port_mixer,
  18230. msm_routing_put_port_mixer),
  18231. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18232. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18233. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18234. msm_routing_get_port_mixer,
  18235. msm_routing_put_port_mixer),
  18236. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18237. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18238. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18239. msm_routing_get_port_mixer,
  18240. msm_routing_put_port_mixer),
  18241. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18242. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18243. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18244. msm_routing_get_port_mixer,
  18245. msm_routing_put_port_mixer),
  18246. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18247. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18248. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18249. msm_routing_get_port_mixer,
  18250. msm_routing_put_port_mixer),
  18251. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18252. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18253. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18254. msm_routing_get_port_mixer,
  18255. msm_routing_put_port_mixer),
  18256. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18257. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18258. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18259. msm_routing_get_port_mixer,
  18260. msm_routing_put_port_mixer),
  18261. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18262. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18263. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18264. msm_routing_get_port_mixer,
  18265. msm_routing_put_port_mixer),
  18266. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18267. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18268. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18269. msm_routing_get_port_mixer,
  18270. msm_routing_put_port_mixer),
  18271. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18272. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18273. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18274. msm_routing_get_port_mixer,
  18275. msm_routing_put_port_mixer),
  18276. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18277. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18278. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18279. msm_routing_get_port_mixer,
  18280. msm_routing_put_port_mixer),
  18281. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18282. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18283. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18284. msm_routing_get_port_mixer,
  18285. msm_routing_put_port_mixer),
  18286. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18287. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18288. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18289. msm_routing_get_port_mixer,
  18290. msm_routing_put_port_mixer),
  18291. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18292. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18293. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18294. msm_routing_get_port_mixer,
  18295. msm_routing_put_port_mixer),
  18296. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18297. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18298. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18299. msm_routing_get_port_mixer,
  18300. msm_routing_put_port_mixer),
  18301. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18302. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18303. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18304. msm_routing_get_port_mixer,
  18305. msm_routing_put_port_mixer),
  18306. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18307. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18308. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18309. msm_routing_get_port_mixer,
  18310. msm_routing_put_port_mixer),
  18311. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18312. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18313. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18314. msm_routing_get_port_mixer,
  18315. msm_routing_put_port_mixer),
  18316. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18317. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18318. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18319. msm_routing_get_port_mixer,
  18320. msm_routing_put_port_mixer),
  18321. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18322. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18323. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18324. msm_routing_get_port_mixer,
  18325. msm_routing_put_port_mixer),
  18326. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18327. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18328. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18329. msm_routing_get_port_mixer,
  18330. msm_routing_put_port_mixer),
  18331. };
  18332. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  18333. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18334. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18335. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18336. msm_routing_get_port_mixer,
  18337. msm_routing_put_port_mixer),
  18338. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18339. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18340. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18341. msm_routing_get_port_mixer,
  18342. msm_routing_put_port_mixer),
  18343. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18344. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18345. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18346. msm_routing_get_port_mixer,
  18347. msm_routing_put_port_mixer),
  18348. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18349. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18350. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18351. msm_routing_get_port_mixer,
  18352. msm_routing_put_port_mixer),
  18353. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18354. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18355. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18356. msm_routing_get_port_mixer,
  18357. msm_routing_put_port_mixer),
  18358. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18359. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18360. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18361. msm_routing_get_port_mixer,
  18362. msm_routing_put_port_mixer),
  18363. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18364. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18365. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18366. msm_routing_get_port_mixer,
  18367. msm_routing_put_port_mixer),
  18368. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18369. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18370. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18371. msm_routing_get_port_mixer,
  18372. msm_routing_put_port_mixer),
  18373. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18374. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18375. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18376. msm_routing_get_port_mixer,
  18377. msm_routing_put_port_mixer),
  18378. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18379. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18380. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18381. msm_routing_get_port_mixer,
  18382. msm_routing_put_port_mixer),
  18383. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18384. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18385. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18386. msm_routing_get_port_mixer,
  18387. msm_routing_put_port_mixer),
  18388. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18389. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18390. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18391. msm_routing_get_port_mixer,
  18392. msm_routing_put_port_mixer),
  18393. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18394. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18395. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18396. msm_routing_get_port_mixer,
  18397. msm_routing_put_port_mixer),
  18398. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18399. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18400. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18401. msm_routing_get_port_mixer,
  18402. msm_routing_put_port_mixer),
  18403. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18404. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18405. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18406. msm_routing_get_port_mixer,
  18407. msm_routing_put_port_mixer),
  18408. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18409. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18410. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18411. msm_routing_get_port_mixer,
  18412. msm_routing_put_port_mixer),
  18413. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18414. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18415. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18416. msm_routing_get_port_mixer,
  18417. msm_routing_put_port_mixer),
  18418. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18419. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18420. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18421. msm_routing_get_port_mixer,
  18422. msm_routing_put_port_mixer),
  18423. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18424. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18425. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18426. msm_routing_get_port_mixer,
  18427. msm_routing_put_port_mixer),
  18428. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18429. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18430. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18431. msm_routing_get_port_mixer,
  18432. msm_routing_put_port_mixer),
  18433. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18434. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18435. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18436. msm_routing_get_port_mixer,
  18437. msm_routing_put_port_mixer),
  18438. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18439. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18440. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18441. msm_routing_get_port_mixer,
  18442. msm_routing_put_port_mixer),
  18443. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18444. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18445. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18446. msm_routing_get_port_mixer,
  18447. msm_routing_put_port_mixer),
  18448. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18449. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18450. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18451. msm_routing_get_port_mixer,
  18452. msm_routing_put_port_mixer),
  18453. };
  18454. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  18455. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18456. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18457. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18458. msm_routing_get_port_mixer,
  18459. msm_routing_put_port_mixer),
  18460. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18461. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18462. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18463. msm_routing_get_port_mixer,
  18464. msm_routing_put_port_mixer),
  18465. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18466. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18467. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18468. msm_routing_get_port_mixer,
  18469. msm_routing_put_port_mixer),
  18470. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18471. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18472. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18473. msm_routing_get_port_mixer,
  18474. msm_routing_put_port_mixer),
  18475. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18476. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18477. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18478. msm_routing_get_port_mixer,
  18479. msm_routing_put_port_mixer),
  18480. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18481. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18482. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18483. msm_routing_get_port_mixer,
  18484. msm_routing_put_port_mixer),
  18485. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18486. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18487. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18488. msm_routing_get_port_mixer,
  18489. msm_routing_put_port_mixer),
  18490. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18491. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18492. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18493. msm_routing_get_port_mixer,
  18494. msm_routing_put_port_mixer),
  18495. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18496. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18497. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18498. msm_routing_get_port_mixer,
  18499. msm_routing_put_port_mixer),
  18500. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18501. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18502. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18503. msm_routing_get_port_mixer,
  18504. msm_routing_put_port_mixer),
  18505. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18506. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18507. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18508. msm_routing_get_port_mixer,
  18509. msm_routing_put_port_mixer),
  18510. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18511. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18512. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18513. msm_routing_get_port_mixer,
  18514. msm_routing_put_port_mixer),
  18515. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18516. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18517. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18518. msm_routing_get_port_mixer,
  18519. msm_routing_put_port_mixer),
  18520. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18521. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18522. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18523. msm_routing_get_port_mixer,
  18524. msm_routing_put_port_mixer),
  18525. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18526. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18527. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18528. msm_routing_get_port_mixer,
  18529. msm_routing_put_port_mixer),
  18530. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18531. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18532. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18533. msm_routing_get_port_mixer,
  18534. msm_routing_put_port_mixer),
  18535. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18536. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18537. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18538. msm_routing_get_port_mixer,
  18539. msm_routing_put_port_mixer),
  18540. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18541. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18542. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18543. msm_routing_get_port_mixer,
  18544. msm_routing_put_port_mixer),
  18545. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18546. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18547. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18548. msm_routing_get_port_mixer,
  18549. msm_routing_put_port_mixer),
  18550. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18551. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18552. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18553. msm_routing_get_port_mixer,
  18554. msm_routing_put_port_mixer),
  18555. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18556. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18557. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18558. msm_routing_get_port_mixer,
  18559. msm_routing_put_port_mixer),
  18560. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18561. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18562. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18563. msm_routing_get_port_mixer,
  18564. msm_routing_put_port_mixer),
  18565. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18566. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18567. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18568. msm_routing_get_port_mixer,
  18569. msm_routing_put_port_mixer),
  18570. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18571. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18572. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18573. msm_routing_get_port_mixer,
  18574. msm_routing_put_port_mixer),
  18575. };
  18576. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  18577. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18578. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18579. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18580. msm_routing_get_port_mixer,
  18581. msm_routing_put_port_mixer),
  18582. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18583. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18584. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18585. msm_routing_get_port_mixer,
  18586. msm_routing_put_port_mixer),
  18587. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18588. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18589. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18590. msm_routing_get_port_mixer,
  18591. msm_routing_put_port_mixer),
  18592. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18593. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18594. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18595. msm_routing_get_port_mixer,
  18596. msm_routing_put_port_mixer),
  18597. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18598. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18599. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18600. msm_routing_get_port_mixer,
  18601. msm_routing_put_port_mixer),
  18602. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18603. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18604. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18605. msm_routing_get_port_mixer,
  18606. msm_routing_put_port_mixer),
  18607. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18608. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18609. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18610. msm_routing_get_port_mixer,
  18611. msm_routing_put_port_mixer),
  18612. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18613. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18614. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18615. msm_routing_get_port_mixer,
  18616. msm_routing_put_port_mixer),
  18617. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18618. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18619. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18620. msm_routing_get_port_mixer,
  18621. msm_routing_put_port_mixer),
  18622. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18623. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18624. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18625. msm_routing_get_port_mixer,
  18626. msm_routing_put_port_mixer),
  18627. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18628. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18629. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18630. msm_routing_get_port_mixer,
  18631. msm_routing_put_port_mixer),
  18632. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18633. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18634. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18635. msm_routing_get_port_mixer,
  18636. msm_routing_put_port_mixer),
  18637. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18638. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18639. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18640. msm_routing_get_port_mixer,
  18641. msm_routing_put_port_mixer),
  18642. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18643. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18644. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18645. msm_routing_get_port_mixer,
  18646. msm_routing_put_port_mixer),
  18647. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18648. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18649. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18650. msm_routing_get_port_mixer,
  18651. msm_routing_put_port_mixer),
  18652. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18653. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18654. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18655. msm_routing_get_port_mixer,
  18656. msm_routing_put_port_mixer),
  18657. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18658. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18659. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18660. msm_routing_get_port_mixer,
  18661. msm_routing_put_port_mixer),
  18662. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18663. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18664. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18665. msm_routing_get_port_mixer,
  18666. msm_routing_put_port_mixer),
  18667. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18668. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18669. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18670. msm_routing_get_port_mixer,
  18671. msm_routing_put_port_mixer),
  18672. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18673. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18674. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18675. msm_routing_get_port_mixer,
  18676. msm_routing_put_port_mixer),
  18677. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18678. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18679. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18680. msm_routing_get_port_mixer,
  18681. msm_routing_put_port_mixer),
  18682. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18683. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18684. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18685. msm_routing_get_port_mixer,
  18686. msm_routing_put_port_mixer),
  18687. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18688. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18689. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18690. msm_routing_get_port_mixer,
  18691. msm_routing_put_port_mixer),
  18692. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18693. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18694. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18695. msm_routing_get_port_mixer,
  18696. msm_routing_put_port_mixer),
  18697. };
  18698. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  18699. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18700. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18701. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18702. msm_routing_get_port_mixer,
  18703. msm_routing_put_port_mixer),
  18704. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18705. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18706. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18707. msm_routing_get_port_mixer,
  18708. msm_routing_put_port_mixer),
  18709. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18710. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18711. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18712. msm_routing_get_port_mixer,
  18713. msm_routing_put_port_mixer),
  18714. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18715. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18716. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18717. msm_routing_get_port_mixer,
  18718. msm_routing_put_port_mixer),
  18719. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18720. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18721. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18722. msm_routing_get_port_mixer,
  18723. msm_routing_put_port_mixer),
  18724. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18725. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18726. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18727. msm_routing_get_port_mixer,
  18728. msm_routing_put_port_mixer),
  18729. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18730. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18731. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18732. msm_routing_get_port_mixer,
  18733. msm_routing_put_port_mixer),
  18734. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18735. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18736. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18737. msm_routing_get_port_mixer,
  18738. msm_routing_put_port_mixer),
  18739. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18740. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18741. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18742. msm_routing_get_port_mixer,
  18743. msm_routing_put_port_mixer),
  18744. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18745. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18746. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18747. msm_routing_get_port_mixer,
  18748. msm_routing_put_port_mixer),
  18749. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18750. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18751. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18752. msm_routing_get_port_mixer,
  18753. msm_routing_put_port_mixer),
  18754. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18755. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18756. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18757. msm_routing_get_port_mixer,
  18758. msm_routing_put_port_mixer),
  18759. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18760. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18761. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18762. msm_routing_get_port_mixer,
  18763. msm_routing_put_port_mixer),
  18764. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18765. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18766. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18767. msm_routing_get_port_mixer,
  18768. msm_routing_put_port_mixer),
  18769. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18770. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18771. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18772. msm_routing_get_port_mixer,
  18773. msm_routing_put_port_mixer),
  18774. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18775. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18776. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18777. msm_routing_get_port_mixer,
  18778. msm_routing_put_port_mixer),
  18779. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18780. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18781. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18782. msm_routing_get_port_mixer,
  18783. msm_routing_put_port_mixer),
  18784. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18785. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18786. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18787. msm_routing_get_port_mixer,
  18788. msm_routing_put_port_mixer),
  18789. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18790. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18791. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18792. msm_routing_get_port_mixer,
  18793. msm_routing_put_port_mixer),
  18794. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18795. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18796. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18797. msm_routing_get_port_mixer,
  18798. msm_routing_put_port_mixer),
  18799. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18800. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18801. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18802. msm_routing_get_port_mixer,
  18803. msm_routing_put_port_mixer),
  18804. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18805. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18806. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18807. msm_routing_get_port_mixer,
  18808. msm_routing_put_port_mixer),
  18809. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18810. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18811. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18812. msm_routing_get_port_mixer,
  18813. msm_routing_put_port_mixer),
  18814. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18815. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18816. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18817. msm_routing_get_port_mixer,
  18818. msm_routing_put_port_mixer),
  18819. };
  18820. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  18821. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  18822. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  18823. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  18824. msm_routing_get_port_mixer,
  18825. msm_routing_put_port_mixer),
  18826. };
  18827. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  18828. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18829. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18830. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18831. msm_routing_get_port_mixer,
  18832. msm_routing_put_port_mixer),
  18833. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18834. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18835. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18836. msm_routing_get_port_mixer,
  18837. msm_routing_put_port_mixer),
  18838. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18839. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18840. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18841. msm_routing_get_port_mixer,
  18842. msm_routing_put_port_mixer),
  18843. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18844. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18845. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18846. msm_routing_get_port_mixer,
  18847. msm_routing_put_port_mixer),
  18848. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18849. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18850. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18851. msm_routing_get_port_mixer,
  18852. msm_routing_put_port_mixer),
  18853. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18854. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18855. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18856. msm_routing_get_port_mixer,
  18857. msm_routing_put_port_mixer),
  18858. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18859. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18860. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18861. msm_routing_get_port_mixer,
  18862. msm_routing_put_port_mixer),
  18863. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18864. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18865. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18866. msm_routing_get_port_mixer,
  18867. msm_routing_put_port_mixer),
  18868. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18869. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18870. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18871. msm_routing_get_port_mixer,
  18872. msm_routing_put_port_mixer),
  18873. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18874. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18875. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18876. msm_routing_get_port_mixer,
  18877. msm_routing_put_port_mixer),
  18878. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18879. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18880. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18881. msm_routing_get_port_mixer,
  18882. msm_routing_put_port_mixer),
  18883. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18884. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18885. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18886. msm_routing_get_port_mixer,
  18887. msm_routing_put_port_mixer),
  18888. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18889. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18890. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18891. msm_routing_get_port_mixer,
  18892. msm_routing_put_port_mixer),
  18893. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18894. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18895. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18896. msm_routing_get_port_mixer,
  18897. msm_routing_put_port_mixer),
  18898. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18899. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18900. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18901. msm_routing_get_port_mixer,
  18902. msm_routing_put_port_mixer),
  18903. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18904. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18905. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18906. msm_routing_get_port_mixer,
  18907. msm_routing_put_port_mixer),
  18908. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18909. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18910. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18911. msm_routing_get_port_mixer,
  18912. msm_routing_put_port_mixer),
  18913. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18914. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18915. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18916. msm_routing_get_port_mixer,
  18917. msm_routing_put_port_mixer),
  18918. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18919. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18920. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18921. msm_routing_get_port_mixer,
  18922. msm_routing_put_port_mixer),
  18923. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18924. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18925. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18926. msm_routing_get_port_mixer,
  18927. msm_routing_put_port_mixer),
  18928. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18929. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18930. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18931. msm_routing_get_port_mixer,
  18932. msm_routing_put_port_mixer),
  18933. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18934. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18935. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18936. msm_routing_get_port_mixer,
  18937. msm_routing_put_port_mixer),
  18938. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18939. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18940. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18941. msm_routing_get_port_mixer,
  18942. msm_routing_put_port_mixer),
  18943. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18944. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18945. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18946. msm_routing_get_port_mixer,
  18947. msm_routing_put_port_mixer),
  18948. };
  18949. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  18950. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18951. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18952. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18953. msm_routing_get_port_mixer,
  18954. msm_routing_put_port_mixer),
  18955. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18956. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18957. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18958. msm_routing_get_port_mixer,
  18959. msm_routing_put_port_mixer),
  18960. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18961. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18962. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18963. msm_routing_get_port_mixer,
  18964. msm_routing_put_port_mixer),
  18965. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18966. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18967. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18968. msm_routing_get_port_mixer,
  18969. msm_routing_put_port_mixer),
  18970. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18971. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18972. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18973. msm_routing_get_port_mixer,
  18974. msm_routing_put_port_mixer),
  18975. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18976. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18977. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18978. msm_routing_get_port_mixer,
  18979. msm_routing_put_port_mixer),
  18980. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18981. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18982. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18983. msm_routing_get_port_mixer,
  18984. msm_routing_put_port_mixer),
  18985. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18986. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18987. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18988. msm_routing_get_port_mixer,
  18989. msm_routing_put_port_mixer),
  18990. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18991. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18992. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18993. msm_routing_get_port_mixer,
  18994. msm_routing_put_port_mixer),
  18995. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18996. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18997. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18998. msm_routing_get_port_mixer,
  18999. msm_routing_put_port_mixer),
  19000. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19001. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19002. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19003. msm_routing_get_port_mixer,
  19004. msm_routing_put_port_mixer),
  19005. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19006. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19007. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19008. msm_routing_get_port_mixer,
  19009. msm_routing_put_port_mixer),
  19010. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19011. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19012. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19013. msm_routing_get_port_mixer,
  19014. msm_routing_put_port_mixer),
  19015. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19016. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19017. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19018. msm_routing_get_port_mixer,
  19019. msm_routing_put_port_mixer),
  19020. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19021. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19022. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19023. msm_routing_get_port_mixer,
  19024. msm_routing_put_port_mixer),
  19025. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19026. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19027. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19028. msm_routing_get_port_mixer,
  19029. msm_routing_put_port_mixer),
  19030. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19031. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19032. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19033. msm_routing_get_port_mixer,
  19034. msm_routing_put_port_mixer),
  19035. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19036. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19037. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19038. msm_routing_get_port_mixer,
  19039. msm_routing_put_port_mixer),
  19040. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19041. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19042. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19043. msm_routing_get_port_mixer,
  19044. msm_routing_put_port_mixer),
  19045. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19046. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19047. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19048. msm_routing_get_port_mixer,
  19049. msm_routing_put_port_mixer),
  19050. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19051. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19052. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19053. msm_routing_get_port_mixer,
  19054. msm_routing_put_port_mixer),
  19055. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19056. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19057. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19058. msm_routing_get_port_mixer,
  19059. msm_routing_put_port_mixer),
  19060. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19061. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19062. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19063. msm_routing_get_port_mixer,
  19064. msm_routing_put_port_mixer),
  19065. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19066. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19067. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19068. msm_routing_get_port_mixer,
  19069. msm_routing_put_port_mixer),
  19070. };
  19071. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  19072. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19073. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19074. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19075. msm_routing_get_port_mixer,
  19076. msm_routing_put_port_mixer),
  19077. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19078. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19079. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19080. msm_routing_get_port_mixer,
  19081. msm_routing_put_port_mixer),
  19082. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19083. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19084. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19085. msm_routing_get_port_mixer,
  19086. msm_routing_put_port_mixer),
  19087. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19088. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19089. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19090. msm_routing_get_port_mixer,
  19091. msm_routing_put_port_mixer),
  19092. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19093. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19094. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19095. msm_routing_get_port_mixer,
  19096. msm_routing_put_port_mixer),
  19097. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19098. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19099. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19100. msm_routing_get_port_mixer,
  19101. msm_routing_put_port_mixer),
  19102. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19103. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19104. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19105. msm_routing_get_port_mixer,
  19106. msm_routing_put_port_mixer),
  19107. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19108. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19109. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19110. msm_routing_get_port_mixer,
  19111. msm_routing_put_port_mixer),
  19112. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19113. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19114. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19115. msm_routing_get_port_mixer,
  19116. msm_routing_put_port_mixer),
  19117. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19118. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19119. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19120. msm_routing_get_port_mixer,
  19121. msm_routing_put_port_mixer),
  19122. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19123. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19124. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19125. msm_routing_get_port_mixer,
  19126. msm_routing_put_port_mixer),
  19127. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19128. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19129. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19130. msm_routing_get_port_mixer,
  19131. msm_routing_put_port_mixer),
  19132. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19133. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19134. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19135. msm_routing_get_port_mixer,
  19136. msm_routing_put_port_mixer),
  19137. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19138. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19139. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19140. msm_routing_get_port_mixer,
  19141. msm_routing_put_port_mixer),
  19142. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19143. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19144. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19145. msm_routing_get_port_mixer,
  19146. msm_routing_put_port_mixer),
  19147. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19148. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19149. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19150. msm_routing_get_port_mixer,
  19151. msm_routing_put_port_mixer),
  19152. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19153. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19154. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19155. msm_routing_get_port_mixer,
  19156. msm_routing_put_port_mixer),
  19157. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19158. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19159. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19160. msm_routing_get_port_mixer,
  19161. msm_routing_put_port_mixer),
  19162. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19163. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19164. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19165. msm_routing_get_port_mixer,
  19166. msm_routing_put_port_mixer),
  19167. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19168. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19169. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19170. msm_routing_get_port_mixer,
  19171. msm_routing_put_port_mixer),
  19172. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19173. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19174. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19175. msm_routing_get_port_mixer,
  19176. msm_routing_put_port_mixer),
  19177. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19178. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19179. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19180. msm_routing_get_port_mixer,
  19181. msm_routing_put_port_mixer),
  19182. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19183. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19184. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19185. msm_routing_get_port_mixer,
  19186. msm_routing_put_port_mixer),
  19187. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19188. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19189. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19190. msm_routing_get_port_mixer,
  19191. msm_routing_put_port_mixer),
  19192. };
  19193. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  19194. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19195. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19196. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19197. msm_routing_get_port_mixer,
  19198. msm_routing_put_port_mixer),
  19199. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19200. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19201. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19202. msm_routing_get_port_mixer,
  19203. msm_routing_put_port_mixer),
  19204. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19205. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19206. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19207. msm_routing_get_port_mixer,
  19208. msm_routing_put_port_mixer),
  19209. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19210. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19211. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19212. msm_routing_get_port_mixer,
  19213. msm_routing_put_port_mixer),
  19214. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19215. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19216. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19217. msm_routing_get_port_mixer,
  19218. msm_routing_put_port_mixer),
  19219. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19220. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19221. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19222. msm_routing_get_port_mixer,
  19223. msm_routing_put_port_mixer),
  19224. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19225. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19226. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19227. msm_routing_get_port_mixer,
  19228. msm_routing_put_port_mixer),
  19229. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19230. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19231. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19232. msm_routing_get_port_mixer,
  19233. msm_routing_put_port_mixer),
  19234. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19235. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19236. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19237. msm_routing_get_port_mixer,
  19238. msm_routing_put_port_mixer),
  19239. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19240. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19241. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19242. msm_routing_get_port_mixer,
  19243. msm_routing_put_port_mixer),
  19244. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19245. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19246. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19247. msm_routing_get_port_mixer,
  19248. msm_routing_put_port_mixer),
  19249. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19250. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19251. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19252. msm_routing_get_port_mixer,
  19253. msm_routing_put_port_mixer),
  19254. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19255. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19256. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19257. msm_routing_get_port_mixer,
  19258. msm_routing_put_port_mixer),
  19259. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19260. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19261. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19262. msm_routing_get_port_mixer,
  19263. msm_routing_put_port_mixer),
  19264. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19265. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19266. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19267. msm_routing_get_port_mixer,
  19268. msm_routing_put_port_mixer),
  19269. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19270. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19271. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19272. msm_routing_get_port_mixer,
  19273. msm_routing_put_port_mixer),
  19274. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19275. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19276. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19277. msm_routing_get_port_mixer,
  19278. msm_routing_put_port_mixer),
  19279. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19280. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19281. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19282. msm_routing_get_port_mixer,
  19283. msm_routing_put_port_mixer),
  19284. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19285. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19286. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19287. msm_routing_get_port_mixer,
  19288. msm_routing_put_port_mixer),
  19289. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19290. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19291. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19292. msm_routing_get_port_mixer,
  19293. msm_routing_put_port_mixer),
  19294. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19295. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19296. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19297. msm_routing_get_port_mixer,
  19298. msm_routing_put_port_mixer),
  19299. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19300. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19301. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19302. msm_routing_get_port_mixer,
  19303. msm_routing_put_port_mixer),
  19304. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19305. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19306. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19307. msm_routing_get_port_mixer,
  19308. msm_routing_put_port_mixer),
  19309. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19310. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19311. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19312. msm_routing_get_port_mixer,
  19313. msm_routing_put_port_mixer),
  19314. };
  19315. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  19316. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19317. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19318. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19319. msm_routing_get_port_mixer,
  19320. msm_routing_put_port_mixer),
  19321. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19322. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19323. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19324. msm_routing_get_port_mixer,
  19325. msm_routing_put_port_mixer),
  19326. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19327. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19328. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19329. msm_routing_get_port_mixer,
  19330. msm_routing_put_port_mixer),
  19331. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19332. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19333. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19334. msm_routing_get_port_mixer,
  19335. msm_routing_put_port_mixer),
  19336. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19337. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19338. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19339. msm_routing_get_port_mixer,
  19340. msm_routing_put_port_mixer),
  19341. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19342. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19343. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19344. msm_routing_get_port_mixer,
  19345. msm_routing_put_port_mixer),
  19346. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19347. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19348. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19349. msm_routing_get_port_mixer,
  19350. msm_routing_put_port_mixer),
  19351. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19352. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19353. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19354. msm_routing_get_port_mixer,
  19355. msm_routing_put_port_mixer),
  19356. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19357. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19358. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19359. msm_routing_get_port_mixer,
  19360. msm_routing_put_port_mixer),
  19361. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19362. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19363. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19364. msm_routing_get_port_mixer,
  19365. msm_routing_put_port_mixer),
  19366. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19367. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19368. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19369. msm_routing_get_port_mixer,
  19370. msm_routing_put_port_mixer),
  19371. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19372. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19373. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19374. msm_routing_get_port_mixer,
  19375. msm_routing_put_port_mixer),
  19376. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19377. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19378. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19379. msm_routing_get_port_mixer,
  19380. msm_routing_put_port_mixer),
  19381. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19382. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19383. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19384. msm_routing_get_port_mixer,
  19385. msm_routing_put_port_mixer),
  19386. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19387. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19388. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19389. msm_routing_get_port_mixer,
  19390. msm_routing_put_port_mixer),
  19391. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19392. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19393. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19394. msm_routing_get_port_mixer,
  19395. msm_routing_put_port_mixer),
  19396. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19397. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19398. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19399. msm_routing_get_port_mixer,
  19400. msm_routing_put_port_mixer),
  19401. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19402. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19403. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19404. msm_routing_get_port_mixer,
  19405. msm_routing_put_port_mixer),
  19406. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19407. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19408. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19409. msm_routing_get_port_mixer,
  19410. msm_routing_put_port_mixer),
  19411. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19412. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19413. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19414. msm_routing_get_port_mixer,
  19415. msm_routing_put_port_mixer),
  19416. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19417. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19418. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19419. msm_routing_get_port_mixer,
  19420. msm_routing_put_port_mixer),
  19421. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19422. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19423. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19424. msm_routing_get_port_mixer,
  19425. msm_routing_put_port_mixer),
  19426. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19427. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19428. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19429. msm_routing_get_port_mixer,
  19430. msm_routing_put_port_mixer),
  19431. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19432. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19433. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19434. msm_routing_get_port_mixer,
  19435. msm_routing_put_port_mixer),
  19436. };
  19437. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  19438. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19439. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19440. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19441. msm_routing_get_port_mixer,
  19442. msm_routing_put_port_mixer),
  19443. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19444. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19445. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19446. msm_routing_get_port_mixer,
  19447. msm_routing_put_port_mixer),
  19448. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19449. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19450. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19451. msm_routing_get_port_mixer,
  19452. msm_routing_put_port_mixer),
  19453. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19454. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19455. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19456. msm_routing_get_port_mixer,
  19457. msm_routing_put_port_mixer),
  19458. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19459. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19460. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19461. msm_routing_get_port_mixer,
  19462. msm_routing_put_port_mixer),
  19463. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19464. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19465. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19466. msm_routing_get_port_mixer,
  19467. msm_routing_put_port_mixer),
  19468. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19469. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19470. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19471. msm_routing_get_port_mixer,
  19472. msm_routing_put_port_mixer),
  19473. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19474. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19475. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19476. msm_routing_get_port_mixer,
  19477. msm_routing_put_port_mixer),
  19478. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19479. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19480. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19481. msm_routing_get_port_mixer,
  19482. msm_routing_put_port_mixer),
  19483. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19484. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19485. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19486. msm_routing_get_port_mixer,
  19487. msm_routing_put_port_mixer),
  19488. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19489. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19490. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19491. msm_routing_get_port_mixer,
  19492. msm_routing_put_port_mixer),
  19493. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19494. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19495. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19496. msm_routing_get_port_mixer,
  19497. msm_routing_put_port_mixer),
  19498. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19499. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19500. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19501. msm_routing_get_port_mixer,
  19502. msm_routing_put_port_mixer),
  19503. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19504. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19505. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19506. msm_routing_get_port_mixer,
  19507. msm_routing_put_port_mixer),
  19508. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19509. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19510. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19511. msm_routing_get_port_mixer,
  19512. msm_routing_put_port_mixer),
  19513. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19514. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19515. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19516. msm_routing_get_port_mixer,
  19517. msm_routing_put_port_mixer),
  19518. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19519. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19520. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19521. msm_routing_get_port_mixer,
  19522. msm_routing_put_port_mixer),
  19523. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19524. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19525. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19526. msm_routing_get_port_mixer,
  19527. msm_routing_put_port_mixer),
  19528. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19529. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19530. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19531. msm_routing_get_port_mixer,
  19532. msm_routing_put_port_mixer),
  19533. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19534. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19535. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19536. msm_routing_get_port_mixer,
  19537. msm_routing_put_port_mixer),
  19538. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19539. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19540. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19541. msm_routing_get_port_mixer,
  19542. msm_routing_put_port_mixer),
  19543. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19544. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19545. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19546. msm_routing_get_port_mixer,
  19547. msm_routing_put_port_mixer),
  19548. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19549. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19550. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19551. msm_routing_get_port_mixer,
  19552. msm_routing_put_port_mixer),
  19553. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19554. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19555. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19556. msm_routing_get_port_mixer,
  19557. msm_routing_put_port_mixer),
  19558. };
  19559. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  19560. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19561. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19562. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19563. msm_routing_get_port_mixer,
  19564. msm_routing_put_port_mixer),
  19565. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19566. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19567. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19568. msm_routing_get_port_mixer,
  19569. msm_routing_put_port_mixer),
  19570. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19571. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19572. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19573. msm_routing_get_port_mixer,
  19574. msm_routing_put_port_mixer),
  19575. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19576. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19577. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19578. msm_routing_get_port_mixer,
  19579. msm_routing_put_port_mixer),
  19580. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19581. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19582. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19583. msm_routing_get_port_mixer,
  19584. msm_routing_put_port_mixer),
  19585. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19586. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19587. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19588. msm_routing_get_port_mixer,
  19589. msm_routing_put_port_mixer),
  19590. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19591. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19592. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19593. msm_routing_get_port_mixer,
  19594. msm_routing_put_port_mixer),
  19595. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19596. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19597. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19598. msm_routing_get_port_mixer,
  19599. msm_routing_put_port_mixer),
  19600. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19601. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19602. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19603. msm_routing_get_port_mixer,
  19604. msm_routing_put_port_mixer),
  19605. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19606. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19607. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19608. msm_routing_get_port_mixer,
  19609. msm_routing_put_port_mixer),
  19610. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19611. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19612. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19613. msm_routing_get_port_mixer,
  19614. msm_routing_put_port_mixer),
  19615. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19616. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19617. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19618. msm_routing_get_port_mixer,
  19619. msm_routing_put_port_mixer),
  19620. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19621. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19622. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19623. msm_routing_get_port_mixer,
  19624. msm_routing_put_port_mixer),
  19625. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19626. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19627. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19628. msm_routing_get_port_mixer,
  19629. msm_routing_put_port_mixer),
  19630. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19631. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19632. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19633. msm_routing_get_port_mixer,
  19634. msm_routing_put_port_mixer),
  19635. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19636. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19637. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19638. msm_routing_get_port_mixer,
  19639. msm_routing_put_port_mixer),
  19640. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19641. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19642. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19643. msm_routing_get_port_mixer,
  19644. msm_routing_put_port_mixer),
  19645. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19646. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19647. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19648. msm_routing_get_port_mixer,
  19649. msm_routing_put_port_mixer),
  19650. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19651. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19652. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19653. msm_routing_get_port_mixer,
  19654. msm_routing_put_port_mixer),
  19655. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19656. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19657. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19658. msm_routing_get_port_mixer,
  19659. msm_routing_put_port_mixer),
  19660. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19661. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19662. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19663. msm_routing_get_port_mixer,
  19664. msm_routing_put_port_mixer),
  19665. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19666. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19667. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19668. msm_routing_get_port_mixer,
  19669. msm_routing_put_port_mixer),
  19670. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19671. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19672. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19673. msm_routing_get_port_mixer,
  19674. msm_routing_put_port_mixer),
  19675. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19676. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19677. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19678. msm_routing_get_port_mixer,
  19679. msm_routing_put_port_mixer),
  19680. };
  19681. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  19682. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19683. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19684. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19685. msm_routing_get_port_mixer,
  19686. msm_routing_put_port_mixer),
  19687. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19688. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19689. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19690. msm_routing_get_port_mixer,
  19691. msm_routing_put_port_mixer),
  19692. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19693. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19694. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19695. msm_routing_get_port_mixer,
  19696. msm_routing_put_port_mixer),
  19697. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19698. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19699. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19700. msm_routing_get_port_mixer,
  19701. msm_routing_put_port_mixer),
  19702. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19703. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19704. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19705. msm_routing_get_port_mixer,
  19706. msm_routing_put_port_mixer),
  19707. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19708. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19709. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19710. msm_routing_get_port_mixer,
  19711. msm_routing_put_port_mixer),
  19712. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19713. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19714. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19715. msm_routing_get_port_mixer,
  19716. msm_routing_put_port_mixer),
  19717. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19718. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19719. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19720. msm_routing_get_port_mixer,
  19721. msm_routing_put_port_mixer),
  19722. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19723. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19724. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19725. msm_routing_get_port_mixer,
  19726. msm_routing_put_port_mixer),
  19727. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19728. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19729. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19730. msm_routing_get_port_mixer,
  19731. msm_routing_put_port_mixer),
  19732. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19733. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19734. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19735. msm_routing_get_port_mixer,
  19736. msm_routing_put_port_mixer),
  19737. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19738. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19739. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19740. msm_routing_get_port_mixer,
  19741. msm_routing_put_port_mixer),
  19742. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19743. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19744. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19745. msm_routing_get_port_mixer,
  19746. msm_routing_put_port_mixer),
  19747. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19748. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19749. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19750. msm_routing_get_port_mixer,
  19751. msm_routing_put_port_mixer),
  19752. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19753. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19754. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19755. msm_routing_get_port_mixer,
  19756. msm_routing_put_port_mixer),
  19757. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19758. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19759. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19760. msm_routing_get_port_mixer,
  19761. msm_routing_put_port_mixer),
  19762. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19763. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19764. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19765. msm_routing_get_port_mixer,
  19766. msm_routing_put_port_mixer),
  19767. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19768. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19769. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19770. msm_routing_get_port_mixer,
  19771. msm_routing_put_port_mixer),
  19772. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19773. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19774. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19775. msm_routing_get_port_mixer,
  19776. msm_routing_put_port_mixer),
  19777. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19778. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19779. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19780. msm_routing_get_port_mixer,
  19781. msm_routing_put_port_mixer),
  19782. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19783. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19784. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19785. msm_routing_get_port_mixer,
  19786. msm_routing_put_port_mixer),
  19787. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19788. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19789. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19790. msm_routing_get_port_mixer,
  19791. msm_routing_put_port_mixer),
  19792. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19793. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19794. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19795. msm_routing_get_port_mixer,
  19796. msm_routing_put_port_mixer),
  19797. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19798. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19799. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19800. msm_routing_get_port_mixer,
  19801. msm_routing_put_port_mixer),
  19802. };
  19803. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  19804. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  19805. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19806. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  19807. msm_routing_get_port_mixer,
  19808. msm_routing_put_port_mixer),
  19809. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  19810. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19811. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  19812. msm_routing_get_port_mixer,
  19813. msm_routing_put_port_mixer),
  19814. };
  19815. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  19816. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19817. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19818. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19819. msm_routing_get_port_mixer,
  19820. msm_routing_put_port_mixer),
  19821. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19822. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19823. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19824. msm_routing_get_port_mixer,
  19825. msm_routing_put_port_mixer),
  19826. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19827. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19828. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19829. msm_routing_get_port_mixer,
  19830. msm_routing_put_port_mixer),
  19831. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19832. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19833. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19834. msm_routing_get_port_mixer,
  19835. msm_routing_put_port_mixer),
  19836. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19837. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19838. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19839. msm_routing_get_port_mixer,
  19840. msm_routing_put_port_mixer),
  19841. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19842. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19843. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19844. msm_routing_get_port_mixer,
  19845. msm_routing_put_port_mixer),
  19846. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19847. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19848. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19849. msm_routing_get_port_mixer,
  19850. msm_routing_put_port_mixer),
  19851. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19852. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19853. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19854. msm_routing_get_port_mixer,
  19855. msm_routing_put_port_mixer),
  19856. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19857. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19858. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19859. msm_routing_get_port_mixer,
  19860. msm_routing_put_port_mixer),
  19861. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19862. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19863. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19864. msm_routing_get_port_mixer,
  19865. msm_routing_put_port_mixer),
  19866. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19867. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19868. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19869. msm_routing_get_port_mixer,
  19870. msm_routing_put_port_mixer),
  19871. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19872. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19873. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19874. msm_routing_get_port_mixer,
  19875. msm_routing_put_port_mixer),
  19876. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19877. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19878. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19879. msm_routing_get_port_mixer,
  19880. msm_routing_put_port_mixer),
  19881. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19882. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19883. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19884. msm_routing_get_port_mixer,
  19885. msm_routing_put_port_mixer),
  19886. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19887. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19888. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19889. msm_routing_get_port_mixer,
  19890. msm_routing_put_port_mixer),
  19891. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19892. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19893. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19894. msm_routing_get_port_mixer,
  19895. msm_routing_put_port_mixer),
  19896. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19897. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19898. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19899. msm_routing_get_port_mixer,
  19900. msm_routing_put_port_mixer),
  19901. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19902. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19903. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19904. msm_routing_get_port_mixer,
  19905. msm_routing_put_port_mixer),
  19906. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19907. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19908. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19909. msm_routing_get_port_mixer,
  19910. msm_routing_put_port_mixer),
  19911. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19912. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19913. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19914. msm_routing_get_port_mixer,
  19915. msm_routing_put_port_mixer),
  19916. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19917. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19918. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19919. msm_routing_get_port_mixer,
  19920. msm_routing_put_port_mixer),
  19921. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19922. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19923. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19924. msm_routing_get_port_mixer,
  19925. msm_routing_put_port_mixer),
  19926. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19927. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19928. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19929. msm_routing_get_port_mixer,
  19930. msm_routing_put_port_mixer),
  19931. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19932. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19933. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19934. msm_routing_get_port_mixer,
  19935. msm_routing_put_port_mixer),
  19936. };
  19937. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  19938. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19939. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19940. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19941. msm_routing_get_port_mixer,
  19942. msm_routing_put_port_mixer),
  19943. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19944. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19945. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19946. msm_routing_get_port_mixer,
  19947. msm_routing_put_port_mixer),
  19948. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19949. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19950. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19951. msm_routing_get_port_mixer,
  19952. msm_routing_put_port_mixer),
  19953. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19954. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19955. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19956. msm_routing_get_port_mixer,
  19957. msm_routing_put_port_mixer),
  19958. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19959. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19960. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19961. msm_routing_get_port_mixer,
  19962. msm_routing_put_port_mixer),
  19963. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19964. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19965. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19966. msm_routing_get_port_mixer,
  19967. msm_routing_put_port_mixer),
  19968. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19969. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19970. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19971. msm_routing_get_port_mixer,
  19972. msm_routing_put_port_mixer),
  19973. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19974. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19975. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19976. msm_routing_get_port_mixer,
  19977. msm_routing_put_port_mixer),
  19978. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19979. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19980. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19981. msm_routing_get_port_mixer,
  19982. msm_routing_put_port_mixer),
  19983. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19984. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19985. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19986. msm_routing_get_port_mixer,
  19987. msm_routing_put_port_mixer),
  19988. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19989. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19990. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19991. msm_routing_get_port_mixer,
  19992. msm_routing_put_port_mixer),
  19993. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19994. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19995. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19996. msm_routing_get_port_mixer,
  19997. msm_routing_put_port_mixer),
  19998. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19999. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20000. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20001. msm_routing_get_port_mixer,
  20002. msm_routing_put_port_mixer),
  20003. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20004. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20005. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20006. msm_routing_get_port_mixer,
  20007. msm_routing_put_port_mixer),
  20008. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20009. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20010. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20011. msm_routing_get_port_mixer,
  20012. msm_routing_put_port_mixer),
  20013. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20014. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20015. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20016. msm_routing_get_port_mixer,
  20017. msm_routing_put_port_mixer),
  20018. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20019. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20020. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20021. msm_routing_get_port_mixer,
  20022. msm_routing_put_port_mixer),
  20023. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20024. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20025. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20026. msm_routing_get_port_mixer,
  20027. msm_routing_put_port_mixer),
  20028. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20029. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20030. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20031. msm_routing_get_port_mixer,
  20032. msm_routing_put_port_mixer),
  20033. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20034. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20035. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20036. msm_routing_get_port_mixer,
  20037. msm_routing_put_port_mixer),
  20038. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20039. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20040. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20041. msm_routing_get_port_mixer,
  20042. msm_routing_put_port_mixer),
  20043. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20044. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20045. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20046. msm_routing_get_port_mixer,
  20047. msm_routing_put_port_mixer),
  20048. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20049. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20050. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20051. msm_routing_get_port_mixer,
  20052. msm_routing_put_port_mixer),
  20053. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20054. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20055. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20056. msm_routing_get_port_mixer,
  20057. msm_routing_put_port_mixer),
  20058. };
  20059. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  20060. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20061. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20062. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20063. msm_routing_get_port_mixer,
  20064. msm_routing_put_port_mixer),
  20065. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20066. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20067. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20068. msm_routing_get_port_mixer,
  20069. msm_routing_put_port_mixer),
  20070. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20071. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20072. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20073. msm_routing_get_port_mixer,
  20074. msm_routing_put_port_mixer),
  20075. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20076. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20077. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20078. msm_routing_get_port_mixer,
  20079. msm_routing_put_port_mixer),
  20080. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20081. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20082. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20083. msm_routing_get_port_mixer,
  20084. msm_routing_put_port_mixer),
  20085. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20086. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20087. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20088. msm_routing_get_port_mixer,
  20089. msm_routing_put_port_mixer),
  20090. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20091. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20092. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20093. msm_routing_get_port_mixer,
  20094. msm_routing_put_port_mixer),
  20095. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20096. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20097. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20098. msm_routing_get_port_mixer,
  20099. msm_routing_put_port_mixer),
  20100. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20101. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20102. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20103. msm_routing_get_port_mixer,
  20104. msm_routing_put_port_mixer),
  20105. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20106. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20107. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20108. msm_routing_get_port_mixer,
  20109. msm_routing_put_port_mixer),
  20110. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20111. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20112. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20113. msm_routing_get_port_mixer,
  20114. msm_routing_put_port_mixer),
  20115. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20116. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20117. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20118. msm_routing_get_port_mixer,
  20119. msm_routing_put_port_mixer),
  20120. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20121. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20122. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20123. msm_routing_get_port_mixer,
  20124. msm_routing_put_port_mixer),
  20125. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20126. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20127. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20128. msm_routing_get_port_mixer,
  20129. msm_routing_put_port_mixer),
  20130. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20131. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20132. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20133. msm_routing_get_port_mixer,
  20134. msm_routing_put_port_mixer),
  20135. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20136. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20137. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20138. msm_routing_get_port_mixer,
  20139. msm_routing_put_port_mixer),
  20140. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20141. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20142. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20143. msm_routing_get_port_mixer,
  20144. msm_routing_put_port_mixer),
  20145. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20146. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20147. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20148. msm_routing_get_port_mixer,
  20149. msm_routing_put_port_mixer),
  20150. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20151. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20152. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20153. msm_routing_get_port_mixer,
  20154. msm_routing_put_port_mixer),
  20155. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20156. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20157. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20158. msm_routing_get_port_mixer,
  20159. msm_routing_put_port_mixer),
  20160. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20161. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20162. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20163. msm_routing_get_port_mixer,
  20164. msm_routing_put_port_mixer),
  20165. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20166. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20167. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20168. msm_routing_get_port_mixer,
  20169. msm_routing_put_port_mixer),
  20170. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20171. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20172. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20173. msm_routing_get_port_mixer,
  20174. msm_routing_put_port_mixer),
  20175. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20176. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20177. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20178. msm_routing_get_port_mixer,
  20179. msm_routing_put_port_mixer),
  20180. };
  20181. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  20182. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20183. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20184. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20185. msm_routing_get_port_mixer,
  20186. msm_routing_put_port_mixer),
  20187. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20188. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20189. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20190. msm_routing_get_port_mixer,
  20191. msm_routing_put_port_mixer),
  20192. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20193. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20194. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20195. msm_routing_get_port_mixer,
  20196. msm_routing_put_port_mixer),
  20197. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20198. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20199. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20200. msm_routing_get_port_mixer,
  20201. msm_routing_put_port_mixer),
  20202. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20203. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20204. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20205. msm_routing_get_port_mixer,
  20206. msm_routing_put_port_mixer),
  20207. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20208. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20209. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20210. msm_routing_get_port_mixer,
  20211. msm_routing_put_port_mixer),
  20212. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20213. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20214. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20215. msm_routing_get_port_mixer,
  20216. msm_routing_put_port_mixer),
  20217. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20218. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20219. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20220. msm_routing_get_port_mixer,
  20221. msm_routing_put_port_mixer),
  20222. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20223. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20224. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20225. msm_routing_get_port_mixer,
  20226. msm_routing_put_port_mixer),
  20227. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20228. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20229. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20230. msm_routing_get_port_mixer,
  20231. msm_routing_put_port_mixer),
  20232. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20233. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20234. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20235. msm_routing_get_port_mixer,
  20236. msm_routing_put_port_mixer),
  20237. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20238. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20239. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20240. msm_routing_get_port_mixer,
  20241. msm_routing_put_port_mixer),
  20242. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20243. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20244. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20245. msm_routing_get_port_mixer,
  20246. msm_routing_put_port_mixer),
  20247. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20248. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20249. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20250. msm_routing_get_port_mixer,
  20251. msm_routing_put_port_mixer),
  20252. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20253. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20254. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20255. msm_routing_get_port_mixer,
  20256. msm_routing_put_port_mixer),
  20257. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20258. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20259. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20260. msm_routing_get_port_mixer,
  20261. msm_routing_put_port_mixer),
  20262. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20263. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20264. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20265. msm_routing_get_port_mixer,
  20266. msm_routing_put_port_mixer),
  20267. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20268. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20269. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20270. msm_routing_get_port_mixer,
  20271. msm_routing_put_port_mixer),
  20272. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20273. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20274. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20275. msm_routing_get_port_mixer,
  20276. msm_routing_put_port_mixer),
  20277. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20278. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20279. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20280. msm_routing_get_port_mixer,
  20281. msm_routing_put_port_mixer),
  20282. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20283. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20284. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20285. msm_routing_get_port_mixer,
  20286. msm_routing_put_port_mixer),
  20287. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20288. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20289. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20290. msm_routing_get_port_mixer,
  20291. msm_routing_put_port_mixer),
  20292. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20293. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20294. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20295. msm_routing_get_port_mixer,
  20296. msm_routing_put_port_mixer),
  20297. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20298. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20299. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20300. msm_routing_get_port_mixer,
  20301. msm_routing_put_port_mixer),
  20302. };
  20303. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  20304. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20305. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20306. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20307. msm_routing_get_port_mixer,
  20308. msm_routing_put_port_mixer),
  20309. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20310. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20311. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20312. msm_routing_get_port_mixer,
  20313. msm_routing_put_port_mixer),
  20314. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20315. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20316. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20317. msm_routing_get_port_mixer,
  20318. msm_routing_put_port_mixer),
  20319. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20320. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20321. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20322. msm_routing_get_port_mixer,
  20323. msm_routing_put_port_mixer),
  20324. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20325. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20326. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20327. msm_routing_get_port_mixer,
  20328. msm_routing_put_port_mixer),
  20329. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20330. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20331. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20332. msm_routing_get_port_mixer,
  20333. msm_routing_put_port_mixer),
  20334. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20335. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20336. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20337. msm_routing_get_port_mixer,
  20338. msm_routing_put_port_mixer),
  20339. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20340. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20341. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20342. msm_routing_get_port_mixer,
  20343. msm_routing_put_port_mixer),
  20344. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20345. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20346. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20347. msm_routing_get_port_mixer,
  20348. msm_routing_put_port_mixer),
  20349. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20350. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20351. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20352. msm_routing_get_port_mixer,
  20353. msm_routing_put_port_mixer),
  20354. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20355. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20356. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20357. msm_routing_get_port_mixer,
  20358. msm_routing_put_port_mixer),
  20359. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20360. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20361. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20362. msm_routing_get_port_mixer,
  20363. msm_routing_put_port_mixer),
  20364. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20365. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20366. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20367. msm_routing_get_port_mixer,
  20368. msm_routing_put_port_mixer),
  20369. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20370. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20371. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20372. msm_routing_get_port_mixer,
  20373. msm_routing_put_port_mixer),
  20374. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20375. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20376. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20377. msm_routing_get_port_mixer,
  20378. msm_routing_put_port_mixer),
  20379. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20380. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20381. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20382. msm_routing_get_port_mixer,
  20383. msm_routing_put_port_mixer),
  20384. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20385. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20386. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20387. msm_routing_get_port_mixer,
  20388. msm_routing_put_port_mixer),
  20389. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20390. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20391. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20392. msm_routing_get_port_mixer,
  20393. msm_routing_put_port_mixer),
  20394. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20395. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20396. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20397. msm_routing_get_port_mixer,
  20398. msm_routing_put_port_mixer),
  20399. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20400. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20401. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20402. msm_routing_get_port_mixer,
  20403. msm_routing_put_port_mixer),
  20404. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20405. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20406. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20407. msm_routing_get_port_mixer,
  20408. msm_routing_put_port_mixer),
  20409. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20410. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20411. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20412. msm_routing_get_port_mixer,
  20413. msm_routing_put_port_mixer),
  20414. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20415. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20416. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20417. msm_routing_get_port_mixer,
  20418. msm_routing_put_port_mixer),
  20419. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20420. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20421. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20422. msm_routing_get_port_mixer,
  20423. msm_routing_put_port_mixer),
  20424. };
  20425. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  20426. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20427. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20428. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20429. msm_routing_get_port_mixer,
  20430. msm_routing_put_port_mixer),
  20431. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20432. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20433. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20434. msm_routing_get_port_mixer,
  20435. msm_routing_put_port_mixer),
  20436. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20437. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20438. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20439. msm_routing_get_port_mixer,
  20440. msm_routing_put_port_mixer),
  20441. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20442. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20443. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20444. msm_routing_get_port_mixer,
  20445. msm_routing_put_port_mixer),
  20446. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20447. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20448. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20449. msm_routing_get_port_mixer,
  20450. msm_routing_put_port_mixer),
  20451. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20452. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20453. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20454. msm_routing_get_port_mixer,
  20455. msm_routing_put_port_mixer),
  20456. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20457. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20458. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20459. msm_routing_get_port_mixer,
  20460. msm_routing_put_port_mixer),
  20461. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20462. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20463. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20464. msm_routing_get_port_mixer,
  20465. msm_routing_put_port_mixer),
  20466. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20467. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20468. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20469. msm_routing_get_port_mixer,
  20470. msm_routing_put_port_mixer),
  20471. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20472. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20473. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20474. msm_routing_get_port_mixer,
  20475. msm_routing_put_port_mixer),
  20476. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20477. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20478. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20479. msm_routing_get_port_mixer,
  20480. msm_routing_put_port_mixer),
  20481. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20482. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20483. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20484. msm_routing_get_port_mixer,
  20485. msm_routing_put_port_mixer),
  20486. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20487. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20488. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20489. msm_routing_get_port_mixer,
  20490. msm_routing_put_port_mixer),
  20491. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20492. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20493. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20494. msm_routing_get_port_mixer,
  20495. msm_routing_put_port_mixer),
  20496. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20497. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20498. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20499. msm_routing_get_port_mixer,
  20500. msm_routing_put_port_mixer),
  20501. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20502. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20503. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20504. msm_routing_get_port_mixer,
  20505. msm_routing_put_port_mixer),
  20506. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20507. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20508. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20509. msm_routing_get_port_mixer,
  20510. msm_routing_put_port_mixer),
  20511. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20512. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20513. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20514. msm_routing_get_port_mixer,
  20515. msm_routing_put_port_mixer),
  20516. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20517. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20518. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20519. msm_routing_get_port_mixer,
  20520. msm_routing_put_port_mixer),
  20521. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20522. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20523. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20524. msm_routing_get_port_mixer,
  20525. msm_routing_put_port_mixer),
  20526. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20527. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20528. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20529. msm_routing_get_port_mixer,
  20530. msm_routing_put_port_mixer),
  20531. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20532. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20533. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20534. msm_routing_get_port_mixer,
  20535. msm_routing_put_port_mixer),
  20536. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20537. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20538. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20539. msm_routing_get_port_mixer,
  20540. msm_routing_put_port_mixer),
  20541. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20542. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20543. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20544. msm_routing_get_port_mixer,
  20545. msm_routing_put_port_mixer),
  20546. };
  20547. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  20548. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20549. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20550. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20551. msm_routing_get_port_mixer,
  20552. msm_routing_put_port_mixer),
  20553. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20554. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20555. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20556. msm_routing_get_port_mixer,
  20557. msm_routing_put_port_mixer),
  20558. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20559. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20560. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20561. msm_routing_get_port_mixer,
  20562. msm_routing_put_port_mixer),
  20563. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20564. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20565. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20566. msm_routing_get_port_mixer,
  20567. msm_routing_put_port_mixer),
  20568. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20569. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20570. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20571. msm_routing_get_port_mixer,
  20572. msm_routing_put_port_mixer),
  20573. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20574. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20575. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20576. msm_routing_get_port_mixer,
  20577. msm_routing_put_port_mixer),
  20578. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20579. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20580. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20581. msm_routing_get_port_mixer,
  20582. msm_routing_put_port_mixer),
  20583. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20584. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20585. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20586. msm_routing_get_port_mixer,
  20587. msm_routing_put_port_mixer),
  20588. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20589. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20590. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20591. msm_routing_get_port_mixer,
  20592. msm_routing_put_port_mixer),
  20593. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20594. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20595. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20596. msm_routing_get_port_mixer,
  20597. msm_routing_put_port_mixer),
  20598. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20599. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20600. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20601. msm_routing_get_port_mixer,
  20602. msm_routing_put_port_mixer),
  20603. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20604. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20605. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20606. msm_routing_get_port_mixer,
  20607. msm_routing_put_port_mixer),
  20608. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20609. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20610. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20611. msm_routing_get_port_mixer,
  20612. msm_routing_put_port_mixer),
  20613. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20614. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20615. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20616. msm_routing_get_port_mixer,
  20617. msm_routing_put_port_mixer),
  20618. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20619. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20620. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20621. msm_routing_get_port_mixer,
  20622. msm_routing_put_port_mixer),
  20623. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20624. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20625. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20626. msm_routing_get_port_mixer,
  20627. msm_routing_put_port_mixer),
  20628. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20629. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20630. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20631. msm_routing_get_port_mixer,
  20632. msm_routing_put_port_mixer),
  20633. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20634. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20635. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20636. msm_routing_get_port_mixer,
  20637. msm_routing_put_port_mixer),
  20638. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20639. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20640. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20641. msm_routing_get_port_mixer,
  20642. msm_routing_put_port_mixer),
  20643. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20644. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20645. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20646. msm_routing_get_port_mixer,
  20647. msm_routing_put_port_mixer),
  20648. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20649. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20650. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20651. msm_routing_get_port_mixer,
  20652. msm_routing_put_port_mixer),
  20653. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20654. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20655. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20656. msm_routing_get_port_mixer,
  20657. msm_routing_put_port_mixer),
  20658. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20659. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20660. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20661. msm_routing_get_port_mixer,
  20662. msm_routing_put_port_mixer),
  20663. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20664. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20665. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20666. msm_routing_get_port_mixer,
  20667. msm_routing_put_port_mixer),
  20668. };
  20669. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  20670. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20671. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20672. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20673. msm_routing_get_port_mixer,
  20674. msm_routing_put_port_mixer),
  20675. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20676. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20677. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20678. msm_routing_get_port_mixer,
  20679. msm_routing_put_port_mixer),
  20680. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20681. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20682. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20683. msm_routing_get_port_mixer,
  20684. msm_routing_put_port_mixer),
  20685. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20686. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20687. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20688. msm_routing_get_port_mixer,
  20689. msm_routing_put_port_mixer),
  20690. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20691. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20692. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20693. msm_routing_get_port_mixer,
  20694. msm_routing_put_port_mixer),
  20695. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20696. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20697. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20698. msm_routing_get_port_mixer,
  20699. msm_routing_put_port_mixer),
  20700. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20701. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20702. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20703. msm_routing_get_port_mixer,
  20704. msm_routing_put_port_mixer),
  20705. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20706. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20707. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20708. msm_routing_get_port_mixer,
  20709. msm_routing_put_port_mixer),
  20710. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20711. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20712. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20713. msm_routing_get_port_mixer,
  20714. msm_routing_put_port_mixer),
  20715. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20716. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20717. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20718. msm_routing_get_port_mixer,
  20719. msm_routing_put_port_mixer),
  20720. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20721. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20722. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20723. msm_routing_get_port_mixer,
  20724. msm_routing_put_port_mixer),
  20725. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20726. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20727. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20728. msm_routing_get_port_mixer,
  20729. msm_routing_put_port_mixer),
  20730. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20731. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20732. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20733. msm_routing_get_port_mixer,
  20734. msm_routing_put_port_mixer),
  20735. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20736. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20737. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20738. msm_routing_get_port_mixer,
  20739. msm_routing_put_port_mixer),
  20740. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20741. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20742. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20743. msm_routing_get_port_mixer,
  20744. msm_routing_put_port_mixer),
  20745. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20746. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20747. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20748. msm_routing_get_port_mixer,
  20749. msm_routing_put_port_mixer),
  20750. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20751. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20752. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20753. msm_routing_get_port_mixer,
  20754. msm_routing_put_port_mixer),
  20755. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20756. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20757. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20758. msm_routing_get_port_mixer,
  20759. msm_routing_put_port_mixer),
  20760. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20761. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20762. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20763. msm_routing_get_port_mixer,
  20764. msm_routing_put_port_mixer),
  20765. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20766. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20767. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20768. msm_routing_get_port_mixer,
  20769. msm_routing_put_port_mixer),
  20770. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20771. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20772. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20773. msm_routing_get_port_mixer,
  20774. msm_routing_put_port_mixer),
  20775. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20776. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20777. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20778. msm_routing_get_port_mixer,
  20779. msm_routing_put_port_mixer),
  20780. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20781. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20782. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20783. msm_routing_get_port_mixer,
  20784. msm_routing_put_port_mixer),
  20785. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20786. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20787. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20788. msm_routing_get_port_mixer,
  20789. msm_routing_put_port_mixer),
  20790. };
  20791. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  20792. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  20793. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20794. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  20795. msm_routing_get_port_mixer,
  20796. msm_routing_put_port_mixer),
  20797. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  20798. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20799. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  20800. msm_routing_get_port_mixer,
  20801. msm_routing_put_port_mixer),
  20802. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  20803. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20804. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  20805. msm_routing_get_port_mixer,
  20806. msm_routing_put_port_mixer),
  20807. };
  20808. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  20809. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20810. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20811. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20812. msm_routing_put_port_mixer),
  20813. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20814. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20815. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20816. msm_routing_put_port_mixer),
  20817. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20818. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20819. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20820. msm_routing_put_port_mixer),
  20821. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20822. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20823. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20824. msm_routing_put_port_mixer),
  20825. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20826. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20827. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20828. msm_routing_put_port_mixer),
  20829. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20830. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20831. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20832. msm_routing_put_port_mixer),
  20833. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20834. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20835. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20836. msm_routing_put_port_mixer),
  20837. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20838. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20839. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20840. msm_routing_put_port_mixer),
  20841. };
  20842. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  20843. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20844. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20845. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20846. msm_routing_put_port_mixer),
  20847. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20848. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20849. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20850. msm_routing_put_port_mixer),
  20851. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20852. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20853. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20854. msm_routing_put_port_mixer),
  20855. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20856. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20857. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20858. msm_routing_put_port_mixer),
  20859. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20860. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20861. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20862. msm_routing_put_port_mixer),
  20863. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20864. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20865. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20866. msm_routing_put_port_mixer),
  20867. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20868. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20869. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20870. msm_routing_put_port_mixer),
  20871. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20872. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20873. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  20874. msm_routing_put_port_mixer),
  20875. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20876. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20877. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20878. msm_routing_put_port_mixer),
  20879. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20880. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20881. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  20882. msm_routing_put_port_mixer),
  20883. };
  20884. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  20885. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20886. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20887. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20888. msm_routing_put_listen_mixer),
  20889. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20890. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20891. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20892. msm_routing_put_listen_mixer),
  20893. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20894. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20895. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20896. msm_routing_put_listen_mixer),
  20897. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20898. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20899. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20900. msm_routing_put_listen_mixer),
  20901. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20902. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20903. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20904. msm_routing_put_listen_mixer),
  20905. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20906. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20907. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20908. msm_routing_put_listen_mixer),
  20909. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20910. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20911. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20912. msm_routing_put_listen_mixer),
  20913. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20914. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20915. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20916. msm_routing_put_listen_mixer),
  20917. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20918. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20919. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20920. msm_routing_put_listen_mixer),
  20921. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20922. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20923. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20924. msm_routing_put_listen_mixer),
  20925. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20926. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20927. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20928. msm_routing_put_listen_mixer),
  20929. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20930. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20931. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20932. msm_routing_put_listen_mixer),
  20933. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20934. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20935. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20936. msm_routing_put_listen_mixer),
  20937. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20938. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20939. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20940. msm_routing_put_listen_mixer),
  20941. };
  20942. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  20943. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20944. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20945. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20946. msm_routing_put_listen_mixer),
  20947. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  20948. SND_SOC_NOPM,
  20949. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20950. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20951. msm_routing_put_listen_mixer),
  20952. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20953. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20954. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20955. msm_routing_put_listen_mixer),
  20956. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20957. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20958. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20959. msm_routing_put_listen_mixer),
  20960. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20961. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20962. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20963. msm_routing_put_listen_mixer),
  20964. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20965. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20966. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20967. msm_routing_put_listen_mixer),
  20968. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20969. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20970. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20971. msm_routing_put_listen_mixer),
  20972. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20973. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20974. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20975. msm_routing_put_listen_mixer),
  20976. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20977. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20978. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20979. msm_routing_put_listen_mixer),
  20980. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20981. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20982. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20983. msm_routing_put_listen_mixer),
  20984. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20985. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20986. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20987. msm_routing_put_listen_mixer),
  20988. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20989. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20990. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20991. msm_routing_put_listen_mixer),
  20992. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20993. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20994. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20995. msm_routing_put_listen_mixer),
  20996. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20997. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20998. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20999. msm_routing_put_listen_mixer),
  21000. };
  21001. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  21002. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21003. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21004. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21005. msm_routing_put_listen_mixer),
  21006. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21007. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21008. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21009. msm_routing_put_listen_mixer),
  21010. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21011. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21012. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21013. msm_routing_put_listen_mixer),
  21014. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21015. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21016. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21017. msm_routing_put_listen_mixer),
  21018. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21019. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21020. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21021. msm_routing_put_listen_mixer),
  21022. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21023. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21024. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21025. msm_routing_put_listen_mixer),
  21026. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21027. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21028. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21029. msm_routing_put_listen_mixer),
  21030. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21031. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21032. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21033. msm_routing_put_listen_mixer),
  21034. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21035. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21036. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21037. msm_routing_put_listen_mixer),
  21038. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21039. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21040. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21041. msm_routing_put_listen_mixer),
  21042. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21043. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21044. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21045. msm_routing_put_listen_mixer),
  21046. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21047. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21048. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21049. msm_routing_put_listen_mixer),
  21050. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21051. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21052. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21053. msm_routing_put_listen_mixer),
  21054. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21055. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21056. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21057. msm_routing_put_listen_mixer),
  21058. };
  21059. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  21060. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21061. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21062. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21063. msm_routing_put_listen_mixer),
  21064. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21065. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21066. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21067. msm_routing_put_listen_mixer),
  21068. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21069. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21070. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21071. msm_routing_put_listen_mixer),
  21072. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21073. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21074. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21075. msm_routing_put_listen_mixer),
  21076. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21077. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21078. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21079. msm_routing_put_listen_mixer),
  21080. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21081. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21082. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21083. msm_routing_put_listen_mixer),
  21084. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21085. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21086. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21087. msm_routing_put_listen_mixer),
  21088. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21089. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21090. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21091. msm_routing_put_listen_mixer),
  21092. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21093. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21094. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21095. msm_routing_put_listen_mixer),
  21096. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21097. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21098. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21099. msm_routing_put_listen_mixer),
  21100. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21101. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21102. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21103. msm_routing_put_listen_mixer),
  21104. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21105. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21106. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21107. msm_routing_put_listen_mixer),
  21108. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21109. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21110. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21111. msm_routing_put_listen_mixer),
  21112. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21113. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21114. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21115. msm_routing_put_listen_mixer),
  21116. };
  21117. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  21118. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21119. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21120. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21121. msm_routing_put_listen_mixer),
  21122. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21123. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21124. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21125. msm_routing_put_listen_mixer),
  21126. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21127. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21128. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21129. msm_routing_put_listen_mixer),
  21130. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21131. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21132. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21133. msm_routing_put_listen_mixer),
  21134. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21135. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21136. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21137. msm_routing_put_listen_mixer),
  21138. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21139. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21140. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21141. msm_routing_put_listen_mixer),
  21142. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21143. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21144. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21145. msm_routing_put_listen_mixer),
  21146. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21147. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21148. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21149. msm_routing_put_listen_mixer),
  21150. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21151. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21152. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21153. msm_routing_put_listen_mixer),
  21154. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21155. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21156. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21157. msm_routing_put_listen_mixer),
  21158. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21159. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21160. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21161. msm_routing_put_listen_mixer),
  21162. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21163. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21164. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21165. msm_routing_put_listen_mixer),
  21166. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21167. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21168. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21169. msm_routing_put_listen_mixer),
  21170. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21171. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21172. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21173. msm_routing_put_listen_mixer),
  21174. };
  21175. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  21176. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21177. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21178. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21179. msm_routing_put_listen_mixer),
  21180. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21181. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21182. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21183. msm_routing_put_listen_mixer),
  21184. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21185. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21186. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21187. msm_routing_put_listen_mixer),
  21188. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21189. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21190. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21191. msm_routing_put_listen_mixer),
  21192. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21193. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21194. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21195. msm_routing_put_listen_mixer),
  21196. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21197. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21198. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21199. msm_routing_put_listen_mixer),
  21200. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21201. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21202. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21203. msm_routing_put_listen_mixer),
  21204. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21205. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21206. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21207. msm_routing_put_listen_mixer),
  21208. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21209. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21210. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21211. msm_routing_put_listen_mixer),
  21212. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21213. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21214. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21215. msm_routing_put_listen_mixer),
  21216. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21217. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21218. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21219. msm_routing_put_listen_mixer),
  21220. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21221. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21222. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21223. msm_routing_put_listen_mixer),
  21224. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21225. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21226. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21227. msm_routing_put_listen_mixer),
  21228. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21229. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21230. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21231. msm_routing_put_listen_mixer),
  21232. };
  21233. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  21234. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21235. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21236. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21237. msm_routing_put_listen_mixer),
  21238. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21239. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21240. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21241. msm_routing_put_listen_mixer),
  21242. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21243. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21244. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21245. msm_routing_put_listen_mixer),
  21246. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21247. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21248. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21249. msm_routing_put_listen_mixer),
  21250. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21251. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21252. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21253. msm_routing_put_listen_mixer),
  21254. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21255. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21256. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21257. msm_routing_put_listen_mixer),
  21258. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21259. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21260. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21261. msm_routing_put_listen_mixer),
  21262. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21263. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21264. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21265. msm_routing_put_listen_mixer),
  21266. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21267. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21268. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21269. msm_routing_put_listen_mixer),
  21270. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21271. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21272. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21273. msm_routing_put_listen_mixer),
  21274. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21275. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21276. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21277. msm_routing_put_listen_mixer),
  21278. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21279. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21280. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21281. msm_routing_put_listen_mixer),
  21282. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21283. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21284. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21285. msm_routing_put_listen_mixer),
  21286. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21287. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21288. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21289. msm_routing_put_listen_mixer),
  21290. };
  21291. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  21292. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21293. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21294. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21295. msm_routing_put_listen_mixer),
  21296. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21297. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21298. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21299. msm_routing_put_listen_mixer),
  21300. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21301. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21302. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21303. msm_routing_put_listen_mixer),
  21304. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21305. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21306. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21307. msm_routing_put_listen_mixer),
  21308. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21309. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21310. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21311. msm_routing_put_listen_mixer),
  21312. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21313. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21314. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21315. msm_routing_put_listen_mixer),
  21316. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21317. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21318. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21319. msm_routing_put_listen_mixer),
  21320. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21321. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21322. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21323. msm_routing_put_listen_mixer),
  21324. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21325. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21326. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21327. msm_routing_put_listen_mixer),
  21328. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21329. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21330. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21331. msm_routing_put_listen_mixer),
  21332. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21333. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21334. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21335. msm_routing_put_listen_mixer),
  21336. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21337. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21338. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21339. msm_routing_put_listen_mixer),
  21340. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21341. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21342. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21343. msm_routing_put_listen_mixer),
  21344. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21345. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21346. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21347. msm_routing_put_listen_mixer),
  21348. };
  21349. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  21350. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21351. 0, 1, 0, msm_routing_get_switch_mixer,
  21352. msm_routing_put_switch_mixer);
  21353. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  21354. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21355. 0, 1, 0, msm_routing_get_switch_mixer,
  21356. msm_routing_put_switch_mixer);
  21357. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  21358. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21359. 0, 1, 0, msm_routing_get_switch_mixer,
  21360. msm_routing_put_switch_mixer);
  21361. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  21362. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21363. 0, 1, 0, msm_routing_get_switch_mixer,
  21364. msm_routing_put_switch_mixer);
  21365. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  21366. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21367. 0, 1, 0, msm_routing_get_switch_mixer,
  21368. msm_routing_put_switch_mixer);
  21369. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  21370. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21371. 0, 1, 0, msm_routing_get_switch_mixer,
  21372. msm_routing_put_switch_mixer);
  21373. static const struct snd_kcontrol_new cdc_dma_rx_1_switch_mixer_controls =
  21374. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21375. 0, 1, 0, msm_routing_get_switch_mixer,
  21376. msm_routing_put_switch_mixer);
  21377. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  21378. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21379. 0, 1, 0, msm_routing_get_switch_mixer,
  21380. msm_routing_put_switch_mixer);
  21381. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  21382. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21383. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  21384. msm_routing_put_fm_pcmrx_switch_mixer);
  21385. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  21386. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21387. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  21388. msm_routing_put_int0_mi2s_switch_mixer);
  21389. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  21390. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21391. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  21392. msm_routing_put_int4_mi2s_switch_mixer);
  21393. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  21394. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21395. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  21396. msm_routing_put_pri_mi2s_switch_mixer);
  21397. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  21398. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21399. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  21400. msm_routing_put_sec_mi2s_switch_mixer);
  21401. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  21402. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21403. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  21404. msm_routing_put_tert_mi2s_switch_mixer);
  21405. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  21406. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21407. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  21408. msm_routing_put_quat_mi2s_switch_mixer);
  21409. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  21410. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21411. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  21412. msm_routing_put_quin_mi2s_switch_mixer);
  21413. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  21414. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21415. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  21416. msm_routing_put_sen_mi2s_switch_mixer);
  21417. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  21418. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21419. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21420. msm_routing_put_hfp_switch_mixer);
  21421. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  21422. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21423. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21424. msm_routing_put_hfp_switch_mixer);
  21425. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  21426. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21427. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21428. msm_routing_put_hfp_switch_mixer);
  21429. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  21430. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21431. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21432. msm_routing_put_hfp_switch_mixer);
  21433. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  21434. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21435. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  21436. msm_routing_put_usb_switch_mixer);
  21437. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  21438. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21439. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  21440. msm_routing_a2dp_switch_mixer_put);
  21441. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  21442. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21443. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  21444. msm_routing_sco_switch_mixer_put);
  21445. static const struct soc_enum lsm_port_enum =
  21446. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  21447. static const char * const lsm_func_text[] = {
  21448. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  21449. };
  21450. static const struct soc_enum lsm_func_enum =
  21451. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  21452. static const struct snd_kcontrol_new lsm_controls[] = {
  21453. /* kcontrol of lsm_function */
  21454. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21455. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21456. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21457. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21458. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21459. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21460. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21461. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21462. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21463. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21464. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21465. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21466. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21467. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21468. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21469. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21470. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21471. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21472. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21473. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21474. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21475. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21476. SOC_ENUM_EXT(TERT_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21477. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21478. /* kcontrol of lsm_port */
  21479. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  21480. msm_routing_lsm_port_get,
  21481. msm_routing_lsm_port_put),
  21482. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  21483. msm_routing_lsm_port_get,
  21484. msm_routing_lsm_port_put),
  21485. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  21486. msm_routing_lsm_port_get,
  21487. msm_routing_lsm_port_put),
  21488. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  21489. msm_routing_lsm_port_get,
  21490. msm_routing_lsm_port_put),
  21491. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  21492. msm_routing_lsm_port_get,
  21493. msm_routing_lsm_port_put),
  21494. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  21495. msm_routing_lsm_port_get,
  21496. msm_routing_lsm_port_put),
  21497. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  21498. msm_routing_lsm_port_get,
  21499. msm_routing_lsm_port_put),
  21500. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  21501. msm_routing_lsm_port_get,
  21502. msm_routing_lsm_port_put),
  21503. };
  21504. static const char * const aanc_slim_0_rx_text[] = {
  21505. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  21506. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  21507. };
  21508. static const struct soc_enum aanc_slim_0_rx_enum =
  21509. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  21510. aanc_slim_0_rx_text);
  21511. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  21512. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  21513. msm_routing_slim_0_rx_aanc_mux_get,
  21514. msm_routing_slim_0_rx_aanc_mux_put)
  21515. };
  21516. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  21517. struct snd_ctl_elem_value *ucontrol)
  21518. {
  21519. ucontrol->value.integer.value[0] = aanc_level;
  21520. return 0;
  21521. }
  21522. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  21523. struct snd_ctl_elem_value *ucontrol)
  21524. {
  21525. int ret = 0;
  21526. mutex_lock(&routing_lock);
  21527. aanc_level = ucontrol->value.integer.value[0];
  21528. pr_debug("%s: value: %ld\n",
  21529. __func__, ucontrol->value.integer.value[0]);
  21530. ret = afe_set_aanc_noise_level(aanc_level);
  21531. mutex_unlock(&routing_lock);
  21532. return ret;
  21533. }
  21534. static const struct snd_kcontrol_new aanc_noise_level[] = {
  21535. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  21536. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  21537. };
  21538. static int msm_routing_get_stereo_to_custom_stereo_control(
  21539. struct snd_kcontrol *kcontrol,
  21540. struct snd_ctl_elem_value *ucontrol)
  21541. {
  21542. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  21543. return 0;
  21544. }
  21545. static int msm_routing_put_stereo_to_custom_stereo_control(
  21546. struct snd_kcontrol *kcontrol,
  21547. struct snd_ctl_elem_value *ucontrol)
  21548. {
  21549. int flag = 0, i = 0, rc = 0, idx = 0;
  21550. int be_index = 0, port_id, topo_id;
  21551. unsigned int session_id = 0;
  21552. uint16_t op_FL_ip_FL_weight = 0;
  21553. uint16_t op_FL_ip_FR_weight = 0;
  21554. uint16_t op_FR_ip_FL_weight = 0;
  21555. uint16_t op_FR_ip_FR_weight = 0;
  21556. flag = ucontrol->value.integer.value[0];
  21557. pr_debug("%s E flag %d\n", __func__, flag);
  21558. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  21559. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  21560. __func__, is_custom_stereo_on, flag);
  21561. return 0;
  21562. }
  21563. is_custom_stereo_on = flag ? true : false;
  21564. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  21565. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  21566. port_id = msm_bedais[be_index].port_id;
  21567. if (!msm_bedais[be_index].active)
  21568. continue;
  21569. if ((port_id != SLIMBUS_0_RX) &&
  21570. (port_id != RT_PROXY_PORT_001_RX) &&
  21571. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  21572. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  21573. continue;
  21574. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  21575. MSM_FRONTEND_DAI_MM_SIZE) {
  21576. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  21577. LEGACY_PCM_MODE)
  21578. goto skip_send_custom_stereo;
  21579. session_id =
  21580. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  21581. if (is_custom_stereo_on) {
  21582. op_FL_ip_FL_weight =
  21583. Q14_GAIN_ZERO_POINT_FIVE;
  21584. op_FL_ip_FR_weight =
  21585. Q14_GAIN_ZERO_POINT_FIVE;
  21586. op_FR_ip_FL_weight =
  21587. Q14_GAIN_ZERO_POINT_FIVE;
  21588. op_FR_ip_FR_weight =
  21589. Q14_GAIN_ZERO_POINT_FIVE;
  21590. } else {
  21591. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  21592. op_FL_ip_FR_weight = 0;
  21593. op_FR_ip_FL_weight = 0;
  21594. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  21595. }
  21596. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21597. unsigned long copp =
  21598. session_copp_map[i]
  21599. [SESSION_TYPE_RX][be_index];
  21600. if (!test_bit(idx, &copp))
  21601. goto skip_send_custom_stereo;
  21602. topo_id = adm_get_topology_for_port_copp_idx(
  21603. msm_bedais[be_index].port_id, idx);
  21604. if (topo_id < 0)
  21605. pr_debug("%s:Err:custom stereo topo %d",
  21606. __func__, topo_id);
  21607. pr_debug("idx %d\n", idx);
  21608. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  21609. rc = msm_ds2_dap_set_custom_stereo_onoff
  21610. (msm_bedais[be_index].port_id,
  21611. idx, is_custom_stereo_on);
  21612. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  21613. rc = dolby_dap_set_custom_stereo_onoff(
  21614. msm_bedais[be_index].port_id,
  21615. idx, is_custom_stereo_on);
  21616. else
  21617. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  21618. (msm_bedais[be_index].port_id,
  21619. idx, session_id,
  21620. op_FL_ip_FL_weight,
  21621. op_FL_ip_FR_weight,
  21622. op_FR_ip_FL_weight,
  21623. op_FR_ip_FR_weight);
  21624. if (rc < 0)
  21625. skip_send_custom_stereo:
  21626. pr_err("%s: err setting custom stereo\n",
  21627. __func__);
  21628. }
  21629. }
  21630. }
  21631. return 0;
  21632. }
  21633. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  21634. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  21635. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  21636. msm_routing_put_stereo_to_custom_stereo_control),
  21637. };
  21638. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21639. struct snd_ctl_elem_value *ucontrol)
  21640. {
  21641. return 0;
  21642. }
  21643. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21644. struct snd_ctl_elem_value *ucontrol)
  21645. {
  21646. int i = 0, j;
  21647. int num_app_types = ucontrol->value.integer.value[i++];
  21648. pr_debug("%s\n", __func__);
  21649. memset(app_type_cfg, 0, MAX_APP_TYPES*
  21650. sizeof(struct msm_pcm_routing_app_type_data));
  21651. if (num_app_types > MAX_APP_TYPES) {
  21652. pr_err("%s: number of app types exceed the max supported\n",
  21653. __func__);
  21654. return -EINVAL;
  21655. }
  21656. for (j = 0; j < num_app_types; j++) {
  21657. app_type_cfg[j].app_type =
  21658. ucontrol->value.integer.value[i++];
  21659. app_type_cfg[j].sample_rate =
  21660. ucontrol->value.integer.value[i++];
  21661. app_type_cfg[j].bit_width =
  21662. ucontrol->value.integer.value[i++];
  21663. }
  21664. return 0;
  21665. }
  21666. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  21667. struct snd_ctl_elem_value *ucontrol)
  21668. {
  21669. int j, fe_id, be_id, port_type;
  21670. int ret = 0;
  21671. unsigned long copp;
  21672. struct msm_pcm_routing_bdai_data *bedai;
  21673. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21674. SESSION_TYPE_RX;
  21675. int app_type = ucontrol->value.integer.value[1];
  21676. int gain = (ucontrol->value.integer.value[2] +
  21677. ucontrol->value.integer.value[3])/2;
  21678. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21679. MSM_AFE_PORT_TYPE_TX;
  21680. mutex_lock(&routing_lock);
  21681. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21682. if (is_be_dai_extproc(be_id))
  21683. continue;
  21684. bedai = &msm_bedais[be_id];
  21685. if (afe_get_port_type(bedai->port_id) != port_type)
  21686. continue;
  21687. if (!bedai->active)
  21688. continue;
  21689. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21690. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21691. continue;
  21692. if (app_type !=
  21693. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21694. continue;
  21695. copp = session_copp_map[fe_id][dir][be_id];
  21696. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  21697. if (!test_bit(j, &copp))
  21698. continue;
  21699. ret |= adm_set_volume(bedai->port_id, j, gain);
  21700. }
  21701. }
  21702. }
  21703. mutex_unlock(&routing_lock);
  21704. return ret ? -EINVAL : 0;
  21705. }
  21706. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  21707. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  21708. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  21709. msm_routing_put_app_type_cfg_control),
  21710. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  21711. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  21712. };
  21713. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  21714. struct snd_ctl_elem_value *ucontrol)
  21715. {
  21716. int copp_idx, fe_id, be_id, port_type;
  21717. int ret = 0;
  21718. unsigned long copp;
  21719. struct msm_pcm_routing_bdai_data *bedai;
  21720. u8 *packed_params = NULL;
  21721. struct param_hdr_v3 param_hdr;
  21722. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  21723. sizeof(uint32_t));
  21724. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21725. SESSION_TYPE_RX;
  21726. int app_type = ucontrol->value.integer.value[1];
  21727. int module_id = ucontrol->value.integer.value[2];
  21728. int instance_id = ucontrol->value.integer.value[3];
  21729. int param_id = ucontrol->value.integer.value[4];
  21730. int param_value = ucontrol->value.integer.value[5];
  21731. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21732. MSM_AFE_PORT_TYPE_TX;
  21733. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  21734. __func__, app_type, module_id,
  21735. instance_id, param_id, param_value);
  21736. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  21737. if (!packed_params)
  21738. return -ENOMEM;
  21739. memset(&param_hdr, 0, sizeof(param_hdr));
  21740. param_hdr.module_id = module_id;
  21741. param_hdr.instance_id = instance_id;
  21742. param_hdr.param_id = param_id;
  21743. param_hdr.param_size = sizeof(uint32_t);
  21744. packed_param_size = 0;
  21745. mutex_lock(&routing_lock);
  21746. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21747. if (is_be_dai_extproc(be_id))
  21748. continue;
  21749. bedai = &msm_bedais[be_id];
  21750. if (afe_get_port_type(bedai->port_id) != port_type)
  21751. continue;
  21752. if (!bedai->active)
  21753. continue;
  21754. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21755. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21756. continue;
  21757. if (app_type !=
  21758. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21759. continue;
  21760. copp = session_copp_map[fe_id][dir][be_id];
  21761. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  21762. copp_idx++) {
  21763. if (!test_bit(copp_idx, &copp))
  21764. continue;
  21765. ret = q6common_pack_pp_params(packed_params,
  21766. &param_hdr,
  21767. (u8 *) &param_value,
  21768. &packed_param_size);
  21769. if (ret) {
  21770. pr_err("%s: Failed to pack params, error %d\n",
  21771. __func__, ret);
  21772. goto done;
  21773. }
  21774. ret = adm_set_pp_params(bedai->port_id,
  21775. copp_idx, NULL,
  21776. packed_params,
  21777. packed_param_size);
  21778. if (ret) {
  21779. pr_err("%s: Setting param failed with err=%d\n",
  21780. __func__, ret);
  21781. ret = -EINVAL;
  21782. goto done;
  21783. }
  21784. }
  21785. }
  21786. }
  21787. done:
  21788. mutex_unlock(&routing_lock);
  21789. kfree(packed_params);
  21790. return ret;
  21791. }
  21792. static const struct snd_kcontrol_new module_cfg_controls[] = {
  21793. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  21794. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  21795. };
  21796. static int msm_routing_get_lsm_app_type_cfg_control(
  21797. struct snd_kcontrol *kcontrol,
  21798. struct snd_ctl_elem_value *ucontrol)
  21799. {
  21800. int shift = ((struct soc_multi_mixer_control *)
  21801. kcontrol->private_value)->shift;
  21802. int i = 0, j = 0;
  21803. ucontrol->value.integer.value[i] = num_app_cfg_types;
  21804. for (j = 0; j < num_app_cfg_types; ++j) {
  21805. ucontrol->value.integer.value[++i] =
  21806. lsm_app_type_cfg[j].app_type;
  21807. ucontrol->value.integer.value[++i] =
  21808. lsm_app_type_cfg[j].sample_rate;
  21809. ucontrol->value.integer.value[++i] =
  21810. lsm_app_type_cfg[j].bit_width;
  21811. if (shift == 1)
  21812. ucontrol->value.integer.value[++i] =
  21813. lsm_app_type_cfg[j].num_out_channels;
  21814. }
  21815. return 0;
  21816. }
  21817. static int msm_routing_put_lsm_app_type_cfg_control(
  21818. struct snd_kcontrol *kcontrol,
  21819. struct snd_ctl_elem_value *ucontrol)
  21820. {
  21821. int shift = ((struct soc_multi_mixer_control *)
  21822. kcontrol->private_value)->shift;
  21823. int i = 0, j;
  21824. if (ucontrol->value.integer.value[0] > MAX_APP_TYPES) {
  21825. pr_err("%s: number of app types exceed the max supported\n",
  21826. __func__);
  21827. return -EINVAL;
  21828. }
  21829. num_app_cfg_types = ucontrol->value.integer.value[i++];
  21830. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  21831. sizeof(struct msm_pcm_routing_app_type_data));
  21832. for (j = 0; j < num_app_cfg_types; j++) {
  21833. lsm_app_type_cfg[j].app_type =
  21834. ucontrol->value.integer.value[i++];
  21835. lsm_app_type_cfg[j].sample_rate =
  21836. ucontrol->value.integer.value[i++];
  21837. lsm_app_type_cfg[j].bit_width =
  21838. ucontrol->value.integer.value[i++];
  21839. /* Shift of 1 indicates this is V2 mixer control */
  21840. if (shift == 1)
  21841. lsm_app_type_cfg[j].num_out_channels =
  21842. ucontrol->value.integer.value[i++];
  21843. }
  21844. return 0;
  21845. }
  21846. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  21847. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  21848. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21849. msm_routing_put_lsm_app_type_cfg_control),
  21850. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  21851. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21852. msm_routing_put_lsm_app_type_cfg_control),
  21853. };
  21854. static int msm_routing_get_use_ds1_or_ds2_control(
  21855. struct snd_kcontrol *kcontrol,
  21856. struct snd_ctl_elem_value *ucontrol)
  21857. {
  21858. ucontrol->value.integer.value[0] = is_ds2_on;
  21859. return 0;
  21860. }
  21861. static int msm_routing_put_use_ds1_or_ds2_control(
  21862. struct snd_kcontrol *kcontrol,
  21863. struct snd_ctl_elem_value *ucontrol)
  21864. {
  21865. is_ds2_on = ucontrol->value.integer.value[0];
  21866. return 0;
  21867. }
  21868. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  21869. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  21870. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  21871. msm_routing_put_use_ds1_or_ds2_control),
  21872. };
  21873. static int msm_routing_get_hifi_filter_control(
  21874. struct snd_kcontrol *kcontrol,
  21875. struct snd_ctl_elem_value *ucontrol)
  21876. {
  21877. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  21878. return 0;
  21879. }
  21880. static int msm_routing_put_hifi_filter_control(
  21881. struct snd_kcontrol *kcontrol,
  21882. struct snd_ctl_elem_value *ucontrol)
  21883. {
  21884. hifi_filter_enabled = ucontrol->value.integer.value[0];
  21885. return 0;
  21886. }
  21887. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  21888. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  21889. 1, 0, msm_routing_get_hifi_filter_control,
  21890. msm_routing_put_hifi_filter_control),
  21891. };
  21892. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  21893. struct snd_ctl_elem_value *ucontrol) {
  21894. int rc = 0;
  21895. int be_idx = 0;
  21896. char *param_value;
  21897. int *update_param_value;
  21898. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  21899. struct param_hdr_v3 param_hdr;
  21900. param_value = kzalloc(param_size, GFP_KERNEL);
  21901. if (!param_value)
  21902. return -ENOMEM;
  21903. memset(&param_hdr, 0, sizeof(param_hdr));
  21904. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  21905. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  21906. break;
  21907. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  21908. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  21909. param_hdr.instance_id = INSTANCE_ID_0;
  21910. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  21911. param_hdr.param_size = param_size;
  21912. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  21913. NULL, &param_hdr, (u8 *) param_value);
  21914. if (rc) {
  21915. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  21916. kfree(param_value);
  21917. return -EINVAL;
  21918. }
  21919. update_param_value = (int *)param_value;
  21920. ucontrol->value.integer.value[0] = update_param_value[0];
  21921. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  21922. __func__, update_param_value[0]);
  21923. }
  21924. kfree(param_value);
  21925. return 0;
  21926. }
  21927. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  21928. struct snd_ctl_elem_value *ucontrol)
  21929. {
  21930. voc_session_id = ucontrol->value.integer.value[0];
  21931. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  21932. return 0;
  21933. }
  21934. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  21935. struct snd_ctl_elem_value *ucontrol)
  21936. {
  21937. ucontrol->value.integer.value[0] = voc_session_id;
  21938. return 0;
  21939. }
  21940. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  21941. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  21942. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  21943. msm_voc_session_id_put),
  21944. };
  21945. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  21946. struct snd_ctl_elem_info *uinfo)
  21947. {
  21948. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21949. uinfo->count = sizeof(struct sound_focus_param);
  21950. return 0;
  21951. }
  21952. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  21953. struct snd_ctl_elem_value *ucontrol)
  21954. {
  21955. int ret = 0;
  21956. struct sound_focus_param soundFocusData;
  21957. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21958. sizeof(struct sound_focus_param));
  21959. ret = voc_set_sound_focus(soundFocusData);
  21960. if (ret) {
  21961. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21962. __func__, ret);
  21963. ret = -EINVAL;
  21964. }
  21965. return ret;
  21966. }
  21967. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  21968. struct snd_ctl_elem_value *ucontrol)
  21969. {
  21970. int ret = 0;
  21971. struct sound_focus_param soundFocusData;
  21972. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  21973. ret = voc_get_sound_focus(&soundFocusData);
  21974. if (ret) {
  21975. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  21976. __func__, ret);
  21977. ret = -EINVAL;
  21978. goto done;
  21979. }
  21980. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21981. sizeof(struct sound_focus_param));
  21982. done:
  21983. return ret;
  21984. }
  21985. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  21986. struct snd_ctl_elem_info *uinfo)
  21987. {
  21988. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21989. uinfo->count = sizeof(struct source_tracking_param);
  21990. return 0;
  21991. }
  21992. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  21993. struct snd_ctl_elem_value *ucontrol)
  21994. {
  21995. int ret = 0;
  21996. struct source_tracking_param sourceTrackingData;
  21997. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  21998. ret = voc_get_source_tracking(&sourceTrackingData);
  21999. if (ret) {
  22000. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  22001. __func__, ret);
  22002. ret = -EINVAL;
  22003. goto done;
  22004. }
  22005. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22006. sizeof(struct source_tracking_param));
  22007. done:
  22008. return ret;
  22009. }
  22010. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  22011. int *copp_idx)
  22012. {
  22013. int i, idx, be_idx;
  22014. int ret = 0;
  22015. unsigned long copp;
  22016. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  22017. ret = q6audio_validate_port(port_id);
  22018. if (ret < 0) {
  22019. pr_err("%s: port validation failed id 0x%x ret %d\n",
  22020. __func__, port_id, ret);
  22021. ret = -EINVAL;
  22022. goto done;
  22023. }
  22024. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22025. if (msm_bedais[be_idx].port_id == port_id)
  22026. break;
  22027. }
  22028. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22029. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  22030. ret = -EINVAL;
  22031. goto done;
  22032. }
  22033. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  22034. MSM_FRONTEND_DAI_MAX) {
  22035. if (!(is_mm_lsm_fe_id(i) &&
  22036. route_check_fe_id_adm_support(i)))
  22037. continue;
  22038. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22039. copp = session_copp_map[i]
  22040. [session_type][be_idx];
  22041. if (test_bit(idx, &copp))
  22042. break;
  22043. }
  22044. if (idx >= MAX_COPPS_PER_PORT)
  22045. continue;
  22046. else
  22047. break;
  22048. }
  22049. if (i >= MSM_FRONTEND_DAI_MAX) {
  22050. pr_debug("%s: Invalid FE, exiting\n", __func__);
  22051. ret = -EINVAL;
  22052. goto done;
  22053. }
  22054. *copp_idx = idx;
  22055. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  22056. done:
  22057. return ret;
  22058. }
  22059. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  22060. const char *prefix, int *port_id)
  22061. {
  22062. int ret = 0;
  22063. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  22064. /*
  22065. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  22066. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  22067. * and compare the string with the backend name to derive the port id.
  22068. */
  22069. if (!strcmp(kcontrol->id.name + strlen(prefix),
  22070. "SLIMBUS_0")) {
  22071. *port_id = SLIMBUS_0_TX;
  22072. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22073. "TERT_MI2S")) {
  22074. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  22075. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22076. "INT3_MI2S")) {
  22077. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  22078. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22079. "VA_CDC_DMA_TX_0")) {
  22080. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  22081. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22082. "TX_CDC_DMA_TX_3")) {
  22083. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  22084. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22085. "QUIN_TDM_TX_0")) {
  22086. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  22087. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22088. "PRIMARY_TDM")) {
  22089. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  22090. } else {
  22091. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  22092. __func__, kcontrol->id.name);
  22093. ret = -EINVAL;
  22094. goto done;
  22095. }
  22096. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  22097. __func__, kcontrol->id.name, *port_id);
  22098. done:
  22099. return ret;
  22100. }
  22101. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  22102. struct snd_ctl_elem_value *ucontrol)
  22103. {
  22104. int ret = 0;
  22105. struct sound_focus_param soundFocusData;
  22106. int port_id, copp_idx;
  22107. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22108. "Sound Focus Audio Tx ", &port_id);
  22109. if (ret != 0) {
  22110. pr_err("%s: Error in deriving port id, err=%d\n",
  22111. __func__, ret);
  22112. ret = -EINVAL;
  22113. goto done;
  22114. }
  22115. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22116. &copp_idx);
  22117. if (ret) {
  22118. pr_err("%s: Could not get copp idx for port_id=%d\n",
  22119. __func__, port_id);
  22120. ret = -EINVAL;
  22121. goto done;
  22122. }
  22123. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22124. sizeof(struct sound_focus_param));
  22125. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  22126. if (ret) {
  22127. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22128. __func__, ret);
  22129. ret = -EINVAL;
  22130. goto done;
  22131. }
  22132. done:
  22133. return ret;
  22134. }
  22135. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  22136. struct snd_ctl_elem_value *ucontrol)
  22137. {
  22138. int ret = 0;
  22139. struct sound_focus_param soundFocusData;
  22140. int port_id, copp_idx;
  22141. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22142. "Sound Focus Audio Tx ", &port_id);
  22143. if (ret) {
  22144. pr_err("%s: Error in deriving port id, err=%d\n",
  22145. __func__, ret);
  22146. ret = -EINVAL;
  22147. goto done;
  22148. }
  22149. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22150. &copp_idx);
  22151. if (ret) {
  22152. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22153. __func__, port_id);
  22154. ret = -EINVAL;
  22155. goto done;
  22156. }
  22157. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  22158. if (ret) {
  22159. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  22160. __func__, ret);
  22161. ret = -EINVAL;
  22162. goto done;
  22163. }
  22164. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22165. sizeof(struct sound_focus_param));
  22166. done:
  22167. return ret;
  22168. }
  22169. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  22170. struct snd_ctl_elem_value *ucontrol)
  22171. {
  22172. int ret = 0;
  22173. struct source_tracking_param sourceTrackingData;
  22174. int port_id, copp_idx;
  22175. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22176. "Source Tracking Audio Tx ", &port_id);
  22177. if (ret) {
  22178. pr_err("%s: Error in deriving port id, err=%d\n",
  22179. __func__, ret);
  22180. ret = -EINVAL;
  22181. goto done;
  22182. }
  22183. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22184. &copp_idx);
  22185. if (ret) {
  22186. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22187. __func__, port_id);
  22188. ret = -EINVAL;
  22189. goto done;
  22190. }
  22191. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  22192. if (ret) {
  22193. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  22194. __func__, ret);
  22195. ret = -EINVAL;
  22196. goto done;
  22197. }
  22198. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22199. sizeof(struct source_tracking_param));
  22200. done:
  22201. return ret;
  22202. }
  22203. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  22204. struct snd_ctl_elem_info *uinfo)
  22205. {
  22206. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22207. uinfo->count = sizeof(struct doa_tracking_mon_param);
  22208. return 0;
  22209. }
  22210. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  22211. struct snd_ctl_elem_value *ucontrol)
  22212. {
  22213. int ret = 0;
  22214. struct doa_tracking_mon_param doa_tracking_data;
  22215. int port_id, copp_idx;
  22216. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  22217. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22218. "Doa Tracking Monitor Listen ", &port_id);
  22219. if (ret) {
  22220. pr_err("%s: Error in deriving port id, err=%d\n",
  22221. __func__, ret);
  22222. ret = -EINVAL;
  22223. goto done;
  22224. }
  22225. /*
  22226. * If copp id exists for given port id, query adm to get doa data.
  22227. * Else query afe for doa tracking params.
  22228. * This is to support in cases where LSM directly connects to
  22229. * AFE for FFNS.
  22230. */
  22231. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22232. &copp_idx);
  22233. if (!ret)
  22234. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  22235. &doa_tracking_data);
  22236. else
  22237. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  22238. if (ret) {
  22239. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  22240. __func__, ret);
  22241. ret = -EINVAL;
  22242. goto done;
  22243. }
  22244. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  22245. sizeof(struct doa_tracking_mon_param));
  22246. done:
  22247. return ret;
  22248. }
  22249. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  22250. {
  22251. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22252. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22253. .name = "Sound Focus Voice Tx SLIMBUS_0",
  22254. .info = msm_sound_focus_info,
  22255. .get = msm_voice_sound_focus_get,
  22256. .put = msm_voice_sound_focus_put,
  22257. },
  22258. {
  22259. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22260. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22261. .name = "Source Tracking Voice Tx SLIMBUS_0",
  22262. .info = msm_source_tracking_info,
  22263. .get = msm_voice_source_tracking_get,
  22264. },
  22265. {
  22266. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22267. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22268. .name = "Sound Focus Audio Tx SLIMBUS_0",
  22269. .info = msm_sound_focus_info,
  22270. .get = msm_audio_sound_focus_get,
  22271. .put = msm_audio_sound_focus_put,
  22272. },
  22273. {
  22274. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22275. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22276. .name = "Source Tracking Audio Tx SLIMBUS_0",
  22277. .info = msm_source_tracking_info,
  22278. .get = msm_audio_source_tracking_get,
  22279. },
  22280. {
  22281. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22282. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22283. .name = "Sound Focus Voice Tx TERT_MI2S",
  22284. .info = msm_sound_focus_info,
  22285. .get = msm_voice_sound_focus_get,
  22286. .put = msm_voice_sound_focus_put,
  22287. },
  22288. {
  22289. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22290. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22291. .name = "Source Tracking Voice Tx TERT_MI2S",
  22292. .info = msm_source_tracking_info,
  22293. .get = msm_voice_source_tracking_get,
  22294. },
  22295. {
  22296. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22297. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22298. .name = "Sound Focus Audio Tx TERT_MI2S",
  22299. .info = msm_sound_focus_info,
  22300. .get = msm_audio_sound_focus_get,
  22301. .put = msm_audio_sound_focus_put,
  22302. },
  22303. {
  22304. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22305. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22306. .name = "Source Tracking Audio Tx TERT_MI2S",
  22307. .info = msm_source_tracking_info,
  22308. .get = msm_audio_source_tracking_get,
  22309. },
  22310. {
  22311. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22312. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22313. .name = "Sound Focus Voice Tx INT3_MI2S",
  22314. .info = msm_sound_focus_info,
  22315. .get = msm_voice_sound_focus_get,
  22316. .put = msm_voice_sound_focus_put,
  22317. },
  22318. {
  22319. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22320. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22321. .name = "Source Tracking Voice Tx INT3_MI2S",
  22322. .info = msm_source_tracking_info,
  22323. .get = msm_voice_source_tracking_get,
  22324. },
  22325. {
  22326. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22327. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22328. .name = "Sound Focus Audio Tx INT3_MI2S",
  22329. .info = msm_sound_focus_info,
  22330. .get = msm_audio_sound_focus_get,
  22331. .put = msm_audio_sound_focus_put,
  22332. },
  22333. {
  22334. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22335. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22336. .name = "Source Tracking Audio Tx INT3_MI2S",
  22337. .info = msm_source_tracking_info,
  22338. .get = msm_audio_source_tracking_get,
  22339. },
  22340. {
  22341. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22342. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22343. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  22344. .info = msm_sound_focus_info,
  22345. .get = msm_voice_sound_focus_get,
  22346. .put = msm_voice_sound_focus_put,
  22347. },
  22348. {
  22349. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22350. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22351. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  22352. .info = msm_source_tracking_info,
  22353. .get = msm_voice_source_tracking_get,
  22354. },
  22355. {
  22356. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22357. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22358. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  22359. .info = msm_sound_focus_info,
  22360. .get = msm_audio_sound_focus_get,
  22361. .put = msm_audio_sound_focus_put,
  22362. },
  22363. {
  22364. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22365. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22366. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  22367. .info = msm_source_tracking_info,
  22368. .get = msm_audio_source_tracking_get,
  22369. },
  22370. {
  22371. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22372. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22373. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  22374. .info = msm_sound_focus_info,
  22375. .get = msm_voice_sound_focus_get,
  22376. .put = msm_voice_sound_focus_put,
  22377. },
  22378. {
  22379. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22380. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22381. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  22382. .info = msm_source_tracking_info,
  22383. .get = msm_voice_source_tracking_get,
  22384. },
  22385. {
  22386. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22387. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22388. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  22389. .info = msm_sound_focus_info,
  22390. .get = msm_audio_sound_focus_get,
  22391. .put = msm_audio_sound_focus_put,
  22392. },
  22393. {
  22394. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22395. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22396. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  22397. .info = msm_source_tracking_info,
  22398. .get = msm_audio_source_tracking_get,
  22399. },
  22400. {
  22401. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22402. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22403. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  22404. .info = msm_sound_focus_info,
  22405. .get = msm_voice_sound_focus_get,
  22406. .put = msm_voice_sound_focus_put,
  22407. },
  22408. {
  22409. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22410. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22411. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  22412. .info = msm_source_tracking_info,
  22413. .get = msm_voice_source_tracking_get,
  22414. },
  22415. {
  22416. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22417. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22418. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  22419. .info = msm_sound_focus_info,
  22420. .get = msm_audio_sound_focus_get,
  22421. .put = msm_audio_sound_focus_put,
  22422. },
  22423. {
  22424. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22425. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22426. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  22427. .info = msm_source_tracking_info,
  22428. .get = msm_audio_source_tracking_get,
  22429. },
  22430. {
  22431. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22432. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22433. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  22434. .info = msm_sound_focus_info,
  22435. .get = msm_audio_sound_focus_get,
  22436. .put = msm_audio_sound_focus_put,
  22437. },
  22438. {
  22439. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22440. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22441. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  22442. .info = msm_source_tracking_info,
  22443. .get = msm_audio_source_tracking_get,
  22444. },
  22445. {
  22446. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22447. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22448. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  22449. .info = msm_doa_tracking_mon_info,
  22450. .get = msm_doa_tracking_mon_get,
  22451. },
  22452. };
  22453. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  22454. struct snd_ctl_elem_value *ucontrol)
  22455. {
  22456. int ret = 0;
  22457. int item;
  22458. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22459. pr_debug("%s item is %d\n", __func__,
  22460. ucontrol->value.enumerated.item[0]);
  22461. mutex_lock(&routing_lock);
  22462. item = ucontrol->value.enumerated.item[0];
  22463. if (item < e->items) {
  22464. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22465. __func__, e->shift_l, e->values[item]);
  22466. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22467. e->values[item] < MSM_BACKEND_DAI_MAX)
  22468. /* Enable feedback TX path */
  22469. ret = afe_spk_prot_feed_back_cfg(
  22470. msm_bedais[e->values[item]].port_id,
  22471. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  22472. else {
  22473. pr_debug("%s values are out of range item %d\n",
  22474. __func__, e->values[item]);
  22475. /* Disable feedback TX path */
  22476. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22477. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  22478. else
  22479. ret = -EINVAL;
  22480. }
  22481. } else {
  22482. pr_err("%s item value is out of range item\n", __func__);
  22483. ret = -EINVAL;
  22484. }
  22485. mutex_unlock(&routing_lock);
  22486. return ret;
  22487. }
  22488. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  22489. struct snd_ctl_elem_value *ucontrol)
  22490. {
  22491. int ret = 0;
  22492. int item;
  22493. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22494. pr_debug("%s item is %d\n", __func__,
  22495. ucontrol->value.enumerated.item[0]);
  22496. mutex_lock(&routing_lock);
  22497. item = ucontrol->value.enumerated.item[0];
  22498. if (item < e->items) {
  22499. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22500. __func__, e->shift_l, e->values[item]);
  22501. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22502. e->values[item] < MSM_BACKEND_DAI_MAX)
  22503. /* Enable feedback TX path */
  22504. ret = afe_spk_prot_feed_back_cfg(
  22505. msm_bedais[e->values[item]].port_id,
  22506. msm_bedais[e->shift_l].port_id,
  22507. 1, 1, 1);
  22508. else {
  22509. pr_debug("%s values are out of range item %d\n",
  22510. __func__, e->values[item]);
  22511. /* Disable feedback TX path */
  22512. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22513. ret = afe_spk_prot_feed_back_cfg(0,
  22514. 0, 0, 0, 0);
  22515. else
  22516. ret = -EINVAL;
  22517. }
  22518. } else {
  22519. pr_err("%s item value is out of range item\n", __func__);
  22520. ret = -EINVAL;
  22521. }
  22522. mutex_unlock(&routing_lock);
  22523. return ret;
  22524. }
  22525. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  22526. struct snd_ctl_elem_value *ucontrol)
  22527. {
  22528. pr_debug("%s\n", __func__);
  22529. return 0;
  22530. }
  22531. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  22532. struct snd_ctl_elem_value *ucontrol)
  22533. {
  22534. pr_debug("%s\n", __func__);
  22535. ucontrol->value.enumerated.item[0] = 0;
  22536. return 0;
  22537. }
  22538. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  22539. "ZERO", "SLIM4_TX"
  22540. };
  22541. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  22542. "ZERO", "SLIM4_TX"
  22543. };
  22544. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  22545. "ZERO", "WSA_CDC_DMA_TX_0"
  22546. };
  22547. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  22548. "ZERO", "WSA_CDC_DMA_TX_0"
  22549. };
  22550. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  22551. "ZERO", "SENARY_TX"
  22552. };
  22553. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  22554. "ZERO", "INT5_MI2S_TX"
  22555. };
  22556. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  22557. "ZERO", "INT5_MI2S_TX"
  22558. };
  22559. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  22560. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  22561. };
  22562. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  22563. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  22564. };
  22565. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  22566. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  22567. };
  22568. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  22569. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  22570. };
  22571. static const int mi2s_rx_vi_fb_tx_value[] = {
  22572. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  22573. };
  22574. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  22575. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  22576. };
  22577. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  22578. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  22579. };
  22580. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  22581. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  22582. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  22583. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  22584. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  22585. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  22586. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  22587. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  22588. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  22589. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  22590. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  22591. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  22592. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  22593. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  22594. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  22595. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  22596. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  22597. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  22598. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  22599. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  22600. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  22601. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  22602. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  22603. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  22604. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  22605. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  22606. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  22607. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  22608. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  22609. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  22610. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  22611. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  22612. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22613. spkr_prot_put_vi_lch_port);
  22614. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  22615. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  22616. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22617. spkr_prot_put_vi_rch_port);
  22618. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  22619. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  22620. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22621. spkr_prot_put_vi_lch_port);
  22622. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  22623. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  22624. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22625. spkr_prot_put_vi_rch_port);
  22626. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  22627. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  22628. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  22629. spkr_prot_put_vi_lch_port);
  22630. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  22631. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  22632. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  22633. spkr_prot_put_vi_lch_port);
  22634. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  22635. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  22636. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  22637. spkr_prot_put_vi_rch_port);
  22638. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  22639. /* Frontend AIF */
  22640. /* Widget name equals to Front-End DAI name<Need confirmation>,
  22641. * Stream name must contains substring of front-end dai name
  22642. */
  22643. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  22644. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  22645. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  22646. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  22647. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  22648. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  22649. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  22650. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  22651. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  22652. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  22653. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  22654. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  22655. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  22656. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  22657. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  22658. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  22659. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  22660. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  22661. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  22662. SND_SOC_DAPM_AIF_IN("MM_DL23", "MultiMedia23 Playback", 0, 0, 0, 0),
  22663. SND_SOC_DAPM_AIF_IN("MM_DL24", "MultiMedia24 Playback", 0, 0, 0, 0),
  22664. SND_SOC_DAPM_AIF_IN("MM_DL25", "MultiMedia25 Playback", 0, 0, 0, 0),
  22665. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  22666. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  22667. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  22668. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  22669. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  22670. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  22671. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  22672. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  22673. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  22674. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  22675. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  22676. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  22677. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  22678. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  22679. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  22680. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  22681. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  22682. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  22683. SND_SOC_DAPM_AIF_OUT("MM_UL23", "MultiMedia23 Capture", 0, 0, 0, 0),
  22684. SND_SOC_DAPM_AIF_OUT("MM_UL24", "MultiMedia24 Capture", 0, 0, 0, 0),
  22685. SND_SOC_DAPM_AIF_OUT("MM_UL25", "MultiMedia25 Capture", 0, 0, 0, 0),
  22686. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  22687. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  22688. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  22689. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  22690. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  22691. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  22692. "VoiceMMode1 Playback", 0, 0, 0, 0),
  22693. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  22694. "VoiceMMode1 Capture", 0, 0, 0, 0),
  22695. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  22696. "VoiceMMode2 Playback", 0, 0, 0, 0),
  22697. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  22698. "VoiceMMode2 Capture", 0, 0, 0, 0),
  22699. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  22700. 0, 0, 0, 0),
  22701. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  22702. 0, 0, 0, 0),
  22703. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  22704. 0, 0, 0, 0),
  22705. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  22706. 0, 0, 0, 0),
  22707. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  22708. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  22709. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  22710. 0, 0, 0, 0),
  22711. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  22712. 0, 0, 0, 0),
  22713. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  22714. 0, 0, 0, 0),
  22715. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  22716. 0, 0, 0, 0),
  22717. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  22718. 0, 0, 0, 0),
  22719. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  22720. 0, 0, 0, 0),
  22721. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  22722. 0, 0, 0, 0),
  22723. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  22724. 0, 0, 0, 0),
  22725. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  22726. 0, 0, 0, 0),
  22727. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  22728. 0, 0, 0, 0),
  22729. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  22730. 0, 0, 0, 0),
  22731. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  22732. 0, 0, 0, 0),
  22733. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  22734. 0, 0, 0, 0),
  22735. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  22736. 0, 0, 0, 0),
  22737. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  22738. 0, 0, 0, 0),
  22739. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  22740. 0, 0, 0, 0),
  22741. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  22742. 0, 0, 0, 0),
  22743. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  22744. 0, 0, 0, 0),
  22745. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  22746. 0, 0, 0, 0),
  22747. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  22748. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  22749. 0, 0, 0, 0),
  22750. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  22751. "INT0 MI2S_RX Hostless Playback",
  22752. 0, 0, 0, 0),
  22753. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  22754. "INT4 MI2S_RX Hostless Playback",
  22755. 0, 0, 0, 0),
  22756. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  22757. "Primary MI2S_RX Hostless Playback",
  22758. 0, 0, 0, 0),
  22759. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  22760. "Secondary MI2S_RX Hostless Playback",
  22761. 0, 0, 0, 0),
  22762. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  22763. "Tertiary MI2S_RX Hostless Playback",
  22764. 0, 0, 0, 0),
  22765. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  22766. "Quaternary MI2S_RX Hostless Playback",
  22767. 0, 0, 0, 0),
  22768. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  22769. "Quinary MI2S_RX Hostless Playback",
  22770. 0, 0, 0, 0),
  22771. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  22772. "Senary MI2S_RX Hostless Playback",
  22773. 0, 0, 0, 0),
  22774. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  22775. 0, 0, 0, 0),
  22776. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  22777. 0, 0, 0, 0),
  22778. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  22779. 0, 0, 0, 0),
  22780. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  22781. 0, 0, 0, 0),
  22782. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  22783. 0, 0, 0, 0),
  22784. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  22785. "INT3 MI2S_TX Hostless Capture",
  22786. 0, 0, 0, 0),
  22787. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  22788. "Tertiary MI2S_TX Hostless Capture",
  22789. 0, 0, 0, 0),
  22790. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  22791. "Secondary MI2S_TX Hostless Capture",
  22792. 0, 0, 0, 0),
  22793. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  22794. "Primary MI2S_TX Hostless Capture",
  22795. 0, 0, 0, 0),
  22796. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  22797. 0, 0, 0, 0),
  22798. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  22799. 0, 0, 0, 0),
  22800. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  22801. "Quaternary MI2S_TX Hostless Capture",
  22802. 0, 0, 0, 0),
  22803. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  22804. "Quinary MI2S_TX Hostless Capture",
  22805. 0, 0, 0, 0),
  22806. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  22807. "Senary MI2S_TX Hostless Capture",
  22808. 0, 0, 0, 0),
  22809. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  22810. "Primary TDM0 Hostless Playback",
  22811. 0, 0, 0, 0),
  22812. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  22813. "Primary TDM0 Hostless Capture",
  22814. 0, 0, 0, 0),
  22815. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  22816. "Primary TDM1 Hostless Playback",
  22817. 0, 0, 0, 0),
  22818. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  22819. "Primary TDM1 Hostless Capture",
  22820. 0, 0, 0, 0),
  22821. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  22822. "Primary TDM2 Hostless Playback",
  22823. 0, 0, 0, 0),
  22824. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  22825. "Primary TDM2 Hostless Capture",
  22826. 0, 0, 0, 0),
  22827. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  22828. "Primary TDM3 Hostless Playback",
  22829. 0, 0, 0, 0),
  22830. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  22831. "Primary TDM3 Hostless Capture",
  22832. 0, 0, 0, 0),
  22833. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  22834. "Primary TDM4 Hostless Playback",
  22835. 0, 0, 0, 0),
  22836. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  22837. "Primary TDM4 Hostless Capture",
  22838. 0, 0, 0, 0),
  22839. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  22840. "Primary TDM5 Hostless Playback",
  22841. 0, 0, 0, 0),
  22842. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  22843. "Primary TDM5 Hostless Capture",
  22844. 0, 0, 0, 0),
  22845. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  22846. "Primary TDM6 Hostless Playback",
  22847. 0, 0, 0, 0),
  22848. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  22849. "Primary TDM6 Hostless Capture",
  22850. 0, 0, 0, 0),
  22851. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  22852. "Primary TDM7 Hostless Playback",
  22853. 0, 0, 0, 0),
  22854. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  22855. "Primary TDM7 Hostless Capture",
  22856. 0, 0, 0, 0),
  22857. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  22858. "Secondary TDM0 Hostless Playback",
  22859. 0, 0, 0, 0),
  22860. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  22861. "Secondary TDM0 Hostless Capture",
  22862. 0, 0, 0, 0),
  22863. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  22864. "Secondary TDM1 Hostless Playback",
  22865. 0, 0, 0, 0),
  22866. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  22867. "Secondary TDM1 Hostless Capture",
  22868. 0, 0, 0, 0),
  22869. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  22870. "Secondary TDM2 Hostless Playback",
  22871. 0, 0, 0, 0),
  22872. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  22873. "Secondary TDM2 Hostless Capture",
  22874. 0, 0, 0, 0),
  22875. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  22876. "Secondary TDM3 Hostless Playback",
  22877. 0, 0, 0, 0),
  22878. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  22879. "Secondary TDM3 Hostless Capture",
  22880. 0, 0, 0, 0),
  22881. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  22882. "Secondary TDM4 Hostless Playback",
  22883. 0, 0, 0, 0),
  22884. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  22885. "Secondary TDM4 Hostless Capture",
  22886. 0, 0, 0, 0),
  22887. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  22888. "Secondary TDM5 Hostless Playback",
  22889. 0, 0, 0, 0),
  22890. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  22891. "Secondary TDM5 Hostless Capture",
  22892. 0, 0, 0, 0),
  22893. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  22894. "Secondary TDM6 Hostless Playback",
  22895. 0, 0, 0, 0),
  22896. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  22897. "Secondary TDM6 Hostless Capture",
  22898. 0, 0, 0, 0),
  22899. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  22900. "Secondary TDM7 Hostless Playback",
  22901. 0, 0, 0, 0),
  22902. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  22903. "Secondary TDM7 Hostless Capture",
  22904. 0, 0, 0, 0),
  22905. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  22906. "Tertiary TDM0 Hostless Playback",
  22907. 0, 0, 0, 0),
  22908. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  22909. "Tertiary TDM0 Hostless Capture",
  22910. 0, 0, 0, 0),
  22911. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  22912. "Tertiary TDM1 Hostless Playback",
  22913. 0, 0, 0, 0),
  22914. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  22915. "Tertiary TDM1 Hostless Capture",
  22916. 0, 0, 0, 0),
  22917. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  22918. "Tertiary TDM2 Hostless Playback",
  22919. 0, 0, 0, 0),
  22920. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  22921. "Tertiary TDM2 Hostless Capture",
  22922. 0, 0, 0, 0),
  22923. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  22924. "Tertiary TDM3 Hostless Playback",
  22925. 0, 0, 0, 0),
  22926. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  22927. "Tertiary TDM3 Hostless Capture",
  22928. 0, 0, 0, 0),
  22929. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  22930. "Tertiary TDM4 Hostless Playback",
  22931. 0, 0, 0, 0),
  22932. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  22933. "Tertiary TDM4 Hostless Capture",
  22934. 0, 0, 0, 0),
  22935. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  22936. "Tertiary TDM5 Hostless Playback",
  22937. 0, 0, 0, 0),
  22938. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  22939. "Tertiary TDM5 Hostless Capture",
  22940. 0, 0, 0, 0),
  22941. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  22942. "Tertiary TDM6 Hostless Playback",
  22943. 0, 0, 0, 0),
  22944. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  22945. "Tertiary TDM6 Hostless Capture",
  22946. 0, 0, 0, 0),
  22947. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  22948. "Tertiary TDM7 Hostless Playback",
  22949. 0, 0, 0, 0),
  22950. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  22951. "Tertiary TDM7 Hostless Capture",
  22952. 0, 0, 0, 0),
  22953. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  22954. "Quaternary TDM0 Hostless Playback",
  22955. 0, 0, 0, 0),
  22956. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  22957. "Quaternary TDM0 Hostless Capture",
  22958. 0, 0, 0, 0),
  22959. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  22960. "Quaternary TDM1 Hostless Playback",
  22961. 0, 0, 0, 0),
  22962. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  22963. "Quaternary TDM1 Hostless Capture",
  22964. 0, 0, 0, 0),
  22965. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  22966. "Quaternary TDM2 Hostless Playback",
  22967. 0, 0, 0, 0),
  22968. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  22969. "Quaternary TDM2 Hostless Capture",
  22970. 0, 0, 0, 0),
  22971. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  22972. "Quaternary TDM3 Hostless Playback",
  22973. 0, 0, 0, 0),
  22974. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  22975. "Quaternary TDM3 Hostless Capture",
  22976. 0, 0, 0, 0),
  22977. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  22978. "Quaternary TDM4 Hostless Playback",
  22979. 0, 0, 0, 0),
  22980. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  22981. "Quaternary TDM4 Hostless Capture",
  22982. 0, 0, 0, 0),
  22983. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  22984. "Quaternary TDM5 Hostless Playback",
  22985. 0, 0, 0, 0),
  22986. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  22987. "Quaternary TDM5 Hostless Capture",
  22988. 0, 0, 0, 0),
  22989. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  22990. "Quaternary TDM6 Hostless Playback",
  22991. 0, 0, 0, 0),
  22992. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  22993. "Quaternary TDM6 Hostless Capture",
  22994. 0, 0, 0, 0),
  22995. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  22996. "Quaternary TDM7 Hostless Playback",
  22997. 0, 0, 0, 0),
  22998. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  22999. "Quaternary TDM7 Hostless Capture",
  23000. 0, 0, 0, 0),
  23001. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  23002. "Quinary TDM0 Hostless Playback",
  23003. 0, 0, 0, 0),
  23004. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  23005. "Quinary TDM0 Hostless Capture",
  23006. 0, 0, 0, 0),
  23007. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  23008. "Quinary TDM1 Hostless Playback",
  23009. 0, 0, 0, 0),
  23010. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  23011. "Quinary TDM1 Hostless Capture",
  23012. 0, 0, 0, 0),
  23013. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  23014. "Quinary TDM2 Hostless Playback",
  23015. 0, 0, 0, 0),
  23016. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  23017. "Quinary TDM2 Hostless Capture",
  23018. 0, 0, 0, 0),
  23019. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  23020. "Quinary TDM3 Hostless Playback",
  23021. 0, 0, 0, 0),
  23022. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  23023. "Quinary TDM3 Hostless Capture",
  23024. 0, 0, 0, 0),
  23025. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  23026. "Quinary TDM4 Hostless Playback",
  23027. 0, 0, 0, 0),
  23028. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  23029. "Quinary TDM4 Hostless Capture",
  23030. 0, 0, 0, 0),
  23031. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  23032. "Quinary TDM5 Hostless Playback",
  23033. 0, 0, 0, 0),
  23034. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  23035. "Quinary TDM5 Hostless Capture",
  23036. 0, 0, 0, 0),
  23037. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  23038. "Quinary TDM6 Hostless Playback",
  23039. 0, 0, 0, 0),
  23040. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  23041. "Quinary TDM6 Hostless Capture",
  23042. 0, 0, 0, 0),
  23043. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  23044. "Quinary TDM7 Hostless Playback",
  23045. 0, 0, 0, 0),
  23046. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  23047. "Quinary TDM7 Hostless Capture",
  23048. 0, 0, 0, 0),
  23049. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  23050. "Senary TDM0 Hostless Playback",
  23051. 0, 0, 0, 0),
  23052. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  23053. "Senary TDM0 Hostless Capture",
  23054. 0, 0, 0, 0),
  23055. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  23056. "Senary TDM1 Hostless Playback",
  23057. 0, 0, 0, 0),
  23058. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  23059. "Senary TDM1 Hostless Capture",
  23060. 0, 0, 0, 0),
  23061. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  23062. "Senary TDM2 Hostless Playback",
  23063. 0, 0, 0, 0),
  23064. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  23065. "Senary TDM2 Hostless Capture",
  23066. 0, 0, 0, 0),
  23067. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  23068. "Senary TDM3 Hostless Playback",
  23069. 0, 0, 0, 0),
  23070. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  23071. "Senary TDM3 Hostless Capture",
  23072. 0, 0, 0, 0),
  23073. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  23074. "Senary TDM4 Hostless Playback",
  23075. 0, 0, 0, 0),
  23076. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  23077. "Senary TDM4 Hostless Capture",
  23078. 0, 0, 0, 0),
  23079. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  23080. "Senary TDM5 Hostless Playback",
  23081. 0, 0, 0, 0),
  23082. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  23083. "Senary TDM5 Hostless Capture",
  23084. 0, 0, 0, 0),
  23085. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  23086. "Senary TDM6 Hostless Playback",
  23087. 0, 0, 0, 0),
  23088. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  23089. "Senary TDM6 Hostless Capture",
  23090. 0, 0, 0, 0),
  23091. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  23092. "Senary TDM7 Hostless Playback",
  23093. 0, 0, 0, 0),
  23094. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  23095. "Senary TDM7 Hostless Capture",
  23096. 0, 0, 0, 0),
  23097. /* LSM */
  23098. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  23099. 0, 0, 0, 0),
  23100. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  23101. 0, 0, 0, 0),
  23102. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  23103. 0, 0, 0, 0),
  23104. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  23105. 0, 0, 0, 0),
  23106. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  23107. 0, 0, 0, 0),
  23108. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  23109. 0, 0, 0, 0),
  23110. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  23111. 0, 0, 0, 0),
  23112. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  23113. 0, 0, 0, 0),
  23114. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  23115. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  23116. /* Backend AIF */
  23117. /* Stream name equals to backend dai link stream name */
  23118. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  23119. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  23120. 0, 0, 0, 0),
  23121. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  23122. 0, 0, 0, 0),
  23123. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  23124. 0, 0, 0, 0),
  23125. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  23126. 0, 0, 0, 0),
  23127. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  23128. 0, 0, 0, 0),
  23129. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  23130. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  23131. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  23132. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  23133. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  23134. 0, 0, 0, 0),
  23135. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  23136. 0, 0, 0, 0),
  23137. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  23138. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  23139. 0, 0, 0, 0),
  23140. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  23141. 0, 0, 0, 0),
  23142. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  23143. 0, 0, 0, 0),
  23144. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  23145. "Secondary MI2S Playback SD1",
  23146. 0, 0, 0, 0),
  23147. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  23148. 0, 0, 0, 0),
  23149. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  23150. 0, 0, 0, 0),
  23151. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  23152. 0, 0, 0, 0),
  23153. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  23154. 0, 0, 0, 0),
  23155. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  23156. 0, 0, 0, 0),
  23157. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  23158. 0, 0, 0, 0),
  23159. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  23160. 0, 0, 0, 0),
  23161. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  23162. 0, 0, 0, 0),
  23163. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  23164. 0, 0, 0, 0),
  23165. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  23166. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  23167. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  23168. 0, 0, 0, 0),
  23169. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  23170. 0, 0, 0, 0),
  23171. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  23172. 0, 0, 0, 0),
  23173. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  23174. 0, 0, 0, 0),
  23175. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  23176. 0, 0, 0, 0),
  23177. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  23178. 0, 0, 0, 0),
  23179. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  23180. 0, 0, 0, 0),
  23181. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  23182. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  23183. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  23184. 0, 0, 0, 0),
  23185. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  23186. 0, 0, 0, 0),
  23187. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  23188. 0, 0, 0, 0),
  23189. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  23190. 0, 0, 0, 0),
  23191. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  23192. 0, 0, 0, 0),
  23193. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  23194. 0, 0, 0, 0),
  23195. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  23196. 0, 0, 0, 0),
  23197. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  23198. 0, 0, 0, 0),
  23199. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  23200. 0, 0, 0, 0),
  23201. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  23202. 0, 0, 0, 0),
  23203. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  23204. 0, 0, 0, 0),
  23205. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  23206. 0, 0, 0, 0),
  23207. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  23208. 0, 0, 0, 0),
  23209. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  23210. 0, 0, 0, 0),
  23211. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  23212. 0, 0, 0, 0),
  23213. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  23214. 0, 0, 0, 0),
  23215. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  23216. 0, 0, 0, 0),
  23217. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  23218. 0, 0, 0, 0),
  23219. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  23220. 0, 0, 0, 0),
  23221. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  23222. 0, 0, 0, 0),
  23223. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  23224. 0, 0, 0, 0),
  23225. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  23226. 0, 0, 0, 0),
  23227. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  23228. 0, 0, 0, 0),
  23229. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  23230. 0, 0, 0, 0),
  23231. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  23232. 0, 0, 0, 0),
  23233. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  23234. 0, 0, 0, 0),
  23235. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  23236. 0, 0, 0, 0),
  23237. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  23238. 0, 0, 0, 0),
  23239. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  23240. 0, 0, 0, 0),
  23241. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  23242. 0, 0, 0, 0),
  23243. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  23244. 0, 0, 0, 0),
  23245. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  23246. 0, 0, 0, 0),
  23247. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  23248. 0, 0, 0, 0),
  23249. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  23250. 0, 0, 0, 0),
  23251. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  23252. 0, 0, 0, 0),
  23253. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  23254. 0, 0, 0, 0),
  23255. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  23256. 0, 0, 0, 0),
  23257. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  23258. 0, 0, 0, 0),
  23259. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  23260. 0, 0, 0, 0),
  23261. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  23262. 0, 0, 0, 0),
  23263. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  23264. 0, 0, 0, 0),
  23265. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  23266. 0, 0, 0, 0),
  23267. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  23268. 0, 0, 0, 0),
  23269. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  23270. 0, 0, 0, 0),
  23271. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  23272. 0, 0, 0, 0),
  23273. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  23274. 0, 0, 0, 0),
  23275. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  23276. 0, 0, 0, 0),
  23277. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  23278. 0, 0, 0, 0),
  23279. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  23280. 0, 0, 0, 0),
  23281. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  23282. 0, 0, 0, 0),
  23283. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  23284. 0, 0, 0, 0),
  23285. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  23286. 0, 0, 0, 0),
  23287. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  23288. 0, 0, 0, 0),
  23289. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  23290. 0, 0, 0, 0),
  23291. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  23292. 0, 0, 0, 0),
  23293. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  23294. 0, 0, 0, 0),
  23295. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  23296. 0, 0, 0, 0),
  23297. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  23298. 0, 0, 0, 0),
  23299. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  23300. 0, 0, 0, 0),
  23301. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  23302. 0, 0, 0, 0),
  23303. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  23304. 0, 0, 0, 0),
  23305. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  23306. 0, 0, 0, 0),
  23307. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  23308. 0, 0, 0, 0),
  23309. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  23310. 0, 0, 0, 0),
  23311. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  23312. 0, 0, 0, 0),
  23313. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  23314. 0, 0, 0, 0),
  23315. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  23316. 0, 0, 0, 0),
  23317. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  23318. 0, 0, 0, 0),
  23319. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  23320. 0, 0, 0, 0),
  23321. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  23322. 0, 0, 0, 0),
  23323. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  23324. 0, 0, 0, 0),
  23325. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  23326. 0, 0, 0, 0),
  23327. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  23328. 0, 0, 0, 0),
  23329. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  23330. 0, 0, 0, 0),
  23331. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  23332. 0, 0, 0, 0),
  23333. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  23334. 0, 0, 0, 0),
  23335. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  23336. 0, 0, 0, 0),
  23337. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  23338. 0, 0, 0, 0),
  23339. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  23340. 0, 0, 0, 0),
  23341. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  23342. 0, 0, 0, 0),
  23343. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  23344. 0, 0, 0, 0),
  23345. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  23346. 0, 0, 0, 0),
  23347. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  23348. 0, 0, 0, 0),
  23349. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  23350. 0, 0, 0, 0),
  23351. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  23352. 0, 0, 0, 0),
  23353. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  23354. 0, 0, 0, 0),
  23355. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  23356. 0, 0, 0, 0),
  23357. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  23358. 0, 0, 0, 0),
  23359. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  23360. 0, 0, 0, 0),
  23361. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  23362. 0, 0, 0, 0),
  23363. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  23364. 0, 0, 0, 0),
  23365. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  23366. 0, 0, 0, 0),
  23367. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  23368. 0, 0, 0, 0),
  23369. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  23370. 0, 0, 0, 0),
  23371. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  23372. 0, 0, 0, 0),
  23373. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  23374. 0, 0, 0, 0),
  23375. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  23376. 0, 0, 0, 0),
  23377. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  23378. 0, 0, 0, 0),
  23379. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  23380. 0, 0, 0, 0),
  23381. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  23382. 0, 0, 0, 0),
  23383. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  23384. 0, 0, 0, 0),
  23385. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  23386. 0, 0, 0, 0),
  23387. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  23388. 0, 0, 0, 0),
  23389. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  23390. 0, 0, 0, 0),
  23391. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  23392. 0, 0, 0, 0),
  23393. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  23394. 0, 0, 0, 0),
  23395. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  23396. 0, 0, 0, 0),
  23397. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  23398. 0, 0, 0, 0),
  23399. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  23400. 0, 0, 0, 0),
  23401. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  23402. 0, 0, 0, 0),
  23403. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  23404. 0, 0, 0, 0),
  23405. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  23406. 0, 0, 0, 0),
  23407. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  23408. 0, 0, 0, 0),
  23409. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  23410. 0, 0, 0, 0),
  23411. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  23412. 0, 0, 0, 0),
  23413. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  23414. 0, 0, 0, 0),
  23415. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  23416. 0, 0, 0, 0),
  23417. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  23418. 0, 0, 0, 0),
  23419. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  23420. 0, 0, 0, 0),
  23421. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  23422. 0, 0, 0, 0),
  23423. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  23424. 0, 0, 0, 0),
  23425. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  23426. 0, 0, 0, 0),
  23427. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  23428. 0, 0, 0, 0),
  23429. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  23430. 0, 0, 0, 0),
  23431. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  23432. 0, 0, 0, 0),
  23433. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  23434. 0, 0, 0, 0),
  23435. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  23436. 0, 0, 0, 0),
  23437. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  23438. 0, 0, 0, 0),
  23439. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  23440. 0, 0, 0, 0),
  23441. /* incall */
  23442. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  23443. 0, 0, 0, 0),
  23444. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  23445. 0, 0, 0, 0),
  23446. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  23447. 0, 0, 0, 0),
  23448. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  23449. 0, 0, 0, 0),
  23450. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  23451. 0, 0, 0, 0),
  23452. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  23453. 0, 0, 0, 0),
  23454. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  23455. 0, 0, 0, 0),
  23456. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  23457. 0, 0, 0, 0),
  23458. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  23459. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  23460. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  23461. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  23462. 0, 0, 0, 0),
  23463. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  23464. 0, 0, 0, 0),
  23465. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  23466. 0, 0, 0, 0),
  23467. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  23468. 0, 0, 0, 0),
  23469. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  23470. 0, 0, 0, 0),
  23471. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  23472. 0, 0, 0, 0),
  23473. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  23474. 0, 0, 0, 0),
  23475. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  23476. 0, 0, 0, 0),
  23477. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  23478. 0, 0, 0, 0),
  23479. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  23480. 0, 0, 0, 0),
  23481. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  23482. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  23483. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  23484. 0, 0, 0, 0),
  23485. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  23486. 0, 0, 0, 0),
  23487. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  23488. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  23489. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  23490. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  23491. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  23492. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  23493. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  23494. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  23495. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  23496. /* In- call recording */
  23497. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  23498. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  23499. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  23500. 0, 0, 0, 0),
  23501. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  23502. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  23503. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  23504. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  23505. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  23506. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  23507. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  23508. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  23509. /* Switch Definitions */
  23510. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  23511. &slim_fm_switch_mixer_controls),
  23512. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  23513. &slim1_fm_switch_mixer_controls),
  23514. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  23515. &slim3_fm_switch_mixer_controls),
  23516. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  23517. &slim4_fm_switch_mixer_controls),
  23518. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  23519. &slim6_fm_switch_mixer_controls),
  23520. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23521. &pcm_rx_switch_mixer_controls),
  23522. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23523. &int0_mi2s_rx_switch_mixer_controls),
  23524. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23525. &int4_mi2s_rx_switch_mixer_controls),
  23526. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23527. &pri_mi2s_rx_switch_mixer_controls),
  23528. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23529. &sec_mi2s_rx_switch_mixer_controls),
  23530. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23531. &tert_mi2s_rx_switch_mixer_controls),
  23532. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23533. &quat_mi2s_rx_switch_mixer_controls),
  23534. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23535. &quin_mi2s_rx_switch_mixer_controls),
  23536. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  23537. &sco_slim7_switch_mixer_controls),
  23538. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23539. &sen_mi2s_rx_switch_mixer_controls),
  23540. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23541. &hfp_pri_aux_switch_mixer_controls),
  23542. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23543. &hfp_aux_switch_mixer_controls),
  23544. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  23545. &hfp_int_switch_mixer_controls),
  23546. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23547. &hfp_slim7_switch_mixer_controls),
  23548. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  23549. &usb_switch_mixer_controls),
  23550. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23551. &a2dp_slim7_switch_mixer_controls),
  23552. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23553. &cdc_dma_wsa_switch_mixer_controls),
  23554. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23555. &cdc_dma_rx_switch_mixer_controls),
  23556. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_1_DL_HL", SND_SOC_NOPM, 0, 0,
  23557. &cdc_dma_rx_1_switch_mixer_controls),
  23558. /* Mixer definitions */
  23559. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23560. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  23561. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23562. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  23563. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23564. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  23565. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23566. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  23567. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23568. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  23569. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23570. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  23571. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23572. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  23573. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  23574. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  23575. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  23576. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  23577. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  23578. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  23579. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23580. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  23581. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23582. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  23583. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23584. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  23585. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23586. quaternary_mi2s_rx_mixer_controls,
  23587. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  23588. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23589. tertiary_mi2s_rx_mixer_controls,
  23590. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  23591. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23592. secondary_mi2s_rx_mixer_controls,
  23593. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  23594. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23595. secondary_mi2s_rx2_mixer_controls,
  23596. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  23597. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23598. primary_mi2s_rx_mixer_controls,
  23599. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  23600. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23601. int0_mi2s_rx_mixer_controls,
  23602. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  23603. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23604. int4_mi2s_rx_mixer_controls,
  23605. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  23606. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23607. quinary_mi2s_rx_mixer_controls,
  23608. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  23609. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23610. senary_mi2s_rx_mixer_controls,
  23611. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  23612. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23613. pri_tdm_rx_0_mixer_controls,
  23614. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  23615. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23616. pri_tdm_rx_1_mixer_controls,
  23617. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  23618. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23619. pri_tdm_rx_2_mixer_controls,
  23620. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  23621. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23622. pri_tdm_rx_3_mixer_controls,
  23623. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  23624. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23625. pri_tdm_tx_0_mixer_controls,
  23626. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  23627. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23628. sec_tdm_rx_0_mixer_controls,
  23629. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  23630. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23631. sec_tdm_rx_1_mixer_controls,
  23632. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  23633. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23634. sec_tdm_rx_2_mixer_controls,
  23635. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  23636. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23637. sec_tdm_rx_3_mixer_controls,
  23638. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  23639. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23640. sec_tdm_tx_0_mixer_controls,
  23641. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  23642. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23643. tert_tdm_rx_0_mixer_controls,
  23644. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  23645. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23646. tert_tdm_tx_0_mixer_controls,
  23647. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  23648. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23649. tert_tdm_rx_1_mixer_controls,
  23650. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  23651. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23652. tert_tdm_rx_2_mixer_controls,
  23653. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  23654. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23655. tert_tdm_rx_3_mixer_controls,
  23656. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  23657. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23658. tert_tdm_rx_4_mixer_controls,
  23659. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  23660. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23661. quat_tdm_rx_0_mixer_controls,
  23662. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  23663. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23664. quat_tdm_tx_0_mixer_controls,
  23665. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  23666. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23667. quat_tdm_rx_1_mixer_controls,
  23668. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  23669. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23670. quat_tdm_rx_2_mixer_controls,
  23671. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  23672. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23673. quat_tdm_rx_3_mixer_controls,
  23674. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  23675. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23676. quin_tdm_rx_0_mixer_controls,
  23677. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  23678. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23679. quin_tdm_tx_0_mixer_controls,
  23680. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  23681. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23682. quin_tdm_rx_1_mixer_controls,
  23683. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  23684. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23685. quin_tdm_tx_1_mixer_controls,
  23686. ARRAY_SIZE(quin_tdm_tx_1_mixer_controls)),
  23687. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23688. quin_tdm_rx_2_mixer_controls,
  23689. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  23690. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23691. quin_tdm_tx_2_mixer_controls,
  23692. ARRAY_SIZE(quin_tdm_tx_2_mixer_controls)),
  23693. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23694. quin_tdm_rx_3_mixer_controls,
  23695. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  23696. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23697. quin_tdm_tx_3_mixer_controls,
  23698. ARRAY_SIZE(quin_tdm_tx_3_mixer_controls)),
  23699. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23700. sen_tdm_tx_0_mixer_controls,
  23701. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  23702. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23703. sen_tdm_rx_0_mixer_controls,
  23704. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  23705. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23706. sen_tdm_rx_1_mixer_controls,
  23707. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  23708. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23709. sen_tdm_rx_2_mixer_controls,
  23710. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  23711. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23712. sen_tdm_rx_3_mixer_controls,
  23713. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  23714. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23715. pri_meta_mi2s_rx_mixer_controls,
  23716. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  23717. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23718. sec_meta_mi2s_rx_mixer_controls,
  23719. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  23720. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23721. wsa_cdc_dma_rx_0_mixer_controls,
  23722. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  23723. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23724. wsa_cdc_dma_rx_1_mixer_controls,
  23725. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  23726. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23727. rx_cdc_dma_rx_0_mixer_controls,
  23728. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  23729. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23730. rx_cdc_dma_rx_1_mixer_controls,
  23731. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  23732. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23733. rx_cdc_dma_rx_2_mixer_controls,
  23734. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  23735. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23736. rx_cdc_dma_rx_3_mixer_controls,
  23737. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  23738. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23739. rx_cdc_dma_rx_4_mixer_controls,
  23740. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  23741. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23742. rx_cdc_dma_rx_5_mixer_controls,
  23743. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  23744. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23745. rx_cdc_dma_rx_6_mixer_controls,
  23746. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  23747. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23748. rx_cdc_dma_rx_7_mixer_controls,
  23749. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  23750. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  23751. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  23752. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  23753. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  23754. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  23755. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  23756. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  23757. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  23758. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  23759. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  23760. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  23761. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  23762. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  23763. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  23764. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  23765. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  23766. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  23767. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  23768. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  23769. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  23770. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  23771. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  23772. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  23773. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  23774. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  23775. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  23776. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  23777. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  23778. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  23779. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  23780. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  23781. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  23782. SND_SOC_DAPM_MIXER("MultiMedia23 Mixer", SND_SOC_NOPM, 0, 0,
  23783. mmul23_mixer_controls, ARRAY_SIZE(mmul23_mixer_controls)),
  23784. SND_SOC_DAPM_MIXER("MultiMedia24 Mixer", SND_SOC_NOPM, 0, 0,
  23785. mmul24_mixer_controls, ARRAY_SIZE(mmul24_mixer_controls)),
  23786. SND_SOC_DAPM_MIXER("MultiMedia25 Mixer", SND_SOC_NOPM, 0, 0,
  23787. mmul25_mixer_controls, ARRAY_SIZE(mmul25_mixer_controls)),
  23788. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  23789. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  23790. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  23791. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  23792. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  23793. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  23794. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  23795. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  23796. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23797. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  23798. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23799. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  23800. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23801. tert_auxpcm_rx_mixer_controls,
  23802. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  23803. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23804. quat_auxpcm_rx_mixer_controls,
  23805. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  23806. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23807. quin_auxpcm_rx_mixer_controls,
  23808. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  23809. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23810. sen_auxpcm_rx_mixer_controls,
  23811. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  23812. /* incall */
  23813. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  23814. incall_music_delivery_mixer_controls,
  23815. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  23816. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23817. incall_music2_delivery_mixer_controls,
  23818. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  23819. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23820. slimbus_4_rx_mixer_controls,
  23821. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  23822. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23823. slimbus_6_rx_mixer_controls,
  23824. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  23825. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23826. usb_audio_rx_mixer_controls,
  23827. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  23828. /* Voice Mixer */
  23829. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  23830. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  23831. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  23832. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  23833. SND_SOC_NOPM, 0, 0,
  23834. sec_i2s_rx_voice_mixer_controls,
  23835. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  23836. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  23837. SND_SOC_NOPM, 0, 0,
  23838. sec_mi2s_rx_voice_mixer_controls,
  23839. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  23840. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  23841. SND_SOC_NOPM, 0, 0,
  23842. slimbus_rx_voice_mixer_controls,
  23843. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  23844. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  23845. SND_SOC_NOPM, 0, 0,
  23846. bt_sco_rx_voice_mixer_controls,
  23847. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  23848. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  23849. SND_SOC_NOPM, 0, 0,
  23850. afe_pcm_rx_voice_mixer_controls,
  23851. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  23852. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  23853. SND_SOC_NOPM, 0, 0,
  23854. aux_pcm_rx_voice_mixer_controls,
  23855. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  23856. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  23857. SND_SOC_NOPM, 0, 0,
  23858. sec_aux_pcm_rx_voice_mixer_controls,
  23859. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  23860. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  23861. SND_SOC_NOPM, 0, 0,
  23862. tert_aux_pcm_rx_voice_mixer_controls,
  23863. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  23864. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  23865. SND_SOC_NOPM, 0, 0,
  23866. quat_aux_pcm_rx_voice_mixer_controls,
  23867. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  23868. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  23869. SND_SOC_NOPM, 0, 0,
  23870. quin_aux_pcm_rx_voice_mixer_controls,
  23871. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  23872. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  23873. SND_SOC_NOPM, 0, 0,
  23874. sen_aux_pcm_rx_voice_mixer_controls,
  23875. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  23876. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  23877. SND_SOC_NOPM, 0, 0,
  23878. hdmi_rx_voice_mixer_controls,
  23879. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  23880. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  23881. SND_SOC_NOPM, 0, 0,
  23882. mi2s_rx_voice_mixer_controls,
  23883. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  23884. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  23885. SND_SOC_NOPM, 0, 0,
  23886. pri_mi2s_rx_voice_mixer_controls,
  23887. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  23888. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  23889. SND_SOC_NOPM, 0, 0,
  23890. int0_mi2s_rx_voice_mixer_controls,
  23891. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  23892. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  23893. SND_SOC_NOPM, 0, 0,
  23894. int4_mi2s_rx_voice_mixer_controls,
  23895. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  23896. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  23897. SND_SOC_NOPM, 0, 0,
  23898. tert_mi2s_rx_voice_mixer_controls,
  23899. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  23900. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  23901. SND_SOC_NOPM, 0, 0,
  23902. quat_mi2s_rx_voice_mixer_controls,
  23903. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  23904. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  23905. SND_SOC_NOPM, 0, 0,
  23906. quin_mi2s_rx_voice_mixer_controls,
  23907. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  23908. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  23909. SND_SOC_NOPM, 0, 0,
  23910. pri_tdm_rx_0_voice_mixer_controls,
  23911. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  23912. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  23913. SND_SOC_NOPM, 0, 0,
  23914. pri_tdm_rx_1_voice_mixer_controls,
  23915. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  23916. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  23917. SND_SOC_NOPM, 0, 0,
  23918. pri_tdm_rx_2_voice_mixer_controls,
  23919. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  23920. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  23921. SND_SOC_NOPM, 0, 0,
  23922. pri_tdm_rx_3_voice_mixer_controls,
  23923. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  23924. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  23925. SND_SOC_NOPM, 0, 0,
  23926. sen_mi2s_rx_voice_mixer_controls,
  23927. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  23928. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  23929. SND_SOC_NOPM, 0, 0,
  23930. quat_tdm_rx_2_voice_mixer_controls,
  23931. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  23932. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2_Voice Mixer",
  23933. SND_SOC_NOPM, 0, 0,
  23934. quin_tdm_rx_2_voice_mixer_controls,
  23935. ARRAY_SIZE(quin_tdm_rx_2_voice_mixer_controls)),
  23936. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  23937. SND_SOC_NOPM, 0, 0,
  23938. wsa_cdc_dma_rx_0_voice_mixer_controls,
  23939. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  23940. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  23941. SND_SOC_NOPM, 0, 0,
  23942. rx_cdc_dma_rx_0_voice_mixer_controls,
  23943. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  23944. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1_Voice Mixer",
  23945. SND_SOC_NOPM, 0, 0,
  23946. rx_cdc_dma_rx_1_voice_mixer_controls,
  23947. ARRAY_SIZE(rx_cdc_dma_rx_1_voice_mixer_controls)),
  23948. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  23949. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  23950. ARRAY_SIZE(tx_voip_mixer_controls)),
  23951. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  23952. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  23953. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  23954. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  23955. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  23956. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  23957. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23958. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  23959. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23960. int_bt_a2dp_rx_mixer_controls,
  23961. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  23962. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23963. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  23964. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23965. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  23966. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23967. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  23968. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23969. tx_voice2_stub_mixer_controls,
  23970. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  23971. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23972. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  23973. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  23974. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  23975. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  23976. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  23977. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23978. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  23979. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  23980. SND_SOC_NOPM, 0, 0,
  23981. slimbus_6_rx_voice_mixer_controls,
  23982. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  23983. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23984. slimbus_7_rx_voice_mixer_controls,
  23985. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  23986. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23987. slimbus_8_rx_voice_mixer_controls,
  23988. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  23989. /* port mixer */
  23990. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  23991. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  23992. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  23993. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  23994. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  23995. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  23996. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  23997. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  23998. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  23999. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  24000. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  24001. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  24002. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  24003. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  24004. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  24005. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  24006. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  24007. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  24008. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  24009. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  24010. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  24011. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24012. sbus_1_rx_port_mixer_controls,
  24013. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  24014. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24015. bt_sco_rx_port_mixer_controls,
  24016. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  24017. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  24018. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  24019. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  24020. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  24021. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  24022. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  24023. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  24024. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  24025. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  24026. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  24027. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  24028. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  24029. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  24030. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  24031. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  24032. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  24033. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  24034. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  24035. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  24036. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  24037. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  24038. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24039. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  24040. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24041. primary_mi2s_rx_port_mixer_controls,
  24042. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  24043. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24044. sec_mi2s_rx_port_mixer_controls,
  24045. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  24046. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24047. tert_mi2s_rx_port_mixer_controls,
  24048. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  24049. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24050. quat_mi2s_rx_port_mixer_controls,
  24051. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  24052. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24053. quin_mi2s_rx_port_mixer_controls,
  24054. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  24055. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24056. sen_mi2s_rx_port_mixer_controls,
  24057. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  24058. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24059. pri_tdm_rx_0_port_mixer_controls,
  24060. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  24061. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24062. pri_tdm_rx_1_port_mixer_controls,
  24063. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  24064. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24065. pri_tdm_rx_2_port_mixer_controls,
  24066. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  24067. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24068. pri_tdm_rx_3_port_mixer_controls,
  24069. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  24070. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24071. sec_tdm_rx_0_port_mixer_controls,
  24072. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  24073. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24074. sec_tdm_rx_1_port_mixer_controls,
  24075. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  24076. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24077. sec_tdm_rx_2_port_mixer_controls,
  24078. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  24079. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24080. sec_tdm_rx_3_port_mixer_controls,
  24081. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  24082. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24083. sec_tdm_rx_7_port_mixer_controls,
  24084. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  24085. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24086. tert_tdm_rx_0_port_mixer_controls,
  24087. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  24088. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24089. tert_tdm_rx_1_port_mixer_controls,
  24090. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  24091. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24092. tert_tdm_rx_2_port_mixer_controls,
  24093. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  24094. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24095. tert_tdm_rx_3_port_mixer_controls,
  24096. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  24097. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24098. quat_tdm_rx_0_port_mixer_controls,
  24099. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  24100. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24101. quat_tdm_rx_1_port_mixer_controls,
  24102. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  24103. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24104. quat_tdm_rx_2_port_mixer_controls,
  24105. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  24106. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24107. quat_tdm_rx_3_port_mixer_controls,
  24108. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  24109. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24110. quat_tdm_rx_7_port_mixer_controls,
  24111. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  24112. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24113. quin_tdm_rx_0_port_mixer_controls,
  24114. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  24115. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24116. quin_tdm_rx_1_port_mixer_controls,
  24117. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  24118. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24119. quin_tdm_rx_2_port_mixer_controls,
  24120. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  24121. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24122. quin_tdm_rx_3_port_mixer_controls,
  24123. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  24124. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24125. quin_tdm_rx_7_port_mixer_controls,
  24126. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  24127. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24128. sen_tdm_rx_0_port_mixer_controls,
  24129. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  24130. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24131. sen_tdm_rx_1_port_mixer_controls,
  24132. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  24133. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24134. sen_tdm_rx_2_port_mixer_controls,
  24135. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  24136. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24137. sen_tdm_rx_3_port_mixer_controls,
  24138. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  24139. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24140. int0_mi2s_rx_port_mixer_controls,
  24141. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  24142. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24143. int4_mi2s_rx_port_mixer_controls,
  24144. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  24145. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24146. wsa_cdc_dma_rx_0_port_mixer_controls,
  24147. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  24148. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24149. rx_cdc_dma_rx_0_port_mixer_controls,
  24150. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  24151. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24152. rx_cdc_dma_rx_1_port_mixer_controls,
  24153. ARRAY_SIZE(rx_cdc_dma_rx_1_port_mixer_controls)),
  24154. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  24155. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  24156. ARRAY_SIZE(tx_qchat_mixer_controls)),
  24157. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  24158. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  24159. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  24160. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  24161. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  24162. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  24163. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  24164. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  24165. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  24166. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  24167. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  24168. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  24169. /* lsm mixer definitions */
  24170. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  24171. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  24172. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  24173. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  24174. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  24175. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  24176. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  24177. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  24178. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  24179. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  24180. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  24181. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  24182. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  24183. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  24184. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  24185. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  24186. /* Virtual Pins to force backends ON atm */
  24187. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  24188. SND_SOC_DAPM_INPUT("BE_IN"),
  24189. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24190. &slim0_rx_vi_fb_lch_mux),
  24191. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24192. &slim0_rx_vi_fb_rch_mux),
  24193. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24194. &wsa_rx_0_vi_fb_lch_mux),
  24195. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24196. &wsa_rx_0_vi_fb_rch_mux),
  24197. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  24198. &mi2s_rx_vi_fb_mux),
  24199. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24200. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  24201. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24202. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  24203. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  24204. &voc_ext_ec_mux),
  24205. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  24206. &ext_ec_ref_mux_ul1),
  24207. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  24208. &ext_ec_ref_mux_ul2),
  24209. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  24210. &ext_ec_ref_mux_ul3),
  24211. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  24212. &ext_ec_ref_mux_ul4),
  24213. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  24214. &ext_ec_ref_mux_ul5),
  24215. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  24216. &ext_ec_ref_mux_ul6),
  24217. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  24218. &ext_ec_ref_mux_ul8),
  24219. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  24220. &ext_ec_ref_mux_ul9),
  24221. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  24222. &ext_ec_ref_mux_ul10),
  24223. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  24224. &ext_ec_ref_mux_ul16),
  24225. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  24226. &ext_ec_ref_mux_ul17),
  24227. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  24228. &ext_ec_ref_mux_ul18),
  24229. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  24230. &ext_ec_ref_mux_ul19),
  24231. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  24232. &ext_ec_ref_mux_ul28),
  24233. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  24234. &ext_ec_ref_mux_ul29),
  24235. };
  24236. static const struct snd_soc_dapm_route intercon[] = {
  24237. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24238. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24239. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24240. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24241. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24242. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24243. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24244. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24245. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24246. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24247. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24248. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24249. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24250. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24251. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24252. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24253. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24254. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  24255. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24256. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24257. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24258. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24259. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24260. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24261. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24262. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24263. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24264. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24265. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24266. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24267. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24268. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24269. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24270. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24271. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24272. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  24273. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24274. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24275. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24276. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24277. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24278. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24279. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24280. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24281. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24282. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24283. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24284. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24285. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24286. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24287. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24288. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24289. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24290. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  24291. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24292. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24293. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24294. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24295. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24296. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24297. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24298. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24299. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24300. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24301. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24302. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24303. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24304. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24305. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24306. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24307. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24308. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  24309. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24310. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24311. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24312. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24313. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24314. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24315. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24316. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24317. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24318. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24319. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24320. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24321. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24322. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24323. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24324. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24325. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24326. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  24327. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24328. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24329. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24330. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24331. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24332. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24333. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24334. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24335. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24336. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24337. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24338. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24339. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24340. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24341. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24342. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24343. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24344. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  24345. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24346. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24347. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24348. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24349. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24350. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24351. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24352. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24353. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24354. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24355. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24356. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24357. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24358. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24359. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24360. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24361. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24362. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  24363. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24364. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24365. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24366. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24367. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24368. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24369. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24370. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24371. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24372. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24373. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24374. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24375. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24376. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24377. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24378. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24379. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24380. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  24381. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24382. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24383. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24384. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24385. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24386. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24387. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24388. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24389. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24390. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24391. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24392. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24393. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24394. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24395. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24396. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24397. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24398. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  24399. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24400. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24401. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24402. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24403. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24404. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24405. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24406. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24407. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24408. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24409. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24410. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24411. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24412. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24413. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24414. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24415. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24416. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  24417. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24418. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24419. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24420. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24421. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24422. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24423. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24424. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24425. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24426. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24427. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24428. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24429. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24430. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24431. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24432. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24433. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24434. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  24435. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24436. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24437. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24438. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24439. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24440. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24441. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24442. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24443. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24444. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24445. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24446. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24447. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24448. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24449. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24450. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24451. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24452. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  24453. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24454. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24455. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24456. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24457. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24458. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24459. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24460. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24461. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24462. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24463. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24464. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24465. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24466. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24467. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24468. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24469. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24470. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  24471. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24472. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24473. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24474. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24475. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24476. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24477. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24478. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24479. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24480. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24481. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24482. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24483. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24484. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24485. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24486. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24487. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24488. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  24489. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24490. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24491. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24492. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24493. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24494. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24495. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24496. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24497. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24498. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24499. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24500. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24501. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24502. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24503. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24504. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24505. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24506. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  24507. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  24508. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  24509. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  24510. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  24511. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  24512. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  24513. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  24514. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  24515. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  24516. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  24517. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  24518. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  24519. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  24520. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  24521. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  24522. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  24523. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  24524. {"HDMI", NULL, "HDMI Mixer"},
  24525. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  24526. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  24527. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  24528. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  24529. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  24530. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  24531. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  24532. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  24533. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  24534. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  24535. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  24536. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  24537. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  24538. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  24539. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  24540. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  24541. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  24542. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  24543. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  24544. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  24545. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  24546. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  24547. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  24548. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  24549. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  24550. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  24551. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  24552. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  24553. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  24554. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  24555. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  24556. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  24557. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  24558. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  24559. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  24560. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  24561. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24562. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24563. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24564. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24565. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24566. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24567. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24568. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24569. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24570. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24571. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24572. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24573. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24574. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24575. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24576. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24577. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24578. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  24579. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24580. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24581. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24582. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24583. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24584. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24585. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24586. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24587. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24588. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24589. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24590. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24591. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24592. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24593. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24594. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24595. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24596. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  24597. /* incall */
  24598. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  24599. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  24600. {"Incall_Music Audio Mixer", "MultiMedia4", "MM_DL4"},
  24601. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  24602. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  24603. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  24604. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24605. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24606. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24607. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24608. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  24609. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24610. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24611. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24612. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24613. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  24614. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24615. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24616. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24617. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24618. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24619. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24620. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24621. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24622. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24623. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24624. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24625. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24626. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24627. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24628. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24629. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24630. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24631. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  24632. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24633. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24634. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24635. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24636. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24637. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24638. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24639. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24640. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24641. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24642. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24643. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24644. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24645. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24646. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24647. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24648. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24649. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  24650. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24651. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24652. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24653. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24654. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24655. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24656. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24657. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24658. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24659. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24660. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24661. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24662. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24663. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24664. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24665. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24666. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24667. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  24668. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24669. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24670. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24671. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24672. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24673. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24674. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24675. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24676. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24677. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24678. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24679. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24680. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24681. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24682. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24683. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24684. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24685. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  24686. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24687. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24688. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24689. {"MultiMedia9 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24690. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24691. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24692. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24693. {"MultiMedia9 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24694. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  24695. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24696. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24697. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24698. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24699. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24700. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24701. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24702. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24703. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24704. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24705. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24706. {"MultiMedia17 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24707. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24708. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24709. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24710. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24711. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24712. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24713. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24714. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24715. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24716. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24717. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24718. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24719. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24720. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24721. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24722. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24723. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24724. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24725. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24726. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24727. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24728. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24729. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24730. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24731. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24732. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24733. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24734. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24735. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24736. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24737. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24738. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24739. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24740. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24741. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24742. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24743. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24744. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24745. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24746. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24747. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24748. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24749. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24750. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24751. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24752. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24753. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24754. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24755. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24756. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24757. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24758. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24759. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24760. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24761. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24762. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24763. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24764. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24765. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24766. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24767. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24768. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24769. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24770. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24771. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24772. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24773. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24774. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24775. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24776. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24777. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24778. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24779. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24780. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24781. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24782. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24783. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24784. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24785. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24786. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  24787. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24788. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24789. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24790. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24791. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24792. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24793. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24794. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24795. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24796. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24797. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24798. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24799. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24800. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24801. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24802. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  24803. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24804. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  24805. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24806. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24807. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24808. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24809. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24810. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24811. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24812. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24813. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24814. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24815. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24816. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24817. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24818. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24819. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24820. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  24821. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24822. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24823. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24824. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24825. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24826. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24827. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24828. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24829. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24830. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24831. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24832. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24833. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24834. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24835. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24836. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  24837. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24838. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  24839. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24840. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24841. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24842. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24843. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24844. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24845. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24846. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24847. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24848. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24849. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24850. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24851. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24852. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24853. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24854. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24855. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24856. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24857. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24858. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  24859. {"PRI_MI2S_RX Audio Mixer", "DTMF", "DTMF_DL_HL"},
  24860. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24861. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24862. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24863. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24864. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24865. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24866. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24867. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24868. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24869. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24870. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24871. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24872. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24873. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24874. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24875. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  24876. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24877. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24878. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24879. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24880. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24881. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24882. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24883. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24884. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24885. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24886. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24887. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24888. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24889. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24890. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24891. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  24892. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24893. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24894. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24895. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24896. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24897. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24898. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24899. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24900. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24901. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24902. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24903. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24904. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24905. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24906. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24907. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24908. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24909. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  24910. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24911. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24912. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24913. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24914. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24915. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24916. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24917. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24918. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24919. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24920. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24921. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24922. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24923. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24924. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24925. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  24926. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24927. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24928. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24929. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24930. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24931. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24932. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24933. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24934. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24935. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24936. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24937. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24938. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24939. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24940. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24941. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24942. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24943. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  24944. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24945. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24946. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24947. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24948. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24949. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24950. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24951. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24952. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24953. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24954. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24955. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24956. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24957. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24958. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24959. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24960. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24961. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  24962. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24963. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24964. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24965. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24966. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24967. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24968. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24969. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24970. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24971. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24972. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24973. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24974. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24975. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24976. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24977. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24978. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24979. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24980. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24981. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  24982. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  24983. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  24984. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24985. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24986. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24987. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24988. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24989. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24990. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24991. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24992. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24993. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24994. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24995. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24996. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24997. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24998. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24999. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25000. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25001. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25002. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25003. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25004. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25005. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  25006. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25007. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25008. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25009. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25010. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25011. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25012. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25013. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25014. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25015. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25016. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25017. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25018. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25019. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25020. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25021. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25022. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25023. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25024. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25025. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25026. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25027. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  25028. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25029. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25030. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25031. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25032. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25033. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25034. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25035. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25036. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25037. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25038. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25039. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25040. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25041. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25042. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25043. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25044. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25045. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25046. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25047. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25048. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25049. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  25050. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25051. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25052. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25053. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25054. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25055. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25056. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25057. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25058. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25059. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25060. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25061. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25062. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25063. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25064. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25065. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25066. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25067. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25068. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25069. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  25070. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25071. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25072. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25073. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25074. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25075. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25076. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25077. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25078. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25079. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25080. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25081. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25082. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25083. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25084. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25085. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25086. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25087. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25088. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25089. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25090. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25091. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  25092. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25093. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25094. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25095. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25096. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25097. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25098. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25099. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25100. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25101. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25102. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25103. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25104. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25105. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25106. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25107. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25108. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25109. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25110. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25111. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25112. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25113. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  25114. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25115. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25116. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25117. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25118. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25119. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25120. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25121. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25122. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25123. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25124. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25125. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25126. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25127. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25128. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25129. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25130. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25131. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25132. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25133. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25134. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25135. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  25136. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25137. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25138. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25139. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25140. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25141. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25142. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25143. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25144. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25145. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25146. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25147. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25148. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25149. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25150. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25151. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25152. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25153. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25154. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25155. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25156. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25157. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  25158. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25159. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25160. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25161. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25162. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25163. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25164. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25165. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25166. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25167. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25168. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25169. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25170. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25171. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25172. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25173. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25174. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25175. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25176. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25177. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  25178. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25179. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25180. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25181. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25182. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25183. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25184. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25185. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25186. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25187. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25188. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25189. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25190. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25191. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25192. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25193. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25194. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25195. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25196. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25197. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25198. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25199. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  25200. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25201. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25202. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25203. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25204. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25205. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25206. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25207. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25208. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25209. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25210. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25211. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25212. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25213. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25214. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25215. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25216. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25217. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25218. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25219. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  25220. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25221. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25222. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25223. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25224. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25225. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25226. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25227. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25228. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25229. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25230. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25231. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25232. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25233. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25234. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25235. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25236. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25237. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25238. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25239. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25240. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25241. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  25242. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25243. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25244. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25245. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25246. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25247. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25248. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25249. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25250. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25251. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25252. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25253. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25254. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25255. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25256. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25257. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25258. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25259. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25260. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25261. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25262. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25263. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  25264. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25265. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25266. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25267. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25268. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25269. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25270. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25271. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25272. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25273. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25274. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25275. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25276. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25277. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25278. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25279. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25280. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25281. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25282. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25283. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25284. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25285. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  25286. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25287. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25288. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25289. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25290. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25291. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25292. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25293. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25294. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25295. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25296. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25297. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25298. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25299. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25300. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25301. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25302. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25303. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25304. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25305. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25306. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25307. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  25308. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25309. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25310. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25311. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25312. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25313. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25314. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25315. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25316. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25317. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25318. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25319. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25320. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25321. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25322. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25323. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25324. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25325. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25326. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25327. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25328. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25329. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25330. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  25331. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25332. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25333. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25334. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25335. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25336. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25337. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25338. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25339. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25340. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25341. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25342. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25343. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25344. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25345. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25346. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25347. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25348. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25349. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25350. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  25351. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25352. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25353. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25354. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25355. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25356. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25357. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25358. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25359. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25360. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25361. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25362. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25363. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25364. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25365. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25366. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25367. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25368. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25369. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25370. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25371. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25372. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25373. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  25374. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25375. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25376. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25377. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25378. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25379. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25380. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25381. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25382. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25383. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25384. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25385. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25386. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25387. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25388. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25389. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25390. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25391. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25392. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25393. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25394. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25395. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25396. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  25397. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25398. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25399. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25400. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25401. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25402. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25403. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25404. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25405. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25406. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25407. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25408. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25409. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25410. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25411. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25412. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25413. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25414. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25415. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25416. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25417. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25418. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25419. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  25420. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25421. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25422. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25423. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25424. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25425. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25426. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25427. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25428. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25429. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25430. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25431. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25432. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25433. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25434. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25435. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25436. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25437. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25438. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25439. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25440. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25441. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25442. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  25443. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25444. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25445. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25446. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25447. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25448. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25449. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25450. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25451. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25452. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25453. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25454. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25455. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25456. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25457. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25458. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25459. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25460. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25461. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25462. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  25463. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25464. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25465. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25466. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25467. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25468. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25469. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25470. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25471. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25472. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25473. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25474. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25475. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25476. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25477. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25478. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25479. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25480. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25481. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25482. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25483. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25484. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25485. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  25486. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25487. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25488. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25489. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25490. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25491. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25492. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25493. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25494. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25495. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25496. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25497. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25498. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25499. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25500. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25501. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25502. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25503. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25504. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25505. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25506. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25507. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25508. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  25509. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25510. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25511. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25512. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25513. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25514. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25515. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25516. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25517. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25518. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25519. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25520. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25521. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25522. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25523. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25524. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25525. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25526. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25527. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25528. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25529. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25530. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25531. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  25532. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25533. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25534. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25535. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25536. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25537. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25538. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25539. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25540. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25541. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25542. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25543. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25544. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25545. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25546. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25547. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25548. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25549. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25550. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  25551. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25552. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25553. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25554. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25555. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25556. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25557. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25558. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25559. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25560. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25561. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25562. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25563. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25564. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25565. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25566. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25567. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  25568. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25569. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25570. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25571. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25572. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25573. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25574. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25575. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25576. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25577. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25578. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25579. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25580. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25581. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25582. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25583. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25584. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25585. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25586. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  25587. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25588. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25589. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25590. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25591. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25592. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25593. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25594. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25595. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25596. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25597. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25598. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25599. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25600. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25601. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25602. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25603. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25604. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25605. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  25606. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25607. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25608. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25609. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25610. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25611. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25612. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25613. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25614. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25615. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25616. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25617. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25618. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25619. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25620. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25621. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25622. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25623. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25624. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  25625. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  25626. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  25627. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  25628. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  25629. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  25630. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  25631. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  25632. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25633. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25634. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25635. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25636. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25637. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25638. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25639. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25640. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25641. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25642. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25643. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25644. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25645. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25646. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25647. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25648. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25649. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25650. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25651. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25652. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25653. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25654. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25655. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25656. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25657. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25658. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  25659. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25660. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25661. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25662. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  25663. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25664. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25665. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25666. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25667. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  25668. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  25669. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  25670. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  25671. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  25672. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  25673. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25674. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25675. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25676. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25677. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25678. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25679. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25680. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25681. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25682. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25683. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25684. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25685. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25686. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25687. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25688. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25689. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25690. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25691. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25692. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25693. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25694. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25695. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25696. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25697. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25698. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25699. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25700. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25701. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25702. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25703. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25704. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25705. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25706. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25707. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25708. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25709. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25710. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25711. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25712. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25713. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25714. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25715. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25716. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25717. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25718. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25719. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25720. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25721. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25722. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25723. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25724. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25725. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25726. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25727. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25728. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25729. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25730. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25731. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25732. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25733. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25734. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25735. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25736. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25737. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25738. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25739. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25740. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25741. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25742. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25743. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25744. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25745. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25746. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25747. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25748. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25749. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25750. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25751. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25752. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25753. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25754. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25755. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25756. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25757. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25758. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25759. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25760. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25761. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25762. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25763. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25764. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25765. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25766. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25767. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25768. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25769. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25770. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25771. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25772. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25773. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25774. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25775. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25776. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25777. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25778. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25779. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25780. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25781. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25782. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25783. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25784. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25785. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25786. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25787. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25788. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25789. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25790. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25791. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25792. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25793. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25794. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25795. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25796. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25797. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25798. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25799. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25800. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25801. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25802. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25803. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25804. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25805. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25806. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25807. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25808. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25809. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25810. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25811. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25812. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25813. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25814. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25815. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25816. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25817. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25818. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25819. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25820. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25821. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25822. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25823. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25824. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25825. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25826. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25827. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25828. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25829. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25830. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25831. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25832. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25833. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25834. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25835. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25836. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25837. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25838. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25839. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25840. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25841. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25842. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25843. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25844. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25845. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25846. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25847. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25848. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25849. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25850. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25851. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25852. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25853. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25854. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25855. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25856. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25857. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25858. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25859. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25860. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25861. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25862. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25863. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25864. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25865. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25866. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25867. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25868. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25869. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25870. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25871. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25872. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25873. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25874. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25875. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25876. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25877. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25878. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25879. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25880. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25881. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25882. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25883. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25884. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25885. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25886. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25887. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25888. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25889. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25890. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25891. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25892. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25893. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25894. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25895. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25896. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25897. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25898. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25899. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25900. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25901. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25902. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25903. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25904. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25905. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25906. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25907. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25908. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25909. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25910. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25911. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25912. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25913. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25914. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25915. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25916. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25917. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25918. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25919. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25920. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25921. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25922. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25923. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25924. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25925. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25926. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25927. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25928. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25929. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25930. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25931. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25932. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25933. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25934. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25935. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25936. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25937. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25938. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25939. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25940. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25941. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25942. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25943. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25944. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25945. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25946. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25947. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25948. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25949. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25950. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25951. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25952. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25953. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25954. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25955. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25956. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25957. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25958. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25959. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25960. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25961. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25962. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25963. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25964. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25965. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25966. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25967. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25968. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25969. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25970. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25971. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25972. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25973. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25974. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25975. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25976. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25977. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25978. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25979. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25980. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25981. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25982. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25983. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25984. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25985. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25986. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25987. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25988. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25989. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25990. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25991. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25992. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25993. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25994. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25995. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25996. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25997. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25998. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25999. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26000. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26001. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26002. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26003. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26004. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26005. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26006. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26007. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26008. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26009. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26010. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26011. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26012. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26013. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26014. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26015. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26016. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26017. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26018. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26019. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26020. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26021. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26022. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26023. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26024. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26025. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26026. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26027. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26028. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26029. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26030. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26031. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26032. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26033. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26034. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26035. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26036. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26037. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26038. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26039. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26040. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26041. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26042. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26043. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26044. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26045. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26046. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26047. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26048. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26049. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26050. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26051. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26052. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26053. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26054. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26055. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26056. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26057. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26058. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26059. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26060. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26061. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26062. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26063. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26064. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26065. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26066. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26067. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26068. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26069. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26070. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26071. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26072. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26073. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26074. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26075. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26076. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26077. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26078. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26079. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26080. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26081. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26082. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26083. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26084. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26085. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26086. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26087. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26088. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26089. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26090. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26091. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26092. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26093. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26094. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26095. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26096. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26097. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26098. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26099. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26100. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26101. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26102. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26103. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26104. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26105. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26106. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26107. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26108. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26109. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26110. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26111. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26112. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26113. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26114. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26115. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26116. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26117. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26118. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26119. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26120. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26121. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26122. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26123. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26124. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26125. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26126. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26127. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26128. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26129. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26130. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26131. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26132. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26133. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26134. {"MultiMedia23 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26135. {"MultiMedia23 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26136. {"MultiMedia23 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26137. {"MultiMedia23 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26138. {"MultiMedia23 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26139. {"MultiMedia23 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26140. {"MultiMedia23 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26141. {"MultiMedia23 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26142. {"MultiMedia23 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26143. {"MultiMedia23 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26144. {"MultiMedia23 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26145. {"MultiMedia23 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26146. {"MultiMedia23 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26147. {"MultiMedia23 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26148. {"MultiMedia23 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26149. {"MultiMedia23 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26150. {"MultiMedia23 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26151. {"MultiMedia23 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26152. {"MultiMedia23 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26153. {"MultiMedia23 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26154. {"MultiMedia24 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26155. {"MultiMedia24 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26156. {"MultiMedia24 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26157. {"MultiMedia24 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26158. {"MultiMedia24 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26159. {"MultiMedia24 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26160. {"MultiMedia24 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26161. {"MultiMedia24 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26162. {"MultiMedia24 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26163. {"MultiMedia24 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26164. {"MultiMedia24 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26165. {"MultiMedia24 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26166. {"MultiMedia24 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26167. {"MultiMedia24 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26168. {"MultiMedia24 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26169. {"MultiMedia24 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26170. {"MultiMedia24 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26171. {"MultiMedia24 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26172. {"MultiMedia24 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26173. {"MultiMedia24 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26174. {"MultiMedia25 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26175. {"MultiMedia25 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26176. {"MultiMedia25 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26177. {"MultiMedia25 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26178. {"MultiMedia25 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26179. {"MultiMedia25 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26180. {"MultiMedia25 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26181. {"MultiMedia25 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26182. {"MultiMedia25 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26183. {"MultiMedia25 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26184. {"MultiMedia25 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26185. {"MultiMedia25 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26186. {"MultiMedia25 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26187. {"MultiMedia25 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26188. {"MultiMedia25 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26189. {"MultiMedia25 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26190. {"MultiMedia25 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26191. {"MultiMedia25 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26192. {"MultiMedia25 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26193. {"MultiMedia25 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26194. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26195. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26196. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  26197. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26198. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26199. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26200. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26201. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26202. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26203. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26204. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26205. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26206. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26207. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26208. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26209. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26210. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26211. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26212. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26213. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26214. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26215. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26216. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26217. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26218. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26219. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26220. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26221. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26222. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26223. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26224. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26225. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26226. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26227. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26228. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26229. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26230. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26231. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26232. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26233. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26234. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26235. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26236. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26237. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26238. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26239. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26240. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26241. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26242. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26243. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26244. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26245. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26246. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26247. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26248. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26249. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26250. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26251. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26252. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26253. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26254. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26255. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26256. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26257. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26258. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26259. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26260. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26261. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26262. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26263. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26264. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26265. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26266. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26267. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26268. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26269. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26270. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26271. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26272. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26273. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26274. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26275. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26276. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26277. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26278. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26279. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26280. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26281. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26282. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26283. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26284. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26285. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26286. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26287. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26288. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26289. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26290. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26291. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26292. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26293. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26294. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26295. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26296. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26297. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26298. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26299. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26300. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26301. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26302. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26303. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26304. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26305. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26306. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26307. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26308. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26309. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26310. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26311. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26312. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26313. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26314. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26315. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26316. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  26317. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26318. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26319. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26320. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26321. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26322. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26323. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26324. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26325. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26326. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26327. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26328. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26329. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26330. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26331. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26332. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26333. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26334. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  26335. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26336. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26337. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26338. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26339. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26340. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26341. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26342. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26343. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26344. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26345. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26346. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26347. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26348. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26349. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26350. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26351. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  26352. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26353. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26354. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26355. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26356. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26357. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26358. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26359. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26360. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26361. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26362. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26363. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26364. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26365. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26366. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26367. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26368. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  26369. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26370. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26371. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26372. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26373. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26374. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26375. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26376. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26377. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26378. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26379. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26380. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26381. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26382. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26383. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26384. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26385. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26386. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26387. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26388. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26389. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26390. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26391. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26392. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26393. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26394. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26395. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26396. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26397. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26398. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26399. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26400. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26401. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26402. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26403. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26404. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26405. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26406. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26407. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  26408. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26409. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  26410. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  26411. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  26412. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  26413. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  26414. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  26415. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  26416. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  26417. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  26418. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  26419. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  26420. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  26421. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  26422. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  26423. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  26424. {"MM_UL23", NULL, "MultiMedia23 Mixer"},
  26425. {"MM_UL24", NULL, "MultiMedia24 Mixer"},
  26426. {"MM_UL25", NULL, "MultiMedia25 Mixer"},
  26427. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  26428. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  26429. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  26430. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  26431. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26432. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26433. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26434. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26435. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26436. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26437. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26438. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26439. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26440. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26441. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26442. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26443. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26444. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26445. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26446. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26447. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26448. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  26449. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26450. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26451. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26452. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26453. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26454. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26455. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26456. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26457. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26458. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26459. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26460. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26461. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26462. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26463. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26464. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26465. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26466. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  26467. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26468. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26469. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26470. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26471. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26472. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26473. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26474. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26475. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26476. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26477. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26478. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26479. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26480. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26481. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26482. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26483. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  26484. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26485. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26486. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26487. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26488. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26489. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26490. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26491. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26492. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26493. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26494. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26495. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26496. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26497. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26498. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26499. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26500. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  26501. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26502. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26503. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26504. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26505. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26506. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26507. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26508. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26509. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26510. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26511. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26512. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26513. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26514. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26515. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26516. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26517. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  26518. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26519. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26520. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26521. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26522. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26523. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26524. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26525. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26526. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26527. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26528. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26529. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26530. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26531. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26532. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26533. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26534. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  26535. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26536. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26537. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26538. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26539. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26540. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  26541. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26542. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26543. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26544. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  26545. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26546. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26547. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26548. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26549. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26550. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26551. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26552. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  26553. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26554. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26555. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26556. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26557. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26558. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  26559. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26560. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26561. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26562. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26563. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26564. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  26565. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26566. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26567. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26568. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26569. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26570. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  26571. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26572. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26573. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26574. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26575. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26576. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  26577. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  26578. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26579. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26580. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26581. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26582. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  26583. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26584. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26585. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26586. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26587. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26588. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  26589. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26590. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26591. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26592. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26593. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26594. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  26595. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26596. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26597. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26598. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26599. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26600. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  26601. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26602. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26603. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26604. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26605. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26606. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  26607. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26608. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26609. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26610. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26611. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26612. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  26613. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26614. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26615. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26616. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26617. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26618. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  26619. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26620. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26621. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26622. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26623. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26624. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  26625. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26626. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26627. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26628. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26629. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26630. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  26631. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26632. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26633. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26634. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26635. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26636. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  26637. {"HDMI", NULL, "HDMI_DL_HL"},
  26638. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26639. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26640. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26641. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26642. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26643. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26644. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26645. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  26646. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26647. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26648. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26649. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26650. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26651. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26652. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26653. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  26654. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26655. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26656. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26657. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26658. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26659. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  26660. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26661. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26662. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26663. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26664. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26665. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  26666. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26667. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26668. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26669. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26670. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26671. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26672. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26673. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  26674. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26675. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26676. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26677. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26678. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26679. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26680. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  26681. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26682. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26683. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26684. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26685. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26686. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26687. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  26688. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26689. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26690. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26691. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26692. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26693. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26694. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26695. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26696. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  26697. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  26698. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26699. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26700. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26701. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26702. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26703. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26704. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26705. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  26706. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  26707. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26708. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26709. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26710. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26711. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26712. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26713. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26714. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  26715. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  26716. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26717. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26718. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26719. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26720. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26721. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26722. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26723. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  26724. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26725. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26726. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26727. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26728. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  26729. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26730. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  26731. {"QUIN_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26732. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_Voice Mixer"},
  26733. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26734. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26735. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26736. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  26737. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26738. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26739. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26740. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  26741. {"RX_CDC_DMA_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  26742. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26743. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26744. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_Voice Mixer"},
  26745. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26746. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26747. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26748. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26749. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26750. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26751. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  26752. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  26753. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  26754. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  26755. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  26756. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26757. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26758. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26759. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26760. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26761. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26762. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  26763. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  26764. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  26765. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26766. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  26767. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26768. {"AUDIO_REF_EC_UL1 MUX", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26769. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26770. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26771. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26772. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26773. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26774. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26775. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26776. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26777. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26778. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26779. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26780. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26781. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26782. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26783. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26784. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26785. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26786. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26787. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26788. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26789. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26790. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26791. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26792. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26793. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26794. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26795. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26796. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26797. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26798. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26799. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26800. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26801. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26802. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26803. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  26804. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  26805. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  26806. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26807. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  26808. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26809. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26810. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26811. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26812. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26813. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26814. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26815. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26816. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26817. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26818. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26819. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26820. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26821. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26822. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26823. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26824. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26825. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26826. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26827. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26828. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26829. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26830. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26831. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26832. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26833. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26834. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26835. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26836. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26837. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26838. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26839. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26840. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26841. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26842. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  26843. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  26844. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  26845. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  26846. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  26847. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  26848. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  26849. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  26850. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  26851. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  26852. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  26853. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  26854. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  26855. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  26856. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  26857. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  26858. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  26859. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  26860. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  26861. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  26862. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  26863. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  26864. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  26865. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  26866. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  26867. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  26868. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  26869. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  26870. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  26871. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  26872. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  26873. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  26874. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  26875. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  26876. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  26877. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  26878. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  26879. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  26880. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  26881. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  26882. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  26883. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  26884. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  26885. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  26886. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  26887. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  26888. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  26889. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  26890. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  26891. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  26892. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  26893. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  26894. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  26895. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  26896. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  26897. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  26898. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  26899. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  26900. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  26901. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  26902. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  26903. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  26904. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  26905. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  26906. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  26907. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  26908. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  26909. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  26910. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  26911. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  26912. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  26913. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  26914. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  26915. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  26916. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  26917. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  26918. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  26919. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  26920. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  26921. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  26922. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  26923. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  26924. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  26925. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  26926. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  26927. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  26928. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  26929. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  26930. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  26931. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  26932. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  26933. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  26934. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  26935. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  26936. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  26937. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  26938. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  26939. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  26940. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  26941. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  26942. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  26943. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  26944. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  26945. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  26946. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  26947. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  26948. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  26949. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  26950. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  26951. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  26952. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  26953. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  26954. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  26955. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  26956. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  26957. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  26958. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  26959. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  26960. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  26961. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  26962. {"RX_CDC_DMA_RX_1_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  26963. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_DL_HL"},
  26964. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  26965. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26966. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26967. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26968. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26969. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26970. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26971. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26972. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26973. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26974. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26975. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26976. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26977. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26978. {"LSM1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26979. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  26980. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26981. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26982. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26983. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26984. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26985. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26986. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26987. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26988. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26989. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26990. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26991. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26992. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26993. {"LSM2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26994. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  26995. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26996. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26997. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26998. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26999. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27000. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27001. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27002. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27003. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27004. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27005. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27006. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27007. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27008. {"LSM3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27009. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  27010. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27011. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27012. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27013. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27014. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27015. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27016. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27017. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27018. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27019. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27020. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27021. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27022. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27023. {"LSM4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27024. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  27025. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27026. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27027. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27028. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27029. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27030. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27031. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27032. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27033. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27034. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27035. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27036. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27037. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27038. {"LSM5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27039. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  27040. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27041. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27042. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27043. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27044. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27045. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27046. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27047. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27048. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27049. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27050. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27051. {"LSM6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27052. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  27053. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27054. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27055. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27056. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27057. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27058. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27059. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27060. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27061. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27062. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27063. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27064. {"LSM7 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27065. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  27066. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27067. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27068. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27069. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27070. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27071. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27072. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27073. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27074. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27075. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27076. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27077. {"LSM8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27078. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  27079. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  27080. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  27081. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  27082. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  27083. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  27084. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  27085. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  27086. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  27087. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  27088. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  27089. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  27090. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  27091. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  27092. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  27093. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  27094. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  27095. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  27096. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  27097. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  27098. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  27099. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  27100. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  27101. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  27102. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  27103. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  27104. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  27105. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  27106. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  27107. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27108. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  27109. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  27110. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  27111. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27112. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  27113. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  27114. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  27115. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  27116. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  27117. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  27118. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  27119. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  27120. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27121. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  27122. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27123. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  27124. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  27125. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  27126. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  27127. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  27128. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  27129. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  27130. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  27131. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  27132. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  27133. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  27134. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  27135. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  27136. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27137. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  27138. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27139. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  27140. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  27141. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  27142. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  27143. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  27144. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  27145. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  27146. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  27147. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  27148. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  27149. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  27150. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  27151. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  27152. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  27153. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  27154. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  27155. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  27156. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  27157. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  27158. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  27159. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  27160. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  27161. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  27162. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  27163. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  27164. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  27165. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  27166. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  27167. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  27168. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  27169. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  27170. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  27171. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  27172. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  27173. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  27174. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  27175. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  27176. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  27177. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  27178. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  27179. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  27180. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  27181. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  27182. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  27183. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  27184. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  27185. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  27186. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  27187. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  27188. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  27189. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  27190. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  27191. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  27192. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  27193. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  27194. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  27195. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  27196. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  27197. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  27198. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  27199. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  27200. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27201. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27202. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27203. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27204. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27205. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27206. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27207. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27208. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27209. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27210. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27211. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27212. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27213. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27214. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27215. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27216. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27217. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27218. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27219. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27220. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27221. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27222. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27223. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27224. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  27225. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27226. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27227. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27228. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27229. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27230. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27231. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27232. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27233. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27234. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27235. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27236. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27237. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27238. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27239. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27240. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27241. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27242. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27243. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27244. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27245. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27246. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27247. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27248. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27249. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  27250. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27251. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27252. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27253. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27254. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27255. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27256. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27257. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27258. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27259. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27260. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27261. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27262. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27263. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27264. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27265. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27266. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27267. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27268. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27269. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27270. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27271. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27272. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27273. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27274. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  27275. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27276. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27277. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27278. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27279. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27280. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27281. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27282. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27283. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27284. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27285. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27286. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27287. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27288. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27289. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27290. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27291. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27292. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27293. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27294. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27295. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27296. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27297. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27298. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27299. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  27300. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27301. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27302. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27303. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27304. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27305. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27306. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27307. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27308. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27309. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27310. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27311. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27312. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27313. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27314. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27315. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27316. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27317. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27318. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27319. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27320. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27321. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27322. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27323. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27324. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  27325. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27326. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27327. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27328. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27329. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27330. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27331. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27332. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27333. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27334. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27335. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27336. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27337. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27338. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27339. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27340. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27341. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27342. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27343. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27344. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27345. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27346. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27347. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27348. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27349. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  27350. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27351. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27352. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27353. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27354. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27355. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27356. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27357. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27358. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27359. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27360. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27361. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27362. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27363. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27364. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27365. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27366. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27367. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27368. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27369. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27370. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27371. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27372. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27373. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27374. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  27375. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27376. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27377. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27378. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27379. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27380. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27381. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27382. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27383. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27384. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27385. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27386. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27387. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27388. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27389. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27390. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27391. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27392. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27393. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27394. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27395. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27396. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27397. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27398. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27399. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  27400. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  27401. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  27402. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27403. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27404. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27405. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27406. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27407. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27408. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27409. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27410. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27411. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27412. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27413. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27414. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27415. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27416. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27417. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27418. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27419. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27420. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27421. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27422. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27423. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27424. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27425. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27426. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  27427. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27428. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27429. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27430. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27431. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27432. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27433. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27434. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27435. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27436. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27437. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27438. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27439. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27440. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27441. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27442. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27443. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27444. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27445. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27446. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27447. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27448. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27449. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27450. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27451. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  27452. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27453. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27454. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27455. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27456. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27457. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27458. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27459. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27460. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27461. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27462. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27463. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27464. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27465. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27466. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27467. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27468. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27469. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27470. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27471. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27472. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27473. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27474. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27475. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27476. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  27477. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27478. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27479. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27480. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27481. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27482. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27483. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27484. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27485. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27486. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27487. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27488. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27489. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27490. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27491. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27492. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27493. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27494. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27495. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27496. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27497. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27498. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27499. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27500. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27501. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  27502. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27503. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27504. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27505. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27506. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27507. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27508. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27509. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27510. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27511. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27512. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27513. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27514. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27515. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27516. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27517. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27518. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27519. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27520. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27521. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27522. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27523. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27524. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27525. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27526. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  27527. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27528. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27529. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27530. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27531. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27532. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27533. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27534. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27535. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27536. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27537. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27538. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27539. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27540. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27541. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27542. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27543. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27544. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27545. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27546. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27547. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27548. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27549. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27550. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27551. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  27552. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27553. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27554. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27555. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27556. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27557. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27558. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27559. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27560. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27561. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27562. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27563. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27564. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27565. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27566. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27567. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27568. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27569. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27570. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27571. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27572. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27573. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27574. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27575. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27576. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  27577. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27578. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27579. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27580. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27581. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27582. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27583. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27584. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27585. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27586. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27587. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27588. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27589. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27590. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27591. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27592. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27593. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27594. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27595. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27596. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27597. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27598. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27599. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27600. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27601. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  27602. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  27603. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  27604. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  27605. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27606. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27607. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27608. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27609. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27610. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27611. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27612. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27613. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27614. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27615. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27616. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27617. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27618. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27619. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27620. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27621. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27622. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27623. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27624. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27625. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27626. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27627. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27628. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27629. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  27630. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27631. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27632. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27633. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27634. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27635. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27636. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27637. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27638. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27639. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27640. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27641. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27642. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27643. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27644. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27645. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27646. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27647. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27648. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27649. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27650. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27651. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27652. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27653. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27654. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  27655. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27656. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27657. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27658. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27659. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27660. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27661. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27662. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27663. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27664. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27665. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27666. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27667. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27668. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27669. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27670. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27671. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27672. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27673. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27674. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27675. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27676. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27677. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27678. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27679. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  27680. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27681. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27682. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27683. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27684. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27685. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27686. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27687. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27688. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27689. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27690. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27691. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27692. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27693. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27694. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27695. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27696. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27697. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27698. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27699. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27700. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27701. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27702. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27703. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27704. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  27705. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  27706. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  27707. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  27708. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  27709. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27710. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27711. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27712. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27713. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27714. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27715. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27716. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27717. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27718. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27719. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27720. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27721. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27722. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27723. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27724. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27725. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27726. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27727. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27728. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27729. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  27730. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27731. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27732. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27733. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27734. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27735. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27736. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27737. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27738. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27739. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27740. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27741. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27742. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27743. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27744. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27745. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27746. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27747. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27748. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27749. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27750. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  27751. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27752. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27753. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27754. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27755. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27756. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27757. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27758. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27759. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27760. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27761. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27762. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27763. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27764. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27765. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27766. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27767. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27768. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27769. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27770. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27771. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  27772. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27773. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27774. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27775. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27776. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27777. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27778. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27779. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27780. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27781. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27782. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27783. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27784. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27785. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27786. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27787. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27788. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27789. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27790. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27791. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27792. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  27793. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27794. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27795. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27796. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27797. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27798. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27799. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27800. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27801. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27802. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27803. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27804. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27805. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  27806. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27807. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27808. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27809. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27810. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27811. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27812. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27813. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27814. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27815. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27816. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27817. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27818. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  27819. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27820. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27821. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27822. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27823. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  27824. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27825. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27826. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27827. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  27828. {"RX_CDC_DMA_RX_1 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27829. {"RX_CDC_DMA_RX_1 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27830. {"RX_CDC_DMA_RX_1 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27831. {"RX_CDC_DMA_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27832. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Port Mixer"},
  27833. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27834. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27835. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27836. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27837. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27838. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27839. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27840. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27841. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27842. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27843. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27844. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  27845. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27846. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27847. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27848. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27849. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27850. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27851. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27852. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27853. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  27854. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27855. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27856. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  27857. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  27858. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  27859. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  27860. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  27861. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  27862. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27863. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27864. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27865. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27866. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27867. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27868. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27869. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  27870. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27871. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27872. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27873. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27874. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  27875. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27876. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27877. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27878. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  27879. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27880. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27881. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27882. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  27883. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27884. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27885. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27886. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  27887. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27888. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27889. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27890. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27891. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27892. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27893. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27894. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27895. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27896. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  27897. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  27898. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27899. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27900. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27901. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27902. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27903. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27904. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27905. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27906. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27907. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  27908. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27909. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27910. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27911. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27912. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27913. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27914. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27915. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27916. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27917. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27918. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27919. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  27920. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27921. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27922. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27923. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27924. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27925. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27926. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27927. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27928. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27929. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27930. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27931. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27932. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  27933. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27934. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27935. {"STUB_RX", NULL, "STUB_RX Mixer"},
  27936. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27937. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27938. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  27939. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27940. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27941. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  27942. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27943. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27944. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27945. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27946. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27947. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  27948. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27949. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27950. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27951. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27952. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27953. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  27954. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27955. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27956. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27957. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  27958. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27959. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27960. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  27961. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  27962. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27963. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  27964. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  27965. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  27966. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  27967. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27968. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27969. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27970. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27971. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27972. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27973. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27974. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27975. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27976. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27977. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27978. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27979. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27980. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  27981. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27982. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  27983. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27984. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  27985. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  27986. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  27987. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27988. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  27989. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27990. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27991. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  27992. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27993. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27994. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27995. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27996. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27997. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27998. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27999. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28000. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28001. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28002. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28003. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  28004. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28005. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28006. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28007. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28008. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28009. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28010. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28011. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28012. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28013. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28014. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  28015. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28016. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28017. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28018. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28019. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28020. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28021. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28022. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28023. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  28024. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28025. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28026. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28027. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28028. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28029. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28030. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28031. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28032. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28033. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28034. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  28035. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28036. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28037. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28038. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28039. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28040. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28041. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28042. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28043. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  28044. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28045. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28046. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28047. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28048. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28049. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28050. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28051. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  28052. /* Backend Enablement */
  28053. {"BE_OUT", NULL, "PRI_I2S_RX"},
  28054. {"BE_OUT", NULL, "SEC_I2S_RX"},
  28055. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  28056. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  28057. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  28058. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28059. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  28060. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  28061. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  28062. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  28063. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  28064. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  28065. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  28066. {"BE_OUT", NULL, "HDMI"},
  28067. {"BE_OUT", NULL, "DISPLAY_PORT"},
  28068. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  28069. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  28070. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  28071. {"BE_OUT", NULL, "MI2S_RX"},
  28072. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  28073. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  28074. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  28075. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  28076. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  28077. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  28078. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  28079. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  28080. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  28081. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  28082. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  28083. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  28084. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28085. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  28086. {"BE_OUT", NULL, "INT_FM_RX"},
  28087. {"BE_OUT", NULL, "PCM_RX"},
  28088. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28089. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28090. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  28091. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  28092. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  28093. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  28094. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  28095. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28096. {"BE_OUT", NULL, "INT_FM_RX"},
  28097. {"BE_OUT", NULL, "PCM_RX"},
  28098. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28099. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  28100. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  28101. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  28102. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  28103. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  28104. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  28105. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  28106. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  28107. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  28108. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  28109. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  28110. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  28111. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  28112. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  28113. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  28114. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  28115. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  28116. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  28117. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  28118. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  28119. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  28120. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  28121. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  28122. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  28123. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  28124. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  28125. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  28126. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  28127. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  28128. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  28129. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  28130. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  28131. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  28132. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  28133. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  28134. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  28135. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  28136. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  28137. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  28138. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  28139. {"PRI_I2S_TX", NULL, "BE_IN"},
  28140. {"MI2S_TX", NULL, "BE_IN"},
  28141. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  28142. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  28143. {"PRI_MI2S_TX", NULL, "BE_IN"},
  28144. {"TERT_MI2S_TX", NULL, "BE_IN"},
  28145. {"INT0_MI2S_TX", NULL, "BE_IN"},
  28146. {"INT2_MI2S_TX", NULL, "BE_IN"},
  28147. {"INT3_MI2S_TX", NULL, "BE_IN"},
  28148. {"INT4_MI2S_TX", NULL, "BE_IN"},
  28149. {"INT5_MI2S_TX", NULL, "BE_IN"},
  28150. {"SEC_MI2S_TX", NULL, "BE_IN"},
  28151. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  28152. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  28153. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  28154. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  28155. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  28156. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  28157. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  28158. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  28159. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  28160. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  28161. {"USB_AUDIO_TX", NULL, "BE_IN" },
  28162. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  28163. {"INT_FM_TX", NULL, "BE_IN"},
  28164. {"PCM_TX", NULL, "BE_IN"},
  28165. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28166. {"BE_OUT", NULL, "STUB_RX"},
  28167. {"STUB_TX", NULL, "BE_IN"},
  28168. {"STUB_1_TX", NULL, "BE_IN"},
  28169. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28170. {"AUX_PCM_TX", NULL, "BE_IN"},
  28171. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  28172. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  28173. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  28174. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  28175. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  28176. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  28177. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  28178. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28179. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28180. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28181. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28182. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  28183. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28184. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28185. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  28186. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  28187. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  28188. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  28189. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  28190. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  28191. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  28192. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  28193. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  28194. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  28195. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  28196. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  28197. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  28198. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  28199. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  28200. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  28201. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  28202. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  28203. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  28204. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  28205. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  28206. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  28207. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  28208. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  28209. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  28210. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  28211. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  28212. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  28213. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  28214. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  28215. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  28216. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  28217. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  28218. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  28219. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  28220. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28221. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28222. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28223. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28224. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28225. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28226. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  28227. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  28228. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  28229. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  28230. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  28231. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  28232. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  28233. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  28234. };
  28235. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  28236. struct snd_pcm_hw_params *params)
  28237. {
  28238. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28239. unsigned int be_id = rtd->dai_link->id;
  28240. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28241. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28242. return -EINVAL;
  28243. }
  28244. mutex_lock(&routing_lock);
  28245. msm_bedais[be_id].sample_rate = params_rate(params);
  28246. msm_bedais[be_id].channel = params_channels(params);
  28247. msm_bedais[be_id].format = params_format(params);
  28248. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  28249. __func__, msm_bedais[be_id].sample_rate,
  28250. msm_bedais[be_id].format, be_id);
  28251. mutex_unlock(&routing_lock);
  28252. return 0;
  28253. }
  28254. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  28255. {
  28256. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28257. unsigned int be_id = rtd->dai_link->id;
  28258. int i, session_type, path_type, topology;
  28259. struct msm_pcm_routing_bdai_data *bedai;
  28260. struct msm_pcm_routing_fdai_data *fdai;
  28261. pr_debug("%s: substream->pcm->id:%s\n",
  28262. __func__, substream->pcm->id);
  28263. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28264. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28265. return -EINVAL;
  28266. }
  28267. bedai = &msm_bedais[be_id];
  28268. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  28269. 0 : 1);
  28270. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28271. path_type = ADM_PATH_PLAYBACK;
  28272. else
  28273. path_type = ADM_PATH_LIVE_REC;
  28274. mutex_lock(&routing_lock);
  28275. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28276. if (!is_mm_lsm_fe_id(i))
  28277. continue;
  28278. fdai = &fe_dai_map[i][session_type];
  28279. if (fdai->strm_id != INVALID_SESSION) {
  28280. int idx;
  28281. int port_id;
  28282. unsigned long copp =
  28283. session_copp_map[i][session_type][be_id];
  28284. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  28285. if (test_bit(idx, &copp))
  28286. break;
  28287. if (idx >= MAX_COPPS_PER_PORT) {
  28288. pr_debug("%s: copp idx is invalid, exiting\n",
  28289. __func__);
  28290. continue;
  28291. }
  28292. fdai->be_srate = bedai->sample_rate;
  28293. port_id = get_port_id(bedai->port_id);
  28294. topology = adm_get_topology_for_port_copp_idx(port_id,
  28295. idx);
  28296. msm_routing_unload_topology(topology);
  28297. adm_close(port_id, fdai->perf_mode, idx);
  28298. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  28299. __func__, copp, i, session_type, be_id,
  28300. topology);
  28301. clear_bit(idx,
  28302. &session_copp_map[i][session_type][be_id]);
  28303. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28304. (fdai->passthr_mode == LEGACY_PCM))
  28305. msm_pcm_routing_deinit_pp(port_id,
  28306. topology);
  28307. }
  28308. }
  28309. bedai->active = 0;
  28310. bedai->sample_rate = 0;
  28311. bedai->channel = 0;
  28312. mutex_unlock(&routing_lock);
  28313. return 0;
  28314. }
  28315. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  28316. {
  28317. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28318. unsigned int be_id = rtd->dai_link->id;
  28319. int i, path_type, topology;
  28320. int session_type = INVALID_SESSION;
  28321. struct msm_pcm_routing_bdai_data *bedai;
  28322. u32 channels, sample_rate;
  28323. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  28324. struct msm_pcm_routing_fdai_data *fdai;
  28325. u32 session_id;
  28326. struct media_format_info voc_be_media_format;
  28327. bool is_lsm;
  28328. pr_debug("%s: substream->pcm->id:%s\n",
  28329. __func__, substream->pcm->id);
  28330. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28331. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28332. return -EINVAL;
  28333. }
  28334. bedai = &msm_bedais[be_id];
  28335. mutex_lock(&routing_lock);
  28336. if (bedai->active == 1)
  28337. goto done; /* Ignore prepare if back-end already active */
  28338. /* AFE port is not active at this point. However, still
  28339. * go ahead setting active flag under the notion that
  28340. * QDSP6 is able to handle ADM starting before AFE port
  28341. * is started.
  28342. */
  28343. bedai->active = 1;
  28344. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28345. if (!(is_mm_lsm_fe_id(i) &&
  28346. route_check_fe_id_adm_support(i)))
  28347. continue;
  28348. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  28349. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28350. fdai = &fe_dai_map[i][session_type];
  28351. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  28352. if (fdai->passthr_mode != LEGACY_PCM)
  28353. path_type = ADM_PATH_COMPRESSED_RX;
  28354. else
  28355. path_type = ADM_PATH_PLAYBACK;
  28356. } else {
  28357. if ((fdai->passthr_mode != LEGACY_PCM) &&
  28358. (fdai->passthr_mode != LISTEN))
  28359. path_type = ADM_PATH_COMPRESSED_TX;
  28360. else
  28361. path_type = ADM_PATH_LIVE_REC;
  28362. }
  28363. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  28364. (i <= MSM_FRONTEND_DAI_LSM8);
  28365. if (fdai->strm_id != INVALID_SESSION) {
  28366. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  28367. int port_id = get_port_id(bedai->port_id);
  28368. if (session_type == SESSION_TYPE_TX &&
  28369. fdai->be_srate &&
  28370. (fdai->be_srate != bedai->sample_rate)) {
  28371. pr_debug("%s: flush strm %d diff BE rates\n",
  28372. __func__,
  28373. fdai->strm_id);
  28374. if (fdai->event_info.event_func)
  28375. fdai->event_info.event_func(
  28376. MSM_PCM_RT_EVT_BUF_RECFG,
  28377. fdai->event_info.priv_data);
  28378. fdai->be_srate = 0; /* might not need it */
  28379. }
  28380. bits_per_sample = msm_routing_get_bit_width(
  28381. bedai->format);
  28382. app_type =
  28383. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  28384. if (app_type && is_lsm) {
  28385. app_type_idx =
  28386. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  28387. sample_rate =
  28388. fe_dai_app_type_cfg[i][session_type][be_id]
  28389. .sample_rate;
  28390. bits_per_sample =
  28391. lsm_app_type_cfg[app_type_idx].bit_width;
  28392. } else if (app_type) {
  28393. app_type_idx =
  28394. msm_pcm_routing_get_app_type_idx(app_type);
  28395. sample_rate =
  28396. fe_dai_app_type_cfg[i][session_type]
  28397. [be_id].sample_rate;
  28398. bits_per_sample =
  28399. app_type_cfg[app_type_idx].bit_width;
  28400. } else
  28401. sample_rate = bedai->sample_rate;
  28402. /*
  28403. * check if ADM needs to be configured with different
  28404. * channel mapping than backend
  28405. */
  28406. if (!bedai->adm_override_ch)
  28407. channels = bedai->channel;
  28408. else
  28409. channels = bedai->adm_override_ch;
  28410. acdb_dev_id =
  28411. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  28412. topology = msm_routing_get_adm_topology(i, session_type,
  28413. be_id);
  28414. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  28415. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  28416. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  28417. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  28418. be_bit_width = msm_routing_get_bit_width(
  28419. bedai->format);
  28420. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  28421. || bedai->sample_rate == 352800) &&
  28422. be_bit_width == 32)
  28423. bits_per_sample = msm_routing_get_bit_width(
  28424. SNDRV_PCM_FORMAT_S32_LE);
  28425. copp_idx = adm_open(port_id, path_type,
  28426. sample_rate, channels, topology,
  28427. fdai->perf_mode, bits_per_sample,
  28428. app_type, acdb_dev_id,
  28429. session_type);
  28430. if ((copp_idx < 0) ||
  28431. (copp_idx >= MAX_COPPS_PER_PORT)) {
  28432. pr_err("%s: adm open failed\n", __func__);
  28433. mutex_unlock(&routing_lock);
  28434. return -EINVAL;
  28435. }
  28436. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  28437. __func__, i, session_type, be_id);
  28438. set_bit(copp_idx,
  28439. &session_copp_map[i][session_type][be_id]);
  28440. if (msm_is_resample_needed(
  28441. sample_rate,
  28442. bedai->sample_rate))
  28443. adm_copp_mfc_cfg(port_id, copp_idx,
  28444. bedai->sample_rate);
  28445. msm_pcm_routing_build_matrix(i, session_type, path_type,
  28446. fdai->perf_mode, fdai->passthr_mode);
  28447. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28448. (fdai->passthr_mode == LEGACY_PCM))
  28449. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  28450. topology, channels);
  28451. }
  28452. }
  28453. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28454. session_id = msm_pcm_routing_get_voc_sessionid(i);
  28455. if (session_id) {
  28456. pr_debug("%s voice session_id: 0x%x\n", __func__,
  28457. session_id);
  28458. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28459. voc_path_type = RX_PATH;
  28460. else
  28461. voc_path_type = TX_PATH;
  28462. voc_set_route_flag(session_id, voc_path_type, 1);
  28463. memset(&voc_be_media_format, 0,
  28464. sizeof(struct media_format_info));
  28465. voc_be_media_format.port_id = bedai->port_id;
  28466. voc_be_media_format.num_channels = bedai->channel;
  28467. voc_be_media_format.sample_rate = bedai->sample_rate;
  28468. voc_be_media_format.bits_per_sample = bedai->format;
  28469. /* Defaulting this to 1 for voice call usecases */
  28470. voc_be_media_format.channel_mapping[0] = 1;
  28471. voc_set_device_config(session_id, voc_path_type,
  28472. &voc_be_media_format);
  28473. if (voc_get_route_flag(session_id, RX_PATH) &&
  28474. voc_get_route_flag(session_id, TX_PATH))
  28475. voc_enable_device(session_id);
  28476. }
  28477. }
  28478. /* Check if backend is an external ec ref port and set as needed */
  28479. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  28480. memset(&voc_be_media_format, 0,
  28481. sizeof(struct media_format_info));
  28482. /* Get format info for ec ref port from msm_bedais[] */
  28483. voc_be_media_format.port_id = bedai->port_id;
  28484. voc_be_media_format.num_channels = bedai->channel;
  28485. voc_be_media_format.bits_per_sample = bedai->format;
  28486. voc_be_media_format.sample_rate = bedai->sample_rate;
  28487. /* Defaulting this to 1 for voice call usecases */
  28488. voc_be_media_format.channel_mapping[0] = 1;
  28489. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  28490. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  28491. __func__, voc_be_media_format.port_id,
  28492. voc_be_media_format.num_channels,
  28493. voc_be_media_format.bits_per_sample,
  28494. voc_be_media_format.sample_rate);
  28495. }
  28496. done:
  28497. mutex_unlock(&routing_lock);
  28498. return 0;
  28499. }
  28500. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  28501. int fe_id)
  28502. {
  28503. int index, topo_id, be_idx;
  28504. unsigned long pp_config = 0;
  28505. bool mute_on;
  28506. int latency, session_type;
  28507. bool compr_passthr_mode = true;
  28508. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  28509. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  28510. pr_err("%s: Device pp params on invalid port %d\n",
  28511. __func__, port_id);
  28512. return -EINVAL;
  28513. }
  28514. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  28515. if (port_id == msm_bedais[be_idx].port_id)
  28516. break;
  28517. }
  28518. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28519. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  28520. return -EINVAL;
  28521. }
  28522. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  28523. if (msm_bedais_pp_params[index].port_id == port_id)
  28524. break;
  28525. }
  28526. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  28527. pr_err("%s: Invalid backend pp params index %d\n",
  28528. __func__, index);
  28529. return -EINVAL;
  28530. }
  28531. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  28532. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  28533. pr_err("%s: Invalid passthrough topology 0x%x\n",
  28534. __func__, topo_id);
  28535. return -EINVAL;
  28536. }
  28537. session_type =
  28538. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  28539. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28540. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  28541. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  28542. compr_passthr_mode = false;
  28543. pp_config = msm_bedais_pp_params[index].pp_params_config;
  28544. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  28545. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  28546. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  28547. mute_on = msm_bedais_pp_params[index].mute_on;
  28548. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28549. adm_send_compressed_device_mute(port_id,
  28550. copp_idx,
  28551. mute_on);
  28552. }
  28553. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  28554. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  28555. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  28556. &pp_config);
  28557. latency = msm_bedais_pp_params[index].latency;
  28558. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28559. adm_send_compressed_device_latency(port_id,
  28560. copp_idx,
  28561. latency);
  28562. }
  28563. return 0;
  28564. }
  28565. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  28566. {
  28567. uint32_t topology = NULL_COPP_TOPOLOGY;
  28568. void *cal_info = NULL;
  28569. uint32_t size = 0;
  28570. /* Retrieve cal_info size from cal data*/
  28571. if (data_size < sizeof(struct audio_cal_type_basic) +
  28572. sizeof(struct audio_cal_info_adm_top)) {
  28573. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  28574. goto done;
  28575. }
  28576. size = data_size - sizeof(struct audio_cal_type_basic);
  28577. cal_info = kzalloc(size, GFP_KERNEL);
  28578. if (!cal_info)
  28579. goto done;
  28580. memcpy(cal_info,
  28581. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  28582. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  28583. kfree(cal_info);
  28584. cal_info = NULL;
  28585. done:
  28586. pr_debug("%s: Using topology %d\n", __func__, topology);
  28587. return topology;
  28588. }
  28589. static void msm_routing_load_topology(size_t data_size, void *data)
  28590. {
  28591. uint32_t topology_id;
  28592. int ret = -EINVAL;
  28593. topology_id = msm_routing_get_topology(data_size, data);
  28594. if (topology_id != NULL_COPP_TOPOLOGY)
  28595. ret = q6core_load_unload_topo_modules(topology_id,
  28596. CORE_LOAD_TOPOLOGY);
  28597. if (ret < 0)
  28598. pr_debug("%s %d load topology failed\n",
  28599. __func__, topology_id);
  28600. }
  28601. static void msm_routing_unload_topology(uint32_t topology_id)
  28602. {
  28603. int ret = -EINVAL;
  28604. if (topology_id != NULL_COPP_TOPOLOGY)
  28605. ret = q6core_load_unload_topo_modules(topology_id,
  28606. CORE_UNLOAD_TOPOLOGY);
  28607. if (ret < 0)
  28608. pr_debug("%s %d unload topology failed\n",
  28609. __func__, topology_id);
  28610. }
  28611. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  28612. struct snd_ctl_elem_value *ucontrol)
  28613. {
  28614. int pp_id = ucontrol->value.integer.value[0];
  28615. int port_id = 0;
  28616. int index, be_idx, i, topo_id, idx;
  28617. bool mute;
  28618. int latency, session_type;
  28619. bool compr_passthr_mode = true;
  28620. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  28621. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  28622. port_id = msm_bedais[be_idx].port_id;
  28623. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  28624. break;
  28625. }
  28626. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28627. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  28628. return -EINVAL;
  28629. }
  28630. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  28631. if (msm_bedais_pp_params[index].port_id == port_id)
  28632. break;
  28633. }
  28634. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  28635. pr_err("%s: Invalid pp params backend index %d\n",
  28636. __func__, index);
  28637. return -EINVAL;
  28638. }
  28639. session_type =
  28640. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  28641. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28642. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  28643. MSM_FRONTEND_DAI_MM_SIZE) {
  28644. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  28645. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  28646. compr_passthr_mode = false;
  28647. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  28648. unsigned long copp =
  28649. session_copp_map[i]
  28650. [SESSION_TYPE_RX][be_idx];
  28651. if (!test_bit(idx, &copp))
  28652. continue;
  28653. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  28654. idx);
  28655. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  28656. continue;
  28657. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  28658. __func__, port_id, copp, msm_bedais[be_idx].active,
  28659. fe_dai_map[i][session_type].passthr_mode);
  28660. switch (pp_id) {
  28661. case ADM_PP_PARAM_MUTE_ID:
  28662. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  28663. mute = ucontrol->value.integer.value[1] ? true : false;
  28664. msm_bedais_pp_params[index].mute_on = mute;
  28665. set_bit(ADM_PP_PARAM_MUTE_BIT,
  28666. &msm_bedais_pp_params[index].pp_params_config);
  28667. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28668. adm_send_compressed_device_mute(port_id,
  28669. idx, mute);
  28670. break;
  28671. case ADM_PP_PARAM_LATENCY_ID:
  28672. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  28673. msm_bedais_pp_params[index].latency =
  28674. ucontrol->value.integer.value[1];
  28675. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  28676. &msm_bedais_pp_params[index].pp_params_config);
  28677. latency = msm_bedais_pp_params[index].latency =
  28678. ucontrol->value.integer.value[1];
  28679. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28680. adm_send_compressed_device_latency(port_id,
  28681. idx, latency);
  28682. break;
  28683. default:
  28684. pr_info("%s, device pp param %d not supported\n",
  28685. __func__, pp_id);
  28686. break;
  28687. }
  28688. }
  28689. }
  28690. return 0;
  28691. }
  28692. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  28693. struct snd_ctl_elem_value *ucontrol)
  28694. {
  28695. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  28696. return 0;
  28697. }
  28698. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  28699. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  28700. 0, 3, msm_routing_get_device_pp_params_mixer,
  28701. msm_routing_put_device_pp_params_mixer),
  28702. };
  28703. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  28704. struct snd_ctl_elem_value *ucontrol)
  28705. {
  28706. ucontrol->value.integer.value[0] =
  28707. core_get_license_status(ASM_MEDIA_FMT_APTX);
  28708. pr_debug("%s: status %ld\n", __func__,
  28709. ucontrol->value.integer.value[0]);
  28710. return 0;
  28711. }
  28712. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  28713. struct snd_ctl_elem_value *ucontrol)
  28714. {
  28715. int32_t status = 0;
  28716. status = core_set_license(ucontrol->value.integer.value[0],
  28717. APTX_CLASSIC_DEC_LICENSE_ID);
  28718. pr_debug("%s: status %d\n", __func__, status);
  28719. return status;
  28720. }
  28721. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  28722. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  28723. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  28724. msm_aptx_dec_license_control_put),
  28725. };
  28726. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  28727. struct snd_ctl_elem_value *ucontrol)
  28728. {
  28729. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  28730. uint32_t be_idx = ucontrol->value.integer.value[0];
  28731. int i;
  28732. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28733. pr_err("%s: Invalid Backend index %d\n", __func__, be_idx);
  28734. return -EINVAL;
  28735. }
  28736. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  28737. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  28738. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  28739. pr_err("%s: Invalid channel map %d\n",
  28740. __func__, channel_map[i]);
  28741. return -EINVAL;
  28742. }
  28743. }
  28744. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  28745. return 0;
  28746. }
  28747. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  28748. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  28749. MSM_BACKEND_DAI_MAX, 0,
  28750. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  28751. msm_routing_put_port_chmap_mixer),
  28752. };
  28753. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  28754. struct snd_ctl_elem_info *uinfo)
  28755. {
  28756. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  28757. uinfo->count = sizeof(be_dai_name_table);
  28758. return 0;
  28759. }
  28760. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  28761. unsigned int __user *bytes,
  28762. unsigned int size)
  28763. {
  28764. int i;
  28765. int ret = 0;
  28766. if (size < sizeof(be_dai_name_table)) {
  28767. pr_err("%s: invalid size %d requested, returning\n",
  28768. __func__, size);
  28769. ret = -EINVAL;
  28770. goto done;
  28771. }
  28772. /*
  28773. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  28774. * needed when adding new backends
  28775. */
  28776. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  28777. be_dai_name_table[i].be_id = i;
  28778. strlcpy(be_dai_name_table[i].be_name,
  28779. msm_bedais[i].name,
  28780. LPASS_BE_NAME_MAX_LENGTH);
  28781. }
  28782. ret = copy_to_user(bytes, &be_dai_name_table,
  28783. sizeof(be_dai_name_table));
  28784. if (ret) {
  28785. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  28786. ret = -EFAULT;
  28787. }
  28788. done:
  28789. return ret;
  28790. }
  28791. static const struct snd_kcontrol_new
  28792. msm_routing_be_dai_name_table_mixer_controls[] = {
  28793. {
  28794. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  28795. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  28796. .info = msm_routing_be_dai_name_table_info,
  28797. .name = "Backend DAI Name Table",
  28798. .tlv.c = snd_soc_bytes_tlv_callback,
  28799. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  28800. .max = sizeof(be_dai_name_table),
  28801. .get = msm_routing_be_dai_name_table_tlv_get,
  28802. }
  28803. },
  28804. };
  28805. static int msm_routing_stereo_channel_reverse_control_get(
  28806. struct snd_kcontrol *kcontrol,
  28807. struct snd_ctl_elem_value *ucontrol)
  28808. {
  28809. ucontrol->value.integer.value[0] = swap_ch;
  28810. pr_debug("%s: Swap channel value: %ld\n", __func__,
  28811. ucontrol->value.integer.value[0]);
  28812. return 0;
  28813. }
  28814. static int msm_routing_stereo_channel_reverse_control_put(
  28815. struct snd_kcontrol *kcontrol,
  28816. struct snd_ctl_elem_value *ucontrol)
  28817. {
  28818. int i, idx, be_index, port_id;
  28819. int ret = 0;
  28820. unsigned long copp;
  28821. pr_debug("%s Swap channel value:%ld\n", __func__,
  28822. ucontrol->value.integer.value[0]);
  28823. swap_ch = ucontrol->value.integer.value[0];
  28824. mutex_lock(&routing_lock);
  28825. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  28826. port_id = msm_bedais[be_index].port_id;
  28827. if (!msm_bedais[be_index].active)
  28828. continue;
  28829. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  28830. MSM_FRONTEND_DAI_MM_SIZE) {
  28831. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  28832. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  28833. if (!test_bit(idx, &copp))
  28834. continue;
  28835. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  28836. __func__, port_id, idx);
  28837. ret = adm_swap_speaker_channels(
  28838. port_id, idx,
  28839. msm_bedais[be_index].sample_rate,
  28840. swap_ch);
  28841. if (ret) {
  28842. pr_err("%s:Swap_channel failed, err=%d\n",
  28843. __func__, ret);
  28844. goto done;
  28845. }
  28846. }
  28847. }
  28848. }
  28849. done:
  28850. mutex_unlock(&routing_lock);
  28851. return ret;
  28852. }
  28853. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  28854. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  28855. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  28856. msm_routing_stereo_channel_reverse_control_put),
  28857. };
  28858. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  28859. struct snd_ctl_elem_info *uinfo)
  28860. {
  28861. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  28862. uinfo->count = 1;
  28863. return 0;
  28864. }
  28865. static int msm_routing_instance_id_support_put(
  28866. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  28867. {
  28868. bool supported = ucontrol->value.integer.value[0] ? true : false;
  28869. q6common_update_instance_id_support(supported);
  28870. return 0;
  28871. }
  28872. static int msm_routing_instance_id_support_get(
  28873. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  28874. {
  28875. bool supported = false;
  28876. supported = q6common_is_instance_id_supported();
  28877. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  28878. return 0;
  28879. }
  28880. static const struct snd_kcontrol_new
  28881. msm_routing_feature_support_mixer_controls[] = {
  28882. {
  28883. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  28884. SNDRV_CTL_ELEM_ACCESS_WRITE,
  28885. .info = msm_routing_instance_id_support_info,
  28886. .name = "Instance ID Support",
  28887. .put = msm_routing_instance_id_support_put,
  28888. .get = msm_routing_instance_id_support_get,
  28889. },
  28890. };
  28891. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  28892. .hw_params = msm_pcm_routing_hw_params,
  28893. .close = msm_pcm_routing_close,
  28894. .prepare = msm_pcm_routing_prepare,
  28895. };
  28896. /* Not used but frame seems to require it */
  28897. static int msm_routing_probe(struct snd_soc_component *component)
  28898. {
  28899. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  28900. ARRAY_SIZE(msm_qdsp6_widgets));
  28901. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  28902. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  28903. snd_soc_dapm_add_routes(&component->dapm, intercon,
  28904. ARRAY_SIZE(intercon));
  28905. snd_soc_dapm_new_widgets(component->dapm.card);
  28906. snd_soc_add_component_controls(component, lsm_controls,
  28907. ARRAY_SIZE(lsm_controls));
  28908. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  28909. ARRAY_SIZE(aanc_slim_0_rx_mux));
  28910. snd_soc_add_component_controls(component, aanc_noise_level,
  28911. ARRAY_SIZE(aanc_noise_level));
  28912. snd_soc_add_component_controls(component, msm_voc_session_controls,
  28913. ARRAY_SIZE(msm_voc_session_controls));
  28914. snd_soc_add_component_controls(component, app_type_cfg_controls,
  28915. ARRAY_SIZE(app_type_cfg_controls));
  28916. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  28917. ARRAY_SIZE(lsm_app_type_cfg_controls));
  28918. snd_soc_add_component_controls(component, module_cfg_controls,
  28919. ARRAY_SIZE(module_cfg_controls));
  28920. snd_soc_add_component_controls(component,
  28921. stereo_to_custom_stereo_controls,
  28922. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  28923. snd_soc_add_component_controls(component, ec_ref_param_controls,
  28924. ARRAY_SIZE(ec_ref_param_controls));
  28925. snd_soc_add_component_controls(component, channel_mixer_controls,
  28926. ARRAY_SIZE(channel_mixer_controls));
  28927. msm_qti_pp_add_controls(component);
  28928. msm_dts_srs_tm_add_controls(component);
  28929. msm_dolby_dap_add_controls(component);
  28930. snd_soc_add_component_controls(component,
  28931. use_ds1_or_ds2_controls,
  28932. ARRAY_SIZE(use_ds1_or_ds2_controls));
  28933. snd_soc_add_component_controls(component,
  28934. hifi_filter_controls,
  28935. ARRAY_SIZE(hifi_filter_controls));
  28936. snd_soc_add_component_controls(component,
  28937. device_pp_params_mixer_controls,
  28938. ARRAY_SIZE(device_pp_params_mixer_controls));
  28939. snd_soc_add_component_controls(component,
  28940. msm_routing_be_dai_name_table_mixer_controls,
  28941. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  28942. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  28943. ARRAY_SIZE(msm_source_tracking_controls));
  28944. snd_soc_add_component_controls(component, adm_channel_config_controls,
  28945. ARRAY_SIZE(adm_channel_config_controls));
  28946. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  28947. ARRAY_SIZE(aptx_dec_license_controls));
  28948. snd_soc_add_component_controls(component,
  28949. stereo_channel_reverse_control,
  28950. ARRAY_SIZE(stereo_channel_reverse_control));
  28951. snd_soc_add_component_controls(
  28952. component, msm_routing_feature_support_mixer_controls,
  28953. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  28954. snd_soc_add_component_controls(component,
  28955. port_multi_channel_map_mixer_controls,
  28956. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  28957. return 0;
  28958. }
  28959. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  28960. {
  28961. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  28962. }
  28963. void msm_routing_pcm_free(struct snd_pcm *pcm)
  28964. {
  28965. msm_pcm_routing_hwdep_free(pcm);
  28966. }
  28967. static struct snd_soc_component_driver msm_soc_routing_component = {
  28968. .name = DRV_NAME,
  28969. .ops = &msm_routing_pcm_ops,
  28970. .probe = msm_routing_probe,
  28971. .pcm_new = msm_routing_pcm_new,
  28972. .pcm_free = msm_routing_pcm_free,
  28973. };
  28974. static int msm_routing_pcm_probe(struct platform_device *pdev)
  28975. {
  28976. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  28977. return snd_soc_register_component(&pdev->dev,
  28978. &msm_soc_routing_component,
  28979. NULL, 0);
  28980. }
  28981. static int msm_routing_pcm_remove(struct platform_device *pdev)
  28982. {
  28983. snd_soc_unregister_component(&pdev->dev);
  28984. return 0;
  28985. }
  28986. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  28987. {.compatible = "qcom,msm-pcm-routing"},
  28988. {}
  28989. };
  28990. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  28991. static struct platform_driver msm_routing_pcm_driver = {
  28992. .driver = {
  28993. .name = "msm-pcm-routing",
  28994. .owner = THIS_MODULE,
  28995. .of_match_table = msm_pcm_routing_dt_match,
  28996. .suppress_bind_attrs = true,
  28997. },
  28998. .probe = msm_routing_pcm_probe,
  28999. .remove = msm_routing_pcm_remove,
  29000. };
  29001. int msm_routing_check_backend_enabled(int fedai_id)
  29002. {
  29003. int i;
  29004. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  29005. /* bad ID assigned in machine driver */
  29006. pr_err("%s: bad MM ID\n", __func__);
  29007. return 0;
  29008. }
  29009. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  29010. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  29011. return msm_bedais[i].active;
  29012. }
  29013. return 0;
  29014. }
  29015. static int get_cal_type_index(int32_t cal_type)
  29016. {
  29017. int ret = -EINVAL;
  29018. switch (cal_type) {
  29019. case ADM_TOPOLOGY_CAL_TYPE:
  29020. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  29021. break;
  29022. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  29023. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  29024. break;
  29025. default:
  29026. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  29027. }
  29028. return ret;
  29029. }
  29030. static int msm_routing_set_cal(int32_t cal_type,
  29031. size_t data_size, void *data)
  29032. {
  29033. int ret = 0;
  29034. int cal_index;
  29035. pr_debug("%s\n", __func__);
  29036. cal_index = get_cal_type_index(cal_type);
  29037. if (cal_index < 0) {
  29038. pr_err("%s: Could not get cal index %d\n",
  29039. __func__, cal_index);
  29040. ret = -EINVAL;
  29041. goto done;
  29042. }
  29043. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  29044. if (ret < 0) {
  29045. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  29046. __func__, ret, cal_type);
  29047. ret = -EINVAL;
  29048. goto done;
  29049. }
  29050. /* Pre-load if it is ADM topology */
  29051. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  29052. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  29053. msm_routing_load_topology(data_size, data);
  29054. }
  29055. done:
  29056. return ret;
  29057. }
  29058. static void msm_routing_delete_cal_data(void)
  29059. {
  29060. pr_debug("%s\n", __func__);
  29061. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  29062. }
  29063. static int msm_routing_init_cal_data(void)
  29064. {
  29065. int ret = 0;
  29066. struct cal_type_info cal_type_info[] = {
  29067. {{ADM_TOPOLOGY_CAL_TYPE,
  29068. {NULL, NULL, NULL,
  29069. msm_routing_set_cal, NULL, NULL} },
  29070. {NULL, NULL, cal_utils_match_buf_num} },
  29071. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  29072. {NULL, NULL, NULL,
  29073. msm_routing_set_cal, NULL, NULL} },
  29074. {NULL, NULL, cal_utils_match_buf_num} },
  29075. };
  29076. pr_debug("%s\n", __func__);
  29077. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  29078. &cal_type_info[0]);
  29079. if (ret < 0) {
  29080. pr_err("%s: could not create cal type!\n",
  29081. __func__);
  29082. ret = -EINVAL;
  29083. goto err;
  29084. }
  29085. return ret;
  29086. err:
  29087. msm_routing_delete_cal_data();
  29088. return ret;
  29089. }
  29090. int __init msm_soc_routing_platform_init(void)
  29091. {
  29092. mutex_init(&routing_lock);
  29093. if (msm_routing_init_cal_data())
  29094. pr_err("%s: could not init cal data!\n", __func__);
  29095. afe_set_routing_callback(
  29096. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  29097. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29098. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  29099. return platform_driver_register(&msm_routing_pcm_driver);
  29100. }
  29101. void msm_soc_routing_platform_exit(void)
  29102. {
  29103. msm_routing_delete_cal_data();
  29104. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29105. mutex_destroy(&routing_lock);
  29106. platform_driver_unregister(&msm_routing_pcm_driver);
  29107. }
  29108. MODULE_DESCRIPTION("MSM routing platform driver");
  29109. MODULE_LICENSE("GPL v2");